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)
onlyif mysql # use DIV operator for integer division
query I rowsort label-0
SELECT DISTINCT - col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT - col0 / - col0 AS col1 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col2 FROM tab0
----
-57
-57
-57
query I rowsort
SELECT 99 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-2739
-7363
2
query I rowsort
SELECT ALL + 56 - 17 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT col1 * - tab1.col0 * - col1 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-5
SELECT ALL + tab2.col1 DIV + tab2.col1 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5
SELECT ALL + tab2.col1 / + tab2.col1 AS col0 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6
SELECT DISTINCT col0 * col2 DIV col1 AS col0 FROM tab1
----
364
590
6
skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT col0 * col2 / col1 AS col0 FROM tab1
----
364
590
6
query I rowsort
SELECT - col1 * col2 + + tab1.col2 FROM tab1
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-8
SELECT DISTINCT col0 * - col2 + - col1 DIV - col0 FROM tab2
----
-185
-2028
-3002
skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT col0 * - col2 + - col1 / - col0 FROM tab2
----
-185
-2028
-3002
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 < col2
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + col1 IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab2 WHERE NOT - col1 + - col1 * - col2 BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-13
SELECT ALL col0 DIV - col0 + - col1 * col1 FROM tab1
----
-101
-170
-677
skipif mysql # not compatible
query I rowsort label-13
SELECT ALL col0 / - col0 + - col1 * col1 FROM tab1
----
-101
-170
-677
query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col2 * + col0 + - col1 )
----
query I rowsort
SELECT col1 * tab0.col0 * col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL tab0.col2 / col2 FROM tab0 WHERE NULL IN ( col2 * - col0 )
----
query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + col2 col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT tab2.col1 - - col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT - col0 - - col1 * + tab2.col0 AS col2 FROM tab2
----
1264
210
4524
query I rowsort
SELECT DISTINCT 73 * col0 AS col1 FROM tab0
----
1752
2555
6497
query I rowsort
SELECT DISTINCT - + 55 AS col0 FROM tab2, tab0, tab0 AS cor0
----
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-23
SELECT DISTINCT col0 * + col1 + CAST( NULL AS DECIMAL ) * - col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT col0 * + col1 + CAST ( NULL AS REAL ) * - col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 * cor0.col1 col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - ( col0 ) * 14 AS col0 FROM tab2 AS cor0
----
-1092
-1106
-98
query I rowsort
SELECT DISTINCT + 27 * col2 FROM tab2 AS cor0
----
1026
702
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-27
SELECT + + cor0.col0 DIV col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-27
SELECT + + cor0.col0 / col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT 79 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
onlyif mysql # use DIV operator for integer division
query I rowsort label-29
SELECT DISTINCT col0 * 80 DIV - ( col2 ) + - ( + col0 ) DIV cor0.col2 FROM tab1 AS cor0
----
-4
-66
-90
skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT col0 * 80 / - ( col2 ) + - ( + col0 ) / cor0.col2 FROM tab1 AS cor0
----
-4
-66
-90
query I rowsort
SELECT ALL col1 + 63 AS col1 FROM tab1 cor0
----
73
76
89
query I rowsort
SELECT ALL - col1 * cor0.col1 + col0 * col2 * + 56 + cor0.col2 FROM tab2 AS cor0
----
110113
167861
9650
query I rowsort
SELECT DISTINCT - + col0 + 80 AS col0 FROM tab1 cor0
----
0
16
77
query I rowsort
SELECT DISTINCT cor0.col2 * 87 - col1 * + col0 FROM tab0 AS cor0
----
-3308
-965
807
query I rowsort
SELECT col1 * ( + col2 ) AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + - col1 * col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - col2 * - 42 + - cor0.col1 AS col0 FROM tab1 cor0
----
2242
2384
4019
query I rowsort
SELECT cor0.col2 + col1 * - col2 AS col1 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 - col1 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( + col1 + col0 ) col1 FROM tab2 cor0
----
1026
3562
3648
query I rowsort
SELECT ALL + col2 * + 77 AS col2 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT - 70 + 76 * col1 + + 45 FROM tab2 cor0
----
1267
2331
4459
query I rowsort
SELECT - 29 + 69 FROM tab1 AS cor0
----
40
40
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-43
SELECT ALL + + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-43
SELECT ALL + + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 * - 6 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT DISTINCT - + 67 * + ( + col2 ) FROM tab2 AS cor0
----
-1742
-1809
-2546
query I rowsort
SELECT ALL col0 + - col1 + - col0 * 12 * + col1 AS col2 FROM tab0 cor0
----
-24830
-40802
-97190
query I rowsort
SELECT - 81 * col2 FROM tab1 cor0
----
-4374
-4617
-7776
query I rowsort
SELECT DISTINCT - - 21 * col0 + - col0 AS col1 FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT DISTINCT ( 92 ) AS col2 FROM tab1 AS cor0
----
92
query I rowsort
SELECT ALL 66 + + 13 * col2 AS col0 FROM tab1 AS cor0
----
1314
768
807
query I rowsort
SELECT ALL - 2 + 86 FROM tab0 AS cor0
----
84
84
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-52
SELECT DISTINCT - 35 + col2 DIV col2 col1 FROM tab1 AS cor0
----
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT - 35 + col2 / col2 col1 FROM tab1 AS cor0
----
-34
query I rowsort
SELECT + - col1 + 26 * cor0.col1 + col0 * - cor0.col2 FROM tab2 cor0
----
-2577
-553
586
query I rowsort
SELECT ALL - - 77 + - col0 FROM tab2 AS cor0
----
-1
-2
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * - col1 col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 + - cor0.col2 + col1 AS col2 FROM tab2 cor0
----
-23
-59
7
query I rowsort
SELECT ALL - 93 * col2 FROM tab2 AS cor0
----
-2418
-2511
-3534
query I rowsort
SELECT - cor0.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT - col2 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT - + ( + col2 ) * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-61
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + col1 + + col2 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT CAST ( NULL AS REAL ) + + col1 + + col2 AS col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 + col0 col0 FROM tab1
----
-4
-65
12
query I rowsort
SELECT - col0 * col1 - - col1 AS col2 FROM tab1
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81
query I rowsort
SELECT DISTINCT 92 * + col0 AS col1 FROM tab0 AS cor0
----
2208
3220
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-66
SELECT DISTINCT - 65 DIV col2 FROM tab1 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT - 65 / col2 FROM tab1 cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-67
SELECT + + col1 + - col1 DIV col1 AS col2 FROM tab0 cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-67
SELECT + + col1 + - col1 / col1 AS col2 FROM tab0 cor0
----
85
90
96
query I rowsort
SELECT DISTINCT + 64 * - col1 FROM tab1 AS cor0
----
-1664
-640
-832
query I rowsort
SELECT - - cor0.col1 * col0 * col0 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-70
SELECT - col1 + + cor0.col2 + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-53
-61
-8
skipif mysql # not compatible
query I rowsort label-70
SELECT - col1 + + cor0.col2 + col0 / col2 AS col2 FROM tab0 AS cor0
----
-53
-61
-8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-71
SELECT + - col1 * + col2 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-71
SELECT + - col1 * + col2 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + ( 21 ) * + col2 FROM tab2 AS cor0
----
572
594
836
query I rowsort
SELECT - col2 + + 39 * 26 AS col0 FROM tab1 AS cor0
----
918
957
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-74
SELECT ALL - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-74
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + + tab0.col2 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL - - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT col0 * ( ( + tab0.col2 ) ) + + 2 FROM tab0
----
37
7300
794
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-78
SELECT ALL CAST( NULL AS DECIMAL ) * - tab0.col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-78
SELECT ALL CAST ( NULL AS REAL ) * - tab0.col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( ( + col1 ) ) AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL ( 13 ) * col0 + + tab2.col2 FROM tab2
----
1040
1065
118
query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-82
SELECT ALL CAST( NULL AS DECIMAL ) - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-82
SELECT ALL CAST ( NULL AS REAL ) - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-83
SELECT DISTINCT - CAST( col2 AS SIGNED ) - + col0 * col1 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT - CAST ( col2 AS INTEGER ) - + col0 * col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + col2 * + col1 + - col1 * 51 FROM tab0 AS cor0
----
-1548
-4850
2821
query I rowsort
SELECT DISTINCT 2 + col2 FROM tab1 AS cor0
----
56
59
98
query I rowsort
SELECT ALL - + col2 * - 26 - col1 AS col2 FROM tab0 cor0
----
-71
2041
772
query I rowsort
SELECT ( - cor0.col2 ) + + col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - col1 * ( 73 ) * col2 + + col2 - + ( - col2 ) FROM tab1
----
-102384
-41496
-90912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT + + col2 * col0 * cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
114155
5110
52806
query I rowsort
SELECT + col1 + cor0.col0 * - col2 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-93
SELECT + CAST( 12 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
12
12
12
skipif mysql # not compatible
query I rowsort label-93
SELECT + CAST ( 12 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
12
12
12
query I rowsort
SELECT + - col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col0 * - col2 + col2 * + col1 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT ALL 28 * col1 AS col1 FROM tab2 AS cor0
----
1652
476
868
query I rowsort
SELECT - 78 + col1 AS col0 FROM tab2 AS cor0
----
-19
-47
-61
query I rowsort
SELECT - 4 * - col1 * + ( + col1 ) - col1 FROM tab1 AS cor0
----
2678
390
663
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col0 * + col0 + + CAST ( - cor0.col1 AS REAL ) * col2 * + col1 AS col2 FROM tab2 AS cor0
----
-17223
-25996
-96590
skipif mysql # not compatible
query I rowsort
SELECT col2 * - col2 * + CAST ( 92 AS REAL ) - col2 AS col2 FROM tab2 AS cor0
----
-132886
-62218
-67095
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-101
SELECT ALL - 4 * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - 4 * col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - col0 * cor0.col1 * 30 - col1 FROM tab1 cor0
----
-19146
-2363
-31133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-103
SELECT + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-103
SELECT + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * col1 * cor0.col0 + col2 + + col0 * + col0 AS col0 FROM tab1 AS cor0
----
10553
20016
2091
query I rowsort
SELECT + col0 + 65 FROM tab1 cor0
----
129
145
68
query I rowsort
SELECT - col2 - + col2 * col1 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
skipif mysql # not compatible
query I rowsort
SELECT + col2 + ( - 94 + - col1 ) * CAST ( + 61 + col0 * col0 AS REAL ) AS col0 FROM tab2 cor0
----
-13723
-699484
-940159
query I rowsort
SELECT ALL tab1.col2 * col2 * + col1 AS col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + col2 + 85 FROM tab1 AS cor0
----
139
142
181
query I rowsort
SELECT + col2 - + ( - col2 ) AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + + col1 + cor0.col2 * + cor0.col1 * col1 FROM tab0 AS cor0
----
244154
679133
9506
query I rowsort
SELECT DISTINCT + col1 * + 1 + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT col2 * 31 * cor0.col1 - col1 AS col2 FROM tab0 AS cor0
----
231231
2910
87892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-114
SELECT + col0 - CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-114
SELECT + col0 - CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + - 35 * 18 AS col2 FROM tab0 AS cor0
----
-631
-663
-712
query I rowsort
SELECT + ( col0 * 53 ) FROM tab2
----
371
4134
4187
query I rowsort
SELECT ALL col1 + col0 - - tab0.col1 * tab0.col1 FROM tab0
----
7506
8461
9541
onlyif mysql # use DIV operator for integer division
query I rowsort label-118
SELECT col2 + + col2 DIV tab1.col1 AS col1 FROM tab1
----
103
56
62
skipif mysql # not compatible
query I rowsort label-118
SELECT col2 + + col2 / tab1.col1 AS col1 FROM tab1
----
103
56
62
query I rowsort
SELECT col1 * col2 * ( - col1 ) AS col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT - col1 * - 12 AS col0 FROM tab1
----
120
156
312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-121
SELECT tab1.col0 * CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-121
SELECT tab1.col0 * CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 96 col1 FROM tab2
----
-1632
-2976
-5664
query I rowsort
SELECT DISTINCT - tab0.col2 * + tab0.col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col2 * - col2 + - 2 FROM tab1
----
2914
3247
9214
query I rowsort
SELECT - col0 + col0 - - col2 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab2, tab0, tab1 cor0
----
10
13
26
query I rowsort
SELECT - tab2.col1 + ( + ( col0 ) ) FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL - 61 + + cor0.col1 FROM tab0 cor0
----
25
30
36
query I rowsort
SELECT - cor0.col1 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL - col0 + - cor0.col0 * - ( - col2 ) * col1 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab2, tab2 AS cor0
----
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-132
SELECT DISTINCT - 75 DIV + col2 - ( col0 ) AS col0 FROM tab0 AS cor0
----
-110
-26
-89
skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT - 75 / + col2 - ( col0 ) AS col0 FROM tab0 AS cor0
----
-110
-26
-89
query I rowsort
SELECT DISTINCT - + ( col1 ) * + col2 - + col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT - - cor0.col2 + + col2 * + 76 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT - - 52 + col1 * col0 AS col2 FROM tab1 AS cor0
----
1092
130
692
query I rowsort
SELECT 67 FROM tab0, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT 72 + cor0.col2 * col1 FROM tab2 AS cor0
----
1606
718
909
query I rowsort
SELECT DISTINCT col0 + 97 FROM tab0
----
121
132
186
query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
10
13
26
query I rowsort
SELECT DISTINCT col0 * tab0.col0 + col1 * tab0.col0 + - col2 AS col0 FROM tab0
----
15938
2607
4619
query I rowsort
SELECT tab1.col1 + 98 * 57 AS col1 FROM tab1
----
5596
5599
5612
query I rowsort
SELECT DISTINCT ( 74 * col0 + - col0 ) AS col1 FROM tab1
----
219
4672
5840
query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab1, tab1 cor0
----
-47
query I rowsort
SELECT 33 + - 97 AS col0 FROM tab1
----
-64
-64
-64
query I rowsort
SELECT ALL - - 45 AS col2 FROM tab2 cor0
----
45
45
45
query I rowsort
SELECT DISTINCT ( + 88 ) AS col0 FROM tab2 AS cor0
----
88
query I rowsort
SELECT 57 AS col0 FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT 91 + 3 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
94
query I rowsort
SELECT DISTINCT col2 + - tab2.col2 AS col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + col2 * col0 - + col0 * tab2.col1 FROM tab2
----
-2574
-28
1659
query I rowsort
SELECT col0 + - tab1.col2 - tab1.col2 AS col1 FROM tab1
----
-105
-112
-50
query I rowsort
SELECT - col2 * col1 + - 79 FROM tab1
----
-1327
-1483
-649
onlyif mysql # use DIV operator for integer division
query I rowsort label-153
SELECT ALL col1 + + tab0.col0 DIV 87 FROM tab0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-153
SELECT ALL col1 + + tab0.col0 / 87 FROM tab0
----
86
92
97
query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT ALL + tab2.col0 + + tab2.col2 FROM tab2
----
104
117
34
query I rowsort
SELECT + cor0.col2 + ( cor0.col2 ) FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + col1 * - col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - - col0 * + 92 + col0 * col1 FROM tab2 AS cor0
----
11778
861
8611
query I rowsort
SELECT ALL - cor0.col0 * + 76 - 0 AS col2 FROM tab0 AS cor0
----
-1824
-2660
-6764
onlyif mysql # use DIV operator for integer division
query I rowsort label-161
SELECT ALL - - col0 + 70 DIV - col2 FROM tab1 AS cor0
----
2
63
80
skipif mysql # not compatible
query I rowsort label-161
SELECT ALL - - col0 + 70 / - col2 FROM tab1 AS cor0
----
2
63
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-162
SELECT ALL col1 - + CAST( col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif mysql # not compatible
query I rowsort label-162
SELECT ALL col1 - + CAST ( col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + - cor0.col2 * - col0 col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - - col1 * + ( col2 ) + - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT col2 + 91 FROM tab1 cor0
----
145
148
187
query I rowsort
SELECT DISTINCT + col0 + + ( - col2 + col1 ) AS col0 FROM tab2 AS cor0
----
11
111
58
query I rowsort
SELECT + col0 + ( col1 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 + col0 * + col0 FROM tab1 AS cor0
----
12800
18
8192
query I rowsort
SELECT + cor0.col0 + - col2 * 65 FROM tab0 AS cor0
----
-2121
-30
-5241
query I rowsort
SELECT col1 - 77 AS col1 FROM tab0 cor0
----
14
20
9
query I rowsort
SELECT + cor0.col2 * - 42 + col2 AS col2 FROM tab0 AS cor0
----
-1353
-3362
-41
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 * 85 AS col2 FROM tab0 AS cor0
----
241230
634270
8245
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 * - 54 col0 FROM tab0, tab2 AS cor0
----
4644
query I rowsort
SELECT col1 + + 78 AS col1 FROM tab1 cor0
----
104
88
91
query I rowsort
SELECT + 94 * - 98 FROM tab0 AS cor0
----
-9212
-9212
-9212
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-176
SELECT - CAST( NULL AS SIGNED ) * 45 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-176
SELECT - CAST ( NULL AS INTEGER ) * 45 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * col0 * - col2 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT + cor0.col2 * - ( + col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 88 + 33 AS col1 FROM tab1 cor0
----
121
121
121
query I rowsort
SELECT ALL col1 + + 18 AS col2 FROM tab1
----
28
31
44
query I rowsort
SELECT col0 + + col1 * + col1 * + col1 + col0 AS col2 FROM tab0
----
636104
753749
912743
onlyif mysql # use DIV operator for integer division
query I rowsort label-182
SELECT - cor0.col2 + cor0.col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-182
SELECT - cor0.col2 + cor0.col0 / col0 AS col0 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT 51 + col2 AS col2 FROM tab2 AS cor0
----
77
78
89
query I rowsort
SELECT DISTINCT + - 35 AS col1 FROM tab0 AS cor0
----
-35
query I rowsort
SELECT ALL 21 * + cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
11970
26208
29484
onlyif mysql # use DIV operator for integer division
query I rowsort label-186
SELECT DISTINCT - + 58 + cor0.col2 DIV col1 - 91 FROM tab2 AS cor0
----
-147
-149
skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT - + 58 + cor0.col2 / col1 - 91 FROM tab2 AS cor0
----
-147
-149
query I rowsort
SELECT + col1 + cor0.col1 * + col2 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-188
SELECT - 81 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-188
SELECT - 81 / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - - col2 + + 30 - col1 FROM tab1 AS cor0
----
113
58
77
query I rowsort
SELECT + tab0.col1 + - tab0.col0 * + 53 FROM tab0
----
-1186
-1758
-4626
query I rowsort
SELECT ALL - tab0.col1 + - col0 * - col2 AS col2 FROM tab0
----
-62
706
7207
query I rowsort
SELECT - tab1.col2 + - ( 32 ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to f9dda586808f8cbe357fb3feb062a4e7
query I rowsort
SELECT ALL - 38 + - col1 + col0 FROM tab1 AS cor0
----
-61
16
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-194
SELECT DISTINCT + + col2 DIV + col2 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT + + col2 / + col2 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2837
-7461
-96
query I rowsort
SELECT DISTINCT col0 * - col1 - - col0 * col0 AS col0 FROM tab2 cor0
----
-168
1482
4898
query I rowsort
SELECT - 94 + 84 + + col0 FROM tab1
----
-7
54
70
query I rowsort
SELECT + 24 * col2 FROM tab1
----
1296
1368
2304
query I rowsort
SELECT ALL 74 FROM tab1, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT ALL 93 * tab0.col0 + - col0 + 47 FROM tab0
----
2255
3267
8235
query I rowsort
SELECT + col0 + col1 * col0 + - col1 FROM tab1
----
1107
55
694
query I rowsort
SELECT DISTINCT - tab0.col1 + col2 + - ( col1 ) * col1 AS col2 FROM tab0
----
-7449
-8290
-9505
query I rowsort
SELECT - - cor0.col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - 87 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
81 values hashing to edb5a8bbcb3204ac8254e54507073328
query I rowsort
SELECT ALL - 85 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col0 * + col0 col0 FROM tab0 AS cor0
----
1190
552
7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT DISTINCT 50 * - col0 - col0 DIV ( col1 * col2 ) FROM tab0
----
-1200
-1750
-4450
skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT 50 * - col0 - col0 / ( col1 * col2 ) FROM tab0
----
-1200
-1750
-4450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - - col1 * + col0 col0 FROM tab2 cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 - col1 col1 FROM tab0 AS cor0
----
-106
-111
-117
query I rowsort
SELECT - 38 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT DISTINCT - 88 * - col1 AS col2 FROM tab0 AS cor0
----
7568
8008
8536
query I rowsort
SELECT ALL + - ( - 86 ) AS col1 FROM tab0 AS cor0
----
86
86
86
query I rowsort
SELECT - 75 + 94 * - col1 AS col0 FROM tab2 AS cor0
----
-1673
-2989
-5621
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-213
SELECT DISTINCT - CAST( col0 AS SIGNED ) + - cor0.col2 * ( cor0.col2 ) FROM tab2 AS cor0
----
-1523
-736
-754
skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + - cor0.col2 * ( cor0.col2 ) FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT 48 * + col2 AS col1 FROM tab1 AS cor0
----
2592
2736
4608
query I rowsort
SELECT + - 81 + col2 * + col0 FROM tab0 cor0
----
-46
711
7217
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-216
SELECT - + CAST( NULL AS SIGNED ) * cor0.col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-216
SELECT - + CAST ( NULL AS INTEGER ) * cor0.col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 68 AS col0 FROM tab0 AS cor0
----
68
query I rowsort
SELECT - ( + 22 ) * col0 AS col0 FROM tab0 AS cor0
----
-1958
-528
-770
query I rowsort
SELECT ALL cor0.col0 + col2 * col1 AS col2 FROM tab0 cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 - col0 col2 FROM tab0 AS cor0
----
-142
-77
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-221
SELECT 46 DIV - col1 + + 86 - col2 col0 FROM tab0 AS cor0
----
4
53
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-221
SELECT 46 / - col1 + + 86 - col2 col0 FROM tab0 AS cor0
----
4
53
85
query I rowsort
SELECT col1 + 84 FROM tab0
----
170
175
181
query I rowsort
SELECT + cor0.col2 * - 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9d1ec646eddd8700b4176e4186309188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-224
SELECT - 48 * cor0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-224
SELECT - 48 * cor0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT ALL + col2 * col1 + 5 AS col0 FROM tab2 AS cor0
----
1539
651
842
query I rowsort
SELECT + - col2 * ( + cor0.col1 ) + - col0 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-1566
-4218
-8928
onlyif mysql # use DIV operator for integer division
query I rowsort label-229
SELECT + col2 + - CAST( col1 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-229
SELECT + col2 + - CAST ( col1 AS INTEGER ) / col0 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT + cor0.col1 * - 34 AS col2 FROM tab2 AS cor0
----
-1054
-2006
-578
query I rowsort
SELECT DISTINCT 98 FROM tab2, tab0 AS cor0
----
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT ALL - col0 DIV - ( 62 ) AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-232
SELECT ALL - col0 / - ( 62 ) AS col0 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + cor0.col1 col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - col0 * 34 FROM tab0 AS cor0
----
-1190
-3026
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-235
SELECT - col2 DIV 5 + - 59 * + col0 FROM tab2 AS cor0
----
-418
-4607
-4668
skipif mysql # not compatible
query I rowsort label-235
SELECT - col2 / 5 + - 59 * + col0 FROM tab2 AS cor0
----
-418
-4607
-4668
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col1 FROM tab0 AS cor0
----
2
query I rowsort
SELECT DISTINCT - col1 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT - + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + 51 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
-1785
-372198
-40392
query I rowsort
SELECT DISTINCT + col1 * + col2 + + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL + cor0.col2 + + col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-242
SELECT col0 + + tab1.col1 DIV - ( col0 ) FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-242
SELECT col0 + + tab1.col1 / - ( col0 ) FROM tab1
----
-5
64
80
query I rowsort
SELECT - col1 * + col1 + 25 AS col0 FROM tab2
----
-264
-3456
-936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-244
SELECT ALL col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-244
SELECT ALL col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT - col1 * col0 + - ( 43 ) FROM tab2 AS cor0
----
-1386
-260
-4645
onlyif mysql # use DIV operator for integer division
query I rowsort label-247
SELECT DISTINCT + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT + col2 / col0 AS col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT - tab2.col2 + + col1 AS col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT + col2 * col1 + - ( col1 ) FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + col0 + - col0 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( 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-252
SELECT ALL - 36 - 61 * col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-252
SELECT ALL - 36 - 61 * col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 60 - + 76 AS col2 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9
query I rowsort
SELECT ALL - col0 + + col2 AS col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT cor0.col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + cor0.col0 * col2 * + col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
233536
489
614480
query I rowsort
SELECT DISTINCT + - 95 AS col2 FROM tab1 AS cor0
----
-95
query I rowsort
SELECT + + col0 * - cor0.col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT col0 + - 13 + + cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1277
-223
-4537
query I rowsort
SELECT col1 + - ( + ( + col2 ) ) * col1 * col2 AS col2 FROM tab0 cor0
----
-611793
-93568
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-261
SELECT + col2 * - CAST( + col0 AS SIGNED ) * + cor0.col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
skipif mysql # not compatible
query I rowsort label-261
SELECT + col2 * - CAST ( + col0 AS INTEGER ) * + cor0.col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT + col2 * col2 * 75 + + col0 * - col1 FROM tab1
----
218622
243035
690160
onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT ALL + 81 DIV + tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-263
SELECT ALL + 81 / + tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - 60 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1
query I rowsort
SELECT ALL ( - ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col1 * 81 + + col1 FROM tab2 AS cor0
----
-1360
-2480
-4720
query I rowsort
SELECT ALL - 80 + col2 * - col1 FROM tab1 AS cor0
----
-1328
-1484
-650
query I rowsort
SELECT ALL + ( cor0.col1 ) + + cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - - col2 - + col1 * col1 * - col0 AS col2 FROM tab1 AS cor0
----
13616
2082
6457
query I rowsort
SELECT ALL + 56 * - col2 + col1 FROM tab2 AS cor0
----
-1397
-1481
-2111
query I rowsort
SELECT DISTINCT - - col2 - col1 * col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT - + cor0.col0 * + cor0.col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - - 18 * + col0 AS col0 FROM tab0 AS cor0
----
1602
432
630
query I rowsort
SELECT DISTINCT + 20 * ( col0 + - col0 * col0 ) AS col0 FROM tab1 AS cor0
----
-120
-126400
-80640
onlyif mysql # use DIV operator for integer division
query I rowsort label-275
SELECT ALL + - col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-275
SELECT ALL + - col0 / col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT - ( + tab2.col1 ) * cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3f5ea019223361c8c7a5502ecc1aeefb
query I rowsort
SELECT + col2 * col2 + col1 AS col1 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT 61 * col1 AS col0 FROM tab0
----
5246
5551
5917
query I rowsort
SELECT ALL 41 + tab0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 606b36b5fdcfb148a2cd2b981d043579
query I rowsort
SELECT DISTINCT col1 + + col2 + - col1 * + 44 FROM tab0
----
-3665
-3831
-4170
query I rowsort
SELECT + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - ( col1 ) * col2 + + col0 * - 8 FROM tab2 AS cor0
----
-1278
-2158
-893
query I rowsort
SELECT + + 94 AS col2 FROM tab2 AS cor0
----
94
94
94
query I rowsort
SELECT DISTINCT - 67 * + 34 * cor0.col2 + + ( + 2 ) FROM tab1 AS cor0
----
-123010
-129844
-218686
query I rowsort
SELECT ( - tab0.col1 ) + tab0.col2 + + tab0.col1 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT + 48 + + col2 FROM tab1 AS cor0
----
102
105
144
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-287
SELECT ALL - ( cor0.col1 ) * col2 + CAST( cor0.col1 + - col0 AS SIGNED ) FROM tab2 cor0
----
-1553
-708
-813
skipif mysql # not compatible
query I rowsort label-287
SELECT ALL - ( cor0.col1 ) * col2 + CAST ( cor0.col1 + - col0 AS INTEGER ) FROM tab2 cor0
----
-1553
-708
-813
query I rowsort
SELECT - col2 * ( + col0 ) + 92 FROM tab1 cor0
----
-3556
-70
-7588
query I rowsort
SELECT DISTINCT - 52 * - col0 AS col0 FROM tab0 AS cor0
----
1248
1820
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-290
SELECT - CAST( col2 AS SIGNED ) * + col0 * col0 FROM tab0
----
-1225
-19008
-649522
skipif mysql # not compatible
query I rowsort label-290
SELECT - CAST ( col2 AS INTEGER ) * + col0 * col0 FROM tab0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 54 ) col2 FROM tab1
----
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 * - col2 col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-293
SELECT col1 DIV 87 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-293
SELECT col1 / 87 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL ( col2 ) * col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL 30 + col0 FROM tab1 AS cor0
----
110
33
94
query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT col2 + cor0.col2 * - cor0.col2 * - col0 FROM tab1 AS cor0
----
207993
737376
8802
query I rowsort
SELECT ALL + ( + col2 ) * + col0 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT col2 * + col1 * - col0 AS col1 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-301
SELECT cor0.col0 DIV + col0 + + cor0.col2 * + col1 FROM tab0 AS cor0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-301
SELECT cor0.col0 / + col0 + + cor0.col2 * + col1 FROM tab0 AS cor0
----
2839
7463
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-302
SELECT - - col0 DIV 26 FROM tab0 cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-302
SELECT - - col0 / 26 FROM tab0 cor0
----
0
1
3
query I rowsort
SELECT DISTINCT + col2 + - ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 75 + + col1 col1 FROM tab2 AS cor0
----
130
133
160
onlyif mysql # use DIV operator for integer division
query I rowsort label-305
SELECT + col1 DIV - col2 AS col0 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-305
SELECT + col1 / - col2 AS col0 FROM tab0 cor0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-306
SELECT ALL + + col0 + 20 DIV cor0.col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + + col0 + 20 / cor0.col2 FROM tab1 AS cor0
----
3
64
80
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE ( NULL ) NOT IN ( cor0.col1 )
----
query I rowsort
SELECT - ( 50 ) AS col1 FROM tab2 AS cor0
----
-50
-50
-50
query I rowsort
SELECT ALL col0 + + 85 * cor0.col1 FROM tab0 AS cor0
----
7334
7824
8280
query I rowsort
SELECT - col0 + + 62 * + col0 AS col1 FROM tab0
----
1464
2135
5429
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-311
SELECT - - CAST( NULL AS SIGNED ) + 25 * - col0 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-311
SELECT - - CAST ( NULL AS INTEGER ) + 25 * - col0 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-312
SELECT DISTINCT - col2 DIV ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT - col2 / ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-313
SELECT - - cor0.col2 DIV - ( col2 + col0 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-313
SELECT - - cor0.col2 / - ( col2 + col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col2 * col2 + col0 * - col2 FROM tab2 AS cor0
----
-1352
-1558
540
query I rowsort
SELECT ALL + cor0.col2 + - ( + col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-317
SELECT DISTINCT + col1 DIV - 48 + ( - col0 ) col0 FROM tab2 cor0
----
-7
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT + col1 / - 48 + ( - col0 ) col0 FROM tab2 cor0
----
-7
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-318
SELECT ALL - + CAST( NULL AS SIGNED ) + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - + CAST ( NULL AS INTEGER ) + col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 7 * - 9 FROM tab1, tab2 AS cor0
----
-63
query I rowsort
SELECT ALL - 44 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9
onlyif mysql # use DIV operator for integer division
query I rowsort label-322
SELECT - col0 + - col2 DIV + 59 FROM tab1 AS cor0
----
-3
-64
-81
skipif mysql # not compatible
query I rowsort label-322
SELECT - col0 + - col2 / + 59 FROM tab1 AS cor0
----
-3
-64
-81
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1, tab2 cor1
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT DISTINCT - col0 * - tab2.col0 DIV - col0 AS col0 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT - col0 * - tab2.col0 / - col0 AS col0 FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-325
SELECT 22 DIV - tab1.col1 - col2 AS col0 FROM tab1
----
-54
-59
-97
skipif mysql # not compatible
query I rowsort label-325
SELECT 22 / - tab1.col1 - col2 AS col0 FROM tab1
----
-54
-59
-97
query I rowsort
SELECT ALL - ( col2 + col2 ) AS col1 FROM tab2
----
-52
-54
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-327
SELECT ( - col1 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-327
SELECT ( - col1 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor1.col2 * + cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
1444
676
729
query I rowsort
SELECT + 19 * + col1 + 16 AS col0 FROM tab0 AS cor0
----
1650
1745
1859
onlyif mysql # use DIV operator for integer division
query I rowsort label-330
SELECT - 85 + - col2 DIV 77 + col1 FROM tab2 AS cor0
----
-26
-54
-68
skipif mysql # not compatible
query I rowsort label-330
SELECT - 85 + - col2 / 77 + col1 FROM tab2 AS cor0
----
-26
-54
-68
query I rowsort
SELECT + + cor0.col2 * + cor0.col1 AS col2 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-332
SELECT tab0.col1 DIV cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d0517c702c36b37ebd1eaa3721752791
skipif mysql # not compatible
query I rowsort label-332
SELECT tab0.col1 / cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d0517c702c36b37ebd1eaa3721752791
onlyif mysql # use DIV operator for integer division
query I rowsort label-333
SELECT 24 + + col0 DIV + col0 AS col2 FROM tab1
----
25
25
25
skipif mysql # not compatible
query I rowsort label-333
SELECT 24 + + col0 / + col0 AS col2 FROM tab1
----
25
25
25
query I rowsort
SELECT col1 * col1 + + col1 * + 83 AS col1 FROM tab0
----
14534
15834
17460
query I rowsort
SELECT DISTINCT + col1 * 79 + 18 AS col2 FROM tab0 cor0
----
6812
7207
7681
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT 48 + cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5473b80f743321556c1e1a8967e5f508
query I rowsort
SELECT ALL - col1 + 93 FROM tab0 AS cor0
----
-4
2
7
query I rowsort
SELECT ALL - col0 + - ( cor0.col1 + col2 ) FROM tab1 AS cor0
----
-131
-189
-83
query I rowsort
SELECT DISTINCT + col2 + 22 * cor0.col2 - - col0 AS col1 FROM tab0 cor0
----
1975
58
783
query I rowsort
SELECT ALL col1 + 29 FROM tab0 AS cor0
----
115
120
126
query I rowsort
SELECT ALL col0 + ( + col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 91 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
91
query I rowsort
SELECT ALL + cor0.col2 * 52 + - col0 FROM tab2 AS cor0
----
1274
1397
1897
query I rowsort
SELECT - col2 * - 10 FROM tab2
----
260
270
380
onlyif mysql # use DIV operator for integer division
query I rowsort label-346
SELECT - col1 + cor0.col1 DIV col0 + 34 FROM tab1 AS cor0
----
16
21
24
skipif mysql # not compatible
query I rowsort label-346
SELECT - col1 + cor0.col1 / col0 + 34 FROM tab1 AS cor0
----
16
21
24
query I rowsort
SELECT - + col0 + col0 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT col0 + tab0.col0 * tab0.col1 + - 73 AS col0 FROM tab0
----
2015
3357
8115
query I rowsort
SELECT ALL + ( + col1 ) + col0 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT + 87 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
136
6171
6328
query I rowsort
SELECT - 12 - cor0.col1 * - col1 FROM tab0 AS cor0
----
7384
8269
9397
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-352
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 64 + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 64 + col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-353
SELECT + + cor0.col1 * col0 + + col0 * col2 DIV col2 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
skipif mysql # not compatible
query I rowsort label-353
SELECT + + cor0.col1 * col0 + + col0 * col2 / col2 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - col0 * col0 + 3 + + col2 AS col0 FROM tab2 AS cor0
----
-19
-6055
-6200
query I rowsort
SELECT DISTINCT - 80 - + col1 * + col0 FROM tab2 AS cor0
----
-1423
-297
-4682
query I rowsort
SELECT - col2 * - col2 * col2 + - 12 * col1 AS col0 FROM tab0 AS cor0
----
-1163
34905
550276
query I rowsort
SELECT DISTINCT - - 98 + - col0 FROM tab2 AS cor0
----
19
20
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-358
SELECT DISTINCT - col1 + - col1 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT - col1 + - col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col2 + - col2 + + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-360
SELECT DISTINCT - col1 * col0 + CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT - col1 * col0 + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 * - col0 + + col2 * col0 AS col0 FROM tab0
----
14596
1584
70
query I rowsort
SELECT - col1 * ( col2 ) AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 * col0 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT - 51 + col0 + col1 * col1 FROM tab0 AS cor0
----
7369
8319
9393
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 - col0 col0 FROM tab2 AS cor0
----
10
11
82
query I rowsort
SELECT DISTINCT + - 60 AS col1 FROM tab0 AS cor0
----
-60
query I rowsort
SELECT ALL + + col2 * - col0 + col1 + - ( ( - cor0.col2 ) ) AS col0 FROM tab1 cor0
----
-3581
-7571
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col0 FROM tab2 AS cor0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT - ( 14 ) AS col2 FROM tab0 AS cor0
----
-14
query I rowsort
SELECT col1 + - cor0.col0 * col1 * 43 AS col0 FROM tab0 cor0
----
-145888
-348166
-88666
query I rowsort
SELECT DISTINCT 50 + - col1 AS col0 FROM tab1 AS cor0
----
24
37
40
query I rowsort
SELECT ALL + col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + + cor0.col2 + col1 + - 96 FROM tab1 AS cor0
----
-16
-29
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-374
SELECT cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-374
SELECT cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col2 * - col0 + cor0.col0 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - - cor0.col0 - col0 AS col1 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col1 + - col0 * ( cor0.col0 ) col0 FROM tab1 AS cor0
----
-3456
-5360
69
query I rowsort
SELECT - + 43 * - col2 AS col0 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT ALL col1 * ( + col0 + col0 ) FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT DISTINCT - col0 * col0 * + col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT col2 + col2 * col1 AS col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT + 98 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT ALL col2 * ( cor0.col0 ) FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL - cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 + cor0.col2 col2 FROM tab1 AS cor0
----
137
95
98
query I rowsort
SELECT col2 + col2 * ( col1 ) * - 18 AS col0 FROM tab1
----
-10203
-22368
-25218
query I rowsort
SELECT - - 80 * col2 AS col0 FROM tab2 AS cor0
----
2080
2160
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-388
SELECT - CAST( cor0.col2 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-388
SELECT - CAST ( cor0.col2 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + 36 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT + + col2 DIV ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-390
SELECT + + col2 / ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 * + col0 ) col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + 15 AS col0 FROM tab0
----
15
15
15
query I rowsort
SELECT + + 19 AS col0 FROM tab2 AS cor0
----
19
19
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-394
SELECT ALL - + col1 * col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-394
SELECT ALL - + col1 * col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-395
SELECT DISTINCT CAST( col0 AS SIGNED ) * col0 * - CAST( col1 AS SIGNED ) FROM tab0
----
-118825
-49536
-720811
skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col0 * - CAST ( col1 AS INTEGER ) FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL - col2 * - 2 FROM tab2
----
52
54
76
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 17 AS REAL ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e
query I rowsort
SELECT ALL + col2 * + col1 + + col2 + col1 * + tab2.col1 AS col1 FROM tab2
----
1825
5041
973
query I rowsort
SELECT + cor0.col2 + + ( + col0 ) FROM tab2 cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + ( col2 * - col1 ) col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT + tab2.col2 - 8 FROM tab2, tab0 AS cor0
----
9 values hashing to 86aaa6d6503a65cb91d8c1c460bac7ba
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-402
SELECT ALL - cor0.col2 + CAST( NULL AS SIGNED ) col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-402
SELECT ALL - cor0.col2 + CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT ( + 42 ) FROM tab0, tab1 AS cor0
----
42
query I rowsort
SELECT - + col2 + ( - col1 ) FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + col0 + ( + col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL - col1 * + col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT cor0.col2 * + 65 + cor0.col1 * - col2 FROM tab1 AS cor0
----
2106
3135
4992
query I rowsort
SELECT ALL - - cor0.col0 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ( 7 ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT - + col1 * - col1 + 64 FROM tab1 AS cor0
----
164
233
740
query I rowsort
SELECT 75 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 3384246e49f3e69ba32c165b88111fee
query I rowsort
SELECT ALL + + cor0.col2 * 46 AS col1 FROM tab1 AS cor0
----
2484
2622
4416
query I rowsort
SELECT ALL cor0.col0 + - ( - 96 ) * - cor0.col1 FROM tab1 AS cor0
----
-1168
-2493
-896
query I rowsort
SELECT col0 * 14 FROM tab1 AS cor0
----
1120
42
896
query I rowsort
SELECT DISTINCT + + col0 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT col1 * ( col0 ) + col0 FROM tab1 cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-417
SELECT ALL - + cor0.col1 DIV + col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-417
SELECT ALL - + cor0.col1 / + col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT col2 * col2 + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL - col0 + 20 AS col0 FROM tab1 AS cor0
----
-44
-60
17
query I rowsort
SELECT - + col2 * 45 FROM tab2 AS cor0
----
-1170
-1215
-1710
onlyif mysql # use DIV operator for integer division
query I rowsort label-421
SELECT DISTINCT - col1 DIV col0 + 43 AS col0 FROM tab1 AS cor0
----
35
43
skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT - col1 / col0 + 43 AS col0 FROM tab1 AS cor0
----
35
43
query I rowsort
SELECT DISTINCT col0 * 91 + + cor0.col0 * + col1 FROM tab2 AS cor0
----
11700
8532
854
query I rowsort
SELECT - col0 * col0 + + 17 FROM tab2 AS cor0
----
-32
-6067
-6224
query I rowsort
SELECT - col0 * + col2 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT + 18 * - 65 + cor0.col2 FROM tab1 cor0
----
-1074
-1113
-1116
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-426
SELECT - - col1 * - 96 / cor0.col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-426
SELECT - - col1 * - 96 / cor0.col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to fc7c00509fb9d4b8a5290fa6926cc518
query I rowsort
SELECT col2 * col1 + + col2 + col2 FROM tab2 AS cor0
----
1586
722
891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-429
SELECT - CAST( NULL AS SIGNED ) * 98 + col1 * col2 + - col1 * col0 * + ( ( - cor0.col1 ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-429
SELECT - CAST ( NULL AS INTEGER ) * 98 + col1 * col2 + - col1 * col0 * + ( ( - cor0.col1 ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col1 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - + cor0.col0 * - col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT ALL + + 0 + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + ( - col2 ) + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT - + 87 + + col1 * - col1 FROM tab1 AS cor0
----
-187
-256
-763
query I rowsort
SELECT DISTINCT + col2 * 97 AS col0 FROM tab0 AS cor0
----
3201
7954
97
query I rowsort
SELECT ALL + + 51 * col1 AS col0 FROM tab0 AS cor0
----
4386
4641
4947
query I rowsort
SELECT cor0.col1 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - tab2.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT col0 * cor0.col2 + 27 * - col2 FROM tab0 AS cor0
----
-99
5084
8
query I rowsort
SELECT + ( - col0 ) * + 31 + + col0 + + col0 AS col1 FROM tab0 AS cor0
----
-1015
-2581
-696
query I rowsort
SELECT - col0 + col0 * 35 + 22 AS col1 FROM tab1 AS cor0
----
124
2198
2742
query I rowsort
SELECT - col0 * + col2 + - 47 + col2 AS col1 FROM tab2 AS cor0
----
-2049
-209
-3011
onlyif mysql # use DIV operator for integer division
query I rowsort label-444
SELECT + col0 DIV col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-444
SELECT + col0 / col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + ( - col1 ) * - 58 FROM tab2 AS cor0
----
1798
3422
986
onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT DISTINCT col1 DIV tab1.col2 + col1 DIV - col0 + + col0 FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT col1 / tab1.col2 + col1 / - col0 + + col0 FROM tab1
----
-5
64
80
query I rowsort
SELECT DISTINCT + - col0 * - col0 + - 0 * - cor0.col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT col1 * col1 AS col1 FROM tab2 cor0
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-449
SELECT 55 + - col0 * CAST( + 97 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-236
-6153
-7705
skipif mysql # not compatible
query I rowsort label-449
SELECT 55 + - col0 * CAST ( + 97 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-236
-6153
-7705
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-450
SELECT DISTINCT - CAST( + ( - col2 ) AS SIGNED ) - - ( + col0 + + col2 ) * 44 * + 32 FROM tab2
----
146458
164774
47899
skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT - CAST ( + ( - col2 ) AS INTEGER ) - - ( + col0 + + col2 ) * 44 * + 32 FROM tab2
----
146458
164774
47899
query I rowsort
SELECT DISTINCT - col2 + col1 * 72 + 58 FROM tab2
----
1244
2263
4280
query I rowsort
SELECT DISTINCT col2 + col1 + col1 * + col2 FROM tab1
----
1357
1484
637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 67 + - col2 col0 FROM tab0 AS cor0
----
-15
34
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-454
SELECT - cor0.col1 DIV col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-454
SELECT - cor0.col1 / col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT ALL + col0 * col1 * col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + + 32 * + cor0.col1 + + ( + 6 ) + col0 FROM tab2 AS cor0
----
1005
1972
629
query I rowsort
SELECT + - ( ( + col2 ) ) * col2 - - cor0.col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT - + col0 - 4 AS col2 FROM tab2 AS cor0
----
-11
-82
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-459
SELECT - cor1.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-459
SELECT - cor1.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab0, tab2 AS cor0
----
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-461
SELECT ALL + tab1.col2 * 64 + - col0 DIV + col2 FROM tab1
----
3456
3647
6144
skipif mysql # not compatible
query I rowsort label-461
SELECT ALL + tab1.col2 * 64 + - col0 / + col2 FROM tab1
----
3456
3647
6144
onlyif mysql # use DIV operator for integer division
query I rowsort label-462
SELECT - - col0 + + cor0.col0 DIV col0 - - col2 AS col1 FROM tab2 AS cor0
----
105
118
35
skipif mysql # not compatible
query I rowsort label-462
SELECT - - col0 + + cor0.col0 / col0 - - col2 AS col1 FROM tab2 AS cor0
----
105
118
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-463
SELECT + 53 + col2 DIV - cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
106
109
148
skipif mysql # not compatible
query I rowsort label-463
SELECT + 53 + col2 / - cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
106
109
148
query I rowsort
SELECT - col0 * 49 AS col1 FROM tab2
----
-343
-3822
-3871
query I rowsort
SELECT - ( + col1 ) AS col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - + 44 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79
onlyif mysql # use DIV operator for integer division
query I rowsort label-467
SELECT ALL + col0 + col2 DIV - col1 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-467
SELECT ALL + col0 + col2 / - col1 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT ALL ( cor0.col1 ) + + col1 * + 5 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT DISTINCT + ( 84 ) AS col1 FROM tab2 AS cor0
----
84
query I rowsort
SELECT - + 74 * - cor0.col0 FROM tab2 AS cor0
----
518
5772
5846
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 + col1 * col0 col0 FROM tab1 AS cor0
----
-1326
-208
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-472
SELECT ALL - col2 + + col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-472
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-473
SELECT + col2 * + 57 + - cor0.col0 DIV col2 + col1 DIV col2 FROM tab1 AS cor0
----
3078
3248
5472
skipif mysql # not compatible
query I rowsort label-473
SELECT + col2 * + 57 + - cor0.col0 / col2 + col1 / col2 FROM tab1 AS cor0
----
3078
3248
5472
query I rowsort
SELECT ALL cor1.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-475
SELECT - CAST( NULL AS SIGNED ) - - col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-475
SELECT - CAST ( NULL AS INTEGER ) - - col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * 39 + col1 AS col1 FROM tab0 AS cor0
----
136
1373
3289
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-477
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-30
query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 + 8 FROM tab0 AS cor0
----
43
7306
800
query I rowsort
SELECT - col0 * 73 FROM tab2 AS cor0
----
-511
-5694
-5767
query I rowsort
SELECT + 76 * cor1.col1 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to d7a260f1a5f70ef2d27e98898b83efa3
query I rowsort
SELECT ALL - col0 + - 0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL + col0 + - col0 + + col1 * - 87 FROM tab1
----
-1131
-2262
-870
onlyif mysql # use DIV operator for integer division
query I rowsort label-484
SELECT - col2 * - cor0.col0 * col0 + col2 DIV col0 FROM tab1 AS cor0
----
233472
504
614401
skipif mysql # not compatible
query I rowsort label-484
SELECT - col2 * - cor0.col0 * col0 + col2 / col0 FROM tab1 AS cor0
----
233472
504
614401
query I rowsort
SELECT ALL + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + ( + col2 ) + + col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + ( - 39 ) - col2 AS col1 FROM tab1 AS cor0
----
-135
-93
-96
query I rowsort
SELECT DISTINCT - cor0.col1 - col2 * - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ( 31 ) + + col2 AS col0 FROM tab1 cor0
----
127
85
88
query I rowsort
SELECT DISTINCT - col2 * - col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - + col0 * - cor0.col2 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + ( col1 ) + cor0.col0 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
38
4170
6493
query I rowsort
SELECT DISTINCT + col0 * - col1 - cor0.col2 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-494
SELECT + 28 + - col0 * + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
37
4124
6428
skipif mysql # not compatible
query I rowsort label-494
SELECT + 28 + - col0 * + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
37
4124
6428
query I rowsort
SELECT DISTINCT - ( - col2 ) + cor0.col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab1 AS cor0
----
44
query I rowsort
SELECT ALL + col1 - col0 * - col0 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT ALL + 32 * col2 AS col0 FROM tab2 AS cor0
----
1216
832
864
query I rowsort
SELECT DISTINCT - 82 + + col2 * - col2 FROM tab1 AS cor0
----
-2998
-3331
-9298
query I rowsort
SELECT col1 * col2 + + col0 * + col0 FROM tab0 AS cor0
----
1322
15383
3414
query I rowsort
SELECT ALL + tab1.col1 + 61 * col1 * 11 FROM tab1
----
17472
6720
8736
query I rowsort
SELECT ALL 88 * + col1 + col2 FROM tab2
----
1534
2755
5218
query I rowsort
SELECT DISTINCT + - 1 + - col1 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT - 31 + + col1 FROM tab2 AS cor0
----
-14
0
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * col1 col2 FROM tab2 AS cor0
----
-1054
-1922
-3658
query I rowsort
SELECT ( - col0 ) * - 27 + cor0.col1 AS col0 FROM tab0 AS cor0
----
1042
2494
734
query I rowsort
SELECT col0 + 14 FROM tab2 cor0
----
21
92
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 83 col0 FROM tab1 AS cor0
----
-1079
-2158
-830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-509
SELECT - col2 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-509
SELECT - col2 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - 66 * col0 FROM tab2
----
-462
-5148
-5214
query I rowsort
SELECT DISTINCT + ( tab0.col1 ) FROM tab0, tab2, tab1 AS cor0
----
86
91
97
query I rowsort
SELECT + col0 + - tab2.col2 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT + col2 - - cor0.col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-514
SELECT 6 + col1 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
7
7
7
skipif mysql # not compatible
query I rowsort label-514
SELECT 6 + col1 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT + col1 * + cor0.col1 * cor0.col1 - ( - 4 ) * col1 FROM tab1 AS cor0
----
1040
17680
2249
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 39 + + col1 col0 FROM tab2 AS cor0
----
56
70
98
query I rowsort
SELECT - - col1 * 25 + cor0.col0 FROM tab1 cor0
----
314
405
653
query I rowsort
SELECT ALL + + ( col0 ) * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col0 * col1 + col0 AS col2 FROM tab2 cor0
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 + 7 col1 FROM tab0 AS cor0
----
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-521
SELECT col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-521
SELECT col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - 96 + - col2 FROM tab2 AS cor0
----
-116
-44
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-523
SELECT + CAST( col2 AS SIGNED ) + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410
skipif mysql # not compatible
query I rowsort label-523
SELECT + CAST ( col2 AS INTEGER ) + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT col2 * 51 AS col0 FROM tab1
----
2754
2907
4896
query I rowsort
SELECT ALL - col2 * col1 + - 0 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col1 * ( - col0 ) * col1 + tab2.col2 FROM tab2
----
-22793
-271492
-6700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-527
SELECT + CAST( NULL AS SIGNED ) * 98 * + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-527
SELECT + CAST ( NULL AS INTEGER ) * 98 * + col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-528
SELECT col0 DIV + col2 + col1 + + col0 AS col0 FROM tab0 AS cor0
----
110
167
181
skipif mysql # not compatible
query I rowsort label-528
SELECT col0 / + col2 + col1 + + col0 AS col0 FROM tab0 AS cor0
----
110
167
181
onlyif mysql # use DIV operator for integer division
query I rowsort label-529
SELECT DISTINCT ( - col1 ) + + tab1.col2 + col0 DIV col0 AS col1 FROM tab1
----
29
48
84
skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT ( - col1 ) + + tab1.col2 + col0 / col0 AS col1 FROM tab1
----
29
48
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-530
SELECT CAST( NULL AS SIGNED ) + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-530
SELECT CAST ( NULL AS INTEGER ) + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-531
SELECT DISTINCT - - 73 + 6 DIV - cor0.col1 AS col2 FROM tab0 AS cor0
----
73
skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT - - 73 + 6 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + 85 col2 FROM tab0 AS cor0
----
-2805
-6970
-85
query I rowsort
SELECT - col0 * 38 - + col1 FROM tab2 AS cor0
----
-297
-3019
-3023
query I rowsort
SELECT - tab1.col2 * - ( 94 ) AS col1 FROM tab1
----
5076
5358
9024
query I rowsort
SELECT + + col0 * - col2 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT tab1.col2 + col1 * col0 * + col1 AS col1 FROM tab1
----
13616
2082
6457
query I rowsort
SELECT col0 - 69 * tab2.col1 AS col0 FROM tab2
----
-1094
-2132
-3993
query I rowsort
SELECT col2 * + col2 - 49 * + tab1.col1 FROM tab1
----
1642
2759
8579
query I rowsort
SELECT - ( - 23 ) * col1 FROM tab0 AS cor0
----
1978
2093
2231
onlyif mysql # use DIV operator for integer division
query I rowsort label-540
SELECT + ( - col0 ) + + col0 DIV 46 AS col0 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-540
SELECT + ( - col0 ) + + col0 / 46 AS col0 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT + 46 * + cor0.col2 AS col2 FROM tab0 cor0
----
1518
3772
46
query I rowsort
SELECT DISTINCT + - col0 * 36 + - col1 FROM tab1 AS cor0
----
-134
-2314
-2893
query I rowsort
SELECT DISTINCT - col2 + col1 + col0 AS col1 FROM tab2 cor0
----
11
111
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-544
SELECT DISTINCT + col1 * + 38 + + col0 DIV ( ( - col0 ) ) + col2 FROM tab1 cor0
----
1041
436
589
skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT + col1 * + 38 + + col0 / ( ( - col0 ) ) + col2 FROM tab1 cor0
----
1041
436
589
query I rowsort
SELECT ALL - 20 - col1 * col2 FROM tab2 AS cor0
----
-1554
-666
-857
query I rowsort
SELECT ALL - 21 * ( col1 ) AS col2 FROM tab0 AS cor0
----
-1806
-1911
-2037
query I rowsort
SELECT ALL - cor0.col0 * 87 + col1 AS col1 FROM tab1 AS cor0
----
-235
-5558
-6947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 63 + col0 col2 FROM tab1 cor0
----
-186
-3968
-4960
query I rowsort
SELECT - col2 + - col0 * col1 * - cor0.col1 FROM tab1 cor0
----
13424
1974
6343
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-550
SELECT - CAST( col1 AS SIGNED ) + col2 AS col1 FROM tab1 cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-550
SELECT - CAST ( col1 AS INTEGER ) + col2 AS col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + col2 * col0 + cor0.col0 AS col2 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT col0 * - col2 - + 9 FROM tab2
----
-198
-2037
-3011
query I rowsort
SELECT + cor0.col1 * cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775
query I rowsort
SELECT + 40 * + col1 AS col1 FROM tab1
----
1040
400
520
query I rowsort
SELECT + + col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + - col1 * col2 - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT col0 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + + col2 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT + col1 * + 4 AS col1 FROM tab1 AS cor0
----
104
40
52
query I rowsort
SELECT + col1 * 22 FROM tab0 cor0
----
1892
2002
2134
onlyif mysql # use DIV operator for integer division
query I rowsort label-561
SELECT ALL - cor0.col1 DIV + 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif mysql # not compatible
query I rowsort label-561
SELECT ALL - cor0.col1 / + 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 * + col1 + - col0 col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT + + cor0.col0 - + 35 AS col2 FROM tab2 AS cor0
----
-28
43
44
query I rowsort
SELECT + col2 * - col0 + col2 * cor0.col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-565
SELECT - col2 * + CAST( NULL AS SIGNED ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-565
SELECT - col2 * + CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col1 * + CAST ( - col1 AS REAL ) + col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT cor0.col2 + ( 29 * col1 + 4 ) FROM tab0 AS cor0
----
2531
2725
2818
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + + ( col0 ) * + col0 col1 FROM tab2 cor0
----
42
6006
6162
skipif mysql # not compatible
query I rowsort
SELECT col1 * + CAST ( + 98 AS REAL ) AS col0 FROM tab0 AS cor0
----
8428
8918
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-570
SELECT ALL cor0.col1 + - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-570
SELECT ALL cor0.col1 + - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col1 + 50 FROM tab1 cor0
----
60
63
76
query I rowsort
SELECT - cor0.col2 * col2 + - cor0.col2 * + col1 - col2 * + col0 FROM tab1 AS cor0
----
-18144
-4482
-7467
query I rowsort
SELECT DISTINCT col1 * + ( - 95 ) AS col0 FROM tab0 AS cor0
----
-8170
-8645
-9215
query I rowsort
SELECT - col2 - col1 * cor0.col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT col0 * - ( - col1 ) FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * col2 col0 FROM tab0 AS cor0
----
3003
7462
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 * tab2.col0 + + tab2.col1 * col0 col1 FROM tab2
----
24174
276120
6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT ALL - col0 + + col1 DIV - 57 FROM tab2 AS cor0
----
-7
-79
-79
skipif mysql # not compatible
query I rowsort label-578
SELECT ALL - col0 + + col1 / - 57 FROM tab2 AS cor0
----
-7
-79
-79
query I rowsort
SELECT ALL - col1 + cor0.col0 + ( + col2 * - cor0.col0 ) AS col2 FROM tab1 cor0
----
-185
-3594
-7613
query I rowsort
SELECT 56 - - ( + col1 ) FROM tab1
----
66
69
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-581
SELECT ALL + col0 DIV col0 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-581
SELECT ALL + col0 / col0 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT + 33 * cor0.col2 AS col2 FROM tab1, tab2, tab0 AS cor0
----
1089
2706
33
query I rowsort
SELECT + col2 - + tab1.col0 * + col2 * 52 FROM tab1
----
-189639
-399264
-8370
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-584
SELECT + 9 * - col1 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
13806
5814
7533
skipif mysql # not compatible
query I rowsort label-584
SELECT + 9 * - col1 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
13806
5814
7533
onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT DISTINCT + col1 DIV tab1.col2 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT + col1 / tab1.col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT + 43 AS col2 FROM tab0
----
43
43
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-587
SELECT + CAST( - col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-587
SELECT + CAST ( - col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT cor0.col0 * + 72 FROM tab1 AS cor0
----
216
4608
5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT - ( col0 ) DIV + cor0.col2 + + 6 col0 FROM tab0 cor0
----
-29
5
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-589
SELECT - ( col0 ) / + cor0.col2 + + 6 col0 FROM tab0 cor0
----
-29
5
6
query I rowsort
SELECT - col1 + 52 * + col0 AS col2 FROM tab1 AS cor0
----
130
3318
4147
query I rowsort
SELECT DISTINCT - ( - col1 ) * - col1 * ( col0 + - col1 ) FROM tab1 cor0
----
-11323
-5400
15548
query I rowsort
SELECT ALL - 61 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-58
19
3
query I rowsort
SELECT DISTINCT col0 + col2 + col0 * col2 AS col1 FROM tab2
----
2132
223
3119
onlyif mysql # use DIV operator for integer division
query I rowsort label-594
SELECT DISTINCT - col2 + 89 DIV - 97 + - col2 AS col2 FROM tab0
----
-164
-2
-66
skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT - col2 + 89 / - 97 + - col2 AS col2 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT + col2 + ( col1 ) * - cor0.col1 FROM tab2 cor0
----
-251
-3455
-934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-596
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 11 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 11 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-597
SELECT + col2 * col1 * col0 - + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-597
SELECT + col2 * col1 * col0 - + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab1.col1 * col0 + + 81 AS col2 FROM tab1
----
1121
159
721
query I rowsort
SELECT ALL + tab2.col0 * + col1 + - 18 * col0 FROM tab2
----
-79
3198
91
query I rowsort
SELECT ALL - col0 + ( col0 ) FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-601
SELECT ALL + - col2 DIV 44 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-601
SELECT ALL + - col2 / 44 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + col2 * + ( + col0 ) + cor0.col1 + + 3 * - col2 FROM tab1 AS cor0
----
26
3487
7405
onlyif mysql # use DIV operator for integer division
query I rowsort label-603
SELECT DISTINCT + - col0 + - col1 + + col2 DIV - col2 AS col1 FROM tab0 cor0
----
-111
-133
-181
skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT + - col0 + - col1 + + col2 / - col2 AS col1 FROM tab0 cor0
----
-111
-133
-181
query I rowsort
SELECT 55 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT 23 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-606
SELECT ALL col2 + cor0.col1 DIV 93 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-606
SELECT ALL col2 + cor0.col1 / 93 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT tab0.col0 * + ( - col1 ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col1 * 54 FROM tab2
----
1674
3186
918
query I rowsort
SELECT ALL + col2 * col1 - + col2 AS col2 FROM tab2
----
1508
608
810
query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
49
query I rowsort
SELECT DISTINCT col2 * ( col2 ) + col2 FROM tab1
----
2970
3306
9312
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col0 AS REAL ) + col2 * tab2.col0 AS col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT + col1 + + 2 FROM tab0 cor0
----
88
93
99
query I rowsort
SELECT - 1 * - col2 FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-615
SELECT - - CAST( - 50 AS SIGNED ) + - cor0.col1 FROM tab2 AS cor0
----
-109
-67
-81
skipif mysql # not compatible
query I rowsort label-615
SELECT - - CAST ( - 50 AS INTEGER ) + - cor0.col1 FROM tab2 AS cor0
----
-109
-67
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-616
SELECT - - col1 + + 14 * col2 + + cor0.col2 DIV - col0 FROM tab2 AS cor0
----
406
423
549
skipif mysql # not compatible
query I rowsort label-616
SELECT - - col1 + + 14 * col2 + + cor0.col2 / - col0 FROM tab2 AS cor0
----
406
423
549
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col2 FROM tab1
----
61
61
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - col2 * - col1 col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - + col2 - + col1 * col0 * col1 AS col1 FROM tab2 cor0
----
-22869
-271544
-6754
query I rowsort
SELECT + col1 + - col0 * cor0.col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT cor0.col0 - - col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col0 - + ( + col0 * col2 ) AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + col1 + ( - 54 ) AS col0 FROM tab2 AS cor0
----
-23
-37
5
query I rowsort
SELECT + ( col0 ) * col0 + 26 * + col0 AS col0 FROM tab1
----
5760
8480
87
query I rowsort
SELECT + + col0 * cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT 28 * col1 + + col1 AS col2 FROM tab1 AS cor0
----
290
377
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * 6 col0 FROM tab1 AS cor0
----
15
320
400
query I rowsort
SELECT - 49 * tab0.col0 FROM tab0
----
-1176
-1715
-4361
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col0 * ( - 19 ) AS col2 FROM tab2 AS cor0
----
-3591
-38532
-57038
query I rowsort
SELECT DISTINCT - 66 * col0 + col2 + + col1 AS col1 FROM tab2
----
-404
-5063
-5159
query I rowsort
SELECT tab0.col0 - col1 * - 49 FROM tab0
----
4238
4548
4788
onlyif mysql # use DIV operator for integer division
query I rowsort label-632
SELECT + col2 * + col2 + - 77 DIV col1 - col2 * - col1 AS col2 FROM tab1
----
10459
3812
4318
skipif mysql # not compatible
query I rowsort label-632
SELECT + col2 * + col2 + - 77 / col1 - col2 * - col1 AS col2 FROM tab1
----
10459
3812
4318
onlyif mysql # use DIV operator for integer division
query I rowsort label-633
SELECT + col0 DIV col0 - 6 FROM tab0
----
-5
-5
-5
skipif mysql # not compatible
query I rowsort label-633
SELECT + col0 / col0 - 6 FROM tab0
----
-5
-5
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-634
SELECT - - 80 * + col1 + + col2 DIV - 55 col2 FROM tab1 AS cor0
----
1039
2080
799
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-634
SELECT - - 80 * + col1 + + col2 / - 55 col2 FROM tab1 AS cor0
----
1039
2080
799
query I rowsort
SELECT DISTINCT - - ( + col2 ) * cor0.col0 + + 14 FROM tab2 AS cor0
----
203
2042
3016
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-636
SELECT ALL - CAST( NULL AS DECIMAL ) / col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-636
SELECT ALL - CAST ( NULL AS REAL ) / col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( col1 ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 99 ) + col1 col0 FROM tab2 AS cor0
----
-40
-68
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-639
SELECT - CAST( 63 AS SIGNED ) FROM tab0 AS cor0
----
-63
-63
-63
skipif mysql # not compatible
query I rowsort label-639
SELECT - CAST ( 63 AS INTEGER ) FROM tab0 AS cor0
----
-63
-63
-63
query I rowsort
SELECT + 44 FROM tab0, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT ( col1 ) * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - - ( col1 ) + + cor0.col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT ( + col2 ) + col2 * cor0.col1 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-644
SELECT + col0 * col2 DIV - col0 col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-644
SELECT + col0 * col2 / - col0 col0 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-645
SELECT ( col0 ) DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-645
SELECT ( col0 ) / col2 AS col1 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT - 38 DIV 10 + col2 AS col0 FROM tab2
----
23
24
35
skipif mysql # not compatible
query I rowsort label-646
SELECT - 38 / 10 + col2 AS col0 FROM tab2
----
23
24
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-647
SELECT DISTINCT CAST( + col1 * tab1.col1 AS SIGNED ) AS col1 FROM tab1
----
100
169
676
skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT CAST ( + col1 * tab1.col1 AS INTEGER ) AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL - ( 19 ) AS col1 FROM tab0
----
-19
-19
-19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * + 5 col0 FROM tab2 AS cor0
----
110
onlyif mysql # use DIV operator for integer division
query I rowsort label-650
SELECT DISTINCT - - ( - col1 ) DIV col2 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT - - ( - col1 ) / col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + + cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + col2 * + 41 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT ALL + 70 * + col2 + col0 * col0 * col0 AS col0 FROM tab2 AS cor0
----
2233
476372
495699
query I rowsort
SELECT col1 + + tab2.col1 * col2 AS col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT col1 * - col1 + col1 * ( 79 ) AS col2 FROM tab0 AS cor0
----
-1092
-1746
-602
onlyif mysql # use DIV operator for integer division
query I rowsort label-656
SELECT DISTINCT - col2 DIV col2 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT - col2 / col2 FROM tab0 cor0
----
-1
query I rowsort
SELECT col2 + col0 * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-658
SELECT ALL - col1 - col0 * - CAST( 71 + + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
11563
11833
515
skipif mysql # not compatible
query I rowsort label-658
SELECT ALL - col1 - col0 * - CAST ( 71 + + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
11563
11833
515
onlyif mysql # use DIV operator for integer division
query I rowsort label-659
SELECT - 27 DIV col2 + col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-659
SELECT - 27 / col2 + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT + tab2.col1 * 61 FROM tab2, tab0 AS cor0
----
1037
1891
3599
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * col2 col0 FROM tab0
----
1
35937
551368
query I rowsort
SELECT DISTINCT + 80 * cor0.col1 * + col2 + + cor0.col2 + col2 FROM tab2 AS cor0
----
122772
51756
67014
query I rowsort
SELECT ALL + 21 - col0 AS col0 FROM tab2 AS cor0
----
-57
-58
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + cor0.col0 col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-666
SELECT + 72 + + col0 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
72
72
72
skipif mysql # not compatible
query I rowsort label-666
SELECT + 72 + + col0 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
72
72
72
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 - + col1 * + col1 + + col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + col2 + 48 + 73 FROM tab1 cor0
----
175
178
217
query I rowsort
SELECT ALL - + col0 * cor0.col2 - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT + + col0 + col0 + + 16 * - col0 AS col1 FROM tab1 AS cor0
----
-1120
-42
-896
query I rowsort
SELECT - col2 + 64 AS col0 FROM tab0 AS cor0
----
-18
31
63
query I rowsort
SELECT DISTINCT + col2 * + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - col2 * col2 + ( cor0.col1 + 59 ) AS col2 FROM tab1 AS cor0
----
-2831
-3180
-9144
query I rowsort
SELECT ALL col1 * col1 - - col2 AS col0 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT - col0 + 14 AS col2 FROM tab2 AS cor0
----
-64
-65
7
query I rowsort
SELECT ALL col0 * cor0.col1 + 8 + - col0 * col2 FROM tab0 AS cor0
----
1280
3368
809
query I rowsort
SELECT DISTINCT + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + 95 + - col1 AS col2 FROM tab2 AS cor0
----
36
64
78
query I rowsort
SELECT ALL - 99 * ( + col0 + + col0 ) AS col2 FROM tab1 AS cor0
----
-12672
-15840
-594
query I rowsort
SELECT DISTINCT + col1 + + 18 * col0 FROM tab0 AS cor0
----
1693
518
727
query I rowsort
SELECT ALL - cor1.col0 FROM tab2, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + cor0.col1 col1 FROM tab2 AS cor0
----
-1427
-617
-698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * 25 col2 FROM tab1 AS cor0
----
425
425
425
onlyif mysql # use DIV operator for integer division
query I rowsort label-685
SELECT DISTINCT + CAST( + 97 AS SIGNED ) DIV + col1 + ( + ( - col1 ) + 69 ) * 65 * + col0 FROM tab0 AS cor0
----
-127269
-26519
-63699
skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT + CAST ( + 97 AS INTEGER ) / + col1 + ( + ( - col1 ) + 69 ) * 65 * + col0 FROM tab0 AS cor0
----
-127269
-26519
-63699
query I rowsort
SELECT ALL 21 - 36 FROM tab2, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-687
SELECT + tab1.col2 DIV ( - 80 * - col1 ) + ( + 5 ) FROM tab1
----
5
5
5
skipif mysql # not compatible
query I rowsort label-687
SELECT + tab1.col2 / ( - 80 * - col1 ) + ( + 5 ) FROM tab1
----
5
5
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-688
SELECT col2 * + CAST( col1 AS SIGNED ) + - col0 AS col2 FROM tab2
----
1456
567
830
skipif mysql # not compatible
query I rowsort label-688
SELECT col2 * + CAST ( col1 AS INTEGER ) + - col0 AS col2 FROM tab2
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 + col2 col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT - - col0 * - 41 + col1 FROM tab2 AS cor0
----
-256
-3139
-3222
query I rowsort
SELECT ALL - - col2 - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + col0 * - ( + col2 ) FROM tab0 cor0
----
-70
-7387
-816
query I rowsort
SELECT + 66 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT - - col0 - + 66 * + col0 FROM tab1 AS cor0
----
-195
-4160
-5200
query I rowsort
SELECT + col1 * col1 + col1 + + cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
15670
8274
9541
query I rowsort
SELECT ALL + + col1 * col1 + + 93 FROM tab2 AS cor0
----
1054
3574
382
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 + col2 col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - + col1 * col0 + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - - col1 * + col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col1 + + 71 AS col2 FROM tab0 AS cor0
----
157
162
168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 59 + col2 * - col2 col0 FROM tab1 AS cor0
----
-3552
114
270
query I rowsort
SELECT ALL - cor0.col2 + - 21 + + col1 AS col2 FROM tab2 AS cor0
----
-17
-42
12
query I rowsort
SELECT - 98 * - ( + col1 ) FROM tab0 AS cor0
----
8428
8918
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-704
SELECT col1 * col1 DIV col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-704
SELECT col1 * col1 / col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col0 + - 65 col0 FROM tab2 AS cor0
----
-16
6019
6176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + 56 + + col1 col0 FROM tab0 AS cor0
----
250
2980
7609
query I rowsort
SELECT - + 76 * + col1 FROM tab0 cor0
----
-6536
-6916
-7372
onlyif mysql # use DIV operator for integer division
query I rowsort label-710
SELECT + 51 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-710
SELECT + 51 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-3
0
query I rowsort
SELECT col1 + col1 AS col2 FROM tab0 WHERE NOT - col1 * tab0.col1 NOT IN ( + col1 * tab0.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-712
SELECT DISTINCT - col1 * col1 + - col2 DIV - 1 FROM tab2
----
-251
-3455
-934
skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT - col1 * col1 + - col2 / - 1 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT + tab1.col2 * - 72 FROM tab1, tab2 cor0
----
9 values hashing to 884210196ea24c411d12a2542ff07f6b
query I rowsort
SELECT DISTINCT + 42 + + col2 + - 79 * 83 * + col1 AS col1 FROM tab2
----
-111389
-203198
-386795
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-715
SELECT - col0 + col1 * - CAST( NULL AS SIGNED ) * + col1 + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-715
SELECT - col0 + col1 * - CAST ( NULL AS INTEGER ) * + col1 + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL
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 + - col0 + 22 AS col2 FROM tab0 AS cor0
----
-13
-2
-67
query I rowsort
SELECT + col0 * ( - col1 ) + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT col1 + - col0 + col2 * ( - tab1.col0 ) AS col0 FROM tab1
----
-139
-3702
-7747
query I rowsort
SELECT + - col1 + + col2 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-721
SELECT cor0.col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-721
SELECT cor0.col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-722
SELECT + col0 * CAST( NULL AS SIGNED ) * - col2 - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-722
SELECT + col0 * CAST ( NULL AS INTEGER ) * - col2 - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * + col0 * 73 - + col2 FROM tab2 AS cor0
----
15814
335920
98001
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col0 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - ( - col0 + col2 ) col2 FROM tab1
----
29
3
77
query I rowsort
SELECT + 84 AS col0 FROM tab1
----
84
84
84
query I rowsort
SELECT DISTINCT 70 * - tab1.col1 FROM tab1, tab1 AS cor0
----
-1820
-700
-910
query I rowsort
SELECT - 96 + - 4 AS col1 FROM tab1 AS cor0
----
-100
-100
-100
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 - - col1 * - col2 col0 FROM tab2 AS cor0
----
-1625
-737
-928
query I rowsort
SELECT ALL + ( col0 ) AS col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-731
SELECT ALL - col1 DIV + cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - col1 / + cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 47 + cor0.col2 FROM tab2 AS cor0
----
-20
-21
-9
query I rowsort
SELECT col1 * col2 + tab1.col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT + col1 * col0 + col1 * col2 FROM tab2
----
1054
1989
6136
query I rowsort
SELECT ALL - + cor0.col0 * + col0 + + cor0.col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT col1 * col2 + col2 - col0 AS col2 FROM tab1 AS cor0
----
1264
1455
563
query I rowsort
SELECT DISTINCT col2 * cor0.col1 + col0 * col0 FROM tab2 AS cor0
----
6887
7618
886
query I rowsort
SELECT ALL - cor0.col0 * col1 * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL col2 + + cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-742
SELECT DISTINCT + + cor0.col1 DIV col2 + col1 * - col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT + + cor0.col1 / col2 + col1 * - col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-743
SELECT - col2 DIV col1 + col0 AS col2 FROM tab2 AS cor0 WHERE col0 * + col0 NOT IN ( - col2 - + col0 ) OR NOT ( NULL ) IN ( - col2 + + cor0.col2 )
----
7
77
78
skipif mysql # not compatible
query I rowsort label-743
SELECT - col2 / col1 + col0 AS col2 FROM tab2 AS cor0 WHERE col0 * + col0 NOT IN ( - col2 - + col0 ) OR NOT ( NULL ) IN ( - col2 + + cor0.col2 )
----
7
77
78
query I rowsort
SELECT + col2 * - col2 - col1 AS col0 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL - col0 - tab2.col0 AS col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT + col1 + + col0 + + col2 FROM tab1
----
131
189
83
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 + + col2 col0 FROM tab0
----
253
37
90
query I rowsort
SELECT ALL + 52 * cor0.col0 FROM tab2 AS cor0
----
364
4056
4108
query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT - 79 * col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
110916
45030
98592
onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT - + col2 + - cor0.col1 DIV - col0 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-752
SELECT - + col2 + - cor0.col1 / - col0 col1 FROM tab2 AS cor0
----
-23
-26
-38
query I rowsort
SELECT - + 46 * + col2 * - col1 AS col0 FROM tab0 AS cor0
----
130548
343252
4462
query I rowsort
SELECT - ( 70 ) * col1 AS col2 FROM tab2
----
-1190
-2170
-4130
query I rowsort
SELECT + 60 * col2 AS col2 FROM tab1
----
3240
3420
5760
query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab0, tab2 cor0
----
43
query I rowsort
SELECT DISTINCT tab1.col2 * + 68 AS col1 FROM tab1
----
3672
3876
6528
onlyif mysql # use DIV operator for integer division
query I rowsort label-758
SELECT 18 DIV + cor0.col0 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-758
SELECT 18 / + cor0.col0 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT + - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - + ( + cor0.col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT 17 + col1 FROM tab2
----
34
48
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + col0 + col0 col2 FROM tab0
----
7444
8459
9479
query I rowsort
SELECT DISTINCT col1 * - col1 * + col2 AS col2 FROM tab2
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT col2 DIV tab2.col1 col2 FROM tab2
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-764
SELECT col2 / tab2.col1 col2 FROM tab2
----
0
0
2
query I rowsort
SELECT ALL - col0 * col0 * col1 FROM tab0
----
-118825
-49536
-720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-766
SELECT DISTINCT + col2 + col1 DIV - col1 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT + col2 + col1 / - col1 FROM tab1
----
53
56
95
query I rowsort
SELECT DISTINCT tab2.col2 - - col0 * col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE ( col2 ) >= NULL
----
query I rowsort
SELECT ALL col0 * + col1 * tab2.col1 AS col2 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT + col1 + + col2 * + col1 AS col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL col1 * + col2 + - tab2.col2 * - tab2.col0 FROM tab2
----
1026
3562
3648
query I rowsort
SELECT DISTINCT col1 + + col1 + col2 * tab2.col0 FROM tab2 WHERE tab2.col2 >= NULL
----
query I rowsort
SELECT + col1 + col2 AS col0 FROM tab0 WHERE NOT col0 >= col1
----
119
173
98
query I rowsort
SELECT ALL - tab1.col0 * - tab1.col0 AS col1 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-775
SELECT + col1 - tab2.col0 DIV - col1 col1 FROM tab2
----
21
31
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-775
SELECT + col1 - tab2.col0 / - col1 col1 FROM tab2
----
21
31
60
query I rowsort
SELECT tab1.col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * col2 col1 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL col0 + + tab1.col1 * col2 AS col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT col2 * - col0 - + col1 AS col0 FROM tab1 WHERE NULL <> col0
----
query I rowsort
SELECT ALL - col0 - - col0 FROM tab2
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 <= ( NULL )
----
query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT ( col1 ) IN ( + col0 )
----
-10
-13
-26
query I rowsort
SELECT col2 + col2 * col0 AS col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL col1 + col2 * col1 AS col0 FROM tab1
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-785
SELECT col2 * col1 * + tab1.col2 + col2 + col0 DIV col0 col0 FROM tab1
----
119905
32548
75871
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-785
SELECT col2 * col1 * + tab1.col2 + col2 + col0 / col0 col0 FROM tab1
----
119905
32548
75871
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 tab2.col1 + + col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT col2 * - col2 + col1 AS col0 FROM tab1 cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-789
SELECT ALL - + cor0.col2 + col1 * - col0 * + col1 - col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
-13610
-2082
-6451
skipif mysql # not compatible
query I rowsort label-789
SELECT ALL - + cor0.col2 + col1 * - col0 * + col1 - col0 / - col1 AS col0 FROM tab1 AS cor0
----
-13610
-2082
-6451
query I rowsort
SELECT + + col0 - - col1 * - col1 AS col1 FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL + cor0.col0 - col0 * col2 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT - - col1 - col1 * col1 AS col1 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT cor0.col1 + col1 * col0 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT - col0 * col0 * - col0 AS col1 FROM tab0 AS cor0
----
13824
42875
704969
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + col1 * col2 = - col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-797
SELECT ALL col2 * col2 + + col2 DIV col2 AS col0 FROM tab0 cor0
----
1090
2
6725
skipif mysql # not compatible
query I rowsort label-797
SELECT ALL col2 * col2 + + col2 / col2 AS col0 FROM tab0 cor0
----
1090
2
6725
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-798
SELECT CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-798
SELECT CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * + 37 + col0 AS col0 FROM tab1
----
114
2432
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-800
SELECT col1 DIV 21 AS col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-800
SELECT col1 / 21 AS col1 FROM tab1
----
0
0
1
query I rowsort
SELECT ALL - ( col2 ) + col0 FROM tab2
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col1 * - col0 col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - ( + col0 ) * + col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT DISTINCT + col2 * 69 FROM tab2
----
1794
1863
2622
query I rowsort
SELECT DISTINCT 54 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54
query I rowsort
SELECT + - cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - col1 + col0 + + col0 * 98 * col0 AS col2 FROM tab0 AS cor0
----
119988
56386
776256
query I rowsort
SELECT col2 * col2 * - 65 FROM tab1 AS cor0
----
-189540
-211185
-599040
query I rowsort
SELECT - ( col0 ) - + col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT col1 - + cor0.col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + col1 + cor0.col1 + + cor0.col2 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT ( - cor0.col1 ) * ( + 61 ) * - col0 AS col1 FROM tab1 AS cor0
----
39040
4758
63440
query I rowsort
SELECT ALL - + col1 + 32 FROM tab0 cor0
----
-54
-59
-65
query I rowsort
SELECT ALL + + col1 + - 23 AS col0 FROM tab1 AS cor0
----
-10
-13
3
query I rowsort
SELECT ALL - cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col1 + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT + + col1 + + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-820
SELECT ALL col2 * + col1 + + col0 DIV - col2 + - 60 AS col1 FROM tab1 AS cor0
----
1188
1344
509
skipif mysql # not compatible
query I rowsort label-820
SELECT ALL col2 * + col1 + + col0 / - col2 + - 60 AS col1 FROM tab1 AS cor0
----
1188
1344
509
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + cor0.col1 col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + + col0 + + 39 AS col0 FROM tab2 AS cor0
----
117
118
46
query I rowsort
SELECT ALL + col0 * ( col2 ) + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - col1 * + ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-825
SELECT ALL col1 + 67 * col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
20
23
606
skipif mysql # not compatible
query I rowsort label-825
SELECT ALL col1 + 67 * col1 / + col0 AS col1 FROM tab1 AS cor0
----
20
23
606
query I rowsort
SELECT 7 AS col1 FROM tab0 AS cor0
----
7
7
7
query I rowsort
SELECT - 34 * + col1 + - col0 FROM tab0 AS cor0
----
-2948
-3183
-3333
query I rowsort
SELECT DISTINCT - col0 * - col0 + + col0 AS col1 FROM tab0 cor0
----
1260
600
8010
query I rowsort
SELECT DISTINCT 95 * - col0 FROM tab0 AS cor0
----
-2280
-3325
-8455
query I rowsort
SELECT - col1 * - col2 + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT + - cor0.col0 + col0 * + cor0.col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT - - 19 * + col0 FROM tab1 AS cor0
----
1216
1520
57
query I rowsort
SELECT ALL + + col2 + + col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + 45 * + col0 FROM tab1 AS cor0
----
135
2880
3600
query I rowsort
SELECT - ( - cor0.col0 ) + - col2 * - col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - - col0 * col1 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - - 93 AS col0 FROM tab0 AS cor0
----
93
93
93
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * + col1 col0 FROM tab1
----
-1976
-760
-988
query I rowsort
SELECT ( - col1 ) * + col1 * col2 AS col2 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT 15 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-842
SELECT DISTINCT col1 * - col0 DIV col0 AS col2 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT col1 * - col0 / col0 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT col2 * + 13 * 61 FROM tab1
----
42822
45201
76128
query I rowsort
SELECT ALL 31 FROM tab0, tab2 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT + cor0.col0 + + 27 + cor0.col1 * col0 FROM tab1 AS cor0
----
108
1147
731
query I rowsort
SELECT col1 - - col0 * - 10 AS col1 FROM tab2
----
-39
-721
-773
onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT - - col0 DIV col0 + col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-847
SELECT - - col0 / col0 + col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT - 10 - col1 FROM tab1
----
-20
-23
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-849
SELECT DISTINCT col0 * + CAST( + ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT col0 * + CAST ( + ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL col1 + col0 * 2 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT DISTINCT + col1 * - 57 AS col2 FROM tab2
----
-1767
-3363
-969
query I rowsort
SELECT + 91 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT ALL + cor0.col2 * col2 AS col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + col0 * - 32 AS col0 FROM tab0 AS cor0
----
-1120
-2848
-768
query I rowsort
SELECT DISTINCT + col1 * + 41 + - col2 FROM tab0 AS cor0
----
3493
3649
3976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( + col0 ) col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - col1 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - cor0.col0 * + 35 + col0 AS col2 FROM tab0 AS cor0
----
-1190
-3026
-816
query I rowsort
SELECT ALL 35 + col0 FROM tab2
----
113
114
42
query I rowsort
SELECT - col2 * + col1 - col0 AS col2 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT col0 + - col0 * - col0 * col1 FROM tab2 AS cor0
----
106176
1526
359034
query I rowsort
SELECT DISTINCT + 47 + tab0.col2 * + col2 AS col1 FROM tab0
----
1136
48
6771
query I rowsort
SELECT ALL - ( 95 ) FROM tab1, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 6ddacf7cdc440b47c37bfd544945f3f8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-864
SELECT + + CAST( - col1 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-864
SELECT + + CAST ( - col1 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + cor0.col0 - - 25 AS col1 FROM tab2 AS cor0
----
103
104
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 + - col0 col1 FROM tab1 AS cor0
----
-110
-33
-94
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * - cor0.col0 + CAST ( ( col1 ) * + col2 AS REAL ) + col2 * col2 FROM tab0 AS cor0
----
-1127
3351
6265
query I rowsort
SELECT ALL - 85 * col2 + - ( col0 ) + col2 FROM tab0 AS cor0
----
-119
-2796
-6977
query I rowsort
SELECT - + col2 * + col2 + col1 * - col1 FROM tab0 AS cor0
----
-15005
-8485
-9410
query I rowsort
SELECT ALL + cor0.col0 + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-871
SELECT DISTINCT 49 + col2 + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
157
163
241
skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT 49 + col2 + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
157
163
241
query I rowsort
SELECT ALL - col1 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + - 81 - - col0 FROM tab2 AS cor0
----
-2
-3
-74
query I rowsort
SELECT 72 * - ( + col0 ) AS col2 FROM tab2
----
-504
-5616
-5688
query I rowsort
SELECT col0 * ( col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT ( col2 ) + + col1 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT 6 - ( col0 ) AS col0 FROM tab2
----
-1
-72
-73
query I rowsort
SELECT ALL 89 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT ALL - 2 AS col2 FROM tab2 cor0
----
-2
-2
-2
query I rowsort
SELECT + 72 * - col2 + + 93 * 36 + - col1 * - ( - cor0.col1 ) FROM tab0 AS cor0
----
-10837
-6133
-6424
query I rowsort
SELECT DISTINCT 72 FROM tab0, tab2 AS cor0
----
72
query I rowsort
SELECT + 96 * col1 + - 71 FROM tab1 AS cor0
----
1177
2425
889
query I rowsort
SELECT + + col0 * - 67 FROM tab2 AS cor0
----
-469
-5226
-5293
query I rowsort
SELECT + 97 * - col2 - col0 AS col0 FROM tab0
----
-132
-3225
-8043
query I rowsort
SELECT ALL + 71 - - tab0.col2 FROM tab0, tab0 cor0, tab1 cor1
----
27 values hashing to b232b338af8c42ba08b1e678e2922e13
query I rowsort
SELECT DISTINCT + col2 + tab2.col2 AS col0 FROM tab2
----
52
54
76
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 col2 * 5 + col1 AS col0 FROM tab2 AS cor0
----
166
189
207
query I rowsort
SELECT DISTINCT - 23 FROM tab1, tab2, tab1 AS cor0
----
-23
query I rowsort
SELECT ALL + 97 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
onlyif mysql # use DIV operator for integer division
query I rowsort label-891
SELECT + 92 + + ( + col0 ) DIV + col1 FROM tab1 cor0
----
92
98
98
skipif mysql # not compatible
query I rowsort label-891
SELECT + 92 + + ( + col0 ) / + col1 FROM tab1 cor0
----
92
98
98
query I rowsort
SELECT + - 18 FROM tab0 AS cor0
----
-18
-18
-18
query I rowsort
SELECT ( col1 ) + + col2 - - ( + 25 ) AS col1 FROM tab2 AS cor0
----
110
80
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 * - cor0.col1 + ( col1 ) * col1 col1 FROM tab0 AS cor0
----
184900
338724
745290
onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT - ( - 66 ) DIV col1 FROM tab1 AS cor0
----
2
5
6
skipif mysql # not compatible
query I rowsort label-895
SELECT - ( - 66 ) / col1 FROM tab1 AS cor0
----
2
5
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-896
SELECT ALL - - ( - col2 ) DIV col1 + + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-896
SELECT ALL - - ( - col2 ) / col1 + + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-897
SELECT - - CAST( col2 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-897
SELECT - - CAST ( col2 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + col0 * + ( cor0.col2 * cor0.col2 ) FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT - ( col0 ) + - col2 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT col1 + col1 * - col0 * + tab1.col0 AS col0 FROM tab1
----
-208
-40950
-83187
query I rowsort
SELECT DISTINCT - ( ( + cor0.col1 ) ) FROM tab0, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col1 * 31 FROM tab2
----
1829
527
961
query I rowsort
SELECT ALL + col2 + - tab2.col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + 23 * - col0 - cor0.col2 FROM tab2 AS cor0
----
-1820
-1855
-188
query I rowsort
SELECT ALL 14 AS col1 FROM tab1 AS cor0
----
14
14
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-906
SELECT 62 DIV cor0.col1 + + col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-906
SELECT 62 / cor0.col1 + + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - 15 * - 51 FROM tab0 AS cor0
----
765
765
765
query I rowsort
SELECT ALL + 13 * + col0 AS col2 FROM tab2 AS cor0
----
1014
1027
91
query I rowsort
SELECT cor0.col2 - 26 FROM tab2 AS cor0
----
0
1
12
query I rowsort
SELECT DISTINCT 58 + col2 FROM tab1 AS cor0
----
112
115
154
query I rowsort
SELECT - 67 AS col1 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to b06dbb8370537177bf40dc825f674151
query I rowsort
SELECT + col1 - - ( + col2 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + cor0.col1 * + col2 + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1566
2090
2210
query I rowsort
SELECT + cor0.col1 * + col0 * + col0 AS col2 FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT - cor0.col0 + 91 FROM tab2 AS cor0
----
12
13
84
query I rowsort
SELECT + 38 + + col0 * col1 AS col0 FROM tab2
----
1381
255
4640
query I rowsort
SELECT DISTINCT - 88 FROM tab2, tab1, tab2 cor0
----
-88
query I rowsort
SELECT ALL - 51 * - col1 FROM tab1
----
1326
510
663
query I rowsort
SELECT + 64 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT + col2 + cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 12 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c60b9398e29d6382e0d15363f9325811
query I rowsort
SELECT DISTINCT + 6 FROM tab1, tab2 AS cor0
----
6
query I rowsort
SELECT - 57 * + col0 AS col2 FROM tab0
----
-1368
-1995
-5073
query I rowsort
SELECT 94 * + 7 AS col0 FROM tab2
----
658
658
658
onlyif mysql # use DIV operator for integer division
query I rowsort label-927
SELECT ALL tab1.col0 DIV 39 + + col0 AS col2 FROM tab1
----
3
65
82
skipif mysql # not compatible
query I rowsort label-927
SELECT ALL tab1.col0 / 39 + + col0 AS col2 FROM tab1
----
3
65
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + + col0 * - cor0.col0 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + - col1 * col0 * + col2 FROM tab2 AS cor0
----
-119593
-51017
-5828
onlyif mysql # use DIV operator for integer division
query I rowsort label-930
SELECT - 53 DIV + ( cor0.col1 ) + + 29 * col2 FROM tab0 AS cor0
----
2378
29
957
skipif mysql # not compatible
query I rowsort label-930
SELECT - 53 / + ( cor0.col1 ) + + 29 * col2 FROM tab0 AS cor0
----
2378
29
957
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-931
SELECT ALL + + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-931
SELECT ALL + + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - - col0 + col0 * col2 AS col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-933
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT - col2 * col1 * 63 AS col1 FROM tab0
----
-178794
-470106
-6111
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL 29 * + col2 FROM tab2
----
1102
754
783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-937
SELECT ALL CAST( 29 AS SIGNED ) AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
skipif mysql # not compatible
query I rowsort label-937
SELECT ALL CAST ( 29 AS INTEGER ) AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT - 88 * + col2 FROM tab0
----
-2904
-7216
-88
query I rowsort
SELECT col0 + col1 * col0 FROM tab2 cor0
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 + col2 col2 FROM tab1 AS cor0
----
38
41
80
query I rowsort
SELECT - col1 * - col0 * - cor0.col1 + col0 * col1 AS col0 FROM tab2 AS cor0
----
-21488
-266916
-6510
query I rowsort
SELECT - col0 * + 92 FROM tab2 AS cor0
----
-644
-7176
-7268
query I rowsort
SELECT - col2 * col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ALL - - col2 * + 23 FROM tab1 AS cor0
----
1242
1311
2208
query I rowsort
SELECT ALL + col1 + 80 + cor0.col1 FROM tab0 AS cor0
----
252
262
274
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-946
SELECT DISTINCT - col0 + CAST( 72 * col2 AS SIGNED ) FROM tab2 AS cor0
----
1794
1937
2657
skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT - col0 + CAST ( 72 * col2 AS INTEGER ) FROM tab2 AS cor0
----
1794
1937
2657
query I rowsort
SELECT col0 - col0 * col0 * col1 AS col2 FROM tab1 AS cor0
----
-231
-40896
-83120
query I rowsort
SELECT 48 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab2, tab0 AS cor0
----
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-950
SELECT CAST( + 90 * col1 AS SIGNED ) AS col0 FROM tab1
----
1170
2340
900
skipif mysql # not compatible
query I rowsort label-950
SELECT CAST ( + 90 * col1 AS INTEGER ) AS col0 FROM tab1
----
1170
2340
900
query I rowsort
SELECT - col2 * col0 - col1 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-952
SELECT + + col0 DIV col0 + + cor0.col1 FROM tab2 cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-952
SELECT + + col0 / col0 + + cor0.col1 FROM tab2 cor0
----
18
32
60
query I rowsort
SELECT DISTINCT + 84 * col0 AS col1 FROM tab1 AS cor0
----
252
5376
6720
query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col1 FROM tab1, tab2, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 8 * - col1 * + col1 AS col0 FROM tab1
----
-1352
-5408
-800
query I rowsort
SELECT ALL - ( col0 + col1 ) FROM tab0
----
-110
-132
-180
query I rowsort
SELECT ALL + 90 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ALL - 81 AS col2 FROM tab1
----
-81
-81
-81
query I rowsort
SELECT DISTINCT 71 + tab0.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
157
162
168
onlyif mysql # use DIV operator for integer division
query I rowsort label-960
SELECT DISTINCT + - col2 DIV ( col1 ) + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-5
-6
16
skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT + - col2 / ( col1 ) + col2 / + col0 AS col0 FROM tab1 AS cor0
----
-5
-6
16
query I rowsort
SELECT ALL 18 * cor0.col1 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT ALL - col0 + col1 + 25 * - col2 FROM tab1
----
-1327
-1479
-2467
query I rowsort
SELECT DISTINCT + ( + cor1.col1 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 + - ( col0 ) col0 FROM tab0
----
-110
-132
-180
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 AS cor2, tab0 AS cor3
----
13122 values hashing to fc247bf5dc0a5882b6a12d17e2ebe015
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-966
SELECT ALL - CAST( - ( col2 ) AS SIGNED ) col0 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-966
SELECT ALL - CAST ( - ( col2 ) AS INTEGER ) col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT 26 + - col1 AS col1 FROM tab1 AS cor0
----
0
13
16
query I rowsort
SELECT col1 * + 8 FROM tab2 cor0
----
136
248
472
onlyif mysql # use DIV operator for integer division
query I rowsort label-969
SELECT DISTINCT + col1 DIV 52 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT + col1 / 52 FROM tab1 AS cor0
----
0
query I rowsort
SELECT 65 * + col1 FROM tab1 AS cor0
----
1690
650
845
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * col2 col0 FROM tab0 AS cor0
----
-198
-492
-6
query I rowsort
SELECT - col1 - col1 * ( - col0 ) AS col0 FROM tab0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 - + col0 col1 FROM tab0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-974
SELECT DISTINCT col0 - - tab0.col2 DIV col2 AS col1 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT col0 - - tab0.col2 / col2 AS col1 FROM tab0
----
25
36
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT tab0.col0 + - col1 DIV 38 AS col2 FROM tab0
----
22
33
87
skipif mysql # not compatible
query I rowsort label-975
SELECT tab0.col0 + - col1 / 38 AS col2 FROM tab0
----
22
33
87
query I rowsort
SELECT - col2 * - col2 - ( col2 * - col1 ) AS col2 FROM tab0
----
14186
3927
98
query I rowsort
SELECT + 25 + col0 + col0 FROM tab0
----
203
73
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-978
SELECT col0 DIV + col1 + - col1 * - col0 * + col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
skipif mysql # not compatible
query I rowsort label-978
SELECT col0 / + col1 + - col1 * - col0 * + col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-979
SELECT ALL col1 + + CAST( NULL AS SIGNED ) - + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-979
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) - + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 40 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6
query I rowsort
SELECT - col1 - + col0 * col0 FROM tab2 AS cor0
----
-6143
-6258
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 54 col1 FROM tab2 AS cor0
----
-1674
-3186
-918
query I rowsort
SELECT col0 + + 34 FROM tab1 cor0
----
114
37
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-984
SELECT ALL - col0 + + col0 DIV + col0 FROM tab0 cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-984
SELECT ALL - col0 + + col0 / + col0 FROM tab0 cor0
----
-23
-34
-88
query I rowsort
SELECT + col1 * + 56 + col0 + - col1 * + ( - col1 ) * col2 FROM tab0 AS cor0
----
14876
248908
684227
query I rowsort
SELECT ALL + cor0.col2 * 48 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT col0 * col1 + 36 - - cor0.col1 FROM tab0 AS cor0
----
2186
3528
8226
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * - ( + ( - col2 ) ) * - 82 col2 FROM tab2 AS cor0
----
15498
166296
246164
query I rowsort
SELECT ALL col2 + + 65 + + ( - col1 ) * 3 FROM tab2 AS cor0
----
-1
-86
52
query I rowsort
SELECT DISTINCT - + col2 * col0 + 4 * - col0 FROM tab0 cor0
----
-175
-7654
-888
query I rowsort
SELECT col2 + col2 * + col2 + col2 FROM tab1 AS cor0
----
3024
3363
9408
query I rowsort
SELECT - + col2 + + ( + ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + 95 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-994
SELECT ALL + - col0 DIV 76 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-79
-80
skipif mysql # not compatible
query I rowsort label-994
SELECT ALL + - col0 / 76 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-79
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-995
SELECT col2 + - CAST( NULL AS SIGNED ) * col0 * - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-995
SELECT col2 + - 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-996
SELECT tab0.col2 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-996
SELECT tab0.col2 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + ( - cor0.col0 ) AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT + + col0 - col0 * + 67 FROM tab2 cor0
----
-462
-5148
-5214
query I rowsort
SELECT ALL + + col1 + + col1 - col1 * cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
-119534
-51000
-5797
query I rowsort
SELECT ALL - - col1 - + col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + + col2 * ( col0 * col0 ) - + 86 FROM tab1 AS cor0
----
233386
400
614314
query I rowsort
SELECT col2 - + 44 FROM tab2 cor0
----
-17
-18
-6
query I rowsort
SELECT DISTINCT + col1 + - col0 - cor0.col2 FROM tab1 cor0
----
-111
-163
-31
query I rowsort
SELECT - cor0.col2 - + ( + col2 * col1 ) FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT 45 - + col2 * - cor0.col2 FROM tab2 cor0
----
1489
721
774
query I rowsort
SELECT + col1 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - - col2 + + ( + col0 + - col0 * 29 ) AS col1 FROM tab2 AS cor0
----
-169
-2158
-2174
query I rowsort
SELECT DISTINCT 4 * + ( + col0 ) FROM tab0 AS cor0
----
140
356
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1009
SELECT + CAST( + 6 AS SIGNED ) FROM tab2 AS cor0
----
6
6
6
skipif mysql # not compatible
query I rowsort label-1009
SELECT + CAST ( + 6 AS INTEGER ) FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT ALL - col0 + - 19 * col0 FROM tab0 AS cor0
----
-1780
-480
-700
onlyif mysql # use DIV operator for integer division
query I rowsort label-1011
SELECT DISTINCT - + ( + 86 ) DIV col0 AS col2 FROM tab2 AS cor0
----
-1
-12
skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - + ( + 86 ) / col0 AS col2 FROM tab2 AS cor0
----
-1
-12
query I rowsort
SELECT DISTINCT - - 34 AS col2 FROM tab0 AS cor0
----
34
query I rowsort
SELECT - 99 - col2 FROM tab2 AS cor0
----
-125
-126
-137
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 39 ) + col1 col2 FROM tab0 cor0
----
47
52
58
query I rowsort
SELECT + tab0.col1 + - col0 * col2 + + col1 * col2 FROM tab0
----
159
2132
255
onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT DISTINCT - col2 DIV tab0.col2 + - 72 AS col0 FROM tab0
----
-73
skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT - col2 / tab0.col2 + - 72 AS col0 FROM tab0
----
-73
query I rowsort
SELECT DISTINCT 45 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
45
query I rowsort
SELECT - tab2.col0 - + ( col0 * col2 + col1 ) AS col1 FROM tab2
----
-2165
-227
-3098
onlyif mysql # use DIV operator for integer division
query I rowsort label-1019
SELECT col0 DIV col0 + 55 + - col0 * 39 * - 16 FROM tab2
----
4424
48728
49352
skipif mysql # not compatible
query I rowsort label-1019
SELECT col0 / col0 + 55 + - col0 * 39 * - 16 FROM tab2
----
4424
48728
49352
query I rowsort
SELECT DISTINCT - col1 + col1 * - 53 AS col1 FROM tab2 AS cor0
----
-1674
-3186
-918
query I rowsort
SELECT DISTINCT + + 72 + col1 * 69 * + col2 FROM tab0 cor0
----
195894
514950
6765
query I rowsort
SELECT ALL + + col2 * - col1 * 4 AS col1 FROM tab1 AS cor0
----
-2280
-4992
-5616
query I rowsort
SELECT ALL - 59 * col1 AS col0 FROM tab1 AS cor0
----
-1534
-590
-767
query I rowsort
SELECT ALL + 21 + col2 * - 16 AS col2 FROM tab1 AS cor0
----
-1515
-843
-891
query I rowsort
SELECT DISTINCT + ( col1 ) * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 * 13 FROM tab0 cor0
----
-105287
-26832
-44135
query I rowsort
SELECT DISTINCT col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col2 + tab1.col0 * - col2 * + col2 AS col1 FROM tab1
----
-207879
-737184
-8694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + cor0.col2 col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1030
SELECT ALL cor0.col1 + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL cor0.col1 + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - ( + col2 ) AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - 59 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1033
SELECT - cor0.col0 + CAST( + 54 AS SIGNED ) * - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 23b289a6772d3633dc472a9e579ba673
skipif mysql # not compatible
query I rowsort label-1033
SELECT - cor0.col0 + CAST ( + 54 AS INTEGER ) * - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 23b289a6772d3633dc472a9e579ba673
query I rowsort
SELECT ALL + 63 FROM tab2, tab0 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1035
SELECT - - col2 + - col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1035
SELECT - - col2 + - col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 86 ) FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
query I rowsort
SELECT - 30 - 99 AS col2 FROM tab0, tab1 cor0, tab0 cor1
----
27 values hashing to a31817b440889c3e4fb46c22ed3b7838
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1038
SELECT + col1 * CAST( col1 * col0 AS SIGNED ) FROM tab2 AS cor0
----
22831
271518
6727
skipif mysql # not compatible
query I rowsort label-1038
SELECT + col1 * CAST ( col1 * col0 AS INTEGER ) FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT - col1 * + 88 + + cor0.col2 FROM tab0 AS cor0
----
-7535
-7926
-8535
query I rowsort
SELECT + 12 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT tab2.col2 + col0 - + col0 AS col1 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT DISTINCT col0 * tab2.col1 DIV + col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT col0 * tab2.col1 / + col1 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT tab2.col1 + + col0 - tab2.col1 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL - tab1.col0 * col1 * - tab1.col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT col0 * col0 - col1 AS col1 FROM tab0
----
1128
490
7830
query III rowsort
SELECT ALL * FROM tab0 WHERE col0 < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1047
SELECT ALL + tab0.col1 DIV tab0.col2 AS col0 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + tab0.col1 / tab0.col2 AS col0 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT + col1 * - col2 + + col2 + - col2 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1049
SELECT col1 + col0 + - col0 DIV col1 AS col0 FROM tab1
----
29
68
87
skipif mysql # not compatible
query I rowsort label-1049
SELECT col1 + col0 + - col0 / col1 AS col0 FROM tab1
----
29
68
87
query I rowsort
SELECT ALL + col2 FROM tab0 WHERE col1 * col1 - - col1 * + tab0.col2 BETWEEN ( NULL ) AND ( col0 - col1 * + col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - col2 <= ( - col1 + col0 )
----
7
31
27
78
59
26
query I rowsort
SELECT col0 * col1 * col2 AS col0 FROM tab2
----
119652
51034
5859
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT col1 DIV + tab1.col2 + + col0 AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1054
SELECT col1 / + tab1.col2 + + col0 AS col1 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1055
SELECT + col1 DIV col2 + col1 * col1 DIV - col0 FROM tab0
----
-171
-306
-92
skipif mysql # not compatible
query I rowsort label-1055
SELECT + col1 / col2 + col1 * col1 / - col0 FROM tab0
----
-171
-306
-92
query I rowsort
SELECT DISTINCT + col2 * - tab1.col2 * col0 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT ALL col2 + - col1 - - col1 FROM tab2
----
26
27
38
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( - col2 - + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1059
SELECT col2 DIV - col2 + + col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-1059
SELECT col2 / - col2 + + col2 FROM tab0
----
0
32
81
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 + - col1 ) NOT BETWEEN NULL AND ( col0 )
----
3
26
54
80
13
96
query I rowsort
SELECT ALL - col0 + + col2 * tab0.col2 AS col1 FROM tab0
----
-34
1065
6635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + + col1 col2 FROM tab1
----
110
182
702
query I rowsort
SELECT DISTINCT tab1.col1 - col2 AS col2 FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1064
SELECT ALL tab0.col2 DIV col2 + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL tab0.col2 / col2 + col1 FROM tab0
----
87
92
98
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * col2 > NULL
----
query I rowsort
SELECT + col0 * col0 * - col2 + + col2 * - col1 AS col1 FROM tab2
----
-159718
-2160
-237804
query I rowsort
SELECT cor0.col2 + - col0 * 19 + col1 FROM tab2 AS cor0
----
-1397
-1446
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1068
SELECT + 96 + col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1068
SELECT + 96 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-1070
SELECT + 80 DIV col0 + col0 DIV col0 + col2 FROM tab1 AS cor0
----
59
81
98
skipif mysql # not compatible
query I rowsort label-1070
SELECT + 80 / col0 + col0 / col0 + col2 FROM tab1 AS cor0
----
59
81
98
query I rowsort
SELECT col0 + col1 + col1 * - 65 AS col2 FROM tab1 AS cor0
----
-1661
-576
-752
query I rowsort
SELECT ALL + 7 * col2 AS col2 FROM tab0 cor0
----
231
574
7
query I rowsort
SELECT ALL 68 * col1 FROM tab2 AS cor0
----
1156
2108
4012
query I rowsort
SELECT + 20 + - cor0.col0 + + col1 FROM tab2 AS cor0
----
-42
1
44
query I rowsort
SELECT col2 * + col0 - - col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - + ( + cor0.col1 ) * cor0.col1 + col2 + - cor0.col1 * 2 FROM tab1 AS cor0
----
-63
-674
-99
query I rowsort
SELECT ALL ( - col0 ) * tab2.col1 * col1 FROM tab2
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-1078
SELECT ALL + col0 DIV - col0 + col0 + + tab2.col2 AS col1 FROM tab2
----
103
116
33
skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL + col0 / - col0 + col0 + + tab2.col2 AS col1 FROM tab2
----
103
116
33
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1
33
82
query I rowsort
SELECT - + ( + col2 ) + + ( + col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT - col0 + - 25 FROM tab1 AS cor0
----
-105
-28
-89
query I rowsort
SELECT DISTINCT - col2 * + ( + col0 ) AS col0 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-1084
SELECT 55 DIV + 73 col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1084
SELECT 55 / + 73 col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - tab0.col0 - - col1 col2 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT - col2 * ( col1 ) + + 42 FROM tab2 AS cor0
----
-1492
-604
-795
query I rowsort
SELECT DISTINCT - + col0 * - 15 FROM tab2 AS cor0
----
105
1170
1185
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) + 69 AS col1 FROM tab2 AS cor0
----
-1375
-607
-660
query I rowsort
SELECT - - 60 - col1 FROM tab1 AS cor0
----
34
47
50
query I rowsort
SELECT + + 95 - - col1 * + col2 FROM tab0 AS cor0
----
192
2933
7557
query I rowsort
SELECT + col1 - + col0 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 * col2 * + col0 col0 FROM tab0 AS cor0
----
3492
664209
68198
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * cor0.col2 + col0 col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + col0 + - col1 * col1 AS col0 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT + 42 + col0 AS col2 FROM tab0 AS cor0
----
131
66
77
query I rowsort
SELECT 17 * col2 AS col0 FROM tab2 AS cor0
----
442
459
646
onlyif mysql # use DIV operator for integer division
query I rowsort label-1097
SELECT ALL + 42 - col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-55
40
41
skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL + 42 - col1 / col2 AS col2 FROM tab0 AS cor0
----
-55
40
41
query I rowsort
SELECT ALL - - 23 * + col2 + col2 FROM tab0 AS cor0
----
1968
24
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 - + cor0.col1 * + col1 col0 FROM tab0 AS cor0
----
-7382
-8267
-9395
query I rowsort
SELECT - 54 * - col0 - + col1 FROM tab1 cor0
----
136
3446
4307
query I rowsort
SELECT DISTINCT + 17 + col2 * - col2 FROM tab2 AS cor0
----
-1427
-659
-712
query I rowsort
SELECT - ( col1 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + + col0 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-1105
SELECT ALL + + col0 * col2 DIV + col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL + + col0 * col2 / + col0 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab2 AS cor0
----
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-1108
SELECT DISTINCT col1 DIV + cor0.col0 col0 FROM tab2 cor0
----
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT col1 / + cor0.col0 col0 FROM tab2 cor0
----
0
4
query I rowsort
SELECT ALL + col1 + tab0.col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT - col1 + - col1 * - col0 + + col0 AS col2 FROM tab0 AS cor0
----
2002
3333
8097
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 * col1 * - cor0.col0 col0 FROM tab1 cor0
----
-288
-41017
-83296
query I rowsort
SELECT ALL col1 + col0 * + col0 AS col2 FROM tab2
----
6143
6258
80
query I rowsort
SELECT DISTINCT + - cor0.col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT 37 DIV 41 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1114
SELECT 37 / 41 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + 6 + + 76 * - col2 FROM tab1 AS cor0
----
-4098
-4326
-7290
query I rowsort
SELECT DISTINCT - + 70 FROM tab2 cor0
----
-70
query I rowsort
SELECT ALL - - 71 * + 29 * col0 FROM tab0 AS cor0
----
183251
49416
72065
query I rowsort
SELECT ALL + 11 FROM tab2, tab0 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
onlyif mysql # use DIV operator for integer division
query I rowsort label-1119
SELECT ALL col0 * col2 DIV - col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL col0 * col2 / - col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + 96 + 50 AS col1 FROM tab2
----
146
146
146
query I rowsort
SELECT ALL 2 * col2 - col2 AS col0 FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1122
SELECT DISTINCT CAST( + col2 AS SIGNED ) * tab1.col1 - col1 * + tab1.col0 AS col2 FROM tab1
----
-70
1326
208
skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * tab1.col1 - col1 * + tab1.col0 AS col2 FROM tab1
----
-70
1326
208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1123
SELECT ALL CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 * 77 FROM tab0 AS cor0
----
-6622
-7007
-7469
onlyif mysql # use DIV operator for integer division
query I rowsort label-1125
SELECT ALL + - cor0.col1 DIV 18 AS col1 FROM tab0 AS cor0
----
-4
-5
-5
skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + - cor0.col1 / 18 AS col1 FROM tab0 AS cor0
----
-4
-5
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT + ( 39 ) + col0 DIV - col2 FROM tab1
----
38
39
39
skipif mysql # not compatible
query I rowsort label-1126
SELECT + ( 39 ) + col0 / - col2 FROM tab1
----
38
39
39
query I rowsort
SELECT tab2.col1 + col2 * col2 AS col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT - 60 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
query I rowsort
SELECT DISTINCT + tab1.col2 * 9 * col2 FROM tab1
----
26244
29241
82944
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) <> + col2 + - col0
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN + col0 AND ( NULL )
----
query I rowsort
SELECT DISTINCT + col2 * - col0 * tab2.col2 AS col1 FROM tab2
----
-114076
-5103
-52728
query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + col0 + col2 <> - col0 * col2 * + col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col1 + col2 * - col0 AS col0 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT - cor0.col0 * cor0.col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT - cor0.col1 - + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b82361c46cc0c2ce3377dc8e27527663
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL cor0.col0 + + col0 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + cor0.col1 * - col2 col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT col0 * + col1 + col0 * col1 FROM tab1 AS cor0
----
1280
156
2080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + col2 - - col1 col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - col1 * + col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT col0 + + col1 + col2 * col0 FROM tab2 AS cor0
----
2165
227
3098
query I rowsort
SELECT ALL - - cor0.col2 + + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col1 + + col1 * col1 AS col1 FROM tab1 cor0
----
156
650
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1147
SELECT ALL + col0 DIV col0 + - col1 + + col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL + col0 / col0 + - col1 + + col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + cor0.col2 * + col2 + + col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - col1 + + col2 * col1 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT + col1 * 49 - + 13 * + col1 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT col0 + + 90 FROM tab0 AS cor0
----
114
125
179
query I rowsort
SELECT DISTINCT + col0 + 1 AS col2 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT - - col1 + ( + col0 + col1 ) AS col0 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT + + 25 FROM tab0 AS cor0
----
25
25
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-1155
SELECT - + 34 DIV + col1 + - col0 FROM tab1 AS cor0
----
-4
-67
-82
skipif mysql # not compatible
query I rowsort label-1155
SELECT - + 34 / + col1 + - col0 FROM tab1 AS cor0
----
-4
-67
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1156
SELECT + + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1156
SELECT + + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 69 * ( col0 ) FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT DISTINCT - 46 FROM tab1, tab0 cor0, tab1 AS cor1
----
-46
query I rowsort
SELECT + col1 * ( col0 ) * cor0.col2 + col1 FROM tab1 AS cor0
----
36490
4238
99853
query I rowsort
SELECT - col2 + - cor0.col1 + col1 * + col2 FROM tab0 AS cor0
----
-1
2719
7289
query I rowsort
SELECT 11 + - cor0.col0 AS col2 FROM tab2 cor0
----
-67
-68
4
query I rowsort
SELECT ( - col0 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1163
SELECT DISTINCT + 58 DIV col0 AS col2 FROM tab2 cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT + 58 / col0 AS col2 FROM tab2 cor0
----
0
8
query I rowsort
SELECT - + 9 * col1 FROM tab1 AS cor0
----
-117
-234
-90
query I rowsort
SELECT - col2 + col2 * ( 86 ) AS col2 FROM tab2 AS cor0
----
2210
2295
3230
query I rowsort
SELECT + ( - col2 ) * + ( + ( col0 ) ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 14 * col0 col1 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT DISTINCT + col1 * - col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + - ( col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + ( + col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + 95 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT + col1 - col1 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - 20 + - col0 AS col2 FROM tab2
----
-27
-98
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 - col0 col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT col2 + - col1 * 42 AS col2 FROM tab0 AS cor0
----
-3579
-3740
-4073
query I rowsort
SELECT ALL 93 + col2 FROM tab1
----
147
150
189
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1177
SELECT + - cor0.col0 + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1177
SELECT + - cor0.col0 + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1178
SELECT cor0.col2 DIV col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1178
SELECT cor0.col2 / col1 AS col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT + col0 * - col2 * col2 AS col1 FROM tab1 cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-1180
SELECT + col2 * ( cor0.col2 ) + cor0.col2 DIV col0 FROM tab2 AS cor0
----
1444
676
732
skipif mysql # not compatible
query I rowsort label-1180
SELECT + col2 * ( cor0.col2 ) + cor0.col2 / col0 FROM tab2 AS cor0
----
1444
676
732
query I rowsort
SELECT col2 * 77 AS col1 FROM tab1 cor0
----
4158
4389
7392
query I rowsort
SELECT DISTINCT - col0 * + 86 + + col1 AS col1 FROM tab2 AS cor0
----
-571
-6649
-6777
query I rowsort
SELECT DISTINCT + col2 * col2 + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL + col0 * - 62 + col1 AS col2 FROM tab1 cor0
----
-160
-3958
-4947
query I rowsort
SELECT ALL + col2 * ( + 40 ) AS col2 FROM tab2 AS cor0
----
1040
1080
1520
query I rowsort
SELECT ALL + 12 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT ALL + 48 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-34
15
47
query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab2, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - - 83 * 93 FROM tab2 AS cor0
----
7719
query I rowsort
SELECT ALL - 22 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2, tab0 AS cor3
----
3645 values hashing to f2e58df61204c8a189e87d6816ea9159
query I rowsort
SELECT col2 * - 62 AS col2 FROM tab0
----
-2046
-5084
-62
query I rowsort
SELECT 30 * 25 FROM tab1
----
750
750
750
query I rowsort
SELECT - 15 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1195
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT ALL - - 76 + - cor0.col0 * 14 FROM tab0 AS cor0
----
-1170
-260
-414
query I rowsort
SELECT ALL - 8 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
query I rowsort
SELECT ALL - 74 * + col2 AS col2 FROM tab1
----
-3996
-4218
-7104
query I rowsort
SELECT + 64 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT + col2 + - cor0.col1 * - 92 FROM tab0 AS cor0
----
7945
8454
8925
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + - col0 * + cor0.col0 * col0 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT + + 52 * - cor0.col2 FROM tab0 AS cor0
----
-1716
-4264
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1204
SELECT DISTINCT CAST( col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT ALL 59 * col2 * - col0 + - 9 DIV cor0.col1 FROM tab0 cor0
----
-2065
-430582
-46728
skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL 59 * col2 * - col0 + - 9 / cor0.col1 FROM tab0 cor0
----
-2065
-430582
-46728
onlyif mysql # use DIV operator for integer division
query I rowsort label-1206
SELECT ALL - + 95 + cor0.col0 DIV + col0 FROM tab0 AS cor0
----
-94
-94
-94
skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - + 95 + cor0.col0 / + col0 FROM tab0 AS cor0
----
-94
-94
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1207
SELECT DISTINCT + - ( + col2 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT + - ( + col2 ) / + col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 47 - - col2 AS col0 FROM tab2 AS cor0
----
-20
-21
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1209
SELECT + CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1209
SELECT + CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col0 + 78 FROM tab1 AS cor0
----
142
158
81
query I rowsort
SELECT ALL - - ( + 75 ) * cor0.col0 + col1 FROM tab2 AS cor0
----
556
5909
5942
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1212
SELECT ALL CAST( + col2 AS SIGNED ) * col1 col0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL CAST ( + col2 AS INTEGER ) * col1 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col0 * - col0 + + ( col2 ) FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT + - 96 + col1 FROM tab0 AS cor0
----
-10
-5
1
query I rowsort
SELECT ALL 62 * + cor0.col0 - col0 FROM tab2 AS cor0
----
427
4758
4819
query I rowsort
SELECT ALL + - col0 - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - + 59 + + col0 AS col2 FROM tab1 AS cor0
----
-56
21
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 - - col1 col0 FROM tab1 AS cor0
----
-18
-21
-5
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2
----
3645 values hashing to 9a8c5b685ae97f053cdce34c34044cb4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1220
SELECT CAST( + col0 AS SIGNED ) FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1220
SELECT CAST ( + col0 AS INTEGER ) FROM tab0
----
24
35
89
query I rowsort
SELECT - 85 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT ALL 83 * + col1 AS col0 FROM tab2 AS cor0
----
1411
2573
4897
query I rowsort
SELECT DISTINCT - + col1 * + col2 + - 17 FROM tab1 AS cor0
----
-1265
-1421
-587
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1224
SELECT col0 * CAST( col1 + - col1 AS SIGNED ) AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1224
SELECT col0 * CAST ( col1 + - col1 AS INTEGER ) AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + col2 + + 47 - + col2 AS col1 FROM tab0 AS cor0
----
47
47
47
query I rowsort
SELECT col1 + 39 FROM tab2 AS cor0
----
56
70
98
query I rowsort
SELECT DISTINCT - col0 + + 55 FROM tab1 AS cor0
----
-25
-9
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1228
SELECT ALL + col0 + CAST( + 51 AS SIGNED ) FROM tab0 AS cor0
----
140
75
86
skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL + col0 + CAST ( + 51 AS INTEGER ) FROM tab0 AS cor0
----
140
75
86
query I rowsort
SELECT DISTINCT + + col1 + 17 FROM tab1 AS cor0
----
27
30
43
query I rowsort
SELECT DISTINCT - col2 * ( col1 ) AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - col0 * - 98 AS col0 FROM tab0 AS cor0
----
2352
3430
8722
query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 * + 34 col0 FROM tab1
----
-1782
-1881
-3168
query I rowsort
SELECT DISTINCT + col1 + + 45 * col2 FROM tab0 AS cor0
----
142
1571
3781
query I rowsort
SELECT DISTINCT - cor0.col1 + 72 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
6106
6461
6887
query I rowsort
SELECT ALL - 53 + - col2 * + cor0.col0 FROM tab1 AS cor0
----
-215
-3701
-7733
query I rowsort
SELECT DISTINCT + col0 - col0 * col2 * col0 FROM tab2 AS cor0
----
-1316
-158106
-237079
query I rowsort
SELECT 51 + + col1 FROM tab0 AS cor0
----
137
142
148
onlyif mysql # use DIV operator for integer division
query I rowsort label-1239
SELECT DISTINCT + col0 + 18 DIV - col1 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT + col0 + 18 / - col1 AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1240
SELECT ALL - + ( + col1 ) DIV col0 - + col1 AS col0 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL - + ( + col1 ) / col0 - + col1 AS col0 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT DISTINCT - 20 * 45 AS col0 FROM tab0, tab1 AS cor0
----
-900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 83 col2 FROM tab1
----
-13
26
29
query I rowsort
SELECT - + col1 * 4 FROM tab0 cor0
----
-344
-364
-388
query I rowsort
SELECT ALL + - col1 * + 27 FROM tab2 cor0
----
-1593
-459
-837
query I rowsort
SELECT ALL 77 AS col2 FROM tab0
----
77
77
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 col1 FROM tab0
----
-82
-82
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1247
SELECT ( col1 ) * col0 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
119652
51034
5859
skipif mysql # not compatible
query I rowsort label-1247
SELECT ( col1 ) * col0 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - + col1 * - 64 FROM tab1 AS cor0
----
1664
640
832
query I rowsort
SELECT - ( - col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col0 + + col0 * + col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1251
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col0 * ( col2 ) AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - tab1.col1 - - col2 * + ( - col1 ) * - col1 FROM tab1
----
16211
36478
5690
onlyif mysql # use DIV operator for integer division
query I rowsort label-1254
SELECT DISTINCT - col2 DIV - col2 + ( + col2 ) AS col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT - col2 / - col2 + ( + col2 ) AS col2 FROM tab0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1255
SELECT - cor0.col0 DIV + col1 + - col2 * + col2 - col1 FROM tab0 AS cor0
----
-1175
-6815
-98
skipif mysql # not compatible
query I rowsort label-1255
SELECT - cor0.col0 / + col1 + - col2 * + col2 - col1 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT DISTINCT + tab0.col0 * 9 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
216
315
801
query I rowsort
SELECT ALL ( col1 ) + + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT - 88 + - col0 * col2 FROM tab0
----
-123
-7386
-880
query I rowsort
SELECT col2 * col0 * 81 + col0 FROM tab0
----
2870
591227
64176
query I rowsort
SELECT DISTINCT tab0.col2 + + tab0.col1 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT col2 + col2 + - ( - col0 ) * col1 FROM tab0
----
2130
3397
8263
query I rowsort
SELECT ALL - - col0 * - ( cor0.col0 ) + + col0 * col1 FROM tab2 cor0
----
-1482
-4898
168
query I rowsort
SELECT ALL + - cor0.col1 + + 73 * + 98 * col0 AS col0 FROM tab1 cor0
----
21436
457846
572307
query I rowsort
SELECT ALL + - cor0.col0 * - ( col2 ) + + col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1265
SELECT - CAST( - tab0.col2 AS SIGNED ) col0 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1265
SELECT - CAST ( - tab0.col2 AS INTEGER ) col0 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + col0 col2 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1267
SELECT + + cor0.col2 * CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-1267
SELECT + + cor0.col2 * CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 * 58 + col1 AS col0 FROM tab1 AS cor0
----
3158
3316
5581
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 col1 FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1270
SELECT ALL cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 78 * col2 * 50 FROM tab0 cor0
----
128700
319800
3900
query I rowsort
SELECT DISTINCT - col2 + + col1 * - 14 FROM tab0 AS cor0
----
-1237
-1356
-1359
query I rowsort
SELECT + 97 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT col0 * col0 - col1 * - cor0.col0 FROM tab0 cor0
----
16020
2640
4620
query I rowsort
SELECT - 31 * col2 + 22 FROM tab2 AS cor0
----
-1156
-784
-815
query I rowsort
SELECT col1 - col2 * col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT - cor0.col0 * + col1 + + ( col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-1272
-3360
-801
onlyif mysql # use DIV operator for integer division
query I rowsort label-1278
SELECT - col1 DIV col0 + ( - 88 ) * - col1 - col2 FROM tab2
----
1458
2697
5166
skipif mysql # not compatible
query I rowsort label-1278
SELECT - col1 / col0 + ( - 88 ) * - col1 - col2 FROM tab2
----
1458
2697
5166
query I rowsort
SELECT 38 + + tab0.col0 AS col1 FROM tab0
----
127
62
73
query I rowsort
SELECT + 90 + - tab0.col1 * col2 - - col0 AS col1 FROM tab0
----
-2724
-7283
28
query I rowsort
SELECT DISTINCT col1 - + col2 * tab1.col0 FROM tab1
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 84 col2 FROM tab1 AS cor0
----
-252
-5376
-6720
query I rowsort
SELECT + - 17 AS col1 FROM tab0 AS cor0
----
-17
-17
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-1284
SELECT + - col0 + cor0.col1 DIV cor0.col1 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-1284
SELECT + - col0 + cor0.col1 / cor0.col1 FROM tab2 AS cor0
----
-6
-77
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT - + col1 * + cor0.col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1285
SELECT - + col1 * + cor0.col0 / col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col2 * + 34 FROM tab0
----
1122
2788
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1287
SELECT + cor0.col2 * col2 DIV col0 FROM tab1 cor0
----
115
50
972
skipif mysql # not compatible
query I rowsort label-1287
SELECT + cor0.col2 * col2 / col0 FROM tab1 cor0
----
115
50
972
query I rowsort
SELECT + - col1 + + ( - cor0.col2 ) * - 90 AS col2 FROM tab2 AS cor0
----
2281
2399
3403
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 4 + - col1 * cor0.col0 col1 FROM tab2 cor0
----
-1275
-4366
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1290
SELECT + - CAST( - 82 AS SIGNED ) + col2 FROM tab2 AS cor0
----
108
109
120
skipif mysql # not compatible
query I rowsort label-1290
SELECT + - CAST ( - 82 AS INTEGER ) + col2 FROM tab2 AS cor0
----
108
109
120
query I rowsort
SELECT ALL - 31 AS col2 FROM tab2
----
-31
-31
-31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1292
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-1292
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL - col0 * ( col1 ) AS col0 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT DISTINCT - col2 DIV 60 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT - col2 / 60 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - + 78 + + col2 FROM tab2 AS cor0
----
-40
-51
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1296
SELECT DISTINCT + - ( col0 ) * + CAST( ( - col2 ) * 93 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17577
188604
279186
skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT + - ( col0 ) * + CAST ( ( - col2 ) * 93 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17577
188604
279186
onlyif mysql # use DIV operator for integer division
query I rowsort label-1297
SELECT DISTINCT - ( - col1 ) + - col1 DIV 25 + - col2 AS col1 FROM tab0 cor0
----
50
6
93
skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT - ( - col1 ) + - col1 / 25 + - col2 AS col1 FROM tab0 cor0
----
50
6
93
query I rowsort
SELECT ALL + col0 * col2 + col2 * col0 AS col1 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT - col1 * - col1 * - 66 AS col1 FROM tab1 AS cor0
----
-11154
-44616
-6600
onlyif mysql # use DIV operator for integer division
query I rowsort label-1300
SELECT DISTINCT + + 17 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT + + 17 / + col1 AS col2 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT ALL ( - col2 + col2 ) FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + - ( col2 ) + - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL - + ( + col0 ) * - col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - ( - col2 ) * col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT cor0.col1 * - ( col2 ) + - col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL - col0 + - 64 FROM tab0
----
-153
-88
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * - cor0.col0 col1 FROM tab1 AS cor0
----
-216
-3705
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-1308
SELECT - - cor0.col0 DIV + col2 + col1 * - col2 FROM tab0 cor0
----
-2838
-62
-7461
skipif mysql # not compatible
query I rowsort label-1308
SELECT - - cor0.col0 / + col2 + col1 * - col2 FROM tab0 cor0
----
-2838
-62
-7461
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1309
SELECT col2 + CAST( 19 AS SIGNED ) * - col0 col1 FROM tab0 AS cor0
----
-1609
-423
-664
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1309
SELECT col2 + CAST ( 19 AS INTEGER ) * - col0 col1 FROM tab0 AS cor0
----
-1609
-423
-664
onlyif mysql # use DIV operator for integer division
query I rowsort label-1310
SELECT - col1 + 13 DIV - 34 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1310
SELECT - col1 + 13 / - 34 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + col2 + 51 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1254
-139
-4525
query I rowsort
SELECT DISTINCT - - cor0.col1 - col2 * 62 FROM tab0 AS cor0
----
-1960
-4993
35
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT DISTINCT + col0 * - col0 + cor0.col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT 90 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b
query I rowsort
SELECT ALL tab0.col0 * tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d2e5241c58e367013a1a203910e000c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1317
SELECT ALL tab1.col1 DIV col2 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL tab1.col1 / col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + tab2.col0 + + col0 * 7 FROM tab2
----
56
624
632
query I rowsort
SELECT + col0 + - 27 * ( col1 ) AS col1 FROM tab2 AS cor0
----
-1515
-380
-830
query I rowsort
SELECT ( tab1.col2 ) + cor1.col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 193f02533a54aa725386e300dcc85182
query I rowsort
SELECT - - col2 + 91 * - col1 AS col1 FROM tab0 AS cor0
----
-7793
-8199
-8826
query I rowsort
SELECT ALL - - col0 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT - cor0.col1 * + 98 AS col1 FROM tab2 AS cor0
----
-1666
-3038
-5782
onlyif mysql # use DIV operator for integer division
query I rowsort label-1324
SELECT ALL - - col0 DIV - CAST( - 24 * col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - - col0 / - CAST ( - 24 * col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1326
SELECT + col0 DIV + 78 col1 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1326
SELECT + col0 / + 78 col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + col2 + col1 * 29 FROM tab1 cor0
----
347
473
808
query I rowsort
SELECT DISTINCT + col1 * 57 FROM tab0 AS cor0
----
4902
5187
5529
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 32 * ( - col2 ) * + 96 col0 FROM tab0 AS cor0
----
-101290
-251813
-2975
query I rowsort
SELECT ALL + col0 + + 78 AS col2 FROM tab2 AS cor0
----
156
157
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1331
SELECT + + cor0.col1 DIV - col0 col1 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1331
SELECT + + cor0.col1 / - col0 col1 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT col0 * ( + col1 ) - + col1 FROM tab2 cor0
----
1326
186
4543
query I rowsort
SELECT - - cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + 74 * + col1 FROM tab2
----
1258
2294
4366
query I rowsort
SELECT ALL - - 65 + 17 FROM tab2 cor0
----
82
82
82
query I rowsort
SELECT DISTINCT + 32 * cor0.col0 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT ALL - 33 + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2805
64
7429
query I rowsort
SELECT - cor0.col1 * 28 FROM tab0 cor0
----
-2408
-2548
-2716
query I rowsort
SELECT - - col1 * - col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - cor0.col1 + col0 + col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + col2 + col2 * - ( + col0 ) FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT col1 * + col1 AS col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT - 3 + col0 AS col0 FROM tab2 AS cor0
----
4
75
76
query I rowsort
SELECT DISTINCT - + ( + col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - cor0.col2 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + + 30 AS col2 FROM tab1 AS cor0
----
30
query I rowsort
SELECT ALL + 74 AS col1 FROM tab1
----
74
74
74
query I rowsort
SELECT col0 + col0 * 4 FROM tab0 cor0
----
120
175
445
onlyif mysql # use DIV operator for integer division
query I rowsort label-1349
SELECT ALL - + col1 DIV - col2 + col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL - + col1 / - col2 + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + + 96 * col1 + ( col1 ) FROM tab1 AS cor0
----
1261
2522
970
query I rowsort
SELECT 70 * - col1 + + col1 AS col1 FROM tab0 AS cor0
----
-5934
-6279
-6693
onlyif mysql # use DIV operator for integer division
query I rowsort label-1352
SELECT ALL + + col0 DIV col1 col0 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL + + col0 / col1 col0 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + col2 col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + col1 * + col0 - ( + col0 ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-3456
-5360
69
query I rowsort
SELECT ALL + 5 + cor0.col2 * + col2 FROM tab2 AS cor0
----
1449
681
734
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1356
SELECT - - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1356
SELECT - - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - col2 + + col0 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT 69 * col2 - col2 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT ALL + ( + 80 ) AS col0 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 * - col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1361
SELECT DISTINCT - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + cor0.col0 * - 67 FROM tab0 cor0
----
-1608
-2345
-5963
query I rowsort
SELECT ALL col2 * + col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + ( + cor0.col1 ) - col2 AS col2 FROM tab1 cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1365
SELECT + 44 DIV 30 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-1365
SELECT + 44 / 30 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT 33 + 64 FROM tab1
----
97
query I rowsort
SELECT DISTINCT - col2 + 48 FROM tab2
----
10
21
22
query I rowsort
SELECT col2 + col2 + + tab2.col0 FROM tab2
----
130
155
61
skipif mysql # not compatible
query I rowsort
SELECT col2 * - ( - tab1.col0 * - CAST ( + col2 AS REAL ) ) + - col0 FROM tab1
----
-208000
-737360
-8751
query I rowsort
SELECT + - col2 + + cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col0 + 49 FROM tab2, tab2 AS cor0
----
127
128
56
query I rowsort
SELECT DISTINCT col1 * - col0 + + tab2.col2 AS col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT ALL col0 + + col2 * + col1 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT - col0 + - col1 DIV + col0 + - 30 * tab1.col0 DIV col0 FROM tab1
----
-110
-41
-94
skipif mysql # not compatible
query I rowsort label-1374
SELECT - col0 + - col1 / + col0 + - 30 * tab1.col0 / col0 FROM tab1
----
-110
-41
-94
query I rowsort
SELECT - - cor0.col1 * col2 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT col1 * 93 AS col0 FROM tab1 cor0
----
1209
2418
930
query I rowsort
SELECT + col2 + - 2 AS col0 FROM tab1 AS cor0
----
52
55
94
query I rowsort
SELECT ALL col2 * ( 5 + - col1 * ( + col2 ) ) AS col0 FROM tab2
----
-22464
-24358
-39754
query I rowsort
SELECT DISTINCT + 44 FROM tab0, tab1 cor0
----
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1380
SELECT - CAST( - col2 AS SIGNED ) * + col1 FROM tab0 cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-1380
SELECT - CAST ( - col2 AS INTEGER ) * + col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + 65 - + col1 AS col0 FROM tab1 AS cor0
----
39
52
55
query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + col1 - 25 AS col0 FROM tab0 AS cor0
----
169
2899
7528
query I rowsort
SELECT DISTINCT + + 31 * col2 FROM tab0 AS cor0
----
1023
2542
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-1384
SELECT ALL + 65 * 73 + cor0.col1 DIV 97 FROM tab0 AS cor0
----
4745
4745
4746
skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL + 65 * 73 + cor0.col1 / 97 FROM tab0 AS cor0
----
4745
4745
4746
query I rowsort
SELECT ALL 56 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT DISTINCT 64 + + col0 * col0 + 6 FROM tab1
----
4166
6470
79
query I rowsort
SELECT + + 74 * + col1 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
547280
612705
696231
query I rowsort
SELECT 2 * - tab0.col0 AS col2 FROM tab0
----
-178
-48
-70
skipif mysql # not compatible
query I rowsort
SELECT + - col0 * + col2 * CAST ( col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + - col2 + + col2 * + 80 FROM tab0 AS cor0
----
2607
6478
79
query I rowsort
SELECT DISTINCT col1 * - 22 FROM tab2
----
-1298
-374
-682
query I rowsort
SELECT ( - col0 ) + col0 * - col0 + - col1 FROM tab0
----
-1357
-686
-8101
query I rowsort
SELECT DISTINCT 13 * + col2 FROM tab0
----
1066
13
429
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
7
query I rowsort
SELECT ALL + 70 AS col2 FROM tab2
----
70
70
70
query I rowsort
SELECT col0 * - col1 + - 87 FROM tab0 AS cor0
----
-2151
-3482
-8186
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 41 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1398
SELECT + - 79 DIV col0 FROM tab2 AS cor0
----
-1
-1
-11
skipif mysql # not compatible
query I rowsort label-1398
SELECT + - 79 / col0 FROM tab2 AS cor0
----
-1
-1
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-1399
SELECT - - col1 DIV col0 + + 52 + + col2 AS col1 FROM tab2 cor0
----
78
83
90
skipif mysql # not compatible
query I rowsort label-1399
SELECT - - col1 / col0 + + 52 + + col2 AS col1 FROM tab2 cor0
----
78
83
90
query I rowsort
SELECT - col1 * ( + 19 ) + col2 AS col0 FROM tab2 AS cor0
----
-1095
-285
-562
query I rowsort
SELECT + col2 + + tab2.col2 AS col0 FROM tab2
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1402
SELECT ALL + 70 * col1 + - col1 + tab0.col2 DIV tab0.col2 FROM tab0
----
5935
6280
6694
skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL + 70 * col1 + - col1 + tab0.col2 / tab0.col2 FROM tab0
----
5935
6280
6694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + tab2.col0 col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT 31 * col1 + + 86 AS col1 FROM tab2
----
1047
1915
613
query I rowsort
SELECT DISTINCT - col1 + tab0.col2 * col1 FROM tab0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-1406
SELECT DISTINCT - col1 DIV col2 AS col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT - col1 / col2 AS col0 FROM tab1
----
0
query I rowsort
SELECT col0 * col2 - + col1 AS col1 FROM tab2
----
158
1969
2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + - col0 col2 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1409
SELECT + + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1409
SELECT + + col0 / col2 AS col0 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1410
SELECT ALL col1 * - CAST( - 65 AS SIGNED ) FROM tab2 cor0
----
1105
2015
3835
skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL col1 * - CAST ( - 65 AS INTEGER ) FROM tab2 cor0
----
1105
2015
3835
query I rowsort
SELECT cor0.col0 * - 53 + 34 AS col1 FROM tab2 cor0
----
-337
-4100
-4153
query I rowsort
SELECT DISTINCT - col0 * 80 * - 44 AS col2 FROM tab2 cor0
----
24640
274560
278080
query I rowsort
SELECT ALL - col1 + col2 * + 51 AS col2 FROM tab1 AS cor0
----
2728
2897
4883
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1414
SELECT - - CAST( col2 AS SIGNED ) * col2 + cor0.col0 FROM tab0 AS cor0
----
1113
36
6813
skipif mysql # not compatible
query I rowsort label-1414
SELECT - - CAST ( col2 AS INTEGER ) * col2 + cor0.col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL cor0.col0 * + col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - 79 + col0 AS col0 FROM tab2 AS cor0
----
-1
-72
0
query I rowsort
SELECT ALL + 21 + - col2 AS col1 FROM tab2 AS cor0
----
-17
-5
-6
query I rowsort
SELECT + ( col2 ) + col1 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT - + col2 + 90 AS col2 FROM tab2 AS cor0
----
52
63
64
query I rowsort
SELECT ALL - ( - col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - - 51 FROM tab0 AS cor0
----
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-1422
SELECT DISTINCT + - col1 DIV - 54 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT + - col1 / - 54 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1423
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1424
SELECT + cor0.col0 + col0 DIV col2 col1 FROM tab0 AS cor0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1424
SELECT + cor0.col0 + col0 / col2 col1 FROM tab0 AS cor0
----
24
70
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1425
SELECT DISTINCT col1 + 90 * col2 DIV - tab0.col0 FROM tab0
----
-37
9
95
skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT col1 + 90 * col2 / - tab0.col0 FROM tab0
----
-37
9
95
query I rowsort
SELECT + col2 * + 76 + 89 * + col0 FROM tab2
----
2675
8918
9919
query I rowsort
SELECT DISTINCT col1 + - col2 + + tab0.col2 * - col0 AS col0 FROM tab0
----
-7289
-739
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * + ( col0 + col2 ) col1 FROM tab0
----
133
14113
1967
query I rowsort
SELECT - tab2.col0 * 84 FROM tab2
----
-588
-6552
-6636
onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT + + 93 + - col2 + + col0 DIV cor0.col1 FROM tab1 AS cor0
----
3
39
42
skipif mysql # not compatible
query I rowsort label-1430
SELECT + + 93 + - col2 + + col0 / cor0.col1 FROM tab1 AS cor0
----
3
39
42
query I rowsort
SELECT col0 * col0 + - 15 AS col2 FROM tab2
----
34
6069
6226
query I rowsort
SELECT col1 * 78 + col0 AS col2 FROM tab2
----
1405
2425
4680
query I rowsort
SELECT + col2 * - 63 FROM tab1
----
-3402
-3591
-6048
query I rowsort
SELECT DISTINCT 65 * - col1 AS col0 FROM tab0
----
-5590
-5915
-6305
query I rowsort
SELECT ALL + - col2 * col2 * - col2 + col2 * + col2 * col0 + col2 AS col0 FROM tab2 AS cor0
----
168986
24813
70330
query I rowsort
SELECT + cor0.col0 * + cor0.col0 * - col1 + 27 FROM tab2 AS cor0
----
-106070
-1492
-358929
query I rowsort
SELECT ALL - col2 + col0 * + col1 FROM tab0 AS cor0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-1438
SELECT ALL + - ( - col0 ) * + col0 + 50 - + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
1275
626
7971
skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + - ( - col0 ) * + col0 + 50 - + col2 / col1 AS col2 FROM tab0 AS cor0
----
1275
626
7971
onlyif mysql # use DIV operator for integer division
query I rowsort label-1439
SELECT DISTINCT + col2 * - 87 - + col2 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-4716
-4959
-8353
skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + col2 * - 87 - + col2 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-4716
-4959
-8353
query I rowsort
SELECT 3 FROM tab0, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT DISTINCT - col2 * - col2 - - tab0.col1 AS col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL - + col0 * 39 FROM tab0 AS cor0
----
-1365
-3471
-936
query I rowsort
SELECT - 34 AS col2 FROM tab2
----
-34
-34
-34
query I rowsort
SELECT - col1 * + col2 + - col0 + col1 * - col0 FROM tab1
----
-1274
-1485
-2368
query I rowsort
SELECT DISTINCT - 0 FROM tab1, tab0 cor0
----
0
query I rowsort
SELECT DISTINCT tab1.col2 + + 0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col2 + - col2 + - 66 * col0 FROM tab0
----
-1584
-2310
-5874
onlyif mysql # use DIV operator for integer division
query I rowsort label-1448
SELECT + col1 + + col2 DIV col0 + + col0 AS col0 FROM tab0
----
111
132
180
skipif mysql # not compatible
query I rowsort label-1448
SELECT + col1 + + col2 / col0 + + col0 AS col0 FROM tab0
----
111
132
180
query I rowsort
SELECT ALL - 21 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT DISTINCT + + col1 * + col2 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL ( 31 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT + 35 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT - - col1 - - col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT - + col0 + - 75 * - col2 AS col2 FROM tab1 AS cor0
----
4047
4211
7120
query I rowsort
SELECT col1 * 57 FROM tab2 AS cor0
----
1767
3363
969
query I rowsort
SELECT DISTINCT - col0 * col2 + ( col1 ) AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + col2 * 93 AS col0 FROM tab1
----
5022
5301
8928
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col0 FROM tab2, tab1 AS cor0
----
82
query I rowsort
SELECT ALL - 20 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT DISTINCT col2 + - col0 * 62 FROM tab1 AS cor0
----
-132
-3911
-4864
query I rowsort
SELECT - col1 + cor0.col0 * 48 AS col1 FROM tab2 AS cor0
----
305
3685
3775
query I rowsort
SELECT ALL - cor0.col0 * col0 + 18 AS col1 FROM tab1 AS cor0
----
-4078
-6382
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1463
SELECT cor0.col2 + - col0 * - 8 * - col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1463
SELECT cor0.col2 + - col0 * - 8 * - col1 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * ( + col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col1 col2 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1466
SELECT ALL + col1 DIV col1 + + cor0.col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL + col1 / col1 + + cor0.col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT DISTINCT + col2 * - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - - 28 AS col0 FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT - 41 + cor0.col1 + col0 * - 24 FROM tab1 AS cor0
----
-1567
-1948
-87
query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab2, tab1 AS cor0
----
-68
query I rowsort
SELECT DISTINCT - - ( + 96 ) * - col2 + - cor0.col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-2581
-2650
-3703
onlyif mysql # use DIV operator for integer division
query I rowsort label-1472
SELECT DISTINCT + cor0.col1 DIV col1 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + cor0.col1 / col1 AS col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL + col1 * - col2 + + tab2.col2 * - col0 FROM tab2
----
-1026
-3562
-3648
query I rowsort
SELECT - col1 - - cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT ALL + col2 * col2 DIV 21 AS col2 FROM tab2 cor0
----
32
34
68
skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + col2 * col2 / 21 AS col2 FROM tab2 cor0
----
32
34
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * + col2 col1 FROM tab1 AS cor0
----
3780
3990
6720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1477
SELECT DISTINCT - col1 * cor0.col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT - col1 * cor0.col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT cor0.col0 * 59 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to edd28b1f281662ecf58420e7732dbdc3
query I rowsort
SELECT ALL + col0 * - col1 + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - 56 * col0 + col1 FROM tab0 AS cor0
----
-1258
-1863
-4893
query I rowsort
SELECT + 68 AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT DISTINCT col2 * ( - cor0.col1 ) + - cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-10234
-15743
-9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1483
SELECT ALL col1 * + CAST( NULL AS DECIMAL ) 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-1483
SELECT ALL col1 * + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col2 * 72 + col0 FROM tab1 AS cor0
----
3891
4168
6992
query I rowsort
SELECT - col2 + - col2 AS col2 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT - ( - col0 ) + + 13 FROM tab1
----
16
77
93
query I rowsort
SELECT ALL + 38 AS col2 FROM tab2
----
38
38
38
query I rowsort
SELECT ALL - 43 + tab1.col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 13c005c8720ba79ebc748d314cc13041
onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT ALL - col2 DIV - tab0.col0 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - col2 / - tab0.col0 AS col1 FROM tab0
----
0
0
1
query I rowsort
SELECT + - 93 AS col2 FROM tab2 AS cor0
----
-93
-93
-93
query I rowsort
SELECT + col2 * - col0 + 10 AS col1 FROM tab2 AS cor0
----
-179
-2018
-2992
onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT ALL - + col2 + - col2 DIV col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL - + col2 + - col2 / col2 FROM tab0 AS cor0
----
-2
-34
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1493
SELECT ALL CAST( - 84 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL CAST ( - 84 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
query I rowsort
SELECT cor0.col1 + 14 FROM tab2 cor0
----
31
45
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + 13 col1 FROM tab0 AS cor0
----
-11
-22
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 + col0 col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 * 27 FROM tab2 AS cor0
----
-5103
-54756
-81054
query I rowsort
SELECT + 29 * - tab1.col1 FROM tab1
----
-290
-377
-754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * ( + col2 * - col1 ) col0 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT DISTINCT - - ( + cor0.col2 ) * col2 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
2787
5278
946
onlyif mysql # use DIV operator for integer division
query I rowsort label-1501
SELECT ALL 97 DIV col2 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL 97 / col2 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT - + 81 * + cor0.col2 FROM tab1 AS cor0
----
-4374
-4617
-7776
query I rowsort
SELECT + ( col0 ) * + col2 AS col0 FROM tab0
----
35
7298
792
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 62 * col1 - 40 AS col0 FROM tab2 AS cor0
----
1014
1882
3618
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * + col1 col1 FROM tab1 AS cor0
----
150
195
390
query I rowsort
SELECT ALL + - col1 * + col0 - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL - - col0 * - col1 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1509
SELECT ALL + - col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL + - col1 / - col1 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT col1 * - tab1.col2 + - tab1.col2 AS col0 FROM tab1
----
-1344
-1458
-627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1511
SELECT DISTINCT cor0.col2 * + CAST( - col2 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98
skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT cor0.col2 * + CAST ( - col2 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1512
SELECT DISTINCT - - col0 DIV + ( cor0.col0 ) + col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT - - col0 / + ( cor0.col0 ) + col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT tab1.col2 * + tab1.col1 + + ( - 64 ) * + col1 + + ( - tab1.col1 ) * - col1 AS col2 FROM tab1
----
30
416
585
query I rowsort
SELECT DISTINCT + ( + tab0.col2 ) * col1 + - col1 AS col1 FROM tab0
----
0
2752
7371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1515
SELECT ALL - CAST( cor0.col0 AS SIGNED ) * + col1 * - col1 FROM tab0 AS cor0
----
177504
329315
737009
skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL - CAST ( cor0.col0 AS INTEGER ) * + col1 * - col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT ALL - cor0.col2 + 5 * col1 AS col0 FROM tab2 AS cor0
----
128
269
47
query I rowsort
SELECT - 97 AS col1 FROM tab2 cor0
----
-97
-97
-97
query I rowsort
SELECT DISTINCT + 74 * 78 FROM tab0 AS cor0
----
5772
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1519
SELECT DISTINCT CAST( NULL AS SIGNED ) - + tab0.col2 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + tab0.col2 AS col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + 74 * + cor0.col1 - col1 FROM tab0 AS cor0
----
6278
6643
7081
query I rowsort
SELECT col0 * col2 + + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT 59 * + ( col0 ) FROM tab2 cor0
----
413
4602
4661
query I rowsort
SELECT DISTINCT + 68 * 88 AS col2 FROM tab0 AS cor0
----
5984
query I rowsort
SELECT ( + 22 ) * col0 FROM tab2 cor0
----
154
1716
1738
query I rowsort
SELECT - 64 * col0 + - col1 FROM tab1 AS cor0
----
-218
-4106
-5133
query I rowsort
SELECT ALL col0 + ( + col2 ) * + col0 AS col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT - - col1 * - cor0.col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL - 88 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32
query I rowsort
SELECT + col0 * ( col1 ) + tab2.col2 AS col2 FROM tab2
----
1381
244
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1530
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1530
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT + col0 * ( + col2 ) AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col1 * 98 - - col2 * col0 AS col2 FROM tab2 AS cor0
----
-2849
-3754
1336
query I rowsort
SELECT col0 - + cor0.col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1534
SELECT ALL col2 + cor0.col0 DIV col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL col2 + cor0.col0 / col0 FROM tab2 AS cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - col1 * + cor0.col1 col1 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT + col1 * col1 + + cor0.col2 AS col0 FROM tab2 cor0
----
327
3507
988
query I rowsort
SELECT ALL col1 * + col1 + + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT cor0.col1 * - ( col2 ) - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * col1 + + col1 + 70 * col2 FROM tab1 AS cor0
----
2402
3430
5485
onlyif mysql # use DIV operator for integer division
query I rowsort label-1540
SELECT - col1 DIV col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-1540
SELECT - col1 / col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
84
90
query I rowsort
SELECT DISTINCT + - ( - col1 ) * cor0.col1 + - 26 * 94 AS col0 FROM tab1 AS cor0
----
-1768
-2275
-2344
onlyif mysql # use DIV operator for integer division
query I rowsort label-1542
SELECT DISTINCT 10 + + 10 DIV cor0.col1 AS col2 FROM tab0 cor0
----
10
skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT 10 + + 10 / cor0.col1 AS col2 FROM tab0 cor0
----
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1543
SELECT col2 + col0 + - col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1543
SELECT col2 + col0 + - col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1544
SELECT col0 DIV cor0.col0 AS col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1544
SELECT col0 / cor0.col0 AS col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - tab0.col0 + + 3 FROM tab0
----
-21
-32
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1546
SELECT ALL col1 + + CAST( tab1.col0 AS SIGNED ) FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL col1 + + CAST ( tab1.col0 AS INTEGER ) FROM tab1
----
29
74
93
query I rowsort
SELECT - + 12 * - col2 FROM tab2 AS cor0
----
312
324
456
onlyif mysql # use DIV operator for integer division
query I rowsort label-1548
SELECT DISTINCT + col1 DIV - cor0.col2 + col2 * 62 FROM tab1 AS cor0
----
3348
3534
5952
skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT + col1 / - cor0.col2 + col2 * 62 FROM tab1 AS cor0
----
3348
3534
5952
query I rowsort
SELECT ALL + - col1 * - cor0.col2 - 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-1550
SELECT DISTINCT - col0 * + col0 + + CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT - col0 * + col0 + + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 3 * - col1 + col1 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-1633
-618
-923
query I rowsort
SELECT - ( + col0 ) + 46 AS col2 FROM tab2 AS cor0
----
-32
-33
39
query I rowsort
SELECT + 44 * + ( - col1 ) - col1 FROM tab0
----
-3870
-4095
-4365
query I rowsort
SELECT 47 * col0 AS col2 FROM tab1 cor0
----
141
3008
3760
query I rowsort
SELECT DISTINCT 46 + + col0 AS col0 FROM tab1 AS cor0
----
110
126
49
query I rowsort
SELECT ALL + - col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 * - cor0.col2 col0 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab2 cor0
----
12
query I rowsort
SELECT - col2 - ( col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL + 52 AS col2 FROM tab1
----
52
52
52
query I rowsort
SELECT ALL + ( - tab0.col0 ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT col0 * - 8 * 87 AS col2 FROM tab0 AS cor0
----
-16704
-24360
-61944
query I rowsort
SELECT + + col2 * + cor0.col2 AS col1 FROM tab1 cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + col1 * - tab1.col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + + col1 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT - col0 * + 74 FROM tab1
----
-222
-4736
-5920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + 88 * tab2.col0 + + col2 AS col2 FROM tab2
----
643
6890
6990
query I rowsort
SELECT 83 + 60 * col0 AS col2 FROM tab1 AS cor0
----
263
3923
4883
query I rowsort
SELECT ALL - 71 * 38 * col1 AS col1 FROM tab2 AS cor0
----
-159182
-45866
-83638
onlyif mysql # use DIV operator for integer division
query I rowsort label-1572
SELECT DISTINCT + 40 DIV - col0 FROM tab1 AS cor0
----
-13
0
skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + 40 / - col0 FROM tab1 AS cor0
----
-13
0
query I rowsort
SELECT ALL + 58 + - cor0.col1 * + col2 FROM tab0 AS cor0
----
-2780
-39
-7404
onlyif mysql # use DIV operator for integer division
query I rowsort label-1574
SELECT - col2 + col1 * col2 DIV col1 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1574
SELECT - col2 + col1 * col2 / col1 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 88 * col0 FROM tab1
----
-264
-5632
-7040
query I rowsort
SELECT DISTINCT + + 1 * - col2 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1577
SELECT 81 DIV col2 AS col1 FROM tab0 AS cor0
----
0
2
81
skipif mysql # not compatible
query I rowsort label-1577
SELECT 81 / col2 AS col1 FROM tab0 AS cor0
----
0
2
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1578
SELECT + - col0 DIV - col1 AS col2 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-1578
SELECT + - col0 / - col1 AS col2 FROM tab1 cor0
----
0
6
6
query I rowsort
SELECT - tab1.col1 * col2 * - 4 FROM tab1
----
2280
4992
5616
query I rowsort
SELECT ALL + 69 * col0 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
94
query I rowsort
SELECT ALL + 33 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT - col0 * + col1 - + tab2.col1 AS col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT ALL + cor1.col2 * ( 15 ) + + cor1.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 802517b08f6ea916c23ef2f189bd6c0b
query I rowsort
SELECT 98 * col0 AS col1 FROM tab2 AS cor0
----
686
7644
7742
query I rowsort
SELECT + col1 + - col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1587
SELECT + - CAST( col1 AS SIGNED ) col2 FROM tab2 cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1587
SELECT + - CAST ( col1 AS INTEGER ) col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - + col0 + cor0.col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab2
----
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1590
SELECT DISTINCT tab2.col2 DIV + 64 FROM tab2, tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT tab2.col2 / + 64 FROM tab2, tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - ( col2 ) col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + ( + col0 ) + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + col0 * ( - ( col1 ) ) * - col1 - + ( col0 ) AS col2 FROM tab2 AS cor0
----
22752
271440
6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col0 * + col0 + - cor0.col1 + ( - 54 ) col2 FROM tab1 AS cor0
----
154
40896
83133
query I rowsort
SELECT + + col2 - 96 FROM tab1 AS cor0
----
-39
-42
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 + - col0 col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT 52 + - col2 + col1 FROM tab2
----
31
56
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1598
SELECT CAST( NULL AS SIGNED ) + cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1598
SELECT CAST ( NULL AS INTEGER ) + cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 7 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT ALL + 86 FROM tab2, tab1 AS cor0, tab0 cor1, tab0, tab0 AS cor2
----
243 values hashing to 435f4131b25a0822065966508fa6e31a
query I rowsort
SELECT - col1 + ( col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL col2 + + col0 - - cor0.col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL + col2 + + ( ( col2 ) ) FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + cor0.col1 + 83 * + cor0.col1 FROM tab1 AS cor0
----
1092
2184
840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1605
SELECT CAST( NULL AS SIGNED ) - col1 * + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1605
SELECT CAST ( NULL AS INTEGER ) - col1 * + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( 72 ) + + col1 * + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-16296
-36576
-5772
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * col1 col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + + col0 + col0 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1378
-488
-823
query I rowsort
SELECT + - ( 35 ) + - col1 AS col0 FROM tab1 AS cor0
----
-45
-48
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-1610
SELECT DISTINCT - + 12 DIV - cor0.col0 + + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
5
6
7
skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT - + 12 / - cor0.col0 + + col2 / col1 AS col0 FROM tab1 AS cor0
----
5
6
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + ( + col1 ) + cor0.col1 col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT ALL + + tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 * col0 + + col2 col0 FROM tab0 AS cor0
----
1425
2031
5244
query I rowsort
SELECT ALL + - col0 * - 69 FROM tab1 AS cor0
----
207
4416
5520
onlyif mysql # use DIV operator for integer division
query I rowsort label-1615
SELECT DISTINCT - - col2 DIV 63 + + col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT - - col2 / 63 + + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT col0 + - col1 * - col0 + col0 * - 79 AS col0 FROM tab1 AS cor0
----
-156
-4352
-5200
query I rowsort
SELECT ALL col2 - + ( col2 ) FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col2 * col1 - + 28 AS col1 FROM tab2
----
1506
618
809
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - 95 col1 FROM tab0
----
181
186
192
query I rowsort
SELECT ALL - - cor0.col1 * col1 + + 45 AS col0 FROM tab1 AS cor0
----
145
214
721
onlyif mysql # use DIV operator for integer division
query I rowsort label-1621
SELECT ALL - col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL - col2 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1622
SELECT + col0 DIV col2 - - col2 FROM tab0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-1622
SELECT + col0 / col2 - - col2 FROM tab0
----
33
36
83
query I rowsort
SELECT - col1 * - 98 + col2 AS col2 FROM tab2
----
1704
3065
5808
query I rowsort
SELECT ALL + ( 53 ) FROM tab0
----
53
53
53
query I rowsort
SELECT ALL + 32 + + 70 AS col1 FROM tab2 AS cor0
----
102
102
102
onlyif mysql # use DIV operator for integer division
query I rowsort label-1626
SELECT + ( col1 ) + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-1626
SELECT + ( col1 ) + col1 / + col1 AS col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT ALL + 37 * col0 FROM tab1 AS cor0
----
111
2368
2960
query I rowsort
SELECT ALL - + 76 FROM tab0 AS cor0
----
-76
-76
-76
query I rowsort
SELECT 87 + col0 * col1 FROM tab2 AS cor0
----
1430
304
4689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1630
SELECT - CAST( col2 + - col2 AS SIGNED ) AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1630
SELECT - CAST ( col2 + - col2 AS INTEGER ) AS col0 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1631
SELECT - CAST( NULL AS SIGNED ) + + 74 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1631
SELECT - CAST ( NULL AS INTEGER ) + + 74 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 70 * - col2 AS col1 FROM tab0 AS cor0
----
-2310
-5740
-70
query I rowsort
SELECT + + 31 + + col1 AS col0 FROM tab2 AS cor0
----
48
62
90
query I rowsort
SELECT ALL + + 86 * col1 AS col2 FROM tab2 AS cor0
----
1462
2666
5074
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col2 + - 87 FROM tab2 AS cor0
----
1357
589
642
query I rowsort
SELECT DISTINCT - 85 + + col1 AS col2 FROM tab0 AS cor0
----
1
12
6
query I rowsort
SELECT + + col1 * + col1 * 0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 53 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda
onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT - cor0.col2 DIV cor0.col1 + + 42 DIV + col0 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
82
skipif mysql # not compatible
query I rowsort label-1639
SELECT - cor0.col2 / cor0.col1 + + 42 / + col0 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
82
query I rowsort
SELECT + 25 + + cor0.col1 FROM tab0 AS cor0
----
111
116
122
query I rowsort
SELECT ALL + cor0.col2 * col0 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + col2 - col1 * col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL ( col2 ) * + ( + col1 ) + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1644
SELECT ALL + col0 + + CAST( col2 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL + col0 + + CAST ( col2 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + col0 * 51 - col2 FROM tab1 cor0
----
3207
3984
99
query I rowsort
SELECT DISTINCT + col1 + col2 + + 74 FROM tab2 AS cor0
----
129
132
159
query I rowsort
SELECT ALL + col2 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT col1 + 76 * col2 FROM tab1 AS cor0
----
4130
4342
7309
query I rowsort
SELECT DISTINCT - col0 + ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + + col1 * - 99 * - 46 + + col2 FROM tab0 AS cor0
----
391677
414496
441739
query I rowsort
SELECT - + col1 * 74 + - 80 FROM tab2 cor0
----
-1338
-2374
-4446
query I rowsort
SELECT ALL col0 + 29 * 84 AS col2 FROM tab1 AS cor0
----
2439
2500
2516
query I rowsort
SELECT DISTINCT + + cor0.col1 - + 17 FROM tab1 AS cor0
----
-4
-7
9
query I rowsort
SELECT col2 + - 39 FROM tab1 AS cor0
----
15
18
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1655
SELECT DISTINCT + + col2 + + col1 DIV cor0.col0 col1 FROM tab1 AS cor0
----
57
62
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT + + col2 + + col1 / cor0.col0 col1 FROM tab1 AS cor0
----
57
62
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col2 * - col0 col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL ( 19 ) * + col1 + - col1 FROM tab0 AS cor0
----
1548
1638
1746
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1658
SELECT DISTINCT + 74 / ( - col1 ) + - ( col1 + + col2 ) / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT + 74 / ( - col1 ) + - ( col1 + + col2 ) / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1659
SELECT - CAST( 88 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-88
-88
-88
skipif mysql # not compatible
query I rowsort label-1659
SELECT - CAST ( 88 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-88
-88
-88
query I rowsort
SELECT + cor0.col2 + - col1 * - cor0.col1 AS col2 FROM tab2 cor0
----
327
3507
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1661
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1
----
26
27
38
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) * col1 + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT + col0 * - col0 + cor0.col0 FROM tab1 cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT - col2 - - 97 AS col1 FROM tab1 cor0
----
1
40
43
query I rowsort
SELECT - tab1.col2 + + tab1.col0 AS col1 FROM tab1
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * col0 + - col0 + - col1 col0 FROM tab0 AS cor0
----
-97
682
7118
query I rowsort
SELECT 13 * + 1 FROM tab1 AS cor0
----
13
13
13
query I rowsort
SELECT + 10 * col1 + + col1 + + col0 FROM tab0 AS cor0
----
1090
1102
970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col1 FROM tab2
----
76
76
76
query I rowsort
SELECT ALL + 1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT 94 AS col2 FROM tab0 cor0
----
94
94
94
query I rowsort
SELECT ALL 33 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT - col2 + - 42 * - col2 * col1 FROM tab0 AS cor0
----
119163
313322
4073
query I rowsort
SELECT - col1 * - col0 - col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT col2 * col1 + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT - col0 * col2 - + ( - col1 * + col2 ) FROM tab1 AS cor0
----
-3078
-6432
1242
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1678
SELECT col0 * col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1678
SELECT col0 * col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 57 FROM tab1, tab0 cor0, tab1 AS cor1
----
-57
query I rowsort
SELECT ALL tab1.col2 * - 74 * col0 FROM tab1
----
-11988
-269952
-568320
query I rowsort
SELECT col2 * + 1 * col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - + col2 + + cor0.col1 * + col1 - + col1 AS col2 FROM tab0 AS cor0
----
7277
8108
9311
query I rowsort
SELECT - - col2 + + 9 FROM tab0 AS cor0
----
10
42
91
query I rowsort
SELECT DISTINCT + - col1 - - 2 * - col2 FROM tab2 AS cor0
----
-111
-85
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col0 col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + + col0 * col1 + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT col2 + 92 * 65 AS col1 FROM tab0 AS cor0
----
5981
6013
6062
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e
query I rowsort
SELECT ALL + col0 + 56 AS col0 FROM tab0 AS cor0
----
145
80
91
query I rowsort
SELECT ALL col1 * col1 - col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL + col0 + col1 * - 63 FROM tab2 cor0
----
-1946
-3639
-992
query I rowsort
SELECT - ( - col1 ) * ( - ( - cor0.col0 ) + + col0 ) FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT + 31 * + col0 FROM tab1 AS cor0
----
1984
2480
93
query I rowsort
SELECT DISTINCT - col1 * col0 * - col0 FROM tab2
----
106097
1519
358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1695
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1696
SELECT DISTINCT - - cor0.col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT - - cor0.col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT + col2 * + 75 AS col0 FROM tab2 cor0
----
1950
2025
2850
query I rowsort
SELECT - col0 * col2 + 11 FROM tab0 AS cor0
----
-24
-7287
-781
query I rowsort
SELECT - + 83 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
onlyif mysql # use DIV operator for integer division
query I rowsort label-1700
SELECT col1 + tab0.col0 + tab0.col1 * col1 DIV col1 AS col2 FROM tab0
----
196
229
271
skipif mysql # not compatible
query I rowsort label-1700
SELECT col1 + tab0.col0 + tab0.col1 * col1 / col1 AS col2 FROM tab0
----
196
229
271
query I rowsort
SELECT - - ( 62 ) AS col0 FROM tab1 AS cor0
----
62
62
62
query I rowsort
SELECT DISTINCT + ( + col1 ) + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT 87 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT ALL col1 * + ( - col1 * col2 ) FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT - tab2.col2 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT ALL - 14 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT - ( tab1.col1 * col1 ) AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - 47 FROM tab2, tab0 AS cor0
----
-47
query I rowsort
SELECT - 62 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT ALL + 6 * + col2 AS col1 FROM tab1
----
324
342
576
query I rowsort
SELECT tab2.col2 - - 9 AS col1 FROM tab2
----
35
36
47
query I rowsort
SELECT 19 * - col1 FROM tab0 AS cor0
----
-1634
-1729
-1843
query I rowsort
SELECT 90 * + col0 FROM tab0 AS cor0
----
2160
3150
8010
query I rowsort
SELECT ( - 76 ) FROM tab0
----
-76
-76
-76
query I rowsort
SELECT DISTINCT 34 * col2 + 26 AS col1 FROM tab0 AS cor0
----
1148
2814
60
query I rowsort
SELECT ALL + col1 * - col0 + - ( col0 + + col1 ) AS col1 FROM tab2 cor0
----
-1439
-255
-4739
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT col1 * col0 * col2 AS col1 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT ALL col0 + - col0 * + 93 FROM tab1 AS cor0
----
-276
-5888
-7360
query I rowsort
SELECT col2 * - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-1721
SELECT + - col2 + col1 DIV + 47 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1721
SELECT + - col2 + col1 / + 47 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1723
SELECT ALL - 30 + cor0.col2 DIV 52 FROM tab0 AS cor0
----
-29
-30
-30
skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL - 30 + cor0.col2 / 52 FROM tab0 AS cor0
----
-29
-30
-30
query I rowsort
SELECT col2 + + 83 * + col2 * - col0 + - tab0.col2 * - col2 AS col2 FROM tab0
----
-2903
-598928
-64614
query I rowsort
SELECT 13 * - tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 92f9f4020e1b6e4676eecbec4481cf3c
query I rowsort
SELECT col2 + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + ( col1 ) FROM tab1
----
20
26
52
query I rowsort
SELECT col0 * 55 AS col1 FROM tab2
----
385
4290
4345
onlyif mysql # use DIV operator for integer division
query I rowsort label-1729
SELECT DISTINCT - col2 + + col1 + 68 DIV + col1 FROM tab1
----
-26
-41
-78
skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT - col2 + + col1 + 68 / + col1 FROM tab1
----
-26
-41
-78
query I rowsort
SELECT + col2 * col2 + + col1 AS col0 FROM tab2
----
1461
735
760
query I rowsort
SELECT DISTINCT col0 * col1 + - col1 AS col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT DISTINCT - col1 * col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-1733
SELECT ALL - + col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL - + col1 / + col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT + col1 * + col1 + col1 DIV - 5 FROM tab0 AS cor0
----
7379
8263
9390
skipif mysql # not compatible
query I rowsort label-1734
SELECT + col1 * + col1 + col1 / - 5 FROM tab0 AS cor0
----
7379
8263
9390
query I rowsort
SELECT ALL + - 70 + + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-61
4026
6330
query I rowsort
SELECT DISTINCT + 42 + - col2 AS col0 FROM tab0 AS cor0
----
-40
41
9
query I rowsort
SELECT - + 92 + col2 AS col1 FROM tab1 AS cor0
----
-35
-38
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-1738
SELECT - ( - col2 ) + cor0.col2 * cor0.col2 DIV - 91 col2 FROM tab0 AS cor0
----
1
22
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1738
SELECT - ( - col2 ) + cor0.col2 * cor0.col2 / - 91 col2 FROM tab0 AS cor0
----
1
22
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT DISTINCT col0 + + col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT col0 + + col2 / - col0 AS col1 FROM tab2 AS cor0
----
4
78
79
query I rowsort
SELECT ALL 38 AS col1 FROM tab0 cor0
----
38
38
38
query I rowsort
SELECT + 63 + - ( col2 ) * col0 FROM tab2 cor0
----
-126
-1965
-2939
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1742
SELECT DISTINCT CAST( + col2 AS SIGNED ) * + col1 FROM tab0 cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * + col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col2 * + col1 + col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT ALL + tab1.col1 + ( - col2 ) * tab1.col2 FROM tab1
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT col2 * + 31 + tab1.col2 AS col0 FROM tab1
----
1728
1824
3072
query I rowsort
SELECT DISTINCT - - col2 * + col1 + + col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT ALL - + col2 + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-1748
SELECT ALL + - 46 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL + - 46 / + cor0.col0 FROM tab0 AS cor0
----
-1
-1
0
query I rowsort
SELECT - col2 * - 50 AS col2 FROM tab0
----
1650
4100
50
query I rowsort
SELECT + + col0 + col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL + col1 + - 41 AS col1 FROM tab0 AS cor0
----
45
50
56
query I rowsort
SELECT - col1 * ( 0 ) FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col0 + 4 * col2 AS col1 FROM tab0 AS cor0
----
156
39
417
onlyif mysql # use DIV operator for integer division
query I rowsort label-1755
SELECT DISTINCT 60 + 10 DIV col1 col0 FROM tab2
----
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT 60 + 10 / col1 col0 FROM tab2
----
60
query I rowsort
SELECT DISTINCT ( + col2 ) * + col0 + + ( 8 ) + - col2 AS col0 FROM tab2
----
170
2010
2972
query I rowsort
SELECT + 61 * - cor0.col2 + col2 * + col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-105696
-39957
-7506
onlyif mysql # use DIV operator for integer division
query I rowsort label-1758
SELECT DISTINCT - tab0.col1 + 89 DIV + tab0.col0 AS col1 FROM tab0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT - tab0.col1 + 89 / + tab0.col0 AS col1 FROM tab0
----
-83
-90
-95
query I rowsort
SELECT col0 + col0 * 43 FROM tab0 AS cor0
----
1056
1540
3916
query I rowsort
SELECT ALL 84 + 62 * col1 * 77 + - col0 AS col1 FROM tab1
----
124205
47760
62066
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + col0 + - ( + 90 ) + + col2 col2 FROM tab1 AS cor0
----
-27
4063
6406
onlyif mysql # use DIV operator for integer division
query I rowsort label-1763
SELECT + ( + col1 ) + col0 DIV - col1 + + col1 * + col2 AS col2 FROM tab0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-1763
SELECT + ( + col1 ) + col0 / - col1 + + col1 * + col2 AS col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + col0 * 15 + + col2 * - col0 FROM tab1
----
-117
-2688
-6480
query I rowsort
SELECT 52 * col0 + - tab2.col1 AS col0 FROM tab2
----
333
3997
4091
onlyif mysql # use DIV operator for integer division
query I rowsort label-1766
SELECT + 69 + + col2 DIV col1 + - col1 DIV - col0 FROM tab1
----
74
76
79
skipif mysql # not compatible
query I rowsort label-1766
SELECT + 69 + + col2 / col1 + - col1 / - col0 FROM tab1
----
74
76
79
query I rowsort
SELECT - 48 * cor0.col0 FROM tab2 AS cor0
----
-336
-3744
-3792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1768
SELECT ALL + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor1.col1 * cor1.col0 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f
query I rowsort
SELECT - col1 + col0 + + cor0.col2 * 85 FROM tab1 AS cor0
----
4567
4899
8227
query I rowsort
SELECT - col0 + + col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-118
-147
20
query I rowsort
SELECT ALL - 90 * + col2 AS col0 FROM tab1 AS cor0
----
-4860
-5130
-8640
onlyif mysql # use DIV operator for integer division
query I rowsort label-1773
SELECT DISTINCT + col0 + + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT + col0 + + col1 / + col1 AS col2 FROM tab1 AS cor0
----
4
65
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1774
SELECT col1 + col0 + 29 DIV col1 FROM tab0 cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-1774
SELECT col1 + col0 + 29 / col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL - col1 + + col2 * 55 FROM tab1 AS cor0
----
2944
3125
5267
onlyif mysql # use DIV operator for integer division
query I rowsort label-1776
SELECT ALL + + 11 + col1 DIV - col0 FROM tab2 AS cor0
----
11
11
7
skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL + + 11 + col1 / - col0 FROM tab2 AS cor0
----
11
11
7
query I rowsort
SELECT DISTINCT 5 FROM tab2, tab0 cor0, tab0 AS cor1
----
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 * col1 col2 FROM tab0
----
-2408
-2548
-2716
onlyif mysql # use DIV operator for integer division
query I rowsort label-1779
SELECT ALL col0 * col2 DIV - col1 AS col2 FROM tab1
----
-364
-590
-6
skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL col0 * col2 / - col1 AS col2 FROM tab1
----
-364
-590
-6
query I rowsort
SELECT + + cor0.col0 * - col1 - - 21 FROM tab0 cor0
----
-2043
-3374
-8078
query I rowsort
SELECT col0 + col1 * 18 AS col2 FROM tab1 AS cor0
----
244
314
471
query I rowsort
SELECT 83 * cor0.col0 AS col2 FROM tab1 AS cor0
----
249
5312
6640
query I rowsort
SELECT DISTINCT ( col0 * col1 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + ( - 30 ) AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142
query I rowsort
SELECT + + 5 + - col2 FROM tab2 cor0
----
-21
-22
-33
query I rowsort
SELECT col0 + ( - col0 ) * - col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + - col2 + + cor0.col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - - col1 + ( col0 ) * col0 * 36 + ( col0 ) * + 46 FROM tab0 AS cor0
----
21926
289341
45807
query I rowsort
SELECT + + 54 AS col0 FROM tab2 AS cor0
----
54
54
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - col2 + col1 col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + - 64 + 90 FROM tab0 AS cor0
----
26
26
26
query I rowsort
SELECT - ( col0 ) + + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + col0 + 49 + - col0 AS col2 FROM tab0 AS cor0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 52 col0 FROM tab0 AS cor0
----
52
52
52
query I rowsort
SELECT - 32 * + col0 FROM tab0 AS cor0
----
-1120
-2848
-768
query I rowsort
SELECT + - ( - col1 ) * - ( - 11 ) + + col0 - col2 FROM tab0 AS cor0
----
1008
1101
937
query I rowsort
SELECT + 85 AS col2 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT - - cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + ( + col0 ) * col0 * - col1 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT col1 + + col2 * col1 + col2 * + col0 AS col0 FROM tab0
----
14851
229
3716
query I rowsort
SELECT DISTINCT - col2 - col2 * col0 FROM tab0
----
-36
-7380
-825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 * tab0.col1 col0 FROM tab0 WHERE NOT ( + col2 ) BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( col1 + - col0 )
----
query I rowsort
SELECT ALL + col2 + col0 AS col1 FROM tab1 WHERE NULL IN ( tab1.col2 )
----
query I rowsort
SELECT ALL tab0.col0 - + col2 AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + col0 * col2 )
----
query I rowsort
SELECT - tab2.col0 + col1 * + col1 AS col0 FROM tab2
----
210
3403
954
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - tab0.col1 * col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1809
SELECT DISTINCT + col2 DIV + col1 + - col2 * col2 DIV - col1 FROM tab0
----
0
12
73
skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT + col2 / + col1 + - col2 * col2 / - col1 FROM tab0
----
0
12
73
query I rowsort
SELECT + col2 - + col1 * col2 AS col0 FROM tab0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + cor0.col1 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 28 AS col2 FROM tab0 cor0
----
28
28
28
query I rowsort
SELECT + + 69 FROM tab2 cor0
----
69
69
69
query I rowsort
SELECT ALL + - 92 + - col0 * + cor0.col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-22923
-271610
-6819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1815
SELECT cor0.col1 + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1815
SELECT cor0.col1 + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 55 col0 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT DISTINCT + 34 + cor0.col2 * col1 FROM tab0 AS cor0
----
131
2872
7496
query I rowsort
SELECT - 62 + + col2 FROM tab2 AS cor0
----
-24
-35
-36
query I rowsort
SELECT DISTINCT + cor0.col2 * 79 AS col0 FROM tab2, tab0 AS cor0
----
2607
6478
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1820
SELECT DISTINCT col0 DIV col1 + col2 AS col1 FROM tab1
----
102
54
63
skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT col0 / col1 + col2 AS col1 FROM tab1
----
102
54
63
query I rowsort
SELECT DISTINCT col1 * col0 + - col0 FROM tab1
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1822
SELECT - col0 + col0 DIV col0 AS col0 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-1822
SELECT - col0 + col0 / col0 AS col0 FROM tab0
----
-23
-34
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1823
SELECT ALL + col2 * col0 DIV col0 - col1 FROM tab1
----
28
47
83
skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + col2 * col0 / col0 - col1 FROM tab1
----
28
47
83
query I rowsort
SELECT col1 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE NULL > ( NULL )
----
query I rowsort
SELECT ALL + col1 * + col1 * col2 FROM tab2
----
10982
25947
90506
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col0 + tab1.col2 )
----
query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( col2 ) NOT IN ( - col0 * + col2 + col0 * - col1 )
----
query I rowsort
SELECT - tab0.col2 AS col2 FROM tab0 WHERE NULL = - col1
----
query I rowsort
SELECT ALL col0 * col0 AS col1 FROM tab2 WHERE NULL IN ( - tab2.col0 * + col2 )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1831
SELECT ALL + - CAST( NULL AS SIGNED ) + - col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL + - CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + 16 + + tab0.col1 FROM tab0
----
188
198
210
query I rowsort
SELECT ( col1 + - col1 ) AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * + 42 FROM tab2
----
294
3276
3318
query I rowsort
SELECT DISTINCT col1 * + 93 AS col0 FROM tab1 AS cor0
----
1209
2418
930
query I rowsort
SELECT DISTINCT - + col1 * + 93 + - col0 AS col1 FROM tab1 cor0
----
-1289
-2421
-994
query I rowsort
SELECT DISTINCT + - cor0.col1 * - cor0.col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT - - cor0.col1 DIV - 94 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1838
SELECT - - cor0.col1 / - 94 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 8 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
query I rowsort
SELECT ALL + tab1.col1 - - col2 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL + ( col0 ) - ( col2 ) FROM tab0
----
-9
34
7
query I rowsort
SELECT + 82 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT + 58 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT col1 + 78 + - col2 FROM tab2 cor0
----
111
57
82
query I rowsort
SELECT col2 * + ( + col2 ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT col0 * col2 * - 94 FROM tab2
----
-17766
-190632
-282188
query I rowsort
SELECT + col0 * - 24 * 89 + - col2 * col0 FROM tab0 AS cor0
----
-197402
-52056
-74795
onlyif mysql # use DIV operator for integer division
query I rowsort label-1848
SELECT - col2 DIV col1 + + col1 + col0 * - 38 AS col2 FROM tab0 AS cor0
----
-1233
-3291
-826
skipif mysql # not compatible
query I rowsort label-1848
SELECT - col2 / col1 + + col1 + col0 * - 38 AS col2 FROM tab0 AS cor0
----
-1233
-3291
-826
query I rowsort
SELECT - col0 + - ( col1 ) FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT - col2 DIV col2 - 57 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-1850
SELECT - col2 / col2 - 57 / col2 AS col0 FROM tab1 AS cor0
----
-1
-2
-2
query I rowsort
SELECT - - col0 * col1 * cor0.col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - + col1 + - ( - col0 ) AS col2 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL + cor0.col2 * - 53 AS col2 FROM tab1 AS cor0
----
-2862
-3021
-5088
query I rowsort
SELECT - col0 * + col1 * 63 AS col2 FROM tab0 AS cor0
----
-130032
-213885
-510237
onlyif mysql # use DIV operator for integer division
query I rowsort label-1855
SELECT ALL col0 * col0 DIV 50 + col2 * col1 + - col0 * cor0.col2 FROM tab0 AS cor0
----
2057
322
86
skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL col0 * col0 / 50 + col2 * col1 + - col0 * cor0.col2 FROM tab0 AS cor0
----
2057
322
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1856
SELECT ALL + cor0.col1 * - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL + cor0.col1 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + - col0 + ( + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + 11 * col2 AS col2 FROM tab1 AS cor0
----
1056
594
627
query I rowsort
SELECT - - ( col2 ) * col2 + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
10
13
26
query I rowsort
SELECT - 1 + - col0 FROM tab1 cor0
----
-4
-65
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1863
SELECT ALL + CAST( NULL AS SIGNED ) * 16 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL + CAST ( NULL AS INTEGER ) * 16 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( 54 + col2 ) AS col0 FROM tab2
----
80
81
92
query I rowsort
SELECT ALL - cor0.col1 * - col2 + - col0 * col0 FROM tab2 AS cor0
----
-4550
-5595
788
query I rowsort
SELECT ( 83 ) * col0 AS col1 FROM tab1 AS cor0
----
249
5312
6640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1867
SELECT + CAST( NULL AS SIGNED ) + - col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1867
SELECT + CAST ( NULL AS INTEGER ) + - col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1868
SELECT ALL + CAST( NULL AS DECIMAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL + CAST ( NULL AS REAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + 91 + + 72 AS col0 FROM tab0
----
163
163
163
query I rowsort
SELECT - - cor0.col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - col1 + col2 * + col0 + col1 AS col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1873
SELECT + col2 DIV ( 43 ) - - col2 FROM tab1 cor0
----
55
58
98
skipif mysql # not compatible
query I rowsort label-1873
SELECT + col2 / ( 43 ) - - col2 FROM tab1 cor0
----
55
58
98
query I rowsort
SELECT ALL + col2 * + col1 - + 1 FROM tab1
----
1247
1403
569
onlyif mysql # use DIV operator for integer division
query I rowsort label-1875
SELECT DISTINCT - cor0.col2 + - col1 DIV 58 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - cor0.col2 + - col1 / 58 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - col1 * + col0 + - 3 * col2 * - col2 FROM tab2 AS cor0
----
-2574
1970
2989
query I rowsort
SELECT DISTINCT + cor0.col2 + - 65 AS col1 FROM tab2 AS cor0
----
-27
-38
-39
query I rowsort
SELECT ALL col1 - ( - col1 ) * col1 * + col2 FROM tab0 AS cor0
----
244154
679133
9506
query I rowsort
SELECT - col2 + 11 FROM tab1 AS cor0
----
-43
-46
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1880
SELECT col0 * - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-1880
SELECT col0 * - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + + col0 * - ( - col0 ) - col1 * col2 FROM tab1 AS cor0
----
-1395
3526
5152
query I rowsort
SELECT + + col2 + + 43 FROM tab2 AS cor0
----
69
70
81
query I rowsort
SELECT ALL - col2 * + ( col2 ) * col1 + col0 * col1 FROM tab1 AS cor0
----
-118768
-31850
-75738
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + - 34 col1 FROM tab1, tab1 AS cor0
----
-44
-47
-60
query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - col1 + - ( col2 ) AS col2 FROM tab1
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT cor0.col2 DIV - 45 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1888
SELECT cor0.col2 / - 45 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 * 13 FROM tab1 AS cor0
----
130
169
338
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col2 + col2 col0 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT - + col2 - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT col0 + col1 * col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL + + col1 * + col1 - col2 AS col0 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT DISTINCT col2 + - ( col1 ) FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL - col0 * + 72 AS col0 FROM tab2 AS cor0
----
-504
-5616
-5688
query I rowsort
SELECT col0 * tab2.col1 + col0 + - col2 AS col0 FROM tab2
----
1384
197
4654
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 + col0 * col2 col0 FROM tab2
----
169
2080
3043
query I rowsort
SELECT - col0 * + col2 * col0 + col0 AS col1 FROM tab0 AS cor0
----
-1190
-18984
-649433
query I rowsort
SELECT - col0 + col2 + col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + cor0.col1 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1901
SELECT DISTINCT col0 + col1 + col0 DIV + col1 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT col0 + col1 + col0 / + col1 FROM tab0
----
110
132
180
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col0 ) AND NOT col1 * col2 IN ( col0 * - col2 + col0 / col1 )
----
query I rowsort
SELECT ALL - col2 + col2 FROM tab0 WHERE col1 <> NULL
----
query I rowsort
SELECT + col1 * - col1 * tab1.col2 AS col2 FROM tab1
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col2 FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col0 FROM tab2 WHERE NOT col1 / - col1 + tab2.col1 IN ( col1 )
----
137
38
96
query I rowsort
SELECT + col2 + col2 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
214
361
784
query I rowsort
SELECT - - col0 + cor0.col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
15
69
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT col0 + - col2 DIV + col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-1909
SELECT col0 + - col2 / + col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT - + col2 - - col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT col2 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT - col0 - col2 AS col1 FROM tab1 cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1913
SELECT ALL + - col2 - col0 DIV - col0 AS col2 FROM tab2 cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL + - col2 - col0 / - col0 AS col2 FROM tab2 cor0
----
-25
-26
-37
query I rowsort
SELECT DISTINCT - col0 + - col0 * cor0.col0 * - col1 FROM tab2 AS cor0
----
106018
1512
358878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col2 * col2 + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT + 80 * + col1 * col0 + col1 * col2 AS col1 FROM tab0 AS cor0
----
167958
271697
655382
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 col0 FROM tab1 cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col0 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1921
SELECT col0 + + col0 DIV col0 AS col1 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1921
SELECT col0 + + col0 / col0 AS col1 FROM tab1
----
4
65
81
query I rowsort
SELECT ALL - 60 * + col2 FROM tab1
----
-3240
-3420
-5760
query I rowsort
SELECT DISTINCT ( 97 ) * tab2.col0 + + 36 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
715
7602
7699
query I rowsort
SELECT 21 * col2 FROM tab2
----
546
567
798
onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT DISTINCT - col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT - col1 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1926
SELECT ALL cor0.col1 * CAST( 31 AS SIGNED ) * col0 + - ( 84 + col2 ) col1 FROM tab1 AS cor0
----
19699
2280
32060
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL cor0.col1 * CAST ( 31 AS INTEGER ) * col0 + - ( 84 + col2 ) col1 FROM tab1 AS cor0
----
19699
2280
32060
query I rowsort
SELECT - + col0 + - ( cor0.col2 ) * + col0 * + col0 AS col1 FROM tab2 AS cor0
----
-1330
-158262
-237237
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * - cor0.col1 * - col0 col0 FROM tab0 AS cor0
----
177528
329350
737098
query I rowsort
SELECT 50 + col0 * + 90 AS col1 FROM tab1
----
320
5810
7250
query I rowsort
SELECT DISTINCT 79 + + col0 FROM tab0
----
103
114
168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + ( - tab2.col2 ) + col2 * 86 * col0 col2 FROM tab2
----
16254
174408
258172
query I rowsort
SELECT - col2 + - 62 FROM tab1 AS cor0
----
-116
-119
-158
query I rowsort
SELECT - col0 * + 3 AS col0 FROM tab1 AS cor0
----
-192
-240
-9
query I rowsort
SELECT DISTINCT + col1 + col2 * 79 AS col1 FROM tab0 AS cor0
----
176
2693
6569
query I rowsort
SELECT ALL + cor0.col1 * - col0 * 54 AS col2 FROM tab1 AS cor0
----
-34560
-4212
-56160
query I rowsort
SELECT + + col1 + - 64 AS col1 FROM tab2 AS cor0
----
-33
-47
-5
query I rowsort
SELECT ALL - cor0.col2 + col0 AS col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT - - col2 * + 1 * 65 FROM tab1 AS cor0
----
3510
3705
6240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1940
SELECT DISTINCT CAST( col2 AS SIGNED ) * col2 FROM tab0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col2 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-1941
SELECT - 12 DIV cor0.col2 - - col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-1941
SELECT - 12 / cor0.col2 - - col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort
SELECT + + 99 * + ( - col0 ) + CAST ( ( + col1 ) AS REAL ) FROM tab0 AS cor0
----
-2290
-3368
-8720
query I rowsort
SELECT 23 AS col2 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT - cor0.col2 - - cor0.col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - - cor0.col1 * - cor0.col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + col2 * - col2 + col0 * col2 AS col1 FROM tab2 AS cor0
----
-540
1352
1558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1947
SELECT + CAST( NULL AS SIGNED ) * - 92 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1947
SELECT + CAST ( NULL AS INTEGER ) * - 92 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - - 89 * + col2 FROM tab0 AS cor0
----
2937
7298
89
query I rowsort
SELECT DISTINCT - 42 + col2 FROM tab2 AS cor0
----
-15
-16
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1950
SELECT ALL + 1 + col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL + 1 + col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1951
SELECT col1 DIV + col1 - col1 * col2 AS col0 FROM tab0 cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-1951
SELECT col1 / + col1 - col1 * col2 AS col0 FROM tab0 cor0
----
-2837
-7461
-96
query I rowsort
SELECT DISTINCT cor0.col1 * col2 * + 8 + col1 * col2 FROM tab2 AS cor0
----
13806
5814
7533
query I rowsort
SELECT - 82 + + col2 FROM tab2 AS cor0
----
-44
-55
-56
query I rowsort
SELECT ALL - 5 + - cor0.col1 FROM tab0 AS cor0
----
-102
-91
-96
query I rowsort
SELECT DISTINCT + 4 + col0 FROM tab0 AS cor0
----
28
39
93
query I rowsort
SELECT DISTINCT + col1 * col1 + col2 + + 24 AS col1 FROM tab1 cor0
----
181
289
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 * - col1 col1 FROM tab0 AS cor0
----
-7482
-7917
-8439
query I rowsort
SELECT ALL + cor0.col2 * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL 39 + + col0 FROM tab1 AS cor0
----
103
119
42
query I rowsort
SELECT DISTINCT + col2 - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL 9 + col1 FROM tab0 AS cor0
----
100
106
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1962
SELECT + col0 + - col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1962
SELECT + col0 + - col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + - col2 * 87 AS col2 FROM tab2 AS cor0
----
-2184
-2342
-3227
query I rowsort
SELECT ALL - 10 - - cor0.col1 * 15 * col0 FROM tab0 AS cor0
----
121475
30950
50915
query I rowsort
SELECT ALL 28 - col0 AS col1 FROM tab2 AS cor0
----
-50
-51
21
query I rowsort
SELECT ALL + - col0 + col1 + col1 * + 95 FROM tab0 AS cor0
----
8232
8647
9277
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1967
SELECT ALL 94 + tab1.col1 * CAST( - col1 AS SIGNED ) FROM tab1
----
-582
-6
-75
skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL 94 + tab1.col1 * CAST ( - col1 AS INTEGER ) FROM tab1
----
-582
-6
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1968
SELECT DISTINCT - CAST( 14 AS SIGNED ) * cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-140
-182
-364
skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - CAST ( 14 AS INTEGER ) * cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-140
-182
-364
onlyif mysql # use DIV operator for integer division
query I rowsort label-1969
SELECT col2 * 62 DIV cor0.col1 FROM tab0 AS cor0
----
0
23
55
skipif mysql # not compatible
query I rowsort label-1969
SELECT col2 * 62 / cor0.col1 FROM tab0 AS cor0
----
0
23
55
query I rowsort
SELECT ALL - col1 * ( col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 3 AS REAL ) + cor1.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to bd73889f25f34930690ff275e8d33564
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 + col0 * col1 col1 FROM tab0
----
2099
3430
8134
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1973
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) - col1 * + cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930
skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) - col1 * + cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT - - col2 * + col0 + col2 * + 84 + + 54 * - col1 FROM tab1 AS cor0
----
15042
3294
7896
query I rowsort
SELECT + col1 * - 35 AS col0 FROM tab0 cor0
----
-3010
-3185
-3395
query I rowsort
SELECT ALL - + ( - col1 ) - + col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - col2 + - ( - col2 ) * + cor0.col2 + - col1 FROM tab2 AS cor0
----
1389
591
671
query I rowsort
SELECT + 17 AS col1 FROM tab0 cor0
----
17
17
17
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2, tab1 AS cor3
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b
query I rowsort
SELECT ALL - + 51 AS col0 FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 006d860fc40bbb38cbb649ba917d74a9
query I rowsort
SELECT ALL - 8 - col2 AS col0 FROM tab0
----
-41
-9
-90
query I rowsort
SELECT ALL 11 - - col2 * col2 AS col1 FROM tab2
----
1455
687
740
onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT DISTINCT + col0 - 54 DIV col2 col1 FROM tab1
----
2
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT + col0 - 54 / col2 col1 FROM tab1
----
2
64
80
query I rowsort
SELECT ( col1 ) + - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + ( 69 ) * tab2.col0 - - tab2.col0 AS col0 FROM tab2
----
490
5460
5530
query I rowsort
SELECT 35 - - 99 FROM tab0
----
134
134
134
query I rowsort
SELECT 95 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT DISTINCT col2 * + col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT - col0 + cor0.col2 FROM tab2 cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 34 col1 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 6cda47a564e8ee9e9e7915815a3a7769
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1992
SELECT ALL col2 + CAST( NULL AS DECIMAL ) * col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL col2 + CAST ( NULL AS REAL ) * col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + + tab2.col2 col2 FROM tab2, tab1 AS cor0, tab0, tab1 cor1
----
81 values hashing to 8fef4b52b9070163263ed40cdd1dc74e
query I rowsort
SELECT ALL + col0 + ( - 23 ) FROM tab0
----
1
12
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1995
SELECT ALL - col2 + - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-52
-54
-76
skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL - col2 + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT - col1 + - ( - 35 * col2 ) FROM tab1 AS cor0
----
1864
1985
3347
query I rowsort
SELECT - - col1 * col0 - + col2 * col2 FROM tab2 cor0
----
-101
-512
3926
query I rowsort
SELECT ALL col0 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1999
SELECT ALL + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * 91 + - col1 AS col1 FROM tab2 AS cor0
----
-668
-7157
-7206
onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT col0 DIV ( 57 ) + col2 * - ( + col2 * col1 ) AS col1 FROM tab1 AS cor0
----
-119807
-32489
-75816
skipif mysql # not compatible
query I rowsort label-2001
SELECT col0 / ( 57 ) + col2 * - ( + col2 * col1 ) AS col1 FROM tab1 AS cor0
----
-119807
-32489
-75816
query I rowsort
SELECT + 77 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT - cor0.col0 - + col1 AS col2 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + + cor0.col2 * ( 71 ) FROM tab1 AS cor0
----
3834
4047
6816
query I rowsort
SELECT DISTINCT + ( 43 ) + col0 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
6127
6284
92
query I rowsort
SELECT DISTINCT + - ( col1 ) * + cor0.col2 - col1 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT - cor0.col1 - - 49 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f3b422d60692e512a32ca44a6f398a4a
query I rowsort
SELECT DISTINCT ( - tab0.col2 ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT col0 * - tab0.col2 + col2 * - tab0.col0 AS col1 FROM tab0
----
-14596
-1584
-70
query I rowsort
SELECT - cor0.col1 * col1 - - col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT ( col0 + col2 ) AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT + col0 + - col1 * 6 AS col0 FROM tab0 AS cor0
----
-457
-492
-547
query I rowsort
SELECT - 60 * - cor0.col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to feecf3a1a326eaf3b4c9526c36d20e8e
query I rowsort
SELECT - + ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT ALL + + col2 + + col1 DIV + ( + 32 ) AS col0 FROM tab0 AS cor0
----
35
4
84
skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL + + col2 + + col1 / + ( + 32 ) AS col0 FROM tab0 AS cor0
----
35
4
84
query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT - col0 * col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT - - col0 + + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-2018
SELECT - - col0 + + col1 / - col2 AS col0 FROM tab0 AS cor0
----
-62
22
88
query I rowsort
SELECT col2 * + 72 AS col2 FROM tab1 AS cor0
----
3888
4104
6912
query I rowsort
SELECT col0 * 51 FROM tab1 AS cor0
----
153
3264
4080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - ( col0 ) col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT - + col0 * 42 - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-144
-2688
-3361
skipif mysql # not compatible
query I rowsort label-2022
SELECT - + col0 * 42 - col2 / col0 AS col0 FROM tab1 AS cor0
----
-144
-2688
-3361
query I rowsort
SELECT DISTINCT + - cor0.col2 * + 98 FROM tab2 AS cor0
----
-2548
-2646
-3724
query I rowsort
SELECT ALL tab1.col1 * 15 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e86c1144a1443e69e90e4492f722df0b
query I rowsort
SELECT 64 + cor0.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a62dc2af47bfe7b04c33252f657efeac
query I rowsort
SELECT + 96 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 6bef8087cd9f2d6405f56e239741e903
onlyif mysql # use DIV operator for integer division
query I rowsort label-2027
SELECT ALL - + 88 DIV col0 AS col1 FROM tab0 cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL - + 88 / col0 AS col1 FROM tab0 cor0
----
-2
-3
0
query I rowsort
SELECT col1 - + 82 FROM tab2 AS cor0
----
-23
-51
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col0 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT - ( ( + col0 ) ) - + 7 * - col2 * + col0 FROM tab0 AS cor0
----
210
50997
5520
query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + - cor0.col1 * tab2.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 8a7091a178800976724d6ffd81583e13
query I rowsort
SELECT - cor0.col2 * col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT 59 * col0 AS col1 FROM tab0 AS cor0
----
1416
2065
5251
query I rowsort
SELECT 40 + - 98 AS col0 FROM tab1
----
-58
-58
-58
query I rowsort
SELECT - + 99 * - col2 FROM tab1 cor0
----
5346
5643
9504
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2037
SELECT - CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2037
SELECT - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT + 56 + tab0.col2 AS col2 FROM tab0
----
138
57
89
query I rowsort
SELECT ALL col0 * 24 * col0 AS col0 FROM tab1
----
153600
216
98304
query I rowsort
SELECT 46 + cor0.col2 * + 56 AS col0 FROM tab1 AS cor0
----
3070
3238
5422
query I rowsort
SELECT - - col1 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT DISTINCT - col2 DIV col0 - - ( + col2 ) AS col2 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT - col2 / col0 - - ( + col2 ) AS col2 FROM tab2 AS cor0
----
24
26
38
query I rowsort
SELECT + col1 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + 98 * 14 AS col1 FROM tab1 AS cor0
----
1372
1372
1372
query I rowsort
SELECT ALL 83 + - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-557
-957
5
query I rowsort
SELECT 25 * - 99 - col1 AS col2 FROM tab1 AS cor0
----
-2485
-2488
-2501
query I rowsort
SELECT col0 * - col0 * + col2 + 49 FROM tab2 AS cor0
----
-1274
-158135
-237109
query I rowsort
SELECT - col0 + - 72 FROM tab1 AS cor0
----
-136
-152
-75
query I rowsort
SELECT ALL - + 13 * + col2 - col2 FROM tab1 AS cor0
----
-1344
-756
-798
onlyif mysql # use DIV operator for integer division
query I rowsort label-2050
SELECT DISTINCT 13 DIV - cor0.col1 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT 13 / - cor0.col1 FROM tab1 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2051
SELECT DISTINCT - + 96 DIV - col2 + col2 + - col1 FROM tab1 AS cor0
----
29
48
84
skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT - + 96 / - col2 + col2 + - col1 FROM tab1 AS cor0
----
29
48
84
query I rowsort
SELECT DISTINCT - cor0.col2 + + 22 FROM tab2 AS cor0
----
-16
-4
-5
query I rowsort
SELECT ALL - col0 - col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT ALL col2 - + 20 AS col2 FROM tab1
----
34
37
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2055
SELECT - + ( col0 ) + - col1 + + CAST( NULL AS SIGNED ) * 35 / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2055
SELECT - + ( col0 ) + - col1 + + CAST ( NULL AS INTEGER ) * 35 / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 71 * + cor0.col0 FROM tab2 AS cor0
----
-497
-5538
-5609
query I rowsort
SELECT - cor0.col0 * col2 + + col1 * 20 * col0 AS col2 FROM tab2 AS cor0
----
23858
4151
90012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT - 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39
onlyif mysql # use DIV operator for integer division
query I rowsort label-2060
SELECT col1 DIV - col1 - - col2 DIV + col2 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2060
SELECT col1 / - col1 - - col2 / + col2 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110
query I rowsort
SELECT + col0 + ( 16 * - col0 ) AS col1 FROM tab1 cor0
----
-1200
-45
-960
query I rowsort
SELECT ALL - col0 * ( + col1 ) + + col1 FROM tab1 cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-2064
SELECT ALL + + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL + + col2 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col0 - ( + ( - col0 ) ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col0 * - col2 - col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT col0 + ( - col0 * col2 ) AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT col2 * 65 AS col0 FROM tab0 AS cor0
----
2145
5330
65
query I rowsort
SELECT ALL + col0 * + col2 - - col2 * - col2 * - col1 AS col1 FROM tab1 cor0
----
127488
36138
75978
onlyif mysql # use DIV operator for integer division
query I rowsort label-2070
SELECT DISTINCT + col1 * 95 + - col2 DIV col0 FROM tab1 AS cor0
----
1234
2452
950
skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT + col1 * 95 + - col2 / col0 FROM tab1 AS cor0
----
1234
2452
950
query I rowsort
SELECT col2 + 24 FROM tab0 AS cor0
----
106
25
57
query I rowsort
SELECT ALL cor0.col0 * col1 + - 71 FROM tab2 cor0
----
1272
146
4531
query I rowsort
SELECT DISTINCT col0 * - col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
-34
-574
297
query I rowsort
SELECT DISTINCT - col2 + - col1 * 31 FROM tab0 AS cor0
----
-2699
-2903
-3008
query I rowsort
SELECT ALL - ( col0 ) + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 24 * + col0 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT 57 * + cor0.col1 FROM tab2 AS cor0
----
1767
3363
969
query I rowsort
SELECT ALL - col0 * - ( col0 ) + + col0 * + col2 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT + 14 - col2 AS col0 FROM tab0 AS cor0
----
-19
-68
13
query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
35
query I rowsort
SELECT + 9 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 61 * 96 col1 FROM tab1 AS cor0
----
-5856
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + - 86 FROM tab0 AS cor0
----
-86
query I rowsort
SELECT ALL + 6 + + cor0.col1 FROM tab2 AS cor0
----
23
37
65
query I rowsort
SELECT + 12 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-204
-372
-708
query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 * - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT ALL + 79 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT ALL - col1 * + col2 + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL + ( + col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT 27 + + col2 AS col0 FROM tab2 cor0
----
53
54
65
query I rowsort
SELECT col1 * col2 - - 38 FROM tab0
----
135
2876
7500
query I rowsort
SELECT ALL - - col1 * - 48 AS col0 FROM tab2 AS cor0
----
-1488
-2832
-816
query I rowsort
SELECT DISTINCT + - col1 * + col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - col0 * - 13 + col0 AS col1 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT ALL - 63 AS col2 FROM tab0
----
-63
-63
-63
query I rowsort
SELECT col0 * col0 - + ( + col2 ) FROM tab1
----
-45
4039
6304
query I rowsort
SELECT 73 + col2 AS col0 FROM tab2
----
100
111
99
query I rowsort
SELECT 35 - col2 AS col1 FROM tab2 AS cor0
----
-3
8
9
query I rowsort
SELECT DISTINCT 4 * + col0 + - 79 AS col1 FROM tab0
----
17
277
61
query I rowsort
SELECT ALL + col0 * + 61 * col2 AS col1 FROM tab1
----
222528
468480
9882
onlyif mysql # use DIV operator for integer division
query I rowsort label-2102
SELECT ALL + 34 DIV + tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL + 34 / + tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
onlyif mysql # use DIV operator for integer division
query I rowsort label-2103
SELECT + 26 DIV - cor1.col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
skipif mysql # not compatible
query I rowsort label-2103
SELECT + 26 / - cor1.col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
query I rowsort
SELECT DISTINCT + + col1 * col1 - + col0 FROM tab2 AS cor0
----
210
3403
954
onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT ALL col0 DIV 31 FROM tab2
----
0
2
2
skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL col0 / 31 FROM tab2
----
0
2
2
query I rowsort
SELECT - 78 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4
query I rowsort
SELECT ALL + col0 + - 59 * + col1 FROM tab1 AS cor0
----
-1531
-526
-687
onlyif mysql # use DIV operator for integer division
query I rowsort label-2108
SELECT DISTINCT ( 59 ) DIV cor0.col0 FROM tab1 AS cor0
----
0
19
skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT ( 59 ) / cor0.col0 FROM tab1 AS cor0
----
0
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2109
SELECT - CAST( NULL AS DECIMAL ) / + ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2109
SELECT - CAST ( NULL AS REAL ) / + ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2110
SELECT ALL - col0 * col1 DIV + col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL - col0 * col1 / + col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab0 cor0
----
91
query I rowsort
SELECT ALL + + 46 + - 35 AS col0 FROM tab1 AS cor0
----
11
11
11
query I rowsort
SELECT + 16 + - tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c0c10e98da8e20e25be62577d93d656e
query I rowsort
SELECT + - col1 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 13 col0 FROM tab1 AS cor0
----
-1040
-39
-832
onlyif mysql # use DIV operator for integer division
query I rowsort label-2116
SELECT - col2 + col0 DIV - col2 FROM tab0 cor0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-2116
SELECT - col2 + col0 / - col2 FROM tab0 cor0
----
-33
-36
-83
query I rowsort
SELECT - - col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + 77 * cor0.col1 + col2 * 15 AS col1 FROM tab0 AS cor0
----
7117
7484
8237
query I rowsort
SELECT cor0.col2 * - 10 FROM tab1 AS cor0
----
-540
-570
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col1 FROM tab1 AS cor0
----
-82
-82
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT + col1 DIV col0 AS col1 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-2121
SELECT + col1 / col0 AS col1 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT DISTINCT 87 * col1 + col1 + col1 FROM tab0 cor0
----
7654
8099
8633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2123
SELECT + col2 * col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2123
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-2124
SELECT ALL + - col1 + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL + - col1 + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( ( - col2 ) ) AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT col1 * + cor0.col2 - + col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL - + col0 * + 88 FROM tab1 AS cor0
----
-264
-5632
-7040
query I rowsort
SELECT + - col1 + ( - 7 + col0 ) FROM tab2 cor0
----
-31
12
55
query I rowsort
SELECT DISTINCT - - col1 * ( - 83 ) FROM tab0 AS cor0
----
-7138
-7553
-8051
query I rowsort
SELECT - + col0 * + 17 AS col1 FROM tab0 AS cor0
----
-1513
-408
-595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col0 FROM tab1 cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2132
SELECT DISTINCT col2 + col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT col2 + col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
query I rowsort
SELECT ALL + ( - col2 ) + ( col2 ) AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT - - col0 + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + 8 * + col0 + + col2 AS col0 FROM tab1
----
569
736
78
query I rowsort
SELECT - + ( 67 ) FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
42
query I rowsort
SELECT col1 * + 21 + col1 FROM tab2 AS cor0
----
1298
374
682
onlyif mysql # use DIV operator for integer division
query I rowsort label-2139
SELECT DISTINCT col2 DIV + 53 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT col2 / + 53 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT + tab0.col0 * 16 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ea70183c0723e155656c0726ed6276f2
query I rowsort
SELECT col1 * cor0.col1 + col2 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
-1117
259
2831
query I rowsort
SELECT col1 * col1 * col1 - col2 FROM tab0 cor0
----
636023
753489
912672
onlyif mysql # use DIV operator for integer division
query I rowsort label-2143
SELECT - cor0.col0 * cor0.col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2143
SELECT - cor0.col0 * cor0.col2 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2144
SELECT - col0 * tab1.col1 DIV col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2144
SELECT - col0 * tab1.col1 / col1 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2145
SELECT DISTINCT - col2 DIV + tab0.col2 AS col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT - col2 / + tab0.col2 AS col2 FROM tab0
----
-1
query I rowsort
SELECT col1 * + col0 * - col2 FROM tab2
----
-119652
-51034
-5859
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - col0 + - col0 NOT IN ( col1 )
----
query I rowsort
SELECT tab0.col2 + col2 + col0 * col2 FROM tab0
----
37
7462
858
query I rowsort
SELECT DISTINCT col2 + + col1 * + col0 + + col2 * col2 AS col0 FROM tab0
----
14905
3186
3397
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) < ( col1 / col1 )
----
query I rowsort
SELECT DISTINCT - col1 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT col0 + - col1 * col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT ALL - col1 * col0 - col0 * col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81
skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - col1 * col0 - col0 * col1 / + col1 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2154
SELECT DISTINCT - col1 DIV cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT - col1 / cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1, tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col1 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - col1 * + col0 + tab1.col1 AS col0 FROM tab1 WHERE NULL <> col0
----
query I rowsort
SELECT ALL tab2.col2 - - col1 FROM tab2
----
55
58
85
query I rowsort
SELECT + col2 + + col0 + col2 AS col2 FROM tab0
----
253
37
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2160
SELECT ALL - tab1.col1 DIV - col1 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL - tab1.col1 / - col1 AS col1 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2161
SELECT + tab0.col1 DIV col2 - col2 col0 FROM tab0
----
-31
-81
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2161
SELECT + tab0.col1 / col2 - col2 col0 FROM tab0
----
-31
-81
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2162
SELECT ALL col0 + - col2 DIV + col0 - - col2 AS col1 FROM tab2
----
104
117
31
skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL col0 + - col2 / + col0 - - col2 AS col1 FROM tab2
----
104
117
31
query I rowsort
SELECT col1 * tab1.col0 FROM tab1 WHERE NOT + col0 - - col0 * col0 IN ( col0 )
----
1040
640
78
query I rowsort
SELECT DISTINCT + col1 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL col1 * - col0 - col2 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-2166
SELECT - col1 DIV - col1 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1535
647
838
skipif mysql # not compatible
query I rowsort label-2166
SELECT - col1 / - col1 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1535
647
838
query I rowsort
SELECT + col1 + + col2 * cor0.col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
114114
5130
52754
query I rowsort
SELECT col2 - col1 * tab1.col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT tab2.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT col2 DIV - col1 + + col2 AS col1 FROM tab1
----
52
52
89
skipif mysql # not compatible
query I rowsort label-2172
SELECT col2 / - col1 + + col2 AS col1 FROM tab1
----
52
52
89
query I rowsort
SELECT ALL + col2 + - cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + col2 + - col0 * + 92 FROM tab0 AS cor0
----
-2175
-3219
-8106
query I rowsort
SELECT ALL col0 * col1 * + col2 AS col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - 34 * + col0 + 3 AS col0 FROM tab0
----
-1187
-3023
-813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79
query I rowsort
SELECT DISTINCT + col1 + 49 * + col1 * col0 AS col0 FROM tab0 AS cor0
----
101222
166452
396942
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2180
SELECT ALL + - col1 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL + - col1 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col2 * - ( cor0.col2 ) FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT col0 + 94 AS col2 FROM tab2 AS cor0
----
101
172
173
query I rowsort
SELECT ALL + col1 * + col0 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT tab0.col0 * tab0.col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL + col0 * col0 FROM tab2 WHERE NULL <> ( + tab2.col1 )
----
query I rowsort
SELECT DISTINCT + col0 * col2 FROM tab2 WHERE - col0 + - col1 / - col1 BETWEEN + col2 + - col2 * col1 + + col1 * + col1 AND col2
----
3002
query III rowsort
SELECT * FROM tab0 WHERE + col2 * - col0 / col0 + col1 IN ( col2 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - col2 NOT IN ( col0 * col0 )
----
query I rowsort
SELECT col0 * + col0 + - tab0.col0 FROM tab0
----
1190
552
7832
query I rowsort
SELECT tab0.col2 - col2 * - col0 FROM tab0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 + tab2.col2 col2 FROM tab2
----
114
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2192
SELECT - col1 DIV tab0.col1 col1 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2192
SELECT - col1 / tab0.col1 col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT col1 + col0 + col1 AS col0 FROM tab1
----
106
55
84
query III rowsort
SELECT * FROM tab0 WHERE - col2 + + tab0.col2 NOT BETWEEN - col2 - col1 AND ( + col0 * col1 * + col2 )
----
query I rowsort
SELECT ALL col2 * col0 * + col0 - + col2 * - tab2.col2 FROM tab2
----
158860
2052
238602
query I rowsort
SELECT col2 + - col0 * - col2 FROM tab1
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * + col1 + col2 * - tab1.col0 col1 FROM tab1
----
-3548
-7511
514
query I rowsort
SELECT DISTINCT + tab1.col2 * + col2 * - col2 FROM tab1
----
-157464
-185193
-884736
query I rowsort
SELECT DISTINCT + col2 + col0 - + col0 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT NULL > ( + col2 )
----
query I rowsort
SELECT ALL tab2.col0 + - tab2.col1 + - col0 * - tab2.col1 FROM tab2
----
1405
193
4621
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab2 cor0
----
-77
-77
-77
query I rowsort
SELECT ALL 78 AS col2 FROM tab2 AS cor0
----
78
78
78
query I rowsort
SELECT ALL cor0.col0 * col1 + - 42 AS col0 FROM tab1 AS cor0
----
36
598
998
query I rowsort
SELECT - col1 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( col2 + - col1 ) col1 FROM tab1 AS cor0
----
-17
25
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2207
SELECT DISTINCT + col1 DIV 84 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT + col1 / 84 FROM tab1
----
0
query I rowsort
SELECT ALL - 45 + + col1 FROM tab0
----
41
46
52
query I rowsort
SELECT DISTINCT + 63 * col0 AS col2 FROM tab2
----
441
4914
4977
query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
9
query I rowsort
SELECT + - 32 * + cor0.col2 FROM tab0 AS cor0
----
-1056
-2624
-32
query I rowsort
SELECT DISTINCT - 83 + + col1 AS col0 FROM tab2 AS cor0
----
-24
-52
-66
query I rowsort
SELECT 43 * + tab2.col2 AS col1 FROM tab2
----
1118
1161
1634
query I rowsort
SELECT - - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - 0 * + tab2.col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + + cor0.col0 + col2 * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT cor1.col0 + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 10977325261681ddca962e0a5d2b348b
query I rowsort
SELECT - - col1 + - col0 + + col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2126
3457
8101
query I rowsort
SELECT DISTINCT col0 * col2 * col1 + col1 FROM tab1
----
36490
4238
99853
query I rowsort
SELECT DISTINCT - col0 * + col0 * col1 AS col1 FROM tab2
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-2221
SELECT col2 DIV + col0 + + tab0.col1 * - col1 AS col0 FROM tab0
----
-7395
-8281
-9409
skipif mysql # not compatible
query I rowsort label-2221
SELECT col2 / + col0 + + tab0.col1 * - col1 AS col0 FROM tab0
----
-7395
-8281
-9409
query I rowsort
SELECT col2 * + col0 * - col1 + + tab0.col0 FROM tab0
----
-3360
-664029
-68088
query I rowsort
SELECT - col0 * + cor0.col1 + - cor0.col0 + - col1 * col0 FROM tab2 AS cor0
----
-2765
-441
-9282
query I rowsort
SELECT - 72 * + col0 * col0 AS col1 FROM tab1
----
-294912
-460800
-648
query I rowsort
SELECT DISTINCT ( - col2 ) * col1 AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - cor0.col1 * - 27 AS col0 FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT cor0.col1 + + col1 + cor0.col1 AS col2 FROM tab1 cor0
----
30
39
78
query I rowsort
SELECT 31 * + col1 + col2 * col1 + col2 FROM tab1 AS cor0
----
1747
2264
937
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + col2 col1 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT ALL col0 + col0 * col2 DIV col1 + - col2 DIV col1 FROM tab0
----
169
33
35
skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL col0 + col0 * col2 / col1 + - col2 / col1 FROM tab0
----
169
33
35
query I rowsort
SELECT DISTINCT + ( + tab2.col1 ) * + col2 + - tab2.col0 * - col0 * col1 FROM tab2
----
106743
2356
360490
query I rowsort
SELECT ALL ( col1 ) + + col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT col2 + col2 + - tab0.col0 AS col0 FROM tab0
----
-33
42
75
query I rowsort
SELECT DISTINCT col0 + ( col0 * - col0 ) + + col0 AS col0 FROM tab0
----
-1155
-528
-7743
query I rowsort
SELECT cor0.col1 * + col2 * col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-2236
SELECT + - 75 * col2 - col1 DIV - col2 FROM tab0 AS cor0
----
-2473
-6149
22
skipif mysql # not compatible
query I rowsort label-2236
SELECT + - 75 * col2 - col1 / - col2 FROM tab0 AS cor0
----
-2473
-6149
22
query I rowsort
SELECT DISTINCT + + cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL - + col2 * col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT 83 * col2 AS col1 FROM tab1
----
4482
4731
7968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 + col1 * col1 col1 FROM tab1 AS cor0
----
118
187
694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * 40 + col2 * ( - cor0.col2 ) col2 FROM tab0 AS cor0
----
-3084
2351
3879
query I rowsort
SELECT - ( col0 ) * - col0 * + col2 AS col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT ALL + cor0.col1 * + col1 * 44 FROM tab0 AS cor0
----
325424
364364
413996
onlyif mysql # use DIV operator for integer division
query I rowsort label-2244
SELECT - - cor0.col0 DIV + cor0.col2 col1 FROM tab0 AS cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2244
SELECT - - cor0.col0 / + cor0.col2 col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - col0 * + col0 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT ALL col0 DIV cor0.col1 AS col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL col0 / cor0.col1 AS col1 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT - + 93 * col1 AS col1 FROM tab1 AS cor0
----
-1209
-2418
-930
query I rowsort
SELECT ALL + 58 AS col2 FROM tab1 cor0
----
58
58
58
query I rowsort
SELECT - col1 + 43 * - col0 * col1 AS col0 FROM tab1 AS cor0
----
-27530
-3380
-44733
onlyif mysql # use DIV operator for integer division
query I rowsort label-2251
SELECT + col0 + - col0 DIV col0 AS col1 FROM tab0 cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-2251
SELECT + col0 + - col0 / col0 AS col1 FROM tab0 cor0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-2252
SELECT - + col2 + - col2 DIV col1 FROM tab1 AS cor0
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-2252
SELECT - + col2 + - col2 / col1 FROM tab1 AS cor0
----
-103
-56
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2253
SELECT DISTINCT - - col0 * col1 DIV col2 FROM tab1 cor0
----
1
10
11
skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - - col0 * col1 / col2 FROM tab1 cor0
----
1
10
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-2254
SELECT ALL - col2 * + col2 + - col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1442
-676
-729
skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL - col2 * + col2 + - col2 / - col1 AS col2 FROM tab2 AS cor0
----
-1442
-676
-729
query I rowsort
SELECT ALL + - col0 * + ( + 59 ) + + col1 * col0 AS col1 FROM tab0 AS cor0
----
1330
2848
648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( 40 ) + col1 col2 FROM tab1 cor0
----
146
2570
3213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 95 col2 FROM tab2 AS cor0
----
121
122
133
query I rowsort
SELECT col1 + - ( col1 * + col0 ) AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2259
SELECT DISTINCT - col1 * + CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT - col1 * + CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2260
SELECT ALL 99 DIV col2 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL 99 / col2 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT col0 * - ( - tab0.col0 ) AS col0 FROM tab0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT ALL - cor0.col0 * ( col1 ) DIV + 94 + + col0 col0 FROM tab1 cor0
----
3
58
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - cor0.col0 * ( col1 ) / + 94 + + col0 col0 FROM tab1 cor0
----
3
58
69
query I rowsort
SELECT DISTINCT - + ( 22 ) AS col1 FROM tab1 AS cor0
----
-22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 47 * - col2 col0 FROM tab0 cor0
----
1551
3854
47
query I rowsort
SELECT ALL - cor0.col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-2266
SELECT ALL col2 + + col0 DIV + col1 FROM tab1
----
102
54
63
skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL col2 + + col0 / + col1 FROM tab1
----
102
54
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2267
SELECT ALL + CAST( + cor0.col2 AS SIGNED ) + col0 + 6 AS col0 FROM tab0 AS cor0
----
177
42
63
skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL + CAST ( + cor0.col2 AS INTEGER ) + col0 + 6 AS col0 FROM tab0 AS cor0
----
177
42
63
query I rowsort
SELECT DISTINCT - col1 + 12 AS col1 FROM tab2 cor0
----
-19
-47
-5
query I rowsort
SELECT ALL + col0 * - 9 * col1 + col1 FROM tab2 AS cor0
----
-12070
-1922
-41359
query I rowsort
SELECT ALL + 80 + col2 FROM tab0 AS cor0
----
113
162
81
query I rowsort
SELECT DISTINCT - ( col2 ) - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL 34 + - col2 AS col2 FROM tab2 AS cor0
----
-4
7
8
query I rowsort
SELECT DISTINCT + - 45 AS col1 FROM tab0 AS cor0
----
-45
query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 + col0 * col2 * - col0 FROM tab0 AS cor0
----
-1128
-16170
-642060
query I rowsort
SELECT ALL + cor0.col0 * 55 AS col1 FROM tab0 AS cor0
----
1320
1925
4895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - col0 * + col0 * col0 col1 FROM tab2 AS cor0
----
-350
-474630
-493118
query I rowsort
SELECT + 30 * col1 AS col0 FROM tab0 cor0
----
2580
2730
2910
onlyif mysql # use DIV operator for integer division
query I rowsort label-2278
SELECT DISTINCT col1 * + 40 + - col2 DIV - col0 AS col0 FROM tab1
----
1058
400
521
skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT col1 * + 40 + - col2 / - col0 AS col0 FROM tab1
----
1058
400
521
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) + col0 col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + - col2 * + col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - - 33 + col1 AS col2 FROM tab0 cor0
----
119
124
130
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 20 + tab2.col1 col1 FROM tab2
----
571
579
777
query I rowsort
SELECT tab0.col1 + 87 AS col0 FROM tab0
----
173
178
184
query I rowsort
SELECT DISTINCT col0 * - col2 * col2 + + col0 AS col0 FROM tab0
----
-26112
-598347
0
query I rowsort
SELECT DISTINCT - col1 * - 44 + + col0 * - ( col0 ) FROM tab0 AS cor0
----
-3917
3043
3208
query I rowsort
SELECT ALL + col2 + + 1 - + col2 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT col2 + 8 AS col0 FROM tab0
----
41
9
90
query I rowsort
SELECT ALL - - col1 * 94 - col1 AS col2 FROM tab0 AS cor0
----
7998
8463
9021
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 + col0 + col0 * + cor0.col1 col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - - col1 * - col2 * - col1 AS col2 FROM tab2 cor0
----
10982
25947
90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2291
SELECT DISTINCT - + col2 / CAST( NULL AS SIGNED ) - ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT - + col2 / CAST ( NULL AS INTEGER ) - ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2292
SELECT ALL col0 + col1 DIV col2 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL col0 + col1 / col2 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT col1 * ( col2 ) FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 * + 41 FROM tab2 AS cor0
----
1271
2419
697
query I rowsort
SELECT + col1 - - col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL - - col2 + + ( ( col2 ) ) FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + - col1 + 74 AS col0 FROM tab2 cor0
----
15
43
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2298
SELECT DISTINCT - col0 * col0 DIV - 81 AS col1 FROM tab2
----
0
75
77
skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT - col0 * col0 / - 81 AS col1 FROM tab2
----
0
75
77
query I rowsort
SELECT + 10 + 0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT + 69 * col2 + - 20 * - col1 * - col2 FROM tab2 cor0
----
-10298
-14877
-28886
query I rowsort
SELECT ALL - col1 + - col0 * - 88 * 33 AS col2 FROM tab1 AS cor0
----
185846
232307
8686
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2302
SELECT - - cor0.col0 / col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2302
SELECT - - cor0.col0 / col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT col2 * + cor0.col0 + - 61 AS col1 FROM tab2 cor0
----
128
1967
2941
onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT DISTINCT 60 DIV col2 AS col0 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT 60 / col2 AS col0 FROM tab1 cor0
----
0
1
query I rowsort
SELECT - 46 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-33
-36
query I rowsort
SELECT + 16 * - col2 AS col2 FROM tab0
----
-1312
-16
-528
onlyif mysql # use DIV operator for integer division
query I rowsort label-2308
SELECT col2 DIV 7 AS col2 FROM tab2 AS cor0
----
3
3
5
skipif mysql # not compatible
query I rowsort label-2308
SELECT col2 / 7 AS col2 FROM tab2 AS cor0
----
3
3
5
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT 70 + + col2 FROM tab0 AS cor0
----
103
152
71
query I rowsort
SELECT + - 66 + col1 FROM tab1 AS cor0
----
-40
-53
-56
query I rowsort
SELECT - - 19 - col0 AS col0 FROM tab1 AS cor0
----
-45
-61
16
query I rowsort
SELECT DISTINCT - col0 * - col0 + + cor0.col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + 31 - - col2 AS col1 FROM tab0 AS cor0
----
113
32
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2315
SELECT ALL + + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 25 + col1 AS col2 FROM tab1
----
35
38
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT DISTINCT col0 DIV col2 + - col0 * col0 AS col2 FROM tab1
----
-4095
-6400
-9
skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT col0 / col2 + - col0 * col0 AS col2 FROM tab1
----
-4095
-6400
-9
query I rowsort
SELECT - ( - col0 ) + col0 * + 90 + col1 FROM tab0
----
2270
3282
8190
query I rowsort
SELECT col0 + 12 + + col1 AS col2 FROM tab1
----
105
41
86
query I rowsort
SELECT - 17 + - col2 AS col2 FROM tab0 AS cor0
----
-18
-50
-99
query I rowsort
SELECT 51 + ( col0 ) FROM tab0
----
140
75
86
query I rowsort
SELECT + ( - col0 ) * - col1 + + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + 79 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT DISTINCT 41 + + 74 * col1 AS col0 FROM tab0
----
6405
6775
7219
onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT ALL col0 DIV + col0 + col1 DIV - 95 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL col0 / + col0 + col1 / - 95 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT + 76 * + col1 + ( - 40 ) - - col0 AS col0 FROM tab2 AS cor0
----
1331
2323
4522
query I rowsort
SELECT ALL + - 20 + col2 * + 69 FROM tab2 AS cor0
----
1774
1843
2602
query I rowsort
SELECT - - col1 * + col2 - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - col0 * cor0.col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + + ( col0 ) - ( col1 ) * - col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL 34 * col1 - ( 76 ) AS col2 FROM tab0
----
2848
3018
3222
onlyif mysql # use DIV operator for integer division
query I rowsort label-2332
SELECT ( col1 ) + + col1 DIV 85 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2332
SELECT ( col1 ) + + col1 / 85 FROM tab0 AS cor0
----
87
92
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2333
SELECT ALL col2 * + CAST( - 75 AS SIGNED ) FROM tab1
----
-4050
-4275
-7200
skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL col2 * + CAST ( - 75 AS INTEGER ) FROM tab1
----
-4050
-4275
-7200
query I rowsort
SELECT + col0 + ( col1 ) * col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT tab2.col2 * - col2 AS col1 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT col2 * 29 FROM tab2 AS cor0
----
1102
754
783
query I rowsort
SELECT - - ( - col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col0 * - 59 FROM tab2 AS cor0
----
-413
-4602
-4661
query I rowsort
SELECT + + col0 * + 98 AS col1 FROM tab2 AS cor0
----
686
7644
7742
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2340
SELECT - CAST( NULL AS SIGNED ) * ( - col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2340
SELECT - CAST ( NULL AS INTEGER ) * ( - col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( ( - col1 ) ) * - ( col2 ) FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col1 + col1 * col1 * 88 FROM tab1 AS cor0
----
14885
59514
8810
query I rowsort
SELECT ALL - - col0 * 36 + - 97 + - col0 * 46 FROM tab0 AS cor0
----
-337
-447
-987
query I rowsort
SELECT ALL + col0 + tab1.col1 AS col2 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * - col2 col1 FROM tab0
----
-1886
-23
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-2347
SELECT ALL - col2 + - col1 DIV + 21 AS col0 FROM tab1 AS cor0
----
-55
-57
-96
skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL - col2 + - col1 / + 21 AS col0 FROM tab1 AS cor0
----
-55
-57
-96
query I rowsort
SELECT ALL tab1.col2 - - col2 * + col0 FROM tab1
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-2349
SELECT - - col0 * - col0 * - col0 + - col2 DIV col0 FROM tab1 AS cor0
----
262144
511999
9
skipif mysql # not compatible
query I rowsort label-2349
SELECT - - col0 * - col0 * - col0 + - col2 / col0 FROM tab1 AS cor0
----
262144
511999
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2350
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col1 FROM tab0
----
NULL
query I rowsort
SELECT - ( col2 ) + col0 * - 71 AS col2 FROM tab1 AS cor0
----
-267
-4601
-5776
query I rowsort
SELECT ALL + - col1 - - col1 * + col2 AS col0 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT - ( + col2 ) DIV - col2 + 51 * - col0 FROM tab1 AS cor0
----
-152
-3263
-4079
skipif mysql # not compatible
query I rowsort label-2353
SELECT - ( + col2 ) / - col2 + 51 * - col0 FROM tab1 AS cor0
----
-152
-3263
-4079
query I rowsort
SELECT ALL + col2 * cor0.col1 + + col0 * col1 * col2 AS col0 FROM tab0 AS cor0
----
3492
671580
70950
query I rowsort
SELECT - col0 + + col1 * + col1 * ( col1 ) FROM tab0 AS cor0
----
636032
753482
912638
onlyif mysql # use DIV operator for integer division
query I rowsort label-2356
SELECT DISTINCT + col2 DIV + col2 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT + col2 / + col2 FROM tab0 cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2357
SELECT + col1 DIV col1 + + col2 * 46 * col1 + col0 DIV + col0 FROM tab1 cor0
----
26222
57410
64586
skipif mysql # not compatible
query I rowsort label-2357
SELECT + col1 / col1 + + col2 * 46 * col1 + col0 / + col0 FROM tab1 cor0
----
26222
57410
64586
query I rowsort
SELECT DISTINCT + 29 - - col0 AS col1 FROM tab0 cor0
----
118
53
64
query I rowsort
SELECT - cor0.col0 - col0 * 73 FROM tab0 AS cor0
----
-1776
-2590
-6586
onlyif mysql # use DIV operator for integer division
query I rowsort label-2360
SELECT DISTINCT + 32 DIV col2 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT + 32 / col2 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col0 * cor0.col1 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-598
540
871
query I rowsort
SELECT + - ( col0 ) * + col2 + + 10 * - col0 AS col2 FROM tab0 AS cor0
----
-1032
-385
-8188
query I rowsort
SELECT ALL - - cor0.col2 * + col0 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + 11 + - tab0.col1 * + 33 AS col0 FROM tab0
----
-2827
-2992
-3190
query I rowsort
SELECT DISTINCT + 49 + + tab2.col0 AS col0 FROM tab2
----
127
128
56
query I rowsort
SELECT ALL + - col0 * + cor0.col2 * + 3 FROM tab2 AS cor0
----
-567
-6084
-9006
query I rowsort
SELECT DISTINCT + col0 + col0 * + 57 FROM tab0 cor0
----
1392
2030
5162
query I rowsort
SELECT - 10 + col1 * col0 FROM tab1 AS cor0
----
1030
630
68
query I rowsort
SELECT + cor0.col1 * + 19 + + cor0.col2 * col2 AS col0 FROM tab2 cor0
----
1318
1767
1797
onlyif mysql # use DIV operator for integer division
query I rowsort label-2370
SELECT ALL col1 DIV + 27 FROM tab0 cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL col1 / + 27 FROM tab0 cor0
----
3
3
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2371
SELECT + col2 DIV + ( col1 ) AS col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-2371
SELECT + col2 / + ( col1 ) AS col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT ALL + - col0 * col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL + 7 + col1 AS col0 FROM tab2
----
24
38
66
query I rowsort
SELECT col0 * col2 * - col0 + col2 AS col2 FROM tab2
----
-1296
-158158
-237120
onlyif mysql # use DIV operator for integer division
query I rowsort label-2375
SELECT DISTINCT - col2 + + col1 DIV ( + 42 ) AS col1 FROM tab0
----
-31
-80
1
skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT - col2 + + col1 / ( + 42 ) AS col1 FROM tab0
----
-31
-80
1
query I rowsort
SELECT DISTINCT + 34 + - tab1.col0 FROM tab1
----
-30
-46
31
query I rowsort
SELECT + cor0.col2 + - 19 FROM tab0 AS cor0
----
-18
14
63
query I rowsort
SELECT - - col1 + + 7 FROM tab0 AS cor0
----
104
93
98
query I rowsort
SELECT DISTINCT + 19 + - col1 * col1 AS col2 FROM tab0
----
-7377
-8262
-9390
query I rowsort
SELECT + col0 * - 19 * + col0 + col1 * col0 + col0 AS col1 FROM tab2 AS cor0
----
-110916
-117157
-707
query I rowsort
SELECT ALL - 63 + + col0 FROM tab0 AS cor0
----
-28
-39
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2382
SELECT - + col2 + 81 DIV + col0 AS col2 FROM tab0 AS cor0
----
-30
-82
1
skipif mysql # not compatible
query I rowsort label-2382
SELECT - + col2 + 81 / + col0 AS col2 FROM tab0 AS cor0
----
-30
-82
1
query I rowsort
SELECT DISTINCT - + 84 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-20
-4
-81
query I rowsort
SELECT DISTINCT cor0.col1 * ( + col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL + + cor0.col0 * col2 + cor0.col0 * 3 AS col2 FROM tab0 AS cor0
----
140
7565
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-2386
SELECT DISTINCT 42 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT 42 / cor0.col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col1 * - col2 - - col0 * + col0 FROM tab1 cor0
----
1413
4666
7648
query I rowsort
SELECT ALL - - 39 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
242
2983
3064
onlyif mysql # use DIV operator for integer division
query I rowsort label-2389
SELECT ALL 78 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL 78 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT ALL - col2 + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - ( 1 ) AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col0 - ( col1 ) AS col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT col1 + + col1 * + col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT col2 + - 12 * col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-110496
-34938
-38931
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( - 34 AS REAL ) + col1 AS col0 FROM tab0 AS cor0
----
52
57
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * - col1 * - col0 col1 FROM tab1 AS cor0
----
-60160
-7332
-97760
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col2 AS col0 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2398
SELECT DISTINCT - CAST( - 60 AS SIGNED ) + col1 FROM tab1 AS cor0
----
70
73
86
skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - CAST ( - 60 AS INTEGER ) + col1 FROM tab1 AS cor0
----
70
73
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2399
SELECT DISTINCT - CAST( col0 AS SIGNED ) * + col2 - - col1 * - col0 FROM tab2
----
-406
-4345
-6630
skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * + col2 - - col1 * - col0 FROM tab2
----
-406
-4345
-6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 + + col1 ) col0 FROM tab0
----
110
132
180
query I rowsort
SELECT - 13 + col1 FROM tab1
----
-3
0
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + ( col0 ) + - col0 col1 FROM tab1
----
4032
6
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - cor0.col1 + col1 col0 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT col2 * - ( col0 * - 49 ) - 61 * col2 FROM tab0 AS cor0
----
1654
352600
36795
query I rowsort
SELECT - 25 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT ALL cor0.col2 * - 36 + tab2.col0 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 47f267df1ac8a0bdc1cd04431d03d9b0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT col2 * + col1 DIV + col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2407
SELECT col2 * + col1 / + col1 FROM tab0
----
1
33
82
query I rowsort
SELECT col2 * 39 FROM tab2
----
1014
1053
1482
onlyif mysql # use DIV operator for integer division
query I rowsort label-2409
SELECT col2 DIV + 51 col1 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2409
SELECT col2 / + 51 col1 FROM tab1
----
1
1
1
query I rowsort
SELECT - 11 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202
query I rowsort
SELECT DISTINCT - col1 * - 87 AS col2 FROM tab2
----
1479
2697
5133
query I rowsort
SELECT ALL 9 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT - - 91 + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1353
-585
-638
query I rowsort
SELECT + 37 * 11 AS col2 FROM tab2
----
407
407
407
query I rowsort
SELECT + + col2 + 59 * + col1 FROM tab0 AS cor0
----
5107
5451
5724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2416
SELECT + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2416
SELECT + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( 8 ) + col0 FROM tab1 AS cor0
----
11
72
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2418
SELECT CAST( - col2 AS SIGNED ) * + cor0.col2 + col2 FROM tab2 AS cor0
----
-1406
-650
-702
skipif mysql # not compatible
query I rowsort label-2418
SELECT CAST ( - col2 AS INTEGER ) * + cor0.col2 + col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL - - col1 * + col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT 21 * + col2 AS col0 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT ALL + - col0 * col2 + - 54 FROM tab1 AS cor0
----
-216
-3702
-7734
onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT DISTINCT - col0 DIV cor0.col0 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT - col0 / cor0.col0 FROM tab0 cor0
----
-1
query I rowsort
SELECT + 21 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT - - col2 * 35 AS col0 FROM tab2 AS cor0
----
1330
910
945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2425
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 * col1 + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - col1 + 42 FROM tab2 cor0
----
-17
11
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-2428
SELECT col2 * ( 20 ) DIV + col0 FROM tab2 cor0
----
6
77
9
skipif mysql # not compatible
query I rowsort label-2428
SELECT col2 * ( 20 ) / + col0 FROM tab2 cor0
----
6
77
9
query I rowsort
SELECT - - col1 * ( col0 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2431
SELECT ALL + + CAST( - 37 AS SIGNED ) AS col0 FROM tab0 cor0
----
-37
-37
-37
skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + + CAST ( - 37 AS INTEGER ) AS col0 FROM tab0 cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT 92 * - col0 AS col1 FROM tab0 AS cor0
----
-2208
-3220
-8188
query I rowsort
SELECT 38 * - cor0.col2 FROM tab2 AS cor0
----
-1026
-1444
-988
query I rowsort
SELECT - 77 * - col0 AS col0 FROM tab0 AS cor0
----
1848
2695
6853
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 * - ( + col0 + + 46 ) col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 0 * - col1 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - + 25 * - col0 AS col1 FROM tab2 cor0
----
175
1950
1975
query I rowsort
SELECT DISTINCT - col0 + - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col1 - - col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + 94 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT DISTINCT + 1 * col2 FROM tab2 AS cor0
----
26
27
38
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 1205718fd82145a8cd84cdb475e7805d
query I rowsort
SELECT 91 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-637
-7098
-7189
onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT ALL - 60 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-60
0
skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL - 60 / cor0.col2 FROM tab0 AS cor0
----
-1
-60
0
query I rowsort
SELECT DISTINCT - col2 + - col0 * + 40 FROM tab2 AS cor0
----
-307
-3146
-3198
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col1 FROM tab2
----
-58
-58
-58
query I rowsort
SELECT + tab0.col0 + ( 14 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 05f0fcbd66fc6981f5f475e47dcdda25
query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
onlyif mysql # use DIV operator for integer division
query I rowsort label-2451
SELECT DISTINCT - + col2 DIV - 19 + col2 col2 FROM tab0 AS cor0
----
1
34
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT - + col2 / - 19 + col2 col2 FROM tab0 AS cor0
----
1
34
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-2452
SELECT DISTINCT - ( + col1 ) * col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT - ( + col1 ) * col2 / col2 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - - 17 - - 92 * - col2 FROM tab1 AS cor0
----
-4951
-5227
-8815
query I rowsort
SELECT ALL - 68 * - col1 AS col2 FROM tab0 AS cor0
----
5848
6188
6596
onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT ALL - cor1.col2 DIV - ( + cor1.col1 ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL - cor1.col2 / - ( + cor1.col1 ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT - col1 - col1 * col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT + col0 * - 1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + 25 + + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b68e2c5d2df05b0723a28ad588a1167
query I rowsort
SELECT - ( 90 ) * - cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5d7a7151104f767615b2549d3d061db9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT ALL + col2 DIV + ( col2 ) FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL + col2 / + ( col2 ) FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab1, tab2 cor0, tab2 cor1, tab2 AS cor2
----
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2462
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 + col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 + col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - 26 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754
onlyif mysql # use DIV operator for integer division
query I rowsort label-2464
SELECT DISTINCT + col2 DIV col0 + + tab0.col1 + 40 AS col0 FROM tab0
----
127
131
137
skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + col2 / col0 + + tab0.col1 + 40 AS col0 FROM tab0
----
127
131
137
query I rowsort
SELECT DISTINCT 13 FROM tab2, tab1, tab0 AS cor0
----
13
query I rowsort
SELECT - 26 + + col2 FROM tab1
----
28
31
70
query I rowsort
SELECT - col0 * col2 + - col0 * + col0 * tab0.col0 + col2 FROM tab0
----
-14583
-42909
-712185
query I rowsort
SELECT + 42 * - col0 + col0 * + 32 FROM tab1 AS cor0
----
-30
-640
-800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 + col2 col0 FROM tab0 cor0
----
100
19
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2470
SELECT ALL + col2 DIV col0 + + col1 AS col0 FROM tab2
----
17
34
59
skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL + col2 / col0 + + col1 AS col0 FROM tab2
----
17
34
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT - col2 DIV tab2.col0 + tab2.col1 * 39 * - col2 FROM tab2
----
-25194
-32646
-59826
skipif mysql # not compatible
query I rowsort label-2471
SELECT - col2 / tab2.col0 + tab2.col1 * 39 * - col2 FROM tab2
----
-25194
-32646
-59826
query I rowsort
SELECT DISTINCT 75 + col1 AS col1 FROM tab0
----
161
166
172
onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT tab1.col1 + + col0 * col0 DIV + 36 AS col1 FROM tab1
----
123
190
26
skipif mysql # not compatible
query I rowsort label-2473
SELECT tab1.col1 + + col0 * col0 / + 36 AS col1 FROM tab1
----
123
190
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-2475
SELECT DISTINCT + - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT + - col0 / - col0 AS col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT + + col0 * + col2 * col2 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-2477
SELECT - col1 DIV ( - col2 ) AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2477
SELECT - col1 / ( - col2 ) AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + 51 * col0 * - 36 FROM tab0
----
-163404
-44064
-64260
query I rowsort
SELECT ALL - 45 * col2 FROM tab0
----
-1485
-3690
-45
query I rowsort
SELECT col0 * + ( - col2 ) AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - - col2 + - col0 * cor0.col1 * - col1 FROM tab0 cor0
----
177537
329316
737091
query I rowsort
SELECT DISTINCT col1 - 42 AS col2 FROM tab1
----
-16
-29
-32
query I rowsort
SELECT DISTINCT - tab1.col0 - + 27 AS col0 FROM tab1
----
-107
-30
-91
query I rowsort
SELECT col1 + - ( ( col0 ) ) * - ( - col2 ) + + col2 * col2 AS col2 FROM tab1
----
-389
1549
2780
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2485
SELECT col0 * CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-2485
SELECT col0 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 AS col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT - col0 * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col1 + ( - col1 ) AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - col2 * tab0.col1 * 61 AS col2 FROM tab0
----
-173118
-455182
-5917
query I rowsort
SELECT ALL ( 63 ) FROM tab2, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT DISTINCT - - cor0.col1 * ( 49 ) * - col0 AS col2 FROM tab2 AS cor0
----
-10633
-225498
-65807
query I rowsort
SELECT DISTINCT - col0 + 31 FROM tab0 cor0
----
-4
-58
7
query I rowsort
SELECT ALL - col1 + col0 * col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT col2 * 23 AS col0 FROM tab0
----
1886
23
759
query I rowsort
SELECT col2 * + 80 + - col0 FROM tab1
----
4317
4496
7600
query I rowsort
SELECT ALL - - 65 - + col0 AS col0 FROM tab2 AS cor0
----
-13
-14
58
query I rowsort
SELECT + 58 + 58 FROM tab0 cor0
----
116
116
116
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2498
SELECT + CAST( NULL AS SIGNED ) * + col2 - col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2498
SELECT + CAST ( NULL AS INTEGER ) * + col2 - col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 79 ) * - col2 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT DISTINCT - - cor0.col1 * + 28 - col1 FROM tab1 cor0
----
270
351
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT ALL + - CAST( NULL AS SIGNED ) * + col0 * col1 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-2501
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col0 * col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + col2 * col2 - 42 AS col2 FROM tab0 AS cor0
----
55
611842
93612
onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT 68 DIV - cor0.col0 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to ab697e236e387f82ec27d8f4bc3c34e2
skipif mysql # not compatible
query I rowsort label-2503
SELECT 68 / - cor0.col0 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to ab697e236e387f82ec27d8f4bc3c34e2
query I rowsort
SELECT col0 * + ( col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT - 95 AS col0 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 6ddacf7cdc440b47c37bfd544945f3f8
query I rowsort
SELECT - + 81 * col2 AS col1 FROM tab2 AS cor0
----
-2106
-2187
-3078
query I rowsort
SELECT - cor0.col1 * ( + col1 ) + - ( + 63 ) FROM tab0 AS cor0
----
-7459
-8344
-9472
query I rowsort
SELECT + 99 - - ( col1 ) AS col0 FROM tab2 AS cor0
----
116
130
158
query I rowsort
SELECT DISTINCT + 39 + + 27 * - col2 AS col1 FROM tab1 cor0
----
-1419
-1500
-2553
query I rowsort
SELECT + ( col1 ) * + col1 + col1 * col0 AS col0 FROM tab0 AS cor0
----
12804
16380
9460
query I rowsort
SELECT DISTINCT + + ( - ( col2 ) ) * + cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2512
SELECT - CAST( - col2 AS SIGNED ) - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-2512
SELECT - CAST ( - col2 AS INTEGER ) - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT cor0.col0 * col0 + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL - col2 * - col2 AS col1 FROM tab1 cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 col2 FROM tab1 AS cor0
----
-56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 + cor0.col1 col0 FROM tab1 AS cor0
----
31
34
47
query I rowsort
SELECT DISTINCT - 11 * col1 FROM tab2 AS cor0
----
-187
-341
-649
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 - col1 * - ( + col0 ) FROM tab1 AS cor0
----
-1326
-208
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2519
SELECT DISTINCT + col0 DIV + col2 + col0 FROM tab0 cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + col0 / + col2 + col0 FROM tab0 cor0
----
24
70
90
query I rowsort
SELECT ALL + 15 + col1 FROM tab1 AS cor0
----
25
28
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT + - col0 DIV col1 col1 FROM tab1 AS cor0
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2521
SELECT + - col0 / col1 col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT - - 57 * - cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
-168
-3584
-4480
query I rowsort
SELECT DISTINCT + + 60 + col2 AS col0 FROM tab2 AS cor0
----
86
87
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2524
SELECT DISTINCT - ( - col2 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT - ( - col2 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ( + 27 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT DISTINCT + col0 * + ( 59 ) AS col2 FROM tab2 AS cor0
----
413
4602
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-2527
SELECT - col1 + + 76 DIV + ( - cor0.col0 ) FROM tab2 AS cor0
----
-17
-41
-59
skipif mysql # not compatible
query I rowsort label-2527
SELECT - col1 + + 76 / + ( - cor0.col0 ) FROM tab2 AS cor0
----
-17
-41
-59
query I rowsort
SELECT ALL + col0 + 51 + + ( col1 ) * 88 AS col1 FROM tab0 AS cor0
----
7643
8148
8622
query I rowsort
SELECT ALL - - col1 * + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT + - 91 AS col1 FROM tab0 AS cor0
----
-91
-91
-91
query I rowsort
SELECT - 45 + col1 FROM tab0 AS cor0
----
41
46
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col0 col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL ( col2 ) + col0 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2534
SELECT ALL 99 + - col0 DIV col2 col0 FROM tab0 AS cor0
----
64
98
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL 99 + - col0 / col2 col0 FROM tab0 AS cor0
----
64
98
99
query I rowsort
SELECT DISTINCT + 80 * col2 FROM tab2 AS cor0
----
2080
2160
3040
query I rowsort
SELECT DISTINCT + 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
49
query I rowsort
SELECT + col1 + 21 * + col2 FROM tab0
----
118
1813
779
query I rowsort
SELECT col0 + + tab0.col2 * - col2 AS col0 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT - col0 * - 64 FROM tab0
----
1536
2240
5696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2540
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col2 * - ( + col0 ) * col1 AS col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT + col2 * ( - 65 ) * col0 FROM tab2 AS cor0
----
-12285
-131820
-195130
onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT DISTINCT col2 * tab2.col2 DIV tab2.col1 FROM tab2
----
11
23
84
skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT col2 * tab2.col2 / tab2.col1 FROM tab2
----
11
23
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 39 * col0 col0 FROM tab2 AS cor0
----
-117078
-7371
-79092
query I rowsort
SELECT - col0 * 80 * + 0 + col0 + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + 50 * + col2 AS col0 FROM tab0 AS cor0
----
1650
4100
50
query I rowsort
SELECT DISTINCT - tab1.col2 * col1 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL + ( 89 ) AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT DISTINCT + - cor0.col2 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7363
8199
9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2551
SELECT - ( ( - col2 ) ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2551
SELECT - ( ( - col2 ) ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 18 * + col2 AS col1 FROM tab2 AS cor0
----
468
486
684
onlyif mysql # use DIV operator for integer division
query I rowsort label-2553
SELECT - ( - 62 ) * - col0 + ( + col1 ) DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-186
-3968
-4960
skipif mysql # not compatible
query I rowsort label-2553
SELECT - ( - 62 ) * - col0 + ( + col1 ) / cor0.col2 AS col1 FROM tab1 AS cor0
----
-186
-3968
-4960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2554
SELECT + CAST( ( + col0 ) AS SIGNED ) * ( col0 ) * col2 AS col1 FROM tab2 AS cor0
----
1323
158184
237158
skipif mysql # not compatible
query I rowsort label-2554
SELECT + CAST ( ( + col0 ) AS INTEGER ) * ( col0 ) * col2 AS col1 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT 72 DIV col1 + - col1 AS col2 FROM tab1 AS cor0
----
-24
-3
-8
skipif mysql # not compatible
query I rowsort label-2555
SELECT 72 / col1 + - col1 AS col2 FROM tab1 AS cor0
----
-24
-3
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2556
SELECT - + ( col0 ) * col1 DIV - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2556
SELECT - + ( col0 ) * col1 / - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 74 + col1 col2 FROM tab0 AS cor0
----
160
165
171
onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT DISTINCT col2 DIV - col1 col2 FROM tab1
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT col2 / - col1 col2 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT + cor0.col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - col1 + col2 * 30 FROM tab2 AS cor0
----
1123
721
779
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col2 FROM tab0
----
62
62
62
query I rowsort
SELECT ALL 92 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT DISTINCT + 82 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT + col0 + col2 * - col1 + + col1 DIV 71 AS col0 FROM tab2 cor0
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort label-2564
SELECT + col0 + col2 * - col1 + + col1 / 71 AS col0 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT - col0 + + 34 - - col2 FROM tab2
----
-18
-7
54
query I rowsort
SELECT - col0 * col2 + col2 - - col1 FROM tab2 cor0
----
-131
-1943
-2947
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to be7848c91584d04f21fd5bbb0d239aca
query I rowsort
SELECT + - col0 - 18 AS col2 FROM tab2 AS cor0
----
-25
-96
-97
query I rowsort
SELECT DISTINCT 60 * + col2 FROM tab1 cor0
----
3240
3420
5760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * col2 col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + ( - col0 ) * col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - - 91 + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
158
171
200
query I rowsort
SELECT ALL - 30 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT + ( + col2 ) + - col0 * + 30 FROM tab1 AS cor0
----
-1863
-2304
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT ALL - + col2 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - + col2 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + ( - 63 ) + + cor0.col1 * col1 FROM tab2 AS cor0
----
226
3418
898
onlyif mysql # use DIV operator for integer division
query I rowsort label-2577
SELECT col2 DIV + tab1.col0 - col0 AS col1 FROM tab1
----
-64
-79
15
skipif mysql # not compatible
query I rowsort label-2577
SELECT col2 / + tab1.col0 - col0 AS col1 FROM tab1
----
-64
-79
15
query I rowsort
SELECT ALL + col1 * - 32 * + col1 AS col1 FROM tab1 AS cor0
----
-21632
-3200
-5408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * ( col2 ) + - col2 col1 FROM tab2 cor0
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2580
SELECT ALL col1 * CAST( NULL AS SIGNED ) + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * + 18 FROM tab0 AS cor0
----
-1476
-18
-594
query I rowsort
SELECT DISTINCT - - col1 + 83 AS col1 FROM tab2 AS cor0
----
100
114
142
onlyif mysql # use DIV operator for integer division
query I rowsort label-2583
SELECT + cor0.col0 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2583
SELECT + cor0.col0 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 + + 44 FROM tab0 AS cor0
----
130
135
141
query I rowsort
SELECT col2 + + col1 * - col0 * - col1 AS col1 FROM tab2 AS cor0
----
22869
271544
6754
query I rowsort
SELECT DISTINCT cor0.col1 + + col2 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT - - ( col0 ) * col1 + + 5 FROM tab1 AS cor0
----
1045
645
83
query I rowsort
SELECT ( - 13 ) FROM tab1 AS cor0
----
-13
-13
-13
query I rowsort
SELECT ALL - ( + 9 ) - + col2 FROM tab0 AS cor0
----
-10
-42
-91
query I rowsort
SELECT DISTINCT 74 - col0 FROM tab1 AS cor0
----
-6
10
71
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( cor0.col0 AS REAL ) * cor0.col1 - ( + col1 ) AS col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT - - col0 - + 48 DIV col2 FROM tab0 AS cor0
----
-13
23
89
skipif mysql # not compatible
query I rowsort label-2592
SELECT - - col0 - + 48 / col2 FROM tab0 AS cor0
----
-13
23
89
query I rowsort
SELECT col1 * + 88 AS col1 FROM tab1
----
1144
2288
880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2594
SELECT - CAST( NULL AS SIGNED ) * + cor0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2594
SELECT - CAST ( NULL AS INTEGER ) * + cor0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - ( - col2 ) + col1 AS col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2596
SELECT + 70 DIV cor0.col0 - + col0 FROM tab0 AS cor0
----
-22
-33
-89
skipif mysql # not compatible
query I rowsort label-2596
SELECT + 70 / cor0.col0 - + col0 FROM tab0 AS cor0
----
-22
-33
-89
query I rowsort
SELECT DISTINCT - - 18 + + 10 * - col1 FROM tab0 cor0
----
-842
-892
-952
query I rowsort
SELECT ALL + tab0.col1 - - cor0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to e4933ad1fac62886bbc4f5350441254e
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 48b1d5d88e8ac6a6daea5a8e5606f112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 * col0 col1 FROM tab2 cor0
----
483
5382
5451
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 + + col0 + + col2 * + col0 col0 FROM tab2 AS cor0
----
2202
292
3177
query I rowsort
SELECT - col2 + + col0 * + col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT col1 + - tab2.col1 AS col1 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT col1 DIV + 68 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2604
SELECT col1 / + 68 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2605
SELECT DISTINCT - col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT - col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 * - col1 * col1 + col1 FROM tab2 AS cor0
----
-22814
-271459
-6696
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
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + 3 col0 FROM tab0 AS cor0
----
-30
-79
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2609
SELECT ALL + 35 * col1 DIV + col0 FROM tab2
----
155
26
7
skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + 35 * col1 / + col0 FROM tab2
----
155
26
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + 86 col2 FROM tab1 AS cor0
----
150
166
89
query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT + col0 * - col1 * ( - 13 ) FROM tab1
----
1014
13520
8320
query I rowsort
SELECT ALL - 79 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT ALL 50 + 78 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 6a9ed45ca8e49cad3cefcf18e4d680fe
query I rowsort
SELECT DISTINCT cor0.col0 + + 11 AS col0 FROM tab2 cor0
----
18
89
90
query I rowsort
SELECT col0 + + 35 + + col1 * ( tab1.col0 * col0 ) AS col2 FROM tab1
----
272
41059
83315
query I rowsort
SELECT - ( - 88 ) * + col1 + ( 39 ) AS col2 FROM tab0
----
7607
8047
8575
query I rowsort
SELECT - col2 * tab1.col0 + + col0 * col1 - - 40 * col2 FROM tab1
----
-2800
-728
2076
query I rowsort
SELECT - ( - tab1.col0 ) FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL + col0 + 80 * + col0 + col2 * col1 FROM tab1
----
1647
5754
7728
query I rowsort
SELECT - tab2.col1 AS col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT + 14 * col2 FROM tab1
----
1344
756
798
query I rowsort
SELECT DISTINCT - col0 + + 65 FROM tab2
----
-13
-14
58
query I rowsort
SELECT ALL 35 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2625
SELECT ALL CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ( col2 * col1 ) + 81 * col2 AS col0 FROM tab2
----
3024
3640
3724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 col2 FROM tab2 AS cor0
----
86
86
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-2628
SELECT ALL col1 + col0 DIV 35 + 16 FROM tab1 AS cor0
----
27
31
42
skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL col1 + col0 / 35 + 16 FROM tab1 AS cor0
----
27
31
42
query I rowsort
SELECT ALL col2 * + col2 + - col0 + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-4876
-5486
673
query I rowsort
SELECT DISTINCT + - col1 * + col1 - + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-10234
-15743
-9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2632
SELECT DISTINCT + col0 * col1 + + 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-2632
SELECT DISTINCT + col0 * col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2633
SELECT col2 + col1 DIV ( + col2 * - col0 ) AS col0 FROM tab0 AS cor0
----
-1
33
82
skipif mysql # not compatible
query I rowsort label-2633
SELECT col2 + col1 / ( + col2 * - col0 ) AS col0 FROM tab0 AS cor0
----
-1
33
82
query I rowsort
SELECT DISTINCT + 37 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-49
-54
-60
query I rowsort
SELECT - col2 * + col2 + col0 FROM tab1 cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + 62 + + cor0.col0 * - 15 FROM tab1 AS cor0
----
-1138
-898
17
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 + ( 24 ) FROM tab1 AS cor0
----
1
78
91
query I rowsort
SELECT - cor0.col0 * cor0.col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to a95320dbb4fb4aa98e2920d866f19abe
query I rowsort
SELECT DISTINCT - tab2.col1 * 58 * col2 FROM tab2
----
-37468
-48546
-88972
onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT ALL 59 DIV col0 AS col2 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL 59 / col0 AS col2 FROM tab0
----
0
1
2
query I rowsort
SELECT DISTINCT - ( - col1 + - col0 ) FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-2642
SELECT 86 DIV - cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b3d6c8be0dc15270b9c82e9356b59da4
skipif mysql # not compatible
query I rowsort label-2642
SELECT 86 / - cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b3d6c8be0dc15270b9c82e9356b59da4
query I rowsort
SELECT - col2 * 52 AS col2 FROM tab0 AS cor0
----
-1716
-4264
-52
query I rowsort
SELECT + - 50 + + 50 * col0 FROM tab1 AS cor0
----
100
3150
3950
onlyif mysql # use DIV operator for integer division
query I rowsort label-2645
SELECT ( - col1 ) DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2645
SELECT ( - col1 ) / col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - + col2 * - cor0.col1 * - col0 AS col0 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - col0 * col1 * - col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL - ( col2 ) + 18 AS col2 FROM tab0 cor0
----
-15
-64
17
query I rowsort
SELECT DISTINCT + + col0 * + col0 AS col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT - cor0.col2 + ( col1 * - col2 ) FROM tab2 AS cor0
----
-1560
-684
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - 98 col0 FROM tab1 AS cor0
----
-108
-111
-124
query I rowsort
SELECT + col2 + + 11 AS col1 FROM tab2 AS cor0
----
37
38
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT - 71 AS col0 FROM tab1
----
-71
-71
-71
query I rowsort
SELECT ALL - col0 * - 7 AS col2 FROM tab0
----
168
245
623
query I rowsort
SELECT + col0 + - ( + col1 * 59 ) FROM tab0 AS cor0
----
-5050
-5280
-5688
query I rowsort
SELECT ALL + 61 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
skipif mysql # not compatible
query I rowsort
SELECT + ( + col2 ) + col1 * CAST ( col2 AS REAL ) * - col1 FROM tab2 AS cor0
----
-10944
-25920
-90480
query I rowsort
SELECT DISTINCT - col2 * 10 + - col2 FROM tab0 AS cor0
----
-11
-363
-902
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2660
SELECT + CAST( - col1 AS SIGNED ) * - cor0.col0 + 80 FROM tab2 AS cor0
----
1423
297
4682
skipif mysql # not compatible
query I rowsort label-2660
SELECT + CAST ( - col1 AS INTEGER ) * - cor0.col0 + 80 FROM tab2 AS cor0
----
1423
297
4682
query I rowsort
SELECT 16 * + 51 + + col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1386
2064
2220
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 89 + + col2 col2 FROM tab2 cor0
----
-51
-62
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col1 col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT ( + 26 ) * + col2 - col0 FROM tab0 AS cor0
----
-9
2043
834
query I rowsort
SELECT 45 + col1 FROM tab2 AS cor0
----
104
62
76
query I rowsort
SELECT DISTINCT - 70 + col2 * - col0 FROM tab1 AS cor0
----
-232
-3718
-7750
onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT ALL + col2 DIV ( col0 ) + ( + 23 ) + + cor0.col2 AS col2 FROM tab2 AS cor0
----
49
53
61
skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + col2 / ( col0 ) + ( + 23 ) + + cor0.col2 AS col2 FROM tab2 AS cor0
----
49
53
61
query I rowsort
SELECT ALL - - 98 * - col2 AS col0 FROM tab2 AS cor0
----
-2548
-2646
-3724
query I rowsort
SELECT ALL + col2 * - col2 - + tab0.col1 * + col0 AS col0 FROM tab0
----
-14823
-3153
-3396
query I rowsort
SELECT + col0 + - 91 - tab1.col0 * col0 AS col1 FROM tab1
----
-4123
-6411
-97
query I rowsort
SELECT col1 * ( 14 ) AS col1 FROM tab2
----
238
434
826
query I rowsort
SELECT + col2 * ( - col0 ) * + col2 FROM tab2
----
-114076
-5103
-52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
-3
-64
-80
query I rowsort
SELECT - col2 + - col1 * + col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT ALL - cor0.col1 + + col2 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - 36 * + tab2.col2 - + 31 FROM tab2
----
-1003
-1399
-967
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col2 FROM tab1 AS cor0
----
87
87
87
query I rowsort
SELECT - + col2 * 53 + col1 AS col2 FROM tab2 AS cor0
----
-1319
-1400
-1997
query I rowsort
SELECT col1 * ( col0 ) + - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - col2 * - col2 + - col0 FROM tab2 AS cor0
----
1365
598
722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2681
SELECT ALL col0 * CAST( NULL AS SIGNED ) - - col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL col0 * CAST ( NULL AS INTEGER ) - - col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - tab1.col1 * col0 - col1 * col1 col1 FROM tab1
----
-41060
-83369
-910
query I rowsort
SELECT ALL col0 - - col1 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL col0 + - 44 - col0 FROM tab0 AS cor0
----
-44
-44
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT DISTINCT - - col1 + - ( - col1 ) DIV - col0 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT - - col1 + - ( - col1 ) / - col0 FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT - col2 * + col0 - col1 * col0 FROM tab2 AS cor0
----
-406
-4345
-6630
query I rowsort
SELECT - col2 - col2 * 9 FROM tab2 AS cor0
----
-260
-270
-380
query I rowsort
SELECT ALL + ( - col1 + col2 ) AS col2 FROM tab2
----
-33
-4
21
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + col2 FROM tab2
----
104
117
34
query I rowsort
SELECT - 53 * - cor0.col2 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to cfb595b312986043a7c2075dca90a292
query I rowsort
SELECT + col0 * + ( col0 ) + col2 AS col1 FROM tab1
----
4153
63
6496
query I rowsort
SELECT ALL - col0 + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT 27 * + 10 AS col0 FROM tab2 AS cor0
----
270
270
270
query I rowsort
SELECT + 83 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6
query I rowsort
SELECT - + 71 FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT DISTINCT ( - col1 ) + - 20 AS col0 FROM tab0 AS cor0
----
-106
-111
-117
query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * 73 col0 FROM tab0 AS cor0
----
-2376
-5904
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-2699
SELECT ALL + + col1 DIV + col1 AS col1 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + + col1 / + col1 AS col1 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col2 + col0 + + col2 AS col2 FROM tab0 cor0
----
253
37
90
query I rowsort
SELECT DISTINCT col0 * - col0 * - 50 + cor0.col0 FROM tab0 cor0
----
28824
396139
61285
query I rowsort
SELECT ALL + - 33 - - col1 AS col0 FROM tab2 AS cor0
----
-16
-2
26
query I rowsort
SELECT ALL col1 * col1 - col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT + col0 * 30 + tab0.col2 FROM tab0
----
1051
2752
753
query I rowsort
SELECT - col0 + - col1 * + col0 * col0 FROM tab2
----
-106176
-1526
-359034
query I rowsort
SELECT col2 + col1 * - col0 + col1 AS col0 FROM tab2
----
-1288
-159
-4517
query I rowsort
SELECT - col2 + tab0.col0 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT tab2.col1 - ( + col0 + col1 ) FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL - 65 FROM tab2, tab0 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
query I rowsort
SELECT + col0 * - 34 * col2 FROM tab0
----
-1190
-248132
-26928
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 78 col1 FROM tab1
----
142
158
81
query I rowsort
SELECT DISTINCT col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-2713
SELECT - + col0 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2713
SELECT - + col0 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL + col2 + - 65 AS col0 FROM tab0 AS cor0
----
-32
-64
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT + + col1 + 68 DIV + col0 FROM tab2 cor0
----
17
40
59
skipif mysql # not compatible
query I rowsort label-2715
SELECT + + col1 + 68 / + col0 FROM tab2 cor0
----
17
40
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2716
SELECT + col1 + 89 DIV + 50 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
307
3541
993
skipif mysql # not compatible
query I rowsort label-2716
SELECT + col1 + 89 / + 50 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
307
3541
993
query I rowsort
SELECT ALL - ( + col1 ) * + col0 + + 26 * ( - col1 * col1 ) AS col2 FROM tab1 cor0
----
-17654
-3240
-5434
query I rowsort
SELECT DISTINCT + - 93 AS col0 FROM tab0 cor0
----
-93
query I rowsort
SELECT ALL + ( - cor0.col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col1 + - col0 * cor0.col1 * 90 FROM tab1 AS cor0
----
-57590
-6994
-93587
query I rowsort
SELECT + 78 + col1 * col1 FROM tab0 AS cor0
----
7474
8359
9487
query I rowsort
SELECT ALL - 36 + - col2 AS col0 FROM tab1 AS cor0
----
-132
-90
-93
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( - col0 AS REAL ) * + col0 + + ( + 51 ) FROM tab0 AS cor0
----
1276
627
7972
query I rowsort
SELECT ALL + cor0.col2 * + col0 + + col2 * col1 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT DISTINCT - col0 * 48 AS col2 FROM tab2 AS cor0
----
-336
-3744
-3792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2726
SELECT + col1 * + CAST( 52 AS SIGNED ) * - tab0.col0 AS col2 FROM tab0
----
-107328
-176540
-421148
skipif mysql # not compatible
query I rowsort label-2726
SELECT + col1 * + CAST ( 52 AS INTEGER ) * - tab0.col0 AS col2 FROM tab0
----
-107328
-176540
-421148
onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT DISTINCT col2 DIV col0 + - col2 * col2 AS col0 FROM tab0
----
-1
-1088
-6724
skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT col2 / col0 + - col2 * col2 AS col0 FROM tab0
----
-1
-1088
-6724
query I rowsort
SELECT ALL col0 + + col2 + - col0 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT - 38 * - col0 FROM tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT ( col0 ) + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + 24 AS col1 FROM tab0 AS cor0
----
24
24
24
query I rowsort
SELECT DISTINCT - col2 * - col1 * col2 AS col2 FROM tab0 cor0
----
611884
93654
97
query I rowsort
SELECT + col1 + - 99 * col2 AS col1 FROM tab1 AS cor0
----
-5320
-5633
-9491
query I rowsort
SELECT ALL + + ( + ( col1 ) ) * col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 + col0 FROM tab2 cor0
----
196
2106
3081
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae
query I rowsort
SELECT - 45 * - col2 + - col1 AS col1 FROM tab2 AS cor0
----
1111
1184
1693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 20 col1 FROM tab1 AS cor0
----
-20
-20
-20
query I rowsort
SELECT DISTINCT ( + col2 * - col0 ) AS col1 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col0 FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2741
SELECT CAST( - 93 AS SIGNED ) * tab2.col1 AS col0 FROM tab2
----
-1581
-2883
-5487
skipif mysql # not compatible
query I rowsort label-2741
SELECT CAST ( - 93 AS INTEGER ) * tab2.col1 AS col0 FROM tab2
----
-1581
-2883
-5487
query I rowsort
SELECT ALL + - col0 + - 46 FROM tab1 cor0
----
-110
-126
-49
query I rowsort
SELECT + + col0 * - 57 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1344
-1960
-4984
query I rowsort
SELECT col2 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * 71 - 44 * - col0 FROM tab0 AS cor0
----
1611
3399
9738
query I rowsort
SELECT DISTINCT - col2 - 81 FROM tab1 AS cor0
----
-135
-138
-177
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2747
SELECT - - col2 * + CAST( - col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif mysql # not compatible
query I rowsort label-2747
SELECT - - col2 * + CAST ( - col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT - + col0 + + cor0.col2 AS col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT col1 + 13 FROM tab1 AS cor0
----
23
26
39
query I rowsort
SELECT DISTINCT - + col1 * 82 * + col1 FROM tab1 AS cor0
----
-13858
-55432
-8200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2751
SELECT + col0 + CAST( - 66 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-31
-42
23
skipif mysql # not compatible
query I rowsort label-2751
SELECT + col0 + CAST ( - 66 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-31
-42
23
query I rowsort
SELECT ( tab2.col0 ) * + col1 * + 65 + col0 * - col2 + 69 FROM tab2
----
13985
297171
84362
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab1, tab0 AS cor0
----
48
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT ALL + col1 + + col0 AS col1 FROM tab2
----
137
38
96
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + ( + col1 ) - col0 col0 FROM tab2 cor0
----
-141
-97
17
query I rowsort
SELECT - col1 - 44 FROM tab1 cor0
----
-54
-57
-70
query I rowsort
SELECT + col1 - 69 AS col0 FROM tab2 AS cor0
----
-10
-38
-52
query I rowsort
SELECT ALL + cor0.col2 + 31 AS col0 FROM tab1 AS cor0
----
127
85
88
query I rowsort
SELECT ALL - col1 + + 18 AS col0 FROM tab2 AS cor0
----
-13
-41
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 - col2 col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT ALL col0 * + col0 * col0 AS col1 FROM tab1
----
262144
27
512000
query I rowsort
SELECT - col0 * col1 * 48 FROM tab2 cor0
----
-10416
-220896
-64464
query I rowsort
SELECT + col0 * 30 FROM tab1 AS cor0
----
1920
2400
90
query I rowsort
SELECT col2 + ( - col0 ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - cor0.col2 + + ( col0 ) * col1 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT DISTINCT + + col2 DIV + 73 AS col1 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT + + col2 / + 73 AS col1 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort
SELECT + + col2 * - CAST ( 61 + - col2 AS REAL ) FROM tab0 AS cor0
----
-60
-924
1722
query I rowsort
SELECT ALL + 52 * tab0.col2 AS col1 FROM tab0
----
1716
4264
52
query I rowsort
SELECT ALL col1 * tab2.col0 * - col2 AS col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT col1 * 98 * - ( col0 ) + + col1 FROM tab2 AS cor0
----
-131597
-21235
-450937
query I rowsort
SELECT + + col2 + - cor0.col2 * col1 * - col2 FROM tab0 AS cor0
----
611966
93687
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2775
SELECT - + col0 DIV - ( - col1 ) + + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2775
SELECT - + col0 / - ( - col1 ) + + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col1 * + 72 FROM tab0 AS cor0
----
6192
6552
6984
query I rowsort
SELECT ( + col0 ) + + col2 + - ( - col1 * col1 ) AS col2 FROM tab2 cor0
----
3585
406
995
query I rowsort
SELECT ALL - - 20 AS col2 FROM tab0 AS cor0
----
20
20
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-2779
SELECT DISTINCT + ( + col1 ) DIV cor0.col0 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT + ( + col1 ) / cor0.col0 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT + col2 + + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + col1 * + 24 FROM tab2
----
1416
408
744
query I rowsort
SELECT tab2.col1 * - col2 * col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT - cor1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - col2 * 2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2785
SELECT CAST( NULL AS SIGNED ) * - col2 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2785
SELECT CAST ( NULL AS INTEGER ) * - col2 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - 66 * 75 FROM tab0 AS cor0
----
-4950
-4950
-4950
query I rowsort
SELECT DISTINCT - tab1.col1 + - tab1.col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT - + col0 + - col0 * 5 FROM tab1 AS cor0
----
-18
-384
-480
query I rowsort
SELECT ALL + tab0.col0 * + 47 AS col2 FROM tab0
----
1128
1645
4183
query I rowsort
SELECT cor0.col1 - - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7
query I rowsort
SELECT ( col0 ) * tab1.col1 * + 68 + - col1 * - col0 FROM tab1
----
44160
5382
71760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2793
SELECT col1 / col0 - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2793
SELECT col1 / col0 - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 19 * - cor0.col2 FROM tab1 cor0
----
-1026
-1083
-1824
query I rowsort
SELECT - 77 - + col1 AS col2 FROM tab2 AS cor0
----
-108
-136
-94
query I rowsort
SELECT - - col0 * col2 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + + 12 + col2 FROM tab1 AS cor0
----
108
66
69
query I rowsort
SELECT ALL - 65 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-11
-8
31
query I rowsort
SELECT col0 + + col2 * 80 AS col2 FROM tab1 AS cor0
----
4323
4624
7760
query I rowsort
SELECT ALL - 52 + col1 * 12 + ( col1 ) * + col1 FROM tab2 AS cor0
----
1281
4137
441
onlyif mysql # use DIV operator for integer division
query I rowsort label-2801
SELECT DISTINCT - + 15 DIV - cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
26
29
38
skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - + 15 / - cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
26
29
38
query I rowsort
SELECT ALL col0 + 88 FROM tab2 cor0
----
166
167
95
query I rowsort
SELECT col0 + col1 + + 2 * - col2 FROM tab2
----
-16
20
85
query I rowsort
SELECT ALL 57 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 23b62d6905061dab566f3a9e15667302
query I rowsort
SELECT - 21 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT - + ( - 16 ) FROM tab1 AS cor0
----
16
16
16
query I rowsort
SELECT DISTINCT - + 70 AS col1 FROM tab1 AS cor0
----
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col1 FROM tab0
----
-16
query I rowsort
SELECT - ( 26 ) FROM tab0 AS cor0
----
-26
-26
-26
query I rowsort
SELECT col2 + 63 * col0 AS col0 FROM tab0 AS cor0
----
1545
2206
5689
query I rowsort
SELECT - 84 AS col0 FROM tab2 AS cor0
----
-84
-84
-84
query I rowsort
SELECT ALL col1 - 61 AS col1 FROM tab0 AS cor0
----
25
30
36
query I rowsort
SELECT DISTINCT col2 * 50 AS col2 FROM tab2 AS cor0
----
1300
1350
1900
query I rowsort
SELECT ALL col2 * - col2 + + col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT + cor0.col0 + + ( col0 * - col1 ) AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + + col1 * 6 AS col2 FROM tab1 AS cor0
----
156
60
78
query I rowsort
SELECT ALL + col0 * 46 + col2 + - col0 * cor0.col2 FROM tab2 AS cor0
----
1586
160
670
query I rowsort
SELECT + + col0 + 2 FROM tab0 AS cor0
----
26
37
91
query I rowsort
SELECT ALL - col1 + + ( col1 ) * - col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT col0 + + col0 * col1 AS col1 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + col0 * col1 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - 92 - col2 FROM tab1
----
-146
-149
-188
query I rowsort
SELECT ALL + col0 * - col0 + + tab2.col1 AS col1 FROM tab2
----
-18
-6025
-6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-2824
SELECT ALL + 77 + col2 DIV - 42 AS col2 FROM tab2
----
77
77
77
skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + 77 + col2 / - 42 AS col2 FROM tab2
----
77
77
77
query I rowsort
SELECT ALL + col1 * - 58 + - col2 AS col2 FROM tab0 AS cor0
----
-5021
-5360
-5627
query I rowsort
SELECT 44 FROM tab2, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT DISTINCT col2 - - col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT 61 + - col2 * col1 FROM tab0
----
-2777
-36
-7401
query I rowsort
SELECT DISTINCT + col2 - - 13 AS col0 FROM tab2
----
39
40
51
query I rowsort
SELECT 55 * - 81 AS col1 FROM tab2
----
-4455
-4455
-4455
query I rowsort
SELECT 67 + col2 * col0 * col0 AS col1 FROM tab0
----
1292
19075
649589
query I rowsort
SELECT col1 * + tab2.col1 + - 71 * col2 + col0 AS col2 FROM tab2
----
-2330
-949
1713
query I rowsort
SELECT - - col2 * col1 - 65 AS col1 FROM tab2 AS cor0
----
1469
581
772
query I rowsort
SELECT ( + col1 ) * - tab2.col2 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - + ( - col1 ) * - 33 AS col1 FROM tab1 AS cor0
----
-330
-429
-858
query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col0 FROM tab2 cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 + + col0 * col0 col0 FROM tab1 AS cor0
----
-45
4039
6304
onlyif mysql # use DIV operator for integer division
query I rowsort label-2840
SELECT DISTINCT - + cor0.col0 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT - + cor0.col0 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT ALL - col0 * col1 + - 62 AS col2 FROM tab1
----
-1102
-140
-702
query I rowsort
SELECT 7 * - col0 FROM tab1
----
-21
-448
-560
query I rowsort
SELECT DISTINCT + 6 * col2 FROM tab0 AS cor0
----
198
492
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col2 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + 58 + + col1 AS col0 FROM tab2 AS cor0
----
117
75
89
query I rowsort
SELECT col1 * + ( col1 ) * col1 + + ( + 96 ) FROM tab1 cor0
----
1096
17672
2293
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + - cor0.col0 * + col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2849
SELECT DISTINCT + + col2 + + cor0.col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT + + col2 + + cor0.col2 / - col0 AS col2 FROM tab0 AS cor0
----
1
32
82
query I rowsort
SELECT - + col2 * + 17 * - col2 FROM tab1 cor0
----
156672
49572
55233
query I rowsort
SELECT col0 * + 42 FROM tab1 AS cor0
----
126
2688
3360
query I rowsort
SELECT DISTINCT - ( - ( - col1 ) ) + col1 * - col2 AS col1 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT - col0 + - 49 * + col1 FROM tab0 AS cor0
----
-4238
-4548
-4788
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2854
SELECT DISTINCT - CAST( 94 AS SIGNED ) col0 FROM tab1 AS cor0
----
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT - CAST ( 94 AS INTEGER ) col0 FROM tab1 AS cor0
----
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT - + ( + col0 ) * CAST ( + col1 * col1 AS REAL ) FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT col1 + - col2 * + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + 37 * col2 - - ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1972
2099
3539
onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT + 3 + col2 DIV 44 - - col2 * col2 FROM tab0 AS cor0
----
1092
4
6728
skipif mysql # not compatible
query I rowsort label-2859
SELECT + 3 + col2 / 44 - - col2 * col2 FROM tab0 AS cor0
----
1092
4
6728
query I rowsort
SELECT + 43 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1118
430
559
query I rowsort
SELECT ALL 48 * + ( - col0 ) * col2 AS col1 FROM tab1
----
-175104
-368640
-7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2862
SELECT ALL CAST( NULL AS SIGNED ) * 16 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL CAST ( NULL AS INTEGER ) * 16 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 41 * 31 * - tab0.col2 AS col2 FROM tab0
----
-104222
-1271
-41943
query I rowsort
SELECT - col2 + - ( + col0 ) AS col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + + col1 + - cor0.col2 - cor0.col2 * - col1 FROM tab0 AS cor0
----
193
2891
7471
query I rowsort
SELECT DISTINCT - ( + 47 ) * cor0.col0 + 86 * - col2 AS col2 FROM tab0 AS cor0
----
-11235
-1731
-3966
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col0 col0 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2868
SELECT - CAST( col0 AS SIGNED ) - - col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-2868
SELECT - CAST ( col0 AS INTEGER ) - - col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2870
SELECT + CAST( 29 AS SIGNED ) * col1 FROM tab1
----
290
377
754
skipif mysql # not compatible
query I rowsort label-2870
SELECT + CAST ( 29 AS INTEGER ) * col1 FROM tab1
----
290
377
754
query I rowsort
SELECT cor0.col1 * 83 + + cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 438c8e93fa08c6046b3d81c8b64a5393
query I rowsort
SELECT - + 97 - + 43 * + col1 * - cor0.col1 FROM tab0 AS cor0
----
317931
355986
404490
query I rowsort
SELECT - + cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT - col2 * + col2 - - col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT + 17 + + col2 FROM tab0 AS cor0
----
18
50
99
query I rowsort
SELECT ALL + ( + 12 ) - col2 * col0 FROM tab1
----
-150
-3636
-7668
query I rowsort
SELECT ALL - 14 + cor1.col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to e139cc93201b799c9f8c73c33c17127a
query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab0
----
99
query I rowsort
SELECT cor0.col1 * 11 FROM tab2 AS cor0
----
187
341
649
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2880
SELECT ALL + col1 * - CAST( col2 + + col0 AS SIGNED ) FROM tab1
----
-1210
-1482
-2288
skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL + col1 * - CAST ( col2 + + col0 AS INTEGER ) FROM tab1
----
-1210
-1482
-2288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL + + col2 + - 12 * col0 FROM tab1 AS cor0
----
-711
-864
18
query I rowsort
SELECT col1 + + ( col2 * col0 ) FROM tab2
----
2087
220
3019
query I rowsort
SELECT DISTINCT - col1 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - 91 + + col2 FROM tab1 AS cor0
----
-34
-37
5
query I rowsort
SELECT - - ( cor0.col1 ) * col2 - + col1 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT col0 * col0 - - col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + 94 * - col0 AS col1 FROM tab2 AS cor0
----
-658
-7332
-7426
query I rowsort
SELECT - 20 AS col1 FROM tab0 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL - ( + col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
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-2892
SELECT ALL - col0 * + col2 + col2 - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL - col0 * + col2 + col2 - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 51 + - cor0.col0 + col0 FROM tab1 AS cor0
----
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col2 FROM tab1 AS cor0
----
19
19
19
query I rowsort
SELECT DISTINCT + ( col0 ) * col1 + + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - - 83 + col0 AS col0 FROM tab0 AS cor0
----
107
118
172
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 + + 57 col0 FROM tab0 AS cor0
----
-1032
-6667
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + 91 * col1 + - CAST ( + col1 + col1 AS REAL ) col2 FROM tab0 AS cor0
----
7654
8099
8633
query I rowsort
SELECT DISTINCT - ( + col1 + - col1 ) AS col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT DISTINCT - + col2 * + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT - + col2 * + col1 / - col1 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT col0 * ( + col2 ) FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + - col2 + + ( + col0 * - col2 ) FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL - col0 * col0 * + ( + cor0.col1 ) FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + col2 + - 55 AS col1 FROM tab0 AS cor0
----
-22
-54
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT ALL + - cor0.col2 + + col1 + - col1 DIV col1 col0 FROM tab2 cor0
----
-22
3
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + - cor0.col2 + + col1 + - col1 / col1 col0 FROM tab2 cor0
----
-22
3
32
query I rowsort
SELECT ALL - col2 + - cor0.col0 + - col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1460
-251
-4706
query I rowsort
SELECT ALL + + col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col2 * - col2 * - col1 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL + - col0 * - col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col2 + tab1.col2 + + col2 FROM tab1
----
162
171
288
onlyif mysql # use DIV operator for integer division
query I rowsort label-2911
SELECT ALL + col1 DIV col2 + col1 DIV col1 AS col2 FROM tab0
----
2
3
98
skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL + col1 / col2 + col1 / col1 AS col2 FROM tab0
----
2
3
98
query I rowsort
SELECT ALL - col0 + col2 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - + col0 + cor0.col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL cor0.col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT + col1 - col0 DIV cor0.col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2915
SELECT + col1 - col0 / cor0.col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL - col0 - col2 * col0 AS col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT col0 - + col1 FROM tab1 cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * cor0.col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + - col0 + + col0 * + col2 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT ALL + col2 + col0 + col2 FROM tab0
----
253
37
90
query I rowsort
SELECT + tab1.col1 * col1 * + col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT - col0 FROM tab0 WHERE NULL NOT IN ( + col2 )
----
query I rowsort
SELECT ALL - col1 + col2 * tab2.col2 FROM tab2
----
1427
617
698
query I rowsort
SELECT DISTINCT + + col1 * col2 - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT col0 * - col1 + col1 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL col1 - col2 * col1 FROM tab0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT ALL - col2 * col2 DIV col0 - + col0 * + col1 AS col1 FROM tab1
----
-1050
-1155
-690
skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - col2 * col2 / col0 - + col0 * + col1 AS col1 FROM tab1
----
-1050
-1155
-690
query I rowsort
SELECT - col0 - + tab0.col1 * - col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT - col2 + col1 + col1 FROM tab2
----
-4
35
92
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL + - col1 * col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col0 * col1 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
177537
329316
737091
onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT ALL - tab0.col0 + col0 DIV - col1 + col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL - tab0.col0 + col0 / - col1 + col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 + - col1 + - tab2.col1 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 + col1 col2 FROM tab2
----
137
38
96
query I rowsort
SELECT tab1.col0 - col1 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT tab1.col2 * + col0 AS col1 FROM tab1 WHERE ( NULL ) IN ( col1 * col0 )
----
query I rowsort
SELECT - col2 + col1 * 74 AS col1 FROM tab2 AS cor0
----
1220
2267
4340
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= col0
----
query I rowsort
SELECT ( tab0.col2 ) * 55 AS col0 FROM tab0
----
1815
4510
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2941
SELECT col2 + + col2 * CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
1122
2
6806
skipif mysql # not compatible
query I rowsort label-2941
SELECT col2 + + col2 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
1122
2
6806
query I rowsort
SELECT + 34 * + col0 FROM tab2 AS cor0
----
238
2652
2686
query I rowsort
SELECT ALL - - 76 * - col1 + col2 FROM tab2 AS cor0
----
-1254
-2329
-4458
query I rowsort
SELECT ALL + + col0 * - col2 + col2 + - cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT 44 + cor0.col1 DIV col0 AS col0 FROM tab0 AS cor0
----
45
46
47
skipif mysql # not compatible
query I rowsort label-2945
SELECT 44 + cor0.col1 / col0 AS col0 FROM tab0 AS cor0
----
45
46
47
query I rowsort
SELECT DISTINCT col1 * - col2 - - col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT col0 + - col0 * col1 FROM tab1
----
-576
-75
-960
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 <= ( + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT - col1 DIV col0 col1 FROM tab0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2949
SELECT - col1 / col0 col1 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT col0 + - col0 * - tab2.col0 AS col0 FROM tab2
----
56
6162
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col2 FROM tab0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab2 cor0 WHERE col0 + - col2 - col2 * col0 NOT IN ( col2 / + col1 + col2 / col1 )
----
7
78
79
query I rowsort
SELECT DISTINCT col2 - + col0 * - col0 FROM tab1 WHERE + col0 * - col0 <> ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + tab2.col2 > ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT col1 + + col2 + col2 * col0 IN ( col1 )
----
86
91
97
query I rowsort
SELECT ALL - col1 + col2 * col2 + - col0 FROM tab1 cor0 WHERE NOT NULL > cor0.col1
----
query I rowsort
SELECT ALL - tab2.col2 + col0 AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT col0 - + col0 * tab0.col0 FROM tab0
----
-1190
-552
-7832
query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 < - col0 + col1
----
3
26
54
query I rowsort
SELECT ALL - col2 - - col1 * + col0 AS col2 FROM tab0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-2961
SELECT + col2 DIV + tab0.col2 col1 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2961
SELECT + col2 / + tab0.col2 col1 FROM tab0
----
1
1
1
query I rowsort
SELECT col1 * - col0 + - col1 * col2 FROM tab1
----
-1210
-1482
-2288
query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) IN ( - tab1.col2 * tab1.col0 )
----
query I rowsort
SELECT col0 * - col2 + col1 * - col1 + col2 FROM tab0
----
-15497
-8155
-9443
query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( - col0 ) NOT IN ( tab2.col0 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2967
SELECT col1 DIV col0 + + tab2.col0 + tab2.col1 AS col1 FROM tab2
----
137
42
96
skipif mysql # not compatible
query I rowsort label-2967
SELECT col1 / col0 + + tab2.col0 + tab2.col1 AS col1 FROM tab2
----
137
42
96
query I rowsort
SELECT ALL - + 84 * cor0.col1 * + 2 + col1 FROM tab0 AS cor0
----
-14362
-15197
-16199
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2969
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2970
SELECT - 42 DIV - col2 AS col0 FROM tab0
----
0
1
42
skipif mysql # not compatible
query I rowsort label-2970
SELECT - 42 / - col2 AS col0 FROM tab0
----
0
1
42
query I rowsort
SELECT - tab2.col0 * col0 * col1 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT - + col0 + ( col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT - col2 DIV 89 + 47 * cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
26790
58655
65988
skipif mysql # not compatible
query I rowsort label-2973
SELECT - col2 / 89 + 47 * cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
26790
58655
65988
query I rowsort
SELECT col1 + 14 * + ( + col1 ) FROM tab0 cor0
----
1290
1365
1455
query I rowsort
SELECT DISTINCT + - col2 * - 26 FROM tab1 cor0
----
1404
1482
2496
query I rowsort
SELECT - + col2 + 65 FROM tab2 AS cor0
----
27
38
39
query I rowsort
SELECT - - col1 * 52 + col2 AS col2 FROM tab0 AS cor0
----
4505
4814
5045
query I rowsort
SELECT + + col1 + - 96 FROM tab0 AS cor0
----
-10
-5
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT - ( 44 ) + col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-45
-45
-45
skipif mysql # not compatible
query I rowsort label-2979
SELECT - ( 44 ) + col0 / - col0 AS col0 FROM tab2 AS cor0
----
-45
-45
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT - - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2980
SELECT - - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2982
SELECT - - CAST( NULL AS DECIMAL ) * - 70 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2982
SELECT - - CAST ( NULL AS REAL ) * - 70 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 53 * tab1.col2 AS col2 FROM tab1
----
2862
3021
5088
query I rowsort
SELECT ALL 84 * col0 * col2 FROM tab1 AS cor0
----
13608
306432
645120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2985
SELECT ALL CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col0 ) * + col0 + - col2 * col1 AS col1 FROM tab2
----
-788
4550
5595
query I rowsort
SELECT ALL - ( 55 ) + col0 * tab0.col1 AS col1 FROM tab0
----
2009
3340
8044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2988
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 16 + + col1 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT - CAST ( NULL AS REAL ) * 16 + + col1 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT tab1.col0 - - col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT col0 + - 8 AS col2 FROM tab2
----
-1
70
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2991
SELECT + CAST( NULL AS SIGNED ) * col1 - - col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2991
SELECT + CAST ( NULL AS INTEGER ) * col1 - - col2 AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2992
SELECT ALL - col0 + + col1 DIV + col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL - col0 + + col1 / + col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col2 * 6 + col2 * col1 FROM tab0
----
103
3036
7954
onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT 38 DIV + col1 - col0 * col2 DIV - col1 col2 FROM tab2
----
178
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2994
SELECT 38 / + col1 - col0 * col2 / - col1 col2 FROM tab2
----
178
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col2 FROM tab1 AS cor0
----
44
44
44
query I rowsort
SELECT DISTINCT + col1 + - col2 - col2 FROM tab2 AS cor0
----
-23
-59
7
query I rowsort
SELECT DISTINCT + col2 * + col1 + col0 * col1 AS col2 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT ALL - + col2 - col2 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-2999
SELECT DISTINCT + cor0.col2 DIV col0 - + col1 AS col1 FROM tab2 AS cor0
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + cor0.col2 / col0 - + col1 AS col1 FROM tab2 AS cor0
----
-17
-28
-59
query I rowsort
SELECT ALL - 36 * - col2 FROM tab2 AS cor0
----
1368
936
972
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col2 IN ( + col1 * - cor0.col1 ) ) AND + col1 NOT IN ( cor0.col0 ) OR ( + col2 ) >= col1 * + cor0.col0
----
query I rowsort
SELECT DISTINCT - - col2 + + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL + - col0 + + cor0.col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col1 + + 22 - ( tab2.col1 ) * - col2 AS col1 FROM tab2
----
1615
685
890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 59 * + col0 col0 FROM tab0
----
33984
467339
72275
onlyif mysql # use DIV operator for integer division
query I rowsort label-3008
SELECT col1 - - 38 * col0 DIV col0 FROM tab0 AS cor0
----
124
129
135
skipif mysql # not compatible
query I rowsort label-3008
SELECT col1 - - 38 * col0 / col0 FROM tab0 AS cor0
----
124
129
135
query I rowsort
SELECT - col2 * - 30 + - col2 + col0 FROM tab2 AS cor0
----
1181
790
832
query I rowsort
SELECT + col2 * ( + col0 ) + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT col2 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT col0 * - col2 - - 80 FROM tab1 AS cor0
----
-3568
-7600
-82
query I rowsort
SELECT - col1 + 10 * - 60 + col0 FROM tab0 AS cor0
----
-602
-662
-662
query I rowsort
SELECT ALL + ( + 81 ) FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT DISTINCT 74 + col1 AS col1 FROM tab1 AS cor0
----
100
84
87
query I rowsort
SELECT - col1 - 2 AS col1 FROM tab0 AS cor0
----
-88
-93
-99
query I rowsort
SELECT DISTINCT 21 * 37 AS col1 FROM tab2, tab2 AS cor0
----
777
query I rowsort
SELECT ALL - cor0.col0 + 16 * 47 AS col0 FROM tab2 AS cor0
----
673
674
745
onlyif mysql # use DIV operator for integer division
query I rowsort label-3019
SELECT - 37 + + col2 DIV - col0 FROM tab0 AS cor0
----
-37
-37
-38
skipif mysql # not compatible
query I rowsort label-3019
SELECT - 37 + + col2 / - col0 FROM tab0 AS cor0
----
-37
-37
-38
query I rowsort
SELECT 27 + - cor0.col2 AS col1 FROM tab2 cor0
----
-11
0
1
query I rowsort
SELECT ALL col1 * col1 + col2 - + col1 FROM tab0 cor0
----
7343
8272
9313
query I rowsort
SELECT DISTINCT + - col2 * - col2 + col0 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT - 31 * - col2 AS col1 FROM tab2
----
1178
806
837
query I rowsort
SELECT - + ( + 36 ) * col1 AS col2 FROM tab2 AS cor0
----
-1116
-2124
-612
query I rowsort
SELECT ( - 77 ) - col1 * cor0.col2 AS col1 FROM tab2 cor0
----
-1611
-723
-914
query I rowsort
SELECT ALL 83 + 69 FROM tab0 AS cor0
----
152
152
152
query I rowsort
SELECT DISTINCT - - 28 AS col2 FROM tab1 AS cor0
----
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3028
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - 40 + col0 * col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 40 + col0 * col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col1 + - 60 * + col2 FROM tab2 AS cor0
----
-1501
-1589
-2263
query I rowsort
SELECT - 13 + - col1 * - cor0.col0 * col2 FROM tab0 AS cor0
----
3382
664105
68099
query I rowsort
SELECT DISTINCT + col0 + col1 * - ( ( + col0 ) ) FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-3032
SELECT - 13 DIV col0 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3032
SELECT - 13 / col0 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + col1 * + cor0.col2 + col0 FROM tab2 AS cor0
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 + col2 * - col0 col1 FROM tab1 AS cor0
----
-111
-3597
-7629
query I rowsort
SELECT DISTINCT + - 25 * col2 FROM tab1 AS cor0
----
-1350
-1425
-2400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT + - col2 * col0 + - cor0.col2 * - 33 FROM tab1 AS cor0
----
-1767
-4512
1620
query I rowsort
SELECT ALL - 91 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
198
3390
870
query I rowsort
SELECT + + 6 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT ALL + + 54 AS col1 FROM tab1 cor0
----
54
54
54
query I rowsort
SELECT col0 + + cor0.col0 * col0 * - 34 FROM tab0 cor0
----
-19560
-269225
-41615
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT col1 * col0 * + 99 AS col2 FROM tab2 cor0
----
132957
21483
455598
query I rowsort
SELECT + + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - 27 * - col1 col2 FROM tab2 AS cor0
----
1619
497
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT DISTINCT col2 * col2 DIV col1 FROM tab0 AS cor0
----
0
12
73
skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT col2 * col2 / col1 FROM tab0 AS cor0
----
0
12
73
query I rowsort
SELECT DISTINCT + cor0.col1 + 87 FROM tab2, tab2 AS cor0
----
104
118
146
query I rowsort
SELECT + + col2 * + 12 * + 53 AS col1 FROM tab2 cor0
----
16536
17172
24168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - col1 col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT 98 * col0 AS col1 FROM tab2
----
686
7644
7742
query I rowsort
SELECT 60 * col2 FROM tab2
----
1560
1620
2280
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col2 * + CAST ( cor0.col2 * col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT + cor1.col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3054
SELECT + - col1 * 73 DIV - col1 col2 FROM tab1 AS cor0
----
73
73
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3054
SELECT + - col1 * 73 / - col1 col2 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT col2 * col0 * - col1 AS col2 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - 37 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT + 19 * col1 FROM tab2 AS cor0
----
1121
323
589
query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT cor0.col2 + col1 * col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT ALL + col1 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-3063
SELECT ALL 31 DIV - col0 AS col2 FROM tab1
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL 31 / - col0 AS col2 FROM tab1
----
-10
0
0
query I rowsort
SELECT tab1.col2 + + 96 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b9c0e85c4cffaaeabac0d1e2bc090b03
query I rowsort
SELECT - col1 * col0 + + col2 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT + - 50 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1543
-2872
-771
query I rowsort
SELECT + cor0.col0 + + col2 * + ( + col1 + + cor0.col1 ) FROM tab2 AS cor0
----
1371
1681
3146
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3068
SELECT ALL ( col2 ) * - CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL ( col2 ) * - CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * + col1 - col2 AS col0 FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col0 FROM tab2
----
62
62
62
query I rowsort
SELECT 46 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 086e8f56201fbf4c0ce74087e710811d
query I rowsort
SELECT ALL - ( - col2 ) * + ( col2 ) + - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3073
SELECT DISTINCT - 12 * + col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT - 12 * + col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col0 col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3075
SELECT - cor0.col1 * cor0.col2 + col2 DIV col0 + + col1 * 60 AS col1 FROM tab0 AS cor0
----
-2002
2323
5723
skipif mysql # not compatible
query I rowsort label-3075
SELECT - cor0.col1 * cor0.col2 + col2 / col0 + + col1 * 60 AS col1 FROM tab0 AS cor0
----
-2002
2323
5723
query I rowsort
SELECT ALL col2 + col0 + + 29 AS col1 FROM tab2
----
133
146
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3077
SELECT - tab1.col0 + + CAST( col1 * col1 + CAST( 2 AS SIGNED ) AS SIGNED ) FROM tab1
----
38
675
91
skipif mysql # not compatible
query I rowsort label-3077
SELECT - tab1.col0 + + CAST ( col1 * col1 + CAST ( 2 AS INTEGER ) AS INTEGER ) FROM tab1
----
38
675
91
query I rowsort
SELECT + - col0 * col1 - col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT + cor0.col2 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT col1 + - col0 + col2 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT ALL - + col2 * 51 * col2 AS col2 FROM tab2 AS cor0
----
-34476
-37179
-73644
onlyif mysql # use DIV operator for integer division
query I rowsort label-3082
SELECT DISTINCT - 40 * ( + col1 ) DIV 56 AS col2 FROM tab2 AS cor0
----
-12
-22
-42
skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT - 40 * ( + col1 ) / 56 AS col2 FROM tab2 AS cor0
----
-12
-22
-42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col0 + col2 col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3084
SELECT CAST( NULL AS SIGNED ) + 80 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3084
SELECT CAST ( NULL AS INTEGER ) + 80 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 40 * col1 FROM tab1 AS cor0
----
-1040
-400
-520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3086
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3086
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - col2 * + col2 * - 91 AS col1 FROM tab2
----
131404
61516
66339
query I rowsort
SELECT ALL + tab2.col0 * 9 AS col0 FROM tab2
----
63
702
711
query I rowsort
SELECT + + ( - col1 ) + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 48 + + 29 + - col0 AS col2 FROM tab2 AS cor0
----
-26
-97
-98
query I rowsort
SELECT ALL + + 64 AS col2 FROM tab0 AS cor0
----
64
64
64
query I rowsort
SELECT ALL + + 81 * - 76 * - col1 FROM tab2 AS cor0
----
104652
190836
363204
query I rowsort
SELECT tab0.col2 * 52 FROM tab0
----
1716
4264
52
query I rowsort
SELECT DISTINCT - - 95 + - 3 AS col1 FROM tab1 AS cor0
----
92
query I rowsort
SELECT DISTINCT + - 61 * + col1 FROM tab2 AS cor0
----
-1037
-1891
-3599
query I rowsort
SELECT col1 * tab0.col2 + - col2 FROM tab0
----
2805
7380
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3097
SELECT + col2 * 45 + + tab1.col1 * CAST( NULL AS SIGNED ) + + col0 / col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3097
SELECT + col2 * 45 + + tab1.col1 * CAST ( NULL AS INTEGER ) + + col0 / col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3098
SELECT ALL - 99 * + col0 * - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL - 99 * + col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( col2 ) * - 36 AS col2 FROM tab2 AS cor0
----
-1368
-936
-972
query I rowsort
SELECT ALL - col0 * tab0.col0 + - col2 + + 36 FROM tab0
----
-1190
-573
-7967
query I rowsort
SELECT col0 + + ( - col0 ) * - 7 FROM tab1
----
24
512
640
query I rowsort
SELECT + 31 * - col2 FROM tab1
----
-1674
-1767
-2976
query I rowsort
SELECT DISTINCT + 52 * + col2 + tab0.col2 FROM tab0
----
1749
4346
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-3104
SELECT DISTINCT ( - col0 ) DIV + col1 + - 44 AS col1 FROM tab2
----
-44
-45
-48
skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT ( - col0 ) / + col1 + - 44 AS col1 FROM tab2
----
-44
-45
-48
query I rowsort
SELECT + cor0.col1 + - 5 + col2 AS col1 FROM tab0 cor0
----
114
168
93
query I rowsort
SELECT DISTINCT tab1.col0 + + 22 FROM tab1
----
102
25
86
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1, tab0, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL cor0.col2 + 68 FROM tab1, tab1 AS cor0
----
9 values hashing to 724fcb50819193f20c1af3b1d513b127
query I rowsort
SELECT DISTINCT - col0 * 23 + - 78 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-2097
-2252
-2854
query I rowsort
SELECT ALL col0 * - cor0.col2 * 93 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-17584
-188682
-279265
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3111
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + 92 * col0 + - col2 * col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + 92 * col0 + - col2 * col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 63 col0 FROM tab0 AS cor0
----
2079
5166
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3113
SELECT DISTINCT - - col2 + col0 + ( col2 + CAST( NULL AS SIGNED ) ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT - - col2 + col0 + ( col2 + CAST ( NULL AS INTEGER ) ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + ( tab1.col0 ) AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT - col2 - col1 * - 93 AS col0 FROM tab0
----
7965
8381
9020
query I rowsort
SELECT DISTINCT cor1.col0 - + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
-16
-51
7
query I rowsort
SELECT + col2 + - col0 + + col2 FROM tab1
----
105
112
50
query I rowsort
SELECT ALL 18 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - 85 col0 FROM tab2
----
102
116
144
query I rowsort
SELECT DISTINCT + col1 - col1 * 83 AS col1 FROM tab2
----
-1394
-2542
-4838
query I rowsort
SELECT ALL - col0 + - ( - col1 + col2 ) AS col2 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT - - col2 + - col0 AS col1 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT col2 * - 58 * 71 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-136686
-344974
-4153
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3124
SELECT DISTINCT col0 * - col1 + 30 * + cor0.col1 + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-404
-730
699
skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT col0 * - col1 + 30 * + cor0.col1 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-404
-730
699
query I rowsort
SELECT - col1 * ( col1 ) + col2 AS col2 FROM tab2 cor0
----
-251
-3455
-934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3126
SELECT col2 - CAST( + col2 + + cor0.col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3126
SELECT col2 - CAST ( + col2 + + cor0.col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col0 * + cor0.col0 + ( - col2 ) * - col0 + 36 FROM tab2 AS cor0
----
274
8148
9279
query I rowsort
SELECT 25 * - col1 AS col1 FROM tab0 AS cor0
----
-2150
-2275
-2425
query I rowsort
SELECT DISTINCT 16 * - col0 * tab1.col1 FROM tab1
----
-10240
-1248
-16640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT ALL + 22 AS col0 FROM tab1
----
22
22
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-3133
SELECT DISTINCT + col1 DIV - col0 + 64 FROM tab2 cor0
----
60
64
skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT + col1 / - col0 + 64 FROM tab2 cor0
----
60
64
query I rowsort
SELECT DISTINCT col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3135
SELECT ALL tab0.col1 * CAST( NULL AS SIGNED ) * + 72 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL tab0.col1 * CAST ( NULL AS INTEGER ) * + 72 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - - col2 * + col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 * col1 + col2 * col2 AS col0 FROM tab0 AS cor0
----
-1375
-3394
-975
query I rowsort
SELECT tab2.col1 * + col1 + col1 * col1 AS col1 FROM tab2
----
1922
578
6962
query I rowsort
SELECT col2 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3140
SELECT col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3140
SELECT col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * col1 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL + - col2 * 50 AS col0 FROM tab2 AS cor0
----
-1300
-1350
-1900
query I rowsort
SELECT DISTINCT col1 * + 7 AS col2 FROM tab2 AS cor0
----
119
217
413
query I rowsort
SELECT ALL tab1.col2 + ( + tab1.col1 ) * tab1.col1 FROM tab1
----
157
265
730
query I rowsort
SELECT + col2 + + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL cor0.col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 - col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT + col2 * 68 AS col0 FROM tab0 cor0
----
2244
5576
68
query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + 11 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359
query I rowsort
SELECT DISTINCT + - col2 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT ALL + + col1 * ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - cor0.col1 * - 31 + - col1 AS col2 FROM tab0 AS cor0
----
2580
2730
2910
onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT DISTINCT col2 * + CAST( col2 AS SIGNED ) * col2 + 27 DIV - col1 AS col0 FROM tab0
----
1
35937
551368
skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT col2 * + CAST ( col2 AS INTEGER ) * col2 + 27 / - col1 AS col0 FROM tab0
----
1
35937
551368
query I rowsort
SELECT ALL - - 67 AS col1 FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab2, tab0 AS cor0
----
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 5 * col0 col2 FROM tab2 AS cor0
----
357
364
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT col0 + 6 DIV col1 + + col1 DIV 84 AS col0 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3159
SELECT col0 + 6 / col1 + + col1 / 84 AS col0 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 61 AS REAL ) FROM tab1 AS cor0
----
-61
-61
-61
query I rowsort
SELECT ALL - 63 * + 50 * col2 FROM tab2
----
-119700
-81900
-85050
query I rowsort
SELECT DISTINCT + 77 FROM tab2, tab2 cor0
----
77
query I rowsort
SELECT - col1 * + 67 FROM tab0
----
-5762
-6097
-6499
query I rowsort
SELECT + col1 * col1 + + col1 * + 77 + cor0.col2 AS col0 FROM tab0 AS cor0
----
14051
15370
16879
query I rowsort
SELECT col0 + - 22 + col2 FROM tab1 AS cor0
----
154
35
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3166
SELECT ALL - CAST( 48 AS SIGNED ) FROM tab1 AS cor0
----
-48
-48
-48
skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL - CAST ( 48 AS INTEGER ) FROM tab1 AS cor0
----
-48
-48
-48
query I rowsort
SELECT + 98 + + col1 FROM tab2 AS cor0
----
115
129
157
query I rowsort
SELECT + 49 * col1 FROM tab1 AS cor0
----
1274
490
637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col0 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT 19 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT - 53 * + col0 AS col0 FROM tab2 cor0
----
-371
-4134
-4187
query I rowsort
SELECT + 21 AS col1 FROM tab1 AS cor0
----
21
21
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 col2 FROM tab1, tab0 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3174
SELECT ALL 54 * col1 DIV col2 AS col2 FROM tab1
----
26
7
9
skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL 54 * col1 / col2 AS col2 FROM tab1
----
26
7
9
query I rowsort
SELECT + col0 - - ( + col0 + col1 ) AS col2 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT DISTINCT - - col1 * ( 40 ) AS col1 FROM tab1 AS cor0
----
1040
400
520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + cor0.col1 * col1 ) + + 51 + 23 col2 FROM tab0 AS cor0
----
636130
753645
912747
query I rowsort
SELECT 25 * - col1 + - 55 AS col2 FROM tab2
----
-1530
-480
-830
query I rowsort
SELECT + + cor0.col2 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - col2 * ( 39 ) * - tab1.col0 + col0 FROM tab1
----
142336
299600
6321
query I rowsort
SELECT ALL 70 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT col0 + tab0.col1 + - col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + col1 * ( col2 ) AS col1 FROM tab2
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3184
SELECT DISTINCT - tab1.col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - tab1.col1 * CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - col0 * + tab2.col0 + - col1 AS col2 FROM tab2
----
-6143
-6258
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3186
SELECT + tab0.col0 DIV + col1 col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3186
SELECT + tab0.col0 / + col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + - col2 + - col1 AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT col1 * tab1.col2 * + col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL + - col0 + + col0 + - ( col2 ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - col0 * col1 * 47 AS col1 FROM tab1 cor0
----
-30080
-3666
-48880
query I rowsort
SELECT ALL - col0 + - tab2.col1 * col0 FROM tab2
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col1 col1 FROM tab1
----
109
67
80
query I rowsort
SELECT - tab0.col0 + + 83 * - 65 AS col0 FROM tab0
----
-5419
-5430
-5484
onlyif mysql # use DIV operator for integer division
query I rowsort label-3194
SELECT - col1 DIV - ( col2 ) - + col1 FROM tab0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-3194
SELECT - col1 / - ( col2 ) - + col1 FROM tab0
----
-84
-90
0
query I rowsort
SELECT - col1 + + col0 * tab2.col1 * - tab2.col2 AS col1 FROM tab2
----
-119711
-51051
-5890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3196
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col2 * - 90 FROM tab1
----
-4860
-5130
-8640
query I rowsort
SELECT 89 * - col2 FROM tab1
----
-4806
-5073
-8544
query I rowsort
SELECT 99 * - ( - col2 ) FROM tab2
----
2574
2673
3762
query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab1, tab0 AS cor0
----
80
query I rowsort
SELECT DISTINCT + 78 FROM tab1, tab2 cor0
----
78
query I rowsort
SELECT DISTINCT ( col0 ) * - col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT ( 86 ) AS col0 FROM tab1
----
86
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
-1
-33
-82
query I rowsort
SELECT ALL + 30 FROM tab2, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT - - 7 AS col2 FROM tab1 AS cor0
----
7
7
7
query I rowsort
SELECT col2 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 * + cor0.col1 col2 FROM tab0 AS cor0
----
-3010
-3185
-3395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3209
SELECT + + ( col1 ) * CAST( NULL AS SIGNED ) * - col0 - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3209
SELECT + + ( col1 ) * CAST ( NULL AS INTEGER ) * - col0 - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 35 + col2 AS col2 FROM tab1 AS cor0
----
19
22
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-3211
SELECT - 33 DIV - col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3211
SELECT - 33 / - col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT 76 + - col2 * - col1 FROM tab2 AS cor0
----
1610
722
913
onlyif mysql # use DIV operator for integer division
query I rowsort label-3213
SELECT - cor0.col0 * + col0 * cor0.col2 + - col1 DIV col1 AS col2 FROM tab0 cor0
----
-1226
-19009
-649523
skipif mysql # not compatible
query I rowsort label-3213
SELECT - cor0.col0 * + col0 * cor0.col2 + - col1 / col1 AS col2 FROM tab0 cor0
----
-1226
-19009
-649523
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col0 * - col2 - ( - ( + col0 ) ) FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + 63 - - col0 FROM tab1 AS cor0
----
127
143
66
query I rowsort
SELECT DISTINCT + col1 * tab2.col2 + + ( - 43 ) * col0 AS col1 FROM tab2
----
-1820
-2751
536
onlyif mysql # use DIV operator for integer division
query I rowsort label-3218
SELECT col1 DIV col1 + tab1.col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-3218
SELECT col1 / col1 + tab1.col1 FROM tab1
----
11
14
27
query I rowsort
SELECT ALL - col2 + + col1 * 62 FROM tab0 AS cor0
----
5299
5560
6013
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + cor0.col0 col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col0 + 52 FROM tab2 AS cor0
----
130
131
59
query I rowsort
SELECT + col0 * + 7 + - col2 AS col0 FROM tab1 AS cor0
----
-33
391
464
query I rowsort
SELECT DISTINCT - col0 + col0 * + col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT + col0 + + 8 * - ( + col2 ) FROM tab1 AS cor0
----
-392
-429
-688
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3225
SELECT + - col0 * CAST( 53 AS SIGNED ) + col0 * + ( col1 ) + col0 col1 FROM tab2 AS cor0
----
-147
-2765
546
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3225
SELECT + - col0 * CAST ( 53 AS INTEGER ) + col0 * + ( col1 ) + col0 col1 FROM tab2 AS cor0
----
-147
-2765
546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3226
SELECT cor0.col0 / CAST( NULL AS SIGNED ) - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3226
SELECT cor0.col0 / CAST ( NULL AS INTEGER ) - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3228
SELECT ALL + col2 DIV ( cor0.col2 * - cor0.col0 + + col0 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL + col2 / ( cor0.col2 * - cor0.col0 + + col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * cor0.col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 - + col2 col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab0, tab1 AS cor0, tab1
----
3
64
80
query I rowsort
SELECT - 23 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT ALL col2 - col0 DIV col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL col2 - col0 / col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - 49 - - col1 FROM tab1
----
-23
-36
-39
query I rowsort
SELECT DISTINCT + ( 37 ) FROM tab0 cor0
----
37
query I rowsort
SELECT ALL col0 + - 71 FROM tab1 AS cor0
----
-68
-7
9
query I rowsort
SELECT DISTINCT + + ( col0 ) * - col1 * - ( col0 * cor0.col0 ) + ( + cor0.col1 ) FROM tab0 cor0
----
1188950
4158972
64152270
query I rowsort
SELECT ALL - + 8 * - col0 - + col2 FROM tab0 AS cor0
----
159
279
630
query I rowsort
SELECT - + col1 * col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - + ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + - 40 FROM tab0 AS cor0
----
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( col0 ) ) * col0 + col2 col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT - 49 * ( + col1 ) AS col1 FROM tab0 cor0
----
-4214
-4459
-4753
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3245
SELECT DISTINCT - + CAST( col1 AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - 25 + ( - col2 ) * 28 AS col0 FROM tab0 AS cor0
----
-2321
-53
-949
query I rowsort
SELECT DISTINCT 90 + + col1 FROM tab1 AS cor0
----
100
103
116
query I rowsort
SELECT ALL - col1 * - col1 * + 1 FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT ALL col0 DIV 33 col2 FROM tab2
----
0
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL col0 / 33 col2 FROM tab2
----
0
2
2
query I rowsort
SELECT - cor0.col1 * 43 * + cor1.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bbcccb01c7b273b850bc1f80eb56e3a
query I rowsort
SELECT ALL 53 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT + - ( - 78 ) AS col0 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT - ( 16 ) FROM tab0 cor0
----
-16
-16
-16
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2, tab1 AS cor1
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c
query I rowsort
SELECT + ( - 52 ) + tab1.col0 FROM tab1
----
-49
12
28
query I rowsort
SELECT ALL col2 * - col0 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + + cor0.col2 * - col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3258
SELECT DISTINCT - - cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT - - cor0.col1 / col0 AS col2 FROM tab1 AS cor0
----
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col2 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3260
SELECT + - col1 + col0 DIV cor0.col0 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-3260
SELECT + - col1 + col0 / cor0.col0 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 * col0 AS col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT + col0 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT DISTINCT col0 DIV + col0 AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT col0 / + col0 AS col0 FROM tab0
----
1
query I rowsort
SELECT + ( col2 ) * + col1 * cor0.col0 - col2 AS col2 FROM tab1 AS cor0
----
36423
4158
99744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col1 FROM tab1 AS cor0
----
-28
-28
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col0 ) col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - 92 * col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1100
-2338
-863
query I rowsort
SELECT ALL + - cor0.col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + col0 * + col0 FROM tab0 cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-3270
SELECT cor0.col2 DIV + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-3270
SELECT cor0.col2 / + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3272
SELECT ALL + 87 * 23 + - col2 DIV + tab1.col2 - + col1 FROM tab1
----
1974
1987
1990
skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + 87 * 23 + - col2 / + tab1.col2 - + col1 FROM tab1
----
1974
1987
1990
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + + col0 col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + ( col2 ) - + col2 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * tab2.col0 + - tab2.col1 * + tab2.col1 * col2 col1 FROM tab2
----
-25731
-7942
-88452
query I rowsort
SELECT DISTINCT + tab1.col2 + col2 + - col1 FROM tab1
----
104
179
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3277
SELECT 73 + cor0.col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
72
72
72
skipif mysql # not compatible
query I rowsort label-3277
SELECT 73 + cor0.col0 / - col0 AS col1 FROM tab1 AS cor0
----
72
72
72
query I rowsort
SELECT + 55 + + col0 + - col2 FROM tab2 AS cor0
----
107
35
96
query I rowsort
SELECT ALL 73 * cor0.col2 AS col0 FROM tab1 AS cor0
----
3942
4161
7008
query I rowsort
SELECT DISTINCT col1 * col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT + - col1 * + cor0.col1 + col2 DIV col1 + + col1 FROM tab1 AS cor0
----
-149
-648
-85
skipif mysql # not compatible
query I rowsort label-3281
SELECT + - col1 * + cor0.col1 + col2 / col1 + + col1 FROM tab1 AS cor0
----
-149
-648
-85
query I rowsort
SELECT ALL tab0.col1 - col2 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT + col0 * col0 + + col0 AS col1 FROM tab0
----
1260
600
8010
query I rowsort
SELECT col1 * col0 * col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT + col1 - tab2.col0 FROM tab2 WHERE NOT ( col1 + col0 ) NOT BETWEEN NULL AND - col1 - - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 + col0 * col0 col0 FROM tab1
----
-1280
-153
448
query I rowsort
SELECT DISTINCT tab0.col0 * - col0 - - col0 AS col2 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT ALL - tab2.col1 * col2 * col1 AS col1 FROM tab2
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-3289
SELECT + col1 * col0 DIV col2 + col1 DIV col2 FROM tab0
----
3492
64
99
skipif mysql # not compatible
query I rowsort label-3289
SELECT + col1 * col0 / col2 + col1 / col2 FROM tab0
----
3492
64
99
query I rowsort
SELECT ALL tab1.col1 + - col1 + col1 * col1 * - col1 FROM tab1
----
-1000
-17576
-2197
onlyif mysql # use DIV operator for integer division
query I rowsort label-3291
SELECT ALL + col0 DIV - tab2.col1 AS col0 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + col0 / - tab2.col1 AS col0 FROM tab2
----
-1
-4
0
query I rowsort
SELECT + col0 * col1 - - col0 * + col0 AS col0 FROM tab2
----
10686
266
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT - col0 * + col0 + + col0 DIV col1 AS col1 FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-3293
SELECT - col0 * + col0 + + col0 / col1 AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT tab1.col0 - col1 * col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT - tab0.col2 * - col0 AS col0 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + tab0.col1 / col0 col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 + + col0 + - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3297
SELECT + col1 + col1 DIV col2 AS col0 FROM tab0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-3297
SELECT + col1 + col1 / col2 AS col0 FROM tab0
----
194
88
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT DISTINCT tab1.col1 DIV - col2 + - col0 + + col2 FROM tab1
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT tab1.col1 / - col2 + - col0 + + col2 FROM tab1
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-3299
SELECT col0 DIV col1 col1 FROM tab1
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3299
SELECT col0 / col1 col1 FROM tab1
----
0
6
6
query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * col1 + col0 IN ( - col1 )
----
query I rowsort
SELECT ALL col1 * col0 * col0 AS col2 FROM tab0
----
118825
49536
720811
query III rowsort
SELECT * FROM tab0 WHERE ( + col0 * + col0 ) > NULL
----
query I rowsort
SELECT ALL + col1 + - cor0.col2 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-131
-1943
-2947
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < ( - col0 )
----
query I rowsort
SELECT cor0.col1 + cor0.col2 * + cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 57fa3ea2a2bfeabc5456c4370e35ff85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3307
SELECT col2 * - col1 DIV col1 + tab2.col2 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3307
SELECT col2 * - col1 / col1 + tab2.col2 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL cor0.col0 + - 89 FROM tab2 cor0
----
-10
-11
-82
query I rowsort
SELECT + col1 + + 43 AS col1 FROM tab2 AS cor0
----
102
60
74
query I rowsort
SELECT ALL + 62 * - col0 FROM tab1 AS cor0
----
-186
-3968
-4960
query I rowsort
SELECT DISTINCT - ( + col0 ) * - col2 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
-36416
-4209
-99760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3312
SELECT CAST( NULL AS SIGNED ) * 72 * - col1 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-3312
SELECT CAST ( NULL AS INTEGER ) * 72 * - col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 24 + 29 + + col0 AS col0 FROM tab2 cor0
----
131
132
60
query I rowsort
SELECT + + col1 * col1 * col0 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT + cor0.col1 - - 28 AS col1 FROM tab0 AS cor0
----
114
119
125
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3316
SELECT ALL - CAST( NULL AS SIGNED ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - CAST ( NULL AS INTEGER ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 39 * col1 - col0 FROM tab2 cor0
----
-1216
-2379
-742
query I rowsort
SELECT DISTINCT - col0 * + ( col1 + + 49 ) FROM tab1 AS cor0
----
-225
-3776
-4960
onlyif mysql # use DIV operator for integer division
query I rowsort label-3319
SELECT DISTINCT 38 DIV + tab1.col2 + - col1 * ( + 86 ) col0 FROM tab1
----
-1118
-2236
-860
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT 38 / + tab1.col2 + - col1 * ( + 86 ) col0 FROM tab1
----
-1118
-2236
-860
query I rowsort
SELECT - 96 + - 85 - col2 FROM tab2
----
-207
-208
-219
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3321
SELECT - CAST( 13 AS SIGNED ) * + col2 * col1 FROM tab1
----
-16224
-18252
-7410
skipif mysql # not compatible
query I rowsort label-3321
SELECT - CAST ( 13 AS INTEGER ) * + col2 * col1 FROM tab1
----
-16224
-18252
-7410
query I rowsort
SELECT DISTINCT + - col0 + + 55 FROM tab0 cor0
----
-34
20
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT - col1 + + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 + col1 * cor0.col2 * col0 col1 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT ALL cor0.col2 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL 94 + + col0 * ( - col1 ) FROM tab0
----
-1970
-3301
-8005
query I rowsort
SELECT DISTINCT cor0.col0 * - 51 AS col2 FROM tab0, tab1 AS cor0
----
-153
-3264
-4080
query I rowsort
SELECT + 33 + 33 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 50 col2 FROM tab1
----
150
3200
4000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - cor0.col0 * 4 col2 FROM tab1 AS cor0
----
-266
-333
-38
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c
query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col1 - + cor0.col2 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7e3bd4b2a72be52dbfcb58c7885e87f9
query I rowsort
SELECT cor0.col2 * - 99 FROM tab2 AS cor0
----
-2574
-2673
-3762
onlyif mysql # use DIV operator for integer division
query I rowsort label-3336
SELECT ALL + col2 + 55 - - col0 * - col2 DIV col2 FROM tab1 AS cor0
----
106
48
71
skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL + col2 + 55 - - col0 * - col2 / col2 FROM tab1 AS cor0
----
106
48
71
query I rowsort
SELECT ALL - 29 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-109
-32
-93
query I rowsort
SELECT DISTINCT - - ( + cor0.col1 ) * + col1 - + col0 AS col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT ALL + + cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3340
SELECT ALL 10 + + col1 * + col2 DIV col2 col0 FROM tab1 AS cor0
----
20
23
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL 10 + + col1 * + col2 / col2 col0 FROM tab1 AS cor0
----
20
23
36
query I rowsort
SELECT DISTINCT - ( - col1 ) * + col2 + - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT + - col0 + + 19 AS col1 FROM tab1 AS cor0
----
-45
-61
16
query I rowsort
SELECT DISTINCT - - cor0.col1 * + cor0.col2 + cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab1, tab0 AS cor0
----
10
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + col1 * col0 * - col0 AS col1 FROM tab0 AS cor0
----
-118826
-49569
-720893
query I rowsort
SELECT - 26 + col1 + col0 AS col1 FROM tab0
----
106
154
84
query I rowsort
SELECT col0 * col1 + + col2 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT tab0.col1 * col0 + col1 FROM tab0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0, tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * col1 + - 48 * col0 + tab1.col0 col2 FROM tab1
----
-2438
-2512
1263
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab2 cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3353
SELECT DISTINCT + ( + col1 ) * CAST( col1 AS SIGNED ) FROM tab0 cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT + ( + col1 ) * CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col0 - col0 * 84 AS col1 FROM tab1 AS cor0
----
-255
-5440
-6800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3355
SELECT + - col2 * + col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3355
SELECT + - col2 * + col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 80 * 82 AS col2 FROM tab0 AS cor0
----
6561
6593
6642
query I rowsort
SELECT - col0 * col2 * - col1 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - 55 col0 FROM tab0 AS cor0
----
31
36
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3359
SELECT DISTINCT + cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT + cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT DISTINCT - col0 * ( - col2 ) + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
35
7298
793
skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT - col0 * ( - col2 ) + col2 / + col0 AS col0 FROM tab0 AS cor0
----
35
7298
793
query I rowsort
SELECT - cor0.col0 + col0 * 4 AS col1 FROM tab1 cor0
----
192
240
9
query I rowsort
SELECT ALL col1 + ( 11 ) * + col0 - col1 * col0 AS col0 FROM tab0 AS cor0
----
-1714
-2913
-7029
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3363
SELECT + col1 * + tab0.col2 - CAST( col0 + - col2 AS SIGNED ) AS col0 FROM tab0
----
2847
63
7455
skipif mysql # not compatible
query I rowsort label-3363
SELECT + col1 * + tab0.col2 - CAST ( col0 + - col2 AS INTEGER ) AS col0 FROM tab0
----
2847
63
7455
query I rowsort
SELECT DISTINCT - col0 * - col1 + - ( + col2 ) FROM tab1
----
24
583
944
query I rowsort
SELECT + col2 * 31 + + cor0.col0 * col0 + - col1 FROM tab1 AS cor0
----
1657
5853
9363
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3366
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col0 * col1 * + col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT - - col0 - col0 * col2 * - col0 AS col2 FROM tab1 AS cor0
----
233536
489
614480
query I rowsort
SELECT ALL - ( + cor0.col1 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3370
SELECT 7 * col1 - - CAST( NULL AS SIGNED ) * - 93 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3370
SELECT 7 * col1 - - CAST ( NULL AS INTEGER ) * - 93 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + col0 + + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - + col2 * 0 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - + col0 + col0 * - 88 + - col0 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT - col2 + + 2 * - col2 + + col1 FROM tab2 AS cor0
----
-19
-50
-97
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - - col2 + + 37 AS col2 FROM tab1 AS cor0
----
133
91
94
query I rowsort
SELECT ALL + col2 * + col2 + 85 AS col0 FROM tab0 cor0
----
1174
6809
86
query I rowsort
SELECT ALL col0 - 30 AS col0 FROM tab0 AS cor0
----
-6
5
59
query I rowsort
SELECT ALL + + col0 * + 14 AS col1 FROM tab2 AS cor0
----
1092
1106
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - 78 * + col2 AS col0 FROM tab0
----
-2574
-6396
-78
query I rowsort
SELECT ALL - 81 + - col1 AS col2 FROM tab2
----
-112
-140
-98
query I rowsort
SELECT DISTINCT ( col2 ) * - 86 * + tab0.col1 + tab0.col2 AS col1 FROM tab0
----
-244035
-641650
-8341
onlyif mysql # use DIV operator for integer division
query I rowsort label-3384
SELECT DISTINCT + 51 * col1 + - 60 DIV 3 FROM tab1
----
1306
490
643
skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT + 51 * col1 + - 60 / 3 FROM tab1
----
1306
490
643
query I rowsort
SELECT - col1 * 9 + + 22 FROM tab1 AS cor0
----
-212
-68
-95
query I rowsort
SELECT + col1 * - 75 AS col2 FROM tab0 AS cor0
----
-6450
-6825
-7275
query I rowsort
SELECT - col2 * + 55 + col1 AS col2 FROM tab2 AS cor0
----
-1371
-1454
-2073
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3388
SELECT DISTINCT - CAST( + 50 AS SIGNED ) * col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT - CAST ( + 50 AS INTEGER ) * col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + + col0 * - col0 + col2 * - col0 FROM tab2 AS cor0
----
-238
-8112
-9243
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-3392
SELECT 12 * col0 DIV col1 AS col2 FROM tab2 AS cor0
----
15
2
55
skipif mysql # not compatible
query I rowsort label-3392
SELECT 12 * col0 / col1 AS col2 FROM tab2 AS cor0
----
15
2
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 46 col2 FROM tab1 AS cor0
----
-46
-46
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT + col2 + col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
36
57
95
skipif mysql # not compatible
query I rowsort label-3394
SELECT + col2 + col2 / - col0 AS col2 FROM tab1 AS cor0
----
36
57
95
query I rowsort
SELECT - - 85 * cor0.col0 AS col1 FROM tab0 cor0
----
2040
2975
7565
query I rowsort
SELECT col1 * tab0.col0 - ( col0 * ( - col1 ) ) AS col0 FROM tab0
----
16198
4128
6790
query I rowsort
SELECT - ( col1 ) AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ( col1 ) * col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + ( cor0.col1 ) + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * + col0 col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT 28 * + col2 - + col2 * + 18 AS col1 FROM tab2 AS cor0
----
260
270
380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col2 ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT - col0 * - col2 + + col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT ALL 42 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT 12 * - col0 FROM tab1
----
-36
-768
-960
query I rowsort
SELECT DISTINCT 41 + col0 AS col0 FROM tab1
----
105
121
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 30 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
onlyif mysql # use DIV operator for integer division
query I rowsort label-3408
SELECT - 98 DIV - col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3408
SELECT - 98 / - col2 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL - - col0 * col1 - col2 * col2 * col0 FROM tab2 AS cor0
----
-112733
-48126
-4886
query I rowsort
SELECT DISTINCT - 44 FROM tab1, tab2, tab0 AS cor0
----
-44
query I rowsort
SELECT - + col0 * + 73 FROM tab0 cor0
----
-1752
-2555
-6497
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 * + col0 + + 41 FROM tab0 AS cor0
----
26177
598477
76
query I rowsort
SELECT col0 * ( + 75 + - col2 ) * + 96 FROM tab2 AS cor0
----
280608
32256
366912
query I rowsort
SELECT col1 + 28 * + 39 FROM tab0 AS cor0
----
1178
1183
1189
query I rowsort
SELECT + col0 - col2 * + tab2.col1 AS col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT ALL + + col2 * ( col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col1 * ( - col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL cor0.col0 * - col1 + 76 FROM tab1 AS cor0
----
-2
-564
-964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col2 col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + col2 * ( - col1 ) * col2 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL col0 * col0 * + col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT - + col0 + - ( + col2 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT + ( 81 ) FROM tab2 AS cor0
----
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 3 - + col2 * 86 col0 FROM tab0 AS cor0
----
-191
-2910
-7319
query I rowsort
SELECT + + 42 * + 89 FROM tab0 AS cor0
----
3738
3738
3738
query I rowsort
SELECT 95 - - col1 AS col0 FROM tab2 AS cor0
----
112
126
154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab1 cor3
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79
query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-10
query I rowsort
SELECT - 51 + col1 FROM tab1 cor0
----
-25
-38
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-3432
SELECT ALL - 14 * col1 + - ( col0 ) DIV col2 col0 FROM tab0 AS cor0
----
-1204
-1275
-1393
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL - 14 * col1 + - ( col0 ) / col2 col0 FROM tab0 AS cor0
----
-1204
-1275
-1393
onlyif mysql # use DIV operator for integer division
query I rowsort label-3433
SELECT 10 DIV + col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3433
SELECT 10 / + col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query III rowsort
SELECT * FROM tab0 WHERE - col1 / + col0 > + col0
----
query I rowsort
SELECT 46 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3437
SELECT - 43 * - cor0.col2 * CAST( + 50 AS SIGNED ) col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 920ab8d66ff5ab4c0798b755a2adef70
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3437
SELECT - 43 * - cor0.col2 * CAST ( + 50 AS INTEGER ) col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 920ab8d66ff5ab4c0798b755a2adef70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3438
SELECT - 82 DIV + col2 - - ( - col0 ) FROM tab1
----
-4
-65
-80
skipif mysql # not compatible
query I rowsort label-3438
SELECT - 82 / + col2 - - ( - col0 ) FROM tab1
----
-4
-65
-80
query I rowsort
SELECT - ( col2 ) + col0 * col0 AS col0 FROM tab2 AS cor0
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-3440
SELECT DISTINCT ( col1 ) DIV - col0 + col1 AS col2 FROM tab2
----
17
27
59
skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT ( col1 ) / - col0 + col1 AS col2 FROM tab2
----
17
27
59
query I rowsort
SELECT + + col1 + 46 FROM tab1 AS cor0
----
56
59
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT DISTINCT + col0 + - ( 81 ) + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-12
-76
6
skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT + col0 + - ( 81 ) + col2 / col1 AS col1 FROM tab1 AS cor0
----
-12
-76
6
query I rowsort
SELECT DISTINCT + col2 * tab1.col2 + col1 * 36 AS col0 FROM tab1
----
3609
3852
9684
query I rowsort
SELECT ALL + - col1 * - ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col1 * + col1 + - 97 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
-100711
-61980
-6890
query I rowsort
SELECT col1 * 55 + col2 FROM tab2
----
1732
3271
973
query I rowsort
SELECT + col1 * - tab0.col0 + - ( col2 * + col0 ) AS col1 FROM tab0
----
-15397
-2856
-3430
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 6 col2 FROM tab1 AS cor0
----
-156
-60
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3449
SELECT ALL col0 * + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL col0 * + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col2 * 6 * + col2 FROM tab0 AS cor0
----
-40344
-6
-6534
query I rowsort
SELECT - - cor0.col0 * - 70 FROM tab2 cor0
----
-490
-5460
-5530
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3452
SELECT CAST( col2 AS SIGNED ) + col0 + - col1 * + col1 FROM tab1
----
-619
21
7
skipif mysql # not compatible
query I rowsort label-3452
SELECT CAST ( col2 AS INTEGER ) + col0 + - col1 * + col1 FROM tab1
----
-619
21
7
query I rowsort
SELECT ALL col1 - - ( - tab0.col1 ) AS col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT DISTINCT ( + 36 ) DIV - col0 - - col1 DIV + col1 AS col0 FROM tab1
----
-11
1
skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT ( + 36 ) / - col0 - - col1 / + col1 AS col0 FROM tab1
----
-11
1
query I rowsort
SELECT - - ( - col1 ) + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col0 + col2 + - 3 FROM tab2 AS cor0
----
101
114
31
query I rowsort
SELECT ALL - col0 - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 * cor0.col1 * + col0 col1 FROM tab1 cor0
----
-208
-40950
-83187
onlyif mysql # use DIV operator for integer division
query I rowsort label-3459
SELECT col2 + col0 DIV 70 FROM tab0 AS cor0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-3459
SELECT col2 + col0 / 70 FROM tab0 AS cor0
----
1
33
83
query I rowsort
SELECT + 44 + + cor0.col2 FROM tab0 AS cor0
----
126
45
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-3461
SELECT DISTINCT col0 DIV col0 col0 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT col0 / col0 col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT + 95 + col2 FROM tab2 AS cor0
----
121
122
133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + cor0.col0 + - col0 col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + ( col0 ) AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT tab0.col1 * - 5 AS col2 FROM tab0
----
-430
-455
-485
query I rowsort
SELECT - + 99 + col1 * col2 FROM tab0 AS cor0
----
-2
2739
7363
query I rowsort
SELECT DISTINCT + - 3 * col0 * + ( 69 ) FROM tab2 AS cor0
----
-1449
-16146
-16353
query I rowsort
SELECT + cor0.col1 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT DISTINCT - ( col2 ) DIV 15 + - col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
48
6083
6239
skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT - ( col2 ) / 15 + - col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
48
6083
6239
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * 13 + col0 + col1 col1 FROM tab0 AS cor0
----
1246
145
539
query I rowsort
SELECT ALL + col1 * - col0 * + 16 + 12 FROM tab0 AS cor0
----
-129572
-33012
-54308
query I rowsort
SELECT - col1 + + ( - col1 ) AS col2 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT - 49 * + col2 AS col1 FROM tab1 AS cor0
----
-2646
-2793
-4704
query I rowsort
SELECT ALL cor0.col1 + - 60 AS col1 FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to b35a07f216ef4d19720ec5471080541a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT CAST( + 82 + + col0 AS SIGNED ) DIV col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3477
SELECT CAST ( + 82 + + col0 AS INTEGER ) / col1 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT ALL 0 * tab0.col2 DIV col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL 0 * tab0.col2 / col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + col0 * 20 FROM tab0
----
1780
480
700
query I rowsort
SELECT + tab2.col2 * - 28 AS col0 FROM tab2
----
-1064
-728
-756
query I rowsort
SELECT col1 * - col0 + col1 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1405
-193
-4621
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 - - cor0.col0 col1 FROM tab1 AS cor0
----
105
28
89
query I rowsort
SELECT DISTINCT + col2 + ( + col1 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col1 * - cor0.col1 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT DISTINCT + - cor0.col1 * 95 + col0 * + cor0.col0 FROM tab2 cor0
----
-2896
4626
479
query I rowsort
SELECT DISTINCT 2 * + col2 + + col0 * + 94 + col0 AS col0 FROM tab1 AS cor0
----
393
6194
7792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col1 FROM tab2
----
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT col0 DIV + tab1.col2 + CAST( col1 AS SIGNED ) FROM tab1
----
11
13
26
skipif mysql # not compatible
query I rowsort label-3488
SELECT col0 / + tab1.col2 + CAST ( col1 AS INTEGER ) FROM tab1
----
11
13
26
query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
28
query I rowsort
SELECT ALL - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT col0 * ( col2 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + 64 col2 FROM tab2 cor0
----
142
143
71
query I rowsort
SELECT - col0 * 5 AS col2 FROM tab1 AS cor0
----
-15
-320
-400
query I rowsort
SELECT ALL cor0.col1 + + 21 FROM tab2 cor0
----
38
52
80
query I rowsort
SELECT DISTINCT + + col1 * 78 FROM tab0 AS cor0
----
6708
7098
7566
query I rowsort
SELECT cor0.col0 * 59 FROM tab1 AS cor0
----
177
3776
4720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3497
SELECT - col2 * CAST( ( col1 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3497
SELECT - col2 * CAST ( ( col1 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * 91 col1 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT DISTINCT + col1 * + 24 AS col2 FROM tab2
----
1416
408
744
query I rowsort
SELECT + 44 FROM tab1, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab0, tab1 cor0
----
51
query I rowsort
SELECT ALL + col1 * - 38 FROM tab1 AS cor0
----
-380
-494
-988
query I rowsort
SELECT DISTINCT - 93 + - cor0.col1 FROM tab2 AS cor0
----
-110
-124
-152
query I rowsort
SELECT DISTINCT - ( + 66 ) * col2 AS col0 FROM tab0 AS cor0
----
-2178
-5412
-66
query I rowsort
SELECT - ( col1 ) * - col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 col2 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL - tab1.col2 * - 45 FROM tab1
----
2430
2565
4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-3508
SELECT + 52 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
52
skipif mysql # not compatible
query I rowsort label-3508
SELECT + 52 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
52
query I rowsort
SELECT - + col2 * col0 + ( col0 ) FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3510
SELECT - col1 + col0 DIV - ( - ( - col1 ) ) FROM tab2 AS cor0
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-3510
SELECT - col1 + col0 / - ( - ( - col1 ) ) FROM tab2 AS cor0
----
-21
-31
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3511
SELECT - + 6 * + col2 + - CAST( col2 AS SIGNED ) col0 FROM tab1 cor0
----
-378
-399
-672
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3511
SELECT - + 6 * + col2 + - CAST ( col2 AS INTEGER ) col0 FROM tab1 cor0
----
-378
-399
-672
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 + + tab2.col2 col1 FROM tab2
----
1
13
2
query I rowsort
SELECT 8 * col1 + col0 FROM tab1 AS cor0
----
144
184
211
query I rowsort
SELECT ALL - col0 + + 97 AS col1 FROM tab0
----
62
73
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3515
SELECT tab2.col2 DIV col0 + - ( + tab2.col1 ) + - col2 * col1 FROM tab2
----
-1593
-663
-865
skipif mysql # not compatible
query I rowsort label-3515
SELECT tab2.col2 / col0 + - ( + tab2.col1 ) + - col2 * col1 FROM tab2
----
-1593
-663
-865
query I rowsort
SELECT 36 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT ALL + 95 * - 58 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a564392433f5355094b3042a9dea2b49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 90 + 13 * - cor0.col0 col0 FROM tab0 AS cor0
----
-365
2658
6223
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3519
SELECT ALL col2 * + col0 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL col2 * + col0 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - col2 * col2 * ( + 24 ) FROM tab0
----
-161376
-24
-26136
query I rowsort
SELECT - - cor0.col2 + + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3523
SELECT + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3523
SELECT + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + + col2 * col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL + ( - col0 ) + - 24 FROM tab2 AS cor0
----
-102
-103
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 + col1 col2 FROM tab1 AS cor0
----
-69
-82
-85
query I rowsort
SELECT ALL + cor0.col1 * + col2 * col1 + col0 AS col2 FROM tab1 AS cor0
----
16304
36507
5764
query I rowsort
SELECT 65 + col1 * + tab0.col0 FROM tab0
----
2129
3460
8164
query I rowsort
SELECT + ( 20 ) * tab1.col0 + - 69 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c9eb7c7597e420cd8a98bb34927e8b68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3531
SELECT ALL - + col0 * col2 + CAST( NULL AS SIGNED ) * 98 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL - + col0 * col2 + CAST ( NULL AS INTEGER ) * 98 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + + col2 * - 45 AS col2 FROM tab1 cor0
----
-2376
-2508
-4224
query I rowsort
SELECT ALL - col1 * col2 + - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT 19 * - col2 AS col1 FROM tab2 AS cor0
----
-494
-513
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT ALL + 56 + col1 DIV + 23 AS col1 FROM tab1 AS cor0
----
56
56
57
skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL + 56 + col1 / + 23 AS col1 FROM tab1 AS cor0
----
56
56
57
query I rowsort
SELECT - - 80 + - col0 * 20 AS col1 FROM tab0 AS cor0
----
-1700
-400
-620
query I rowsort
SELECT ALL + col2 * + col1 + ( - col0 ) FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL col0 + + col0 * - col0 + - col1 FROM tab0
----
-1287
-638
-7923
onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT col1 DIV - CAST( - ( col2 ) AS SIGNED ) AS col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3539
SELECT col1 / - CAST ( - ( col2 ) AS INTEGER ) AS col2 FROM tab0
----
1
2
97
query I rowsort
SELECT ALL + + 43 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT - cor0.col1 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - cor0.col2 * col1 + + 12 FROM tab1 AS cor0
----
-1236
-1392
-558
query I rowsort
SELECT DISTINCT - - cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - - col1 * col1 + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL + col1 - + col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col2 * - col2 - + 90 AS col1 FROM tab2 cor0
----
1354
586
639
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3547
SELECT col1 + CAST( NULL AS DECIMAL ) * - 0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3547
SELECT col1 + CAST ( NULL AS REAL ) * - 0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col1 FROM tab1 AS cor0
----
-98
-98
-98
query I rowsort
SELECT ALL + ( - ( col0 ) ) + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) + col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT - col1 * 54 AS col1 FROM tab2 AS cor0
----
-1674
-3186
-918
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT col1 * + col2 * 20 AS col0 FROM tab1
----
11400
24960
28080
query I rowsort
SELECT + col0 * + 45 FROM tab1
----
135
2880
3600
query I rowsort
SELECT - + col0 * col2 + cor0.col2 * 10 FROM tab1 AS cor0
----
-3078
-6720
378
query I rowsort
SELECT DISTINCT - 98 * + ( col0 * - ( - cor0.col2 ) ) FROM tab1 cor0
----
-15876
-357504
-752640
query I rowsort
SELECT ALL - ( - col1 ) * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - ( + col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
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 DISTINCT + - ( - col2 ) col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3561
SELECT ALL + - CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3562
SELECT DISTINCT - - col1 DIV 33 AS col1 FROM tab0 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT - - col1 / 33 AS col1 FROM tab0 AS cor0
----
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT ALL - - col0 DIV + col0 + - col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL - - col0 / + col0 + - col2 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT col2 - 31 FROM tab1 AS cor0
----
23
26
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3565
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * col2 * - col2 AS col2 FROM tab0 cor0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-3567
SELECT cor0.col2 + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-3567
SELECT cor0.col2 + col0 / col1 AS col1 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT - col1 + + col0 AS col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - + 71 + col2 AS col0 FROM tab0 AS cor0
----
-38
-70
11
query I rowsort
SELECT DISTINCT - 71 * 36 FROM tab0 AS cor0
----
-2556
query I rowsort
SELECT - 35 * col2 + cor0.col1 + col2 FROM tab1 AS cor0
----
-1810
-1928
-3251
query I rowsort
SELECT - ( - col1 ) * cor0.col2 AS col1 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - 24 col2 FROM tab2 cor0
----
1416
408
744
query I rowsort
SELECT DISTINCT - + 42 + col0 AS col1 FROM tab1 AS cor0
----
-39
22
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT ALL - col0 DIV + cor0.col1 + col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - col0 / + cor0.col1 + col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3576
SELECT col0 * + col1 + CAST( NULL AS SIGNED ) * + 75 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3576
SELECT col0 * + col1 + CAST ( NULL AS INTEGER ) * + 75 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 18 * 53 * col1 FROM tab0
----
-82044
-86814
-92538
query I rowsort
SELECT DISTINCT - + cor0.col2 AS col0 FROM tab2, tab0 cor0 CROSS JOIN tab1 cor1
----
-1
-33
-82
query I rowsort
SELECT ALL 59 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT DISTINCT col0 * - ( 27 ) + col0 + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-1607
-1984
-24
query I rowsort
SELECT ALL - + col2 + 4 AS col2 FROM tab1 AS cor0
----
-50
-53
-92
query I rowsort
SELECT ALL + 32 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3583
SELECT ALL + col2 * CAST( col1 + + cor0.col0 * 61 AS SIGNED ) FROM tab2 AS cor0
----
12366
125242
183768
skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL + col2 * CAST ( col1 + + cor0.col0 * 61 AS INTEGER ) FROM tab2 AS cor0
----
12366
125242
183768
query I rowsort
SELECT - col0 * + ( col1 + - col1 ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3585
SELECT + + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3585
SELECT + + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * - 29 * + 39 + + col1 AS col0 FROM tab1 AS cor0
----
-11300
-14690
-29380
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3587
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3588
SELECT col1 DIV col1 + col2 AS col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-3588
SELECT col1 / col1 + col2 AS col2 FROM tab1
----
55
58
97
query I rowsort
SELECT DISTINCT - ( tab0.col2 ) FROM tab0, tab2 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col2 + + 64 * col0 + - col0 AS col1 FROM tab0
----
1545
2206
5689
query I rowsort
SELECT DISTINCT 39 + - 40 FROM tab2, tab1 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - col1 + - ( col0 ) * col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + col0 * + col0 - 43 FROM tab2 AS cor0
----
6
6041
6198
query I rowsort
SELECT col0 * + 43 - - col2 AS col0 FROM tab0 AS cor0
----
1065
1506
3909
query I rowsort
SELECT ALL col0 + - 80 * 24 AS col1 FROM tab2
----
-1841
-1842
-1913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( - col2 + + col0 ) col0 FROM tab0
----
24
35
89
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d
query I rowsort
SELECT ALL ( col1 ) * ( col2 ) AS col0 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 + - col0 * - col0 * - col0 col2 FROM tab0
----
-13800
-42840
-704880
query I rowsort
SELECT ALL - 59 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f
query I rowsort
SELECT + 7 + 30 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT DISTINCT + 28 + + col1 * - col1 FROM tab1 AS cor0
----
-141
-648
-72
query I rowsort
SELECT DISTINCT 70 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
70
query I rowsort
SELECT col2 + col0 * col1 * tab1.col2 FROM tab1
----
36537
4266
99936
onlyif mysql # use DIV operator for integer division
query I rowsort label-3605
SELECT col2 DIV col2 + 52 col2 FROM tab0
----
53
53
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3605
SELECT col2 / col2 + 52 col2 FROM tab0
----
53
53
53
query I rowsort
SELECT ALL col0 + + 15 * - tab1.col2 AS col1 FROM tab1
----
-1360
-791
-807
query I rowsort
SELECT ALL col2 * + col2 + ( col0 ) FROM tab1
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3609
SELECT - col2 DIV + col0 + - ( - col1 ) * - tab0.col1 FROM tab0
----
-7397
-8281
-9409
skipif mysql # not compatible
query I rowsort label-3609
SELECT - col2 / + col0 + - ( - col1 ) * - tab0.col1 FROM tab0
----
-7397
-8281
-9409
query I rowsort
SELECT ALL + col0 + - col0 * 71 FROM tab2
----
-490
-5460
-5530
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3611
SELECT ALL - + CAST( NULL AS DECIMAL ) * + col2 / - col0 - + col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL - + CAST ( NULL AS REAL ) * + col2 / - col0 - + col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 86 + col0 + - col2 FROM tab0 AS cor0
----
120
77
93
query I rowsort
SELECT - ( col0 ) + + col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - 44 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3615
SELECT + + col1 DIV 54 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-3615
SELECT + + col1 / 54 col1 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col2 + col0 + - col0 * cor0.col2 col2 FROM tab2 cor0
----
-371
-3978
-5925
query I rowsort
SELECT DISTINCT + + col0 * - 30 AS col1 FROM tab1 AS cor0
----
-1920
-2400
-90
query I rowsort
SELECT ALL ( 74 ) * - col2 + col0 + col1 * + cor0.col1 * + col2 FROM tab1 AS cor0
----
1546
32511
9200
query I rowsort
SELECT + ( ( col2 ) ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL col2 * + col2 - + col2 * col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - 70 * col2 + + col0 FROM tab0 AS cor0
----
-2286
-35
-5651
query I rowsort
SELECT DISTINCT + + col0 * 5 + col0 AS col0 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT ALL col0 * 93 AS col0 FROM tab0
----
2232
3255
8277
query I rowsort
SELECT - + 42 * col1 + cor0.col0 * - ( col0 ) FROM tab0 AS cor0
----
-11743
-4188
-5299
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3625
SELECT - col0 + + col2 / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3625
SELECT - col0 + + col2 / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT - - col2 * + col0 + - col1 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-3628
SELECT ALL + 72 DIV col2 + 22 FROM tab0 cor0
----
22
24
94
skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL + 72 / col2 + 22 FROM tab0 cor0
----
22
24
94
query I rowsort
SELECT ALL + 27 AS col2 FROM tab0 AS cor0
----
27
27
27
query I rowsort
SELECT DISTINCT + + ( col0 ) + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3631
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3631
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col0 + + 37 AS col2 FROM tab0
----
126
61
72
query I rowsort
SELECT - col0 * - col1 * col0 + + col2 FROM tab2 AS cor0
----
106135
1546
358982
query I rowsort
SELECT ALL col2 * col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL - - col0 * ( - 70 + col2 ) AS col2 FROM tab1 AS cor0
----
-48
-832
2080
query I rowsort
SELECT - + col2 + + ( col2 + cor0.col0 * + col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - col0 - - 55 AS col2 FROM tab1 cor0
----
-25
-9
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3638
SELECT tab0.col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3638
SELECT tab0.col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT col1 * 3 DIV + ( col2 ) AS col1 FROM tab0 AS cor0
----
291
3
7
skipif mysql # not compatible
query I rowsort label-3639
SELECT col1 * 3 / + ( col2 ) AS col1 FROM tab0 AS cor0
----
291
3
7
query I rowsort
SELECT + col0 + ( - col2 * col2 ) FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT + cor0.col2 + - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT 83 FROM tab1, tab2 cor0
----
83
query I rowsort
SELECT col1 * 10 AS col1 FROM tab2
----
170
310
590
query I rowsort
SELECT 85 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL - - cor0.col0 * 7 + 88 FROM tab2 cor0
----
137
634
641
query I rowsort
SELECT ALL + cor0.col1 + + ( col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL + col0 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT + col2 + col0 DIV + 81 AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3648
SELECT + col2 + col0 / + 81 AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3649
SELECT DISTINCT + - col1 * col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + - col1 * col0 / col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - col0 * - col1 + col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT - cor0.col2 + + col2 * + col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT DISTINCT + col1 - cor0.col2 * + cor0.col1 * + col1 FROM tab2 AS cor0
----
-10965
-25916
-90447
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3653
SELECT ALL - cor0.col2 + + CAST( NULL AS SIGNED ) * 25 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - cor0.col2 + + CAST ( NULL AS INTEGER ) * 25 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + 47 AS col0 FROM tab2 AS cor0
----
73
74
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 + col1 col0 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-3656
SELECT ALL - - col2 + 54 DIV + col1 FROM tab2 AS cor0
----
26
28
41
skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL - - col2 + 54 / + col1 FROM tab2 AS cor0
----
26
28
41
query I rowsort
SELECT - col0 + 43 + ( + cor0.col1 ) AS col0 FROM tab1 cor0
----
-11
-24
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT DISTINCT col0 + - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT col0 + - col0 / - col0 AS col1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT - - col1 + + 31 FROM tab1 AS cor0
----
41
44
57
query I rowsort
SELECT ALL + col1 * col0 - col0 AS col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT ALL col2 - + col1 * col0 AS col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL + tab0.col2 * 16 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 290e78f90d1c772603a283097f18c2a9
query I rowsort
SELECT 16 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216
query I rowsort
SELECT - 41 * 11 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 7990d7464e86ae244538e0714364b30d
query I rowsort
SELECT + cor0.col1 * - ( + cor0.col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + + col1 + + 93 * + col1 FROM tab2 AS cor0
----
1598
2914
5546
query I rowsort
SELECT + - col2 + ( + col0 ) * col1 * 49 AS col1 FROM tab1 cor0
----
31303
3768
50864
query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab1, tab0 AS cor0
----
55
query I rowsort
SELECT ( 64 ) FROM tab0 AS cor0
----
64
64
64
query I rowsort
SELECT + ( + col0 ) + + col2 * - col1 + col2 AS col1 FROM tab1
----
-1072
-1347
-449
query I rowsort
SELECT ALL - + 1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + - 48 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
query I rowsort
SELECT + 90 - col1 * + col1 FROM tab0 AS cor0
----
-7306
-8191
-9319
query I rowsort
SELECT + cor0.col1 - col1 * + col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT + 60 * - col2 AS col1 FROM tab2 AS cor0
----
-1560
-1620
-2280
query I rowsort
SELECT DISTINCT 44 - + col1 FROM tab2
----
-15
13
27
query I rowsort
SELECT DISTINCT col2 + - col2 * 19 FROM tab2
----
-468
-486
-684
query I rowsort
SELECT ALL - + 45 * col2 + - col1 + - col0 * + col2 FROM tab0 AS cor0
----
-11079
-177
-2363
query I rowsort
SELECT ALL - col2 * + cor0.col0 + 19 FROM tab0 cor0
----
-16
-7279
-773
query I rowsort
SELECT DISTINCT - - col1 * - cor0.col1 + col0 - - 44 AS col1 FROM tab0 AS cor0
----
-7328
-8148
-9330
onlyif mysql # use DIV operator for integer division
query I rowsort label-3681
SELECT DISTINCT + + 7 + col0 DIV - col0 col1 FROM tab2 AS cor0
----
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT + + 7 + col0 / - col0 col1 FROM tab2 AS cor0
----
6
query I rowsort
SELECT DISTINCT - ( + col1 ) + - ( col0 + + col0 ) * + ( col1 ) * - col2 FROM tab0 AS cor0
----
1328145
136138
6693
query I rowsort
SELECT ALL - - col2 - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3684
SELECT DISTINCT + col0 + col2 DIV - col0 FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT + col0 + col2 / - col0 FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT DISTINCT + + col0 * - ( col2 ) + + col0 * - cor0.col2 * 44 AS col2 FROM tab0 AS cor0
----
-1575
-328410
-35640
query I rowsort
SELECT DISTINCT + + col1 - col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col0 - - 77 AS col2 FROM tab1 cor0
----
-3
13
74
query I rowsort
SELECT + col2 - - col2 * + col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT cor0.col2 + - 73 * + cor0.col1 FROM tab0 AS cor0
----
-6245
-6561
-7080
query I rowsort
SELECT + 3 * col0 AS col1 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT - 62 * + col1 FROM tab0 AS cor0
----
-5332
-5642
-6014
query I rowsort
SELECT + ( - col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col0 * 57 AS col1 FROM tab0 AS cor0
----
-1368
-1995
-5073
query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
-86
-91
-97
query I rowsort
SELECT - 93 * cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
-191952
-315735
-753207
query I rowsort
SELECT ALL - col1 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT + col0 + 1 AS col2 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT + cor1.col2 + + ( 37 ) FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 23cad427fce0a05ab476b87f624b584c
query I rowsort
SELECT DISTINCT - 27 + col1 * col2 FROM tab2 AS cor0
----
1507
619
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 + + col1 + - 11 col1 FROM tab2 cor0
----
6132
6247
69
query I rowsort
SELECT ALL + 20 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT 80 + - col0 FROM tab0 AS cor0
----
-9
45
56
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col0 * - cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + col1 + col1 * 49 AS col0 FROM tab0 cor0
----
4300
4550
4850
query I rowsort
SELECT - col2 * col0 * col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3709
SELECT ALL + CAST( 61 AS SIGNED ) * tab2.col1 AS col0 FROM tab2
----
1037
1891
3599
skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL + CAST ( 61 AS INTEGER ) * tab2.col1 AS col0 FROM tab2
----
1037
1891
3599
query I rowsort
SELECT - col0 + tab1.col2 * - col1 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 FROM tab1
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3713
SELECT col2 + + ( col2 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3713
SELECT col2 + + ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 16 * + col2 ) AS col2 FROM tab1
----
-1536
-864
-912
query I rowsort
SELECT DISTINCT - - ( - 51 ) AS col1 FROM tab1 AS cor0
----
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col1 FROM tab1 cor0
----
49
49
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3717
SELECT col1 * col2 + + col2 + 0 * - ( col2 + CAST( NULL AS SIGNED ) * col2 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3717
SELECT col1 * col2 + + col2 + 0 * - ( col2 + CAST ( NULL AS INTEGER ) * col2 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor1.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT 68 * - col1 * col2 FROM tab0
----
-192984
-507416
-6596
query I rowsort
SELECT + - ( + cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) * + col0 + 96 AS col1 FROM tab2 AS cor0
----
2124
285
3098
query I rowsort
SELECT ALL - + 47 + col1 FROM tab2 AS cor0
----
-16
-30
12
query I rowsort
SELECT + - 22 + 86 AS col2 FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT ALL + ( 25 ) FROM tab2
----
25
25
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-3725
SELECT - col2 DIV - col1 - + col1 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3725
SELECT - col2 / - col1 - + col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + cor0.col0 - 39 * col2 FROM tab0 AS cor0
----
-1263
-3109
-4
query I rowsort
SELECT ALL + col1 * - col2 + - col0 * - col1 AS col1 FROM tab1
----
-1326
-208
70
query I rowsort
SELECT DISTINCT - col0 + - col0 * col2 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT - + cor0.col2 + 11 AS col0 FROM tab1 AS cor0
----
-43
-46
-85
query I rowsort
SELECT - ( + 68 ) + cor0.col2 * - ( - col0 ) FROM tab1 AS cor0
----
3580
7612
94
query I rowsort
SELECT DISTINCT - col1 * col0 * + ( col2 ) FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT col1 * 35 FROM tab0
----
3010
3185
3395
query I rowsort
SELECT ( ( cor0.col2 ) ) * - ( col1 ) AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col0 * 69 + - col2 FROM tab0 AS cor0
----
1623
2414
6059
query I rowsort
SELECT + 81 * - col1 AS col0 FROM tab0 AS cor0
----
-6966
-7371
-7857
query I rowsort
SELECT DISTINCT 90 FROM tab0, tab0 AS cor0
----
90
query I rowsort
SELECT + col1 * 90 * col2 AS col0 FROM tab1
----
112320
126360
51300
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * - 32 * - col0 col0 FROM tab2
----
10080
112320
113760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 36 - + cor0.col1 col1 FROM tab0 cor0
----
-61
1102
2861
query I rowsort
SELECT DISTINCT - col1 + - col2 * - col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL tab1.col1 + + 79 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to 97ccdba329e62f275fcd8fe46dc38fc9
query I rowsort
SELECT - ( + 51 ) AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 37 - col0 col0 FROM tab0
----
-147
-169
-217
query I rowsort
SELECT + cor0.col0 * + ( 83 * + col2 ) AS col2 FROM tab2 cor0
----
15687
168324
249166
query I rowsort
SELECT cor0.col0 * ( - ( - cor0.col0 ) * 28 ) FROM tab2 AS cor0
----
1372
170352
174748
query I rowsort
SELECT - - col1 + - 63 AS col0 FROM tab2 AS cor0
----
-32
-4
-46
query I rowsort
SELECT ALL - - 41 AS col2 FROM tab1 AS cor0
----
41
41
41
query I rowsort
SELECT ALL col1 + col0 * - ( col1 ) FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + col0 * + col1 + tab2.col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT + 66 + + col1 AS col0 FROM tab1 AS cor0
----
76
79
92
query I rowsort
SELECT DISTINCT 72 + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1112
150
712
query I rowsort
SELECT col2 * + col1 * + 38 FROM tab0 AS cor0
----
107844
283556
3686
query I rowsort
SELECT 70 * + col0 * - col0 FROM tab0 AS cor0
----
-40320
-554470
-85750
query I rowsort
SELECT ALL + col1 - + col1 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col0 * col0 - - ( 52 * + col1 ) FROM tab0 AS cor0
----
12653
5048
6269
query I rowsort
SELECT ALL 12 * + col1 AS col1 FROM tab1 AS cor0
----
120
156
312
query I rowsort
SELECT - 87 * col1 FROM tab1 AS cor0
----
-1131
-2262
-870
onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT DISTINCT + cor0.col0 + + col2 DIV ( + 45 ) AS col2 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + cor0.col0 + + col2 / ( + 45 ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 * + col0 + + col2 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT DISTINCT - - col2 * - ( + cor0.col1 ) + - cor0.col2 DIV - 49 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7379
-96
skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT - - col2 * - ( + cor0.col1 ) + - cor0.col2 / - 49 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7379
-96
query I rowsort
SELECT DISTINCT + + cor0.col1 - + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - - col1 * - ( col1 * - col1 ) FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT ALL + + col1 * - 96 * col0 AS col0 FROM tab1 cor0
----
-61440
-7488
-99840
query I rowsort
SELECT col0 + - col0 * - col0 AS col2 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT ALL col1 + + 25 * - 39 FROM tab0 AS cor0
----
-878
-884
-889
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col1 * cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL col1 + - 43 + col0 AS col1 FROM tab1 AS cor0
----
-14
31
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 + col2 col1 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-3771
SELECT col0 - col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-3771
SELECT col0 - col0 / - col2 AS col0 FROM tab1 AS cor0
----
3
65
80
query I rowsort
SELECT DISTINCT + col2 * - 98 + col2 * + col2 FROM tab0 AS cor0
----
-1312
-2145
-97
query I rowsort
SELECT ALL col0 + col1 - - ( + 64 * + col1 ) AS col1 FROM tab0
----
5614
6004
6340
query I rowsort
SELECT ALL + col0 * col2 + ( + col2 ) FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL col1 * col1 - ( + tab1.col1 ) * col0 FROM tab1
----
-540
-871
598
query I rowsort
SELECT 7 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT col2 + + col1 * + col2 FROM tab1
----
1344
1458
627
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * + col2 BETWEEN - col1 AND ( col1 * - col2 )
----
query I rowsort
SELECT col2 + col1 * tab2.col1 * + col2 + + col2 * col0 FROM tab2 WHERE ( col2 * - col1 * - col2 ) > - col0
----
14022
26163
92560
query I rowsort
SELECT DISTINCT + col1 / tab1.col0 + col2 + + col2 AS col2 FROM tab1 WHERE NULL <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 / col2 col2 FROM tab0 WHERE col0 + col1 BETWEEN + col2 * col1 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > NULL
----
query I rowsort
SELECT ALL + col2 + tab2.col2 * + col1 * col1 AS col2 FROM tab2
----
11020
25974
90532
query I rowsort
SELECT DISTINCT col1 + - col1 * tab2.col0 AS col2 FROM tab2
----
-1326
-186
-4543
query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= + col2 / col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT tab2.col0 * - col1 - col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT col2 - col1 * col2 FROM tab0 WHERE col2 * + col1 * + col2 >= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab2.col2 col0 FROM tab2
----
-20
41
52
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( + col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( tab2.col2 )
----
query I rowsort
SELECT DISTINCT tab0.col1 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + col1 * - col1 + col1 )
----
query I rowsort
SELECT 48 + + col1 AS col0 FROM tab2
----
107
65
79
query I rowsort
SELECT col2 * col2 + col1 AS col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + ( tab2.col0 ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + col0 * - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + 31 * + col2 FROM tab0 AS cor0
----
1023
2542
31
query I rowsort
SELECT + 63 * - col0 + 81 AS col0 FROM tab2 AS cor0
----
-360
-4833
-4896
query I rowsort
SELECT DISTINCT 59 + - col2 * col0 + + 77 * col1 FROM tab2 AS cor0
----
-1634
2257
2574
onlyif mysql # use DIV operator for integer division
query I rowsort label-3800
SELECT DISTINCT 39 DIV col1 FROM tab1 cor0
----
1
3
skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT 39 / col1 FROM tab1 cor0
----
1
3
query I rowsort
SELECT DISTINCT + col0 * ( col0 ) * - col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT cor0.col0 + - col0 * cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-36416
-4209
-99760
query I rowsort
SELECT ALL + cor0.col0 * 83 AS col1 FROM tab2 AS cor0
----
581
6474
6557
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) * - col1 col1 FROM tab2 AS cor0
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 + 81 col1 FROM tab2 AS cor0
----
-75
-77
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3806
SELECT ALL + col2 * 84 + ( col2 * - CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL + col2 * 84 + ( col2 * - CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3807
SELECT DISTINCT + + col1 * - CAST( NULL AS SIGNED ) / - col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT + + col1 * - CAST ( NULL AS INTEGER ) / - col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + cor0.col1 * - 18 AS col2 FROM tab1 AS cor0
----
-180
-234
-468
query I rowsort
SELECT DISTINCT col0 + 98 FROM tab0 AS cor0
----
122
133
187
query I rowsort
SELECT ALL + col0 * col2 * + col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0
query I rowsort
SELECT DISTINCT + ( - col2 ) * col0 * + cor0.col0 + 16 * col1 * ( col1 * + col1 ) FROM tab2 AS cor0
----
-158550
3127880
475333
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT col0 + - col2 * tab1.col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ALL + 10 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to bf75e71325a06683558cf93fd725ad16
query I rowsort
SELECT DISTINCT - 3 + + col0 FROM tab2 AS cor0
----
4
75
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3817
SELECT ALL - cor0.col0 * + col2 + + col1 DIV ( + col0 ) FROM tab0 AS cor0
----
-33
-7297
-789
skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL - cor0.col0 * + col2 + + col1 / ( + col0 ) FROM tab0 AS cor0
----
-33
-7297
-789
query I rowsort
SELECT ALL 81 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT DISTINCT + col1 * - col1 + + 29 AS col0 FROM tab2
----
-260
-3452
-932
onlyif mysql # use DIV operator for integer division
query I rowsort label-3820
SELECT ALL + tab0.col1 + col1 DIV - col1 AS col0 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL + tab0.col1 + col1 / - col1 AS col0 FROM tab0
----
85
90
96
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - - 20 * - col0 FROM tab1 AS cor0
----
-1280
-1600
-60
query I rowsort
SELECT ALL - 38 * + col0 + col2 AS col1 FROM tab1 AS cor0
----
-2375
-2944
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3824
SELECT ALL - ( + col1 ) + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL - ( + col1 ) + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3825
SELECT DISTINCT col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT col0 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3826
SELECT ALL - - cor0.col2 + col1 DIV 4 FROM tab1 AS cor0
----
59
60
99
skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL - - cor0.col2 + col1 / 4 FROM tab1 AS cor0
----
59
60
99
query I rowsort
SELECT DISTINCT col1 + 51 * col0 FROM tab1 AS cor0
----
179
3274
4093
onlyif mysql # use DIV operator for integer division
query I rowsort label-3828
SELECT + col2 DIV 44 AS col1 FROM tab1 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-3828
SELECT + col2 / 44 AS col1 FROM tab1 AS cor0
----
1
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3829
SELECT ALL + cor0.col1 DIV + ( col0 + col0 ) AS col2 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + cor0.col1 / + ( col0 + col0 ) AS col2 FROM tab0 AS cor0
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3830
SELECT + CAST( col1 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-3830
SELECT + CAST ( col1 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL 63 AS col0 FROM tab2
----
63
63
63
query I rowsort
SELECT DISTINCT col1 * ( col1 ) * + col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT - cor0.col1 + col1 * cor0.col2 AS col2 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + 71 * - col2 FROM tab0 AS cor0
----
-2343
-5822
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-3836
SELECT - ( col1 ) DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3836
SELECT - ( col1 ) / - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 * + cor0.col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT 88 + - col1 AS col2 FROM tab0 AS cor0
----
-3
-9
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 - + ( col2 ) col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - - 30 + col1 FROM tab1 AS cor0
----
40
43
56
query I rowsort
SELECT - + 22 - col1 * - col2 AS col0 FROM tab0 AS cor0
----
2816
7440
75
query I rowsort
SELECT ALL 49 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT ALL - tab0.col0 - col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT ( + cor0.col2 ) FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT col0 + - col2 * - col1 FROM tab0 AS cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) - - 28 col0 FROM tab1
----
-26
-29
-68
query I rowsort
SELECT - cor0.col1 * - col2 * + 88 AS col0 FROM tab1 AS cor0
----
109824
123552
50160
query I rowsort
SELECT 99 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT ALL + - cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + 28 * + col0 FROM tab2
----
196
2184
2212
query I rowsort
SELECT col0 - 91 FROM tab2 AS cor0
----
-12
-13
-84
query I rowsort
SELECT tab0.col2 * + col1 AS col0 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col0 * - 58 col2 FROM tab0 AS cor0
----
-119712
-196910
-469742
query I rowsort
SELECT DISTINCT + 45 FROM tab0, tab1 AS cor0, tab1 cor1
----
45
query I rowsort
SELECT - col1 + 73 FROM tab2 AS cor0
----
14
42
56
query I rowsort
SELECT + cor0.col1 + - cor0.col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3857
SELECT col1 + 54 DIV - col0 AS col2 FROM tab0
----
84
91
96
skipif mysql # not compatible
query I rowsort label-3857
SELECT col1 + 54 / - col0 AS col2 FROM tab0
----
84
91
96
query I rowsort
SELECT + + 35 FROM tab0, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT - ( col2 ) * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + cor0.col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3861
SELECT col1 DIV 72 + 59 * + col1 FROM tab2
----
1003
1829
3481
skipif mysql # not compatible
query I rowsort label-3861
SELECT col1 / 72 + 59 * + col1 FROM tab2
----
1003
1829
3481
query I rowsort
SELECT col1 * ( - col1 * col1 ) - col2 AS col0 FROM tab2
----
-205405
-29818
-4951
query I rowsort
SELECT + col0 * - ( - col2 ) - + col1 * - ( col1 + tab1.col1 ) * - col2 AS col2 FROM tab1
----
-24768
-72846
-7752
onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT - col2 DIV - 90 + tab2.col2 AS col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3864
SELECT - col2 / - 90 + tab2.col2 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + - col1 * - ( col2 ) + cor0.col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT - col1 + - 73 FROM tab2 AS cor0
----
-104
-132
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3867
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 85 col0 FROM tab1 AS cor0
----
-1105
-2210
-850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3869
SELECT ALL + CAST( NULL AS SIGNED ) * col2 + col2 * cor0.col0 + ( - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 + col2 * cor0.col0 + ( - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3870
SELECT ALL - CAST( + col0 AS SIGNED ) - col0 col1 FROM tab1 AS cor0
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - CAST ( + col0 AS INTEGER ) - col0 col1 FROM tab1 AS cor0
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 72 * col2 col1 FROM tab2 AS cor0
----
-1813
-1913
-2719
query I rowsort
SELECT DISTINCT - 79 + 51 * - col1 + 6 AS col0 FROM tab2 AS cor0
----
-1654
-3082
-940
query I rowsort
SELECT DISTINCT - col0 + - col2 * + col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT DISTINCT ( col1 ) * + cor0.col1 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col2 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3876
SELECT DISTINCT + col0 DIV - col2 + + col1 * + 59 + + col1 FROM tab1 AS cor0
----
1560
599
780
skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT + col0 / - col2 + + col1 * + 59 + + col1 FROM tab1 AS cor0
----
1560
599
780
query I rowsort
SELECT ALL + - cor0.col0 + + col2 + col0 AS col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3878
SELECT + 3 DIV col0 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-25
skipif mysql # not compatible
query I rowsort label-3878
SELECT + 3 / col0 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3879
SELECT - col2 * - col0 + CAST( + col1 * - col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-6604
-9374
-983
skipif mysql # not compatible
query I rowsort label-3879
SELECT - col2 * - col0 + CAST ( + col1 * - col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-6604
-9374
-983
query I rowsort
SELECT + - col0 + + col1 + col1 FROM tab0 cor0
----
148
159
93
query I rowsort
SELECT - 71 + + col2 FROM tab2 AS cor0
----
-33
-44
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-3882
SELECT ALL + col0 DIV - col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL + col0 / - col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
24
88
query I rowsort
SELECT col0 * col0 + 9 FROM tab0 AS cor0
----
1234
585
7930
query I rowsort
SELECT DISTINCT 56 * col0 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT ALL - col0 + - col1 * 36 * 40 AS col2 FROM tab1 AS cor0
----
-14464
-18800
-37443
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT 48 + + col1 AS col1 FROM tab0 AS cor0
----
134
139
145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3888
SELECT DISTINCT + col2 + col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT + col2 + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - 58 + col2 + + col2 FROM tab0 AS cor0
----
-56
106
8
query I rowsort
SELECT ALL + - cor0.col1 * 49 FROM tab1 AS cor0
----
-1274
-490
-637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 5 + 68 col1 FROM tab0 AS cor0
----
-362
-387
-417
query I rowsort
SELECT DISTINCT - col0 + + 68 FROM tab1 AS cor0
----
-12
4
65
query I rowsort
SELECT ALL - col0 * - col2 * + 82 - - col2 FROM tab1 AS cor0
----
13338
299193
629856
query I rowsort
SELECT ALL - col2 - - 38 * ( col0 + col1 ) * - ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-100353
-175561
-608842
onlyif mysql # use DIV operator for integer division
query I rowsort label-3895
SELECT col2 DIV + ( col1 ) AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3895
SELECT col2 / + ( col1 ) AS col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL col2 * ( col2 ) + - col1 AS col2 FROM tab0 AS cor0
----
-96
1003
6633
onlyif mysql # use DIV operator for integer division
query I rowsort label-3897
SELECT - col2 * cor0.col0 DIV col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3897
SELECT - col2 * cor0.col0 / col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3898
SELECT col2 DIV ( col2 ) FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3898
SELECT col2 / ( col2 ) FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3899
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col2 * + ( cor0.col1 ) FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3901
SELECT + col2 * + 17 + - cor0.col1 DIV col0 AS col0 FROM tab2 AS cor0
----
442
455
646
skipif mysql # not compatible
query I rowsort label-3901
SELECT + col2 * + 17 + - cor0.col1 / col0 AS col0 FROM tab2 AS cor0
----
442
455
646
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3902
SELECT - + cor0.col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3902
SELECT - + cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * + col1 + col0 + + tab2.col1 AS col1 FROM tab2
----
1671
742
875
query I rowsort
SELECT - - col0 + ( - 32 ) * + col2 FROM tab1 AS cor0
----
-1725
-1760
-2992
query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3906
SELECT ALL + col0 DIV 84 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL + col0 / 84 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL - col2 * - 66 AS col0 FROM tab2 AS cor0
----
1716
1782
2508
query I rowsort
SELECT ALL - col2 * - col1 * col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT - - col0 * - col1 * col2 + - col1 DIV col0 FROM tab2 AS cor0
----
-119652
-51034
-5863
skipif mysql # not compatible
query I rowsort label-3909
SELECT - - col0 * - col1 * col2 + - col1 / col0 FROM tab2 AS cor0
----
-119652
-51034
-5863
query I rowsort
SELECT DISTINCT + col2 * col0 + col2 * col1 + - col0 FROM tab0 AS cor0
----
14671
3606
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3911
SELECT DISTINCT + col2 DIV + col1 + - col2 AS col1 FROM tab1
----
-52
-89
skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT + col2 / + col1 + - col2 AS col1 FROM tab1
----
-52
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3912
SELECT col0 DIV - col0 + + col0 AS col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-3912
SELECT col0 / - col0 + + col0 AS col0 FROM tab2
----
6
77
78
query I rowsort
SELECT 37 * col1 + - col2 FROM tab2
----
1120
2157
591
query I rowsort
SELECT + - 68 * + col1 - col1 FROM tab1 AS cor0
----
-1794
-690
-897
query I rowsort
SELECT ALL - 95 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
onlyif mysql # use DIV operator for integer division
query I rowsort label-3916
SELECT - + 21 DIV col1 + + 74 * + col2 FROM tab2 AS cor0
----
1924
1998
2811
skipif mysql # not compatible
query I rowsort label-3916
SELECT - + 21 / col1 + + 74 * + col2 FROM tab2 AS cor0
----
1924
1998
2811
query I rowsort
SELECT DISTINCT - 30 + col1 AS col1 FROM tab0 AS cor0
----
56
61
67
query I rowsort
SELECT ALL + - col0 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-3919
SELECT DISTINCT 28 * + col1 + col2 * col2 - + cor0.col1 * col1 DIV - col0 FROM tab2 AS cor0
----
1734
1923
2372
skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT 28 * + col1 + col2 * col2 - + cor0.col1 * col1 / - col0 FROM tab2 AS cor0
----
1734
1923
2372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col0 ) * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col1 + col1 * col0 * col2 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT - 32 * col0 FROM tab1 AS cor0
----
-2048
-2560
-96
query I rowsort
SELECT + - 49 * - cor0.col0 FROM tab1 AS cor0
----
147
3136
3920
query I rowsort
SELECT + 4 + + ( col1 ) * ( - col1 ) AS col1 FROM tab0 AS cor0
----
-7392
-8277
-9405
query I rowsort
SELECT - + 94 + + 9 * - col1 * + cor0.col2 FROM tab2 AS cor0
----
-13900
-5908
-7627
query I rowsort
SELECT ( 90 ) AS col2 FROM tab0 AS cor0
----
90
90
90
query I rowsort
SELECT ALL + 66 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT cor0.col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT 23 * 84 FROM tab1 AS cor0
----
1932
1932
1932
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT ALL + 54 + - col1 AS col0 FROM tab0 AS cor0
----
-32
-37
-43
query I rowsort
SELECT - tab2.col1 * 4 FROM tab2, tab2 AS cor0
----
9 values hashing to 6ea93ca165121f1d8b1a4f7e9249b137
query I rowsort
SELECT - col2 * + ( 26 ) * - col2 FROM tab1 AS cor0
----
239616
75816
84474
query I rowsort
SELECT - col0 * - ( ( col0 ) ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - col2 + 60 * 25 FROM tab1 cor0
----
1404
1443
1446
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 35 * col1 + + col1 col2 FROM tab1 AS cor0
----
22410
2756
36413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3937
SELECT col2 * CAST( 79 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2054
2133
3002
skipif mysql # not compatible
query I rowsort label-3937
SELECT col2 * CAST ( 79 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT DISTINCT + 86 + + 31 AS col0 FROM tab0 AS cor0
----
117
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL - 20 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
onlyif mysql # use DIV operator for integer division
query I rowsort label-3941
SELECT + col0 + + col0 DIV - col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-3941
SELECT + col0 + + col0 / - col0 FROM tab0 AS cor0
----
23
34
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3942
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * cor0.col0 + 47 AS col0 FROM tab0 AS cor0
----
-2017
-3348
-8052
skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * cor0.col0 + 47 AS col0 FROM tab0 AS cor0
----
-2017
-3348
-8052
query I rowsort
SELECT DISTINCT - ( - col0 ) * - col1 + + cor0.col2 * - ( col0 ) * + 7 AS col2 FROM tab2 AS cor0
----
-1540
-18798
-22357
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3944
SELECT - + ( - col1 ) + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-3944
SELECT - + ( - col1 ) + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + cor0.col0 + 5 FROM tab1, tab0 AS cor0
----
9 values hashing to 60a733a98a4b453bf5ef8cf4226b762f
query I rowsort
SELECT col0 + cor0.col1 * 22 FROM tab0 AS cor0
----
1916
2091
2169
query I rowsort
SELECT DISTINCT - 92 + col0 * 25 FROM tab1 AS cor0
----
-17
1508
1908
onlyif mysql # use DIV operator for integer division
query I rowsort label-3948
SELECT - col0 DIV - col2 + col2 AS col0 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-3948
SELECT - col0 / - col2 + col2 AS col0 FROM tab1 AS cor0
----
54
58
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col1 col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT col0 * + col2 + 96 AS col2 FROM tab2 AS cor0
----
2124
285
3098
query I rowsort
SELECT ALL col1 + + ( col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - col1 * + col1 * col2 + + col2 * col2 FROM tab0 AS cor0
----
-242979
-672318
-9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3953
SELECT + col0 + CAST( NULL AS SIGNED ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3953
SELECT + col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * col0 + col2 * + col0 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT - 44 * col1 * + tab1.col1 FROM tab1
----
-29744
-4400
-7436
query I rowsort
SELECT ALL - col2 * + col2 + 94 FROM tab2 AS cor0
----
-1350
-582
-635
skipif mysql # not compatible
query I rowsort
SELECT ALL + - col0 * - 84 + col1 + + col1 * CAST ( 24 * + col2 AS REAL ) FROM tab2 AS cor0
----
20707
22157
43427
query I rowsort
SELECT DISTINCT col0 + - 66 * - col0 FROM tab2 AS cor0
----
469
5226
5293
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 + - 82 ) col0 FROM tab1
----
-18
-2
-79
query I rowsort
SELECT DISTINCT 53 * - col1 * - 57 AS col0 FROM tab1
----
30210
39273
78546
query I rowsort
SELECT DISTINCT - ( col0 ) * 11 AS col1 FROM tab0
----
-264
-385
-979
query I rowsort
SELECT DISTINCT + col1 * + col1 * - col2 AS col0 FROM tab1 cor0
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-3963
SELECT DISTINCT + cor0.col2 DIV col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT + cor0.col2 / col2 FROM tab0 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3964
SELECT col1 * col0 DIV 88 AS col2 FROM tab1 AS cor0
----
0
11
7
skipif mysql # not compatible
query I rowsort label-3964
SELECT col1 * col0 / 88 AS col2 FROM tab1 AS cor0
----
0
11
7
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT ALL + ( - col2 ) * - 21 * - col1 FROM tab2 AS cor0
----
-13566
-17577
-32214
query I rowsort
SELECT ALL + + ( - col2 ) FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3969
SELECT DISTINCT CAST( + 61 AS SIGNED ) + tab0.col0 FROM tab0
----
150
85
96
skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT CAST ( + 61 AS INTEGER ) + tab0.col0 FROM tab0
----
150
85
96
query I rowsort
SELECT ALL + 26 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT 71 + - col2 * + col0 FROM tab1
----
-3577
-7609
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 + col2 * tab0.col1 col2 FROM tab0
----
188
2929
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-3973
SELECT + col1 + - col1 DIV + col0 col0 FROM tab2
----
17
27
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3973
SELECT + col1 + - col1 / + col0 col0 FROM tab2
----
17
27
59
query I rowsort
SELECT ALL - + 98 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
query I rowsort
SELECT + col1 + - tab0.col2 * ( - col0 ) AS col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT + col0 * tab0.col2 + 72 * + ( col2 ) AS col1 FROM tab0
----
107
13202
3168
query I rowsort
SELECT ( col1 * + col0 ) + + 32 AS col2 FROM tab2
----
1375
249
4634
query I rowsort
SELECT ( col1 * - col2 ) + 77 AS col0 FROM tab2
----
-1457
-569
-760
query I rowsort
SELECT - 65 * - col0 AS col1 FROM tab0 AS cor0
----
1560
2275
5785
query I rowsort
SELECT ALL 66 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT DISTINCT - tab2.col0 - - tab2.col0 FROM tab2
----
0
query I rowsort
SELECT ALL + col2 - col1 * 79 FROM tab0
----
-6761
-7107
-7662
query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab0, tab2 cor0
----
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 + - col1 col0 FROM tab1
----
-1261
-1430
-580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3985
SELECT DISTINCT CAST( NULL AS DECIMAL ) + ( col0 ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT CAST ( NULL AS REAL ) + ( col0 ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + ( col1 ) + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - 85 * + col1 AS col1 FROM tab2 AS cor0
----
-1445
-2635
-5015
onlyif mysql # use DIV operator for integer division
query I rowsort label-3988
SELECT ALL - + 58 + - cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-59
-59
-59
skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - + 58 + - cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
-59
-59
-59
query I rowsort
SELECT - col0 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT - + 53 + + col0 FROM tab1 AS cor0
----
-50
11
27
query I rowsort
SELECT DISTINCT + - ( 28 ) - col0 * col2 AS col2 FROM tab2 AS cor0
----
-2056
-217
-3030
onlyif mysql # use DIV operator for integer division
query I rowsort label-3992
SELECT DISTINCT + col1 DIV col0 + - col2 * - CAST( 44 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1455
3609
46
skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT + col1 / col0 + - col2 * - CAST ( 44 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1455
3609
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3993
SELECT ALL - CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL - CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( - 18 ) * col0 + 52 * + 8 AS col1 FROM tab0 AS cor0
----
-1186
-16
-214
query I rowsort
SELECT DISTINCT - + ( - cor0.col0 ) + + col1 AS col2 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3996
SELECT DISTINCT + 89 DIV col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT + 89 / col0 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3997
SELECT - CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3997
SELECT - CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3998
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( - col2 * col2 ) + - cor0.col0 * - col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( - col2 * col2 ) + - cor0.col0 * - col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL - col1 + - 13 * cor0.col2 FROM tab0 AS cor0
----
-110
-1157
-515
query I rowsort
SELECT - 39 * col2 AS col1 FROM tab0
----
-1287
-3198
-39
query I rowsort
SELECT DISTINCT - 57 + tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
-22
-33
32
query I rowsort
SELECT - 70 - 60 AS col0 FROM tab2 AS cor0
----
-130
-130
-130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4003
SELECT DISTINCT - CAST( 6 AS SIGNED ) + + col0 FROM tab0 cor0
----
18
29
83
skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT - CAST ( 6 AS INTEGER ) + + col0 FROM tab0 cor0
----
18
29
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4004
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 8 * col2 * + ( 94 * + col1 ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 8 * col2 * + ( 94 * + col1 ) FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4005
SELECT CAST( col0 AS SIGNED ) - - col1 AS col0 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-4005
SELECT CAST ( col0 AS INTEGER ) - - col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - - 29 - + col0 FROM tab2 AS cor0
----
-49
-50
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-4007
SELECT ALL + 62 - + 68 DIV col2 AS col2 FROM tab0 cor0
----
-6
60
62
skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + 62 - + 68 / col2 AS col2 FROM tab0 cor0
----
-6
60
62
query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab0, tab2 AS cor0
----
-39
query I rowsort
SELECT ALL + col0 - - 93 AS col2 FROM tab1 AS cor0
----
157
173
96
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4011
SELECT DISTINCT + 25 * - col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT + 25 * - col0 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - 59 * col1 FROM tab0 AS cor0
----
-5074
-5369
-5723
query I rowsort
SELECT - - col2 + - col2 * col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL 93 + - col2 + col1 * - col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-3303
-664107
-68052
query I rowsort
SELECT + 69 + col1 AS col0 FROM tab0 AS cor0
----
155
160
166
query I rowsort
SELECT ALL col1 + col1 * + tab2.col2 * 62 AS col1 FROM tab2
----
40069
51925
95167
query I rowsort
SELECT ALL + col0 * - col1 + col2 * - tab0.col2 AS col1 FROM tab0
----
-14823
-3153
-3396
query I rowsort
SELECT - col0 * - col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + cor0.col0 * 15 AS col2 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT + + cor0.col0 * col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col1 + ( - cor0.col1 + + col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + col1 + + ( cor0.col1 * cor0.col1 ) AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT col1 + col2 * - col0 - - col0 AS col0 FROM tab1 cor0
----
-133
-3574
-7587
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT cor0.col1 * col2 + - col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - col0 * + col0 + + col2 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + ( 95 ) * col0 - col1 * 25 FROM tab0 AS cor0
----
130
6180
900
query I rowsort
SELECT DISTINCT col1 + 5 FROM tab0
----
102
91
96
query I rowsort
SELECT + 97 * cor0.col1 * + col0 FROM tab1 AS cor0
----
100880
62080
7566
query I rowsort
SELECT + + 92 * + col1 AS col0 FROM tab1 AS cor0
----
1196
2392
920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * col0 col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT cor0.col0 * col0 - cor0.col0 * - col1 FROM tab2 AS cor0
----
10686
266
7584
query I rowsort
SELECT - - col2 + - cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL + ( - col0 ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + - cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - col1 * + col1 * col1 + cor0.col1 * cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 81 AS col2 FROM tab1
----
81
query I rowsort
SELECT + + 93 + col1 FROM tab1 AS cor0
----
103
106
119
query I rowsort
SELECT + + col1 + col0 * + col2 * + col2 FROM tab0 AS cor0
----
132
26222
598527
query I rowsort
SELECT + + col2 + col1 * col0 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - + cor0.col1 * - cor0.col0 FROM tab1, tab0 cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4044
SELECT + CAST( - 85 AS SIGNED ) col2 FROM tab2 AS cor0
----
-85
-85
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4044
SELECT + CAST ( - 85 AS INTEGER ) col2 FROM tab2 AS cor0
----
-85
-85
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4045
SELECT - 99 DIV col1 + col1 AS col1 FROM tab1 AS cor0
----
1
23
6
skipif mysql # not compatible
query I rowsort label-4045
SELECT - 99 / col1 + col1 AS col1 FROM tab1 AS cor0
----
1
23
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4046
SELECT ALL - col0 DIV tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL - col0 / tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 27 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT + 11 + col2 DIV col1 FROM tab0
----
11
11
11
skipif mysql # not compatible
query I rowsort label-4048
SELECT + 11 + col2 / col1 FROM tab0
----
11
11
11
query I rowsort
SELECT DISTINCT tab0.col2 * + col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT 88 + + 47 AS col0 FROM tab1
----
135
135
135
query I rowsort
SELECT - - cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT ALL - col2 DIV - 83 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL - col2 / - 83 FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT + 19 * cor0.col0 + col2 FROM tab1 cor0
----
111
1273
1616
query I rowsort
SELECT - tab2.col0 + - col1 / col1 + col1 FROM tab2 WHERE NOT col1 <> - col0
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < ( + col1 )
----
query I rowsort
SELECT col2 + col0 + - col1 FROM tab1
----
111
163
31
query I rowsort
SELECT DISTINCT - col0 + tab0.col0 + tab0.col2 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + col1 * - col1 + col0 AS col1 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT col1 * col1 * - col0 AS col1 FROM tab1
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 * col1 col0 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * tab2.col2 col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col0 + - col0 + - col0 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( NULL ) IN ( + col0 )
----
query I rowsort
SELECT - tab2.col2 + col2 + tab2.col2 FROM tab2
----
26
27
38
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - col0 * - col2 + + col2 = NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + - col1 * - col0 NOT BETWEEN - col0 AND + col2 * col2 + col1 * col2
----
7
31
27
79
17
38
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + tab2.col0 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT - col2 + + col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT col0 * col1 - col0 * - col2 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT col0 + col0 * + col2 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT - col1 - col2 FROM tab0 cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT col1 * col1 - col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
7398
8282
9506
skipif mysql # not compatible
query I rowsort label-4073
SELECT col1 * col1 - col1 / - col2 AS col1 FROM tab0 AS cor0
----
7398
8282
9506
query I rowsort
SELECT ALL cor0.col2 + - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + + col1 * + col0 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL - col1 + - col1 * cor0.col0 - - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col2 + + 80 FROM tab1 cor0
----
134
137
176
query I rowsort
SELECT DISTINCT col1 * 31 * - col0 FROM tab2 AS cor0
----
-142662
-41633
-6727
query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT col2 * tab2.col2 + col2 * col1 FROM tab2
----
1566
2090
2210
query I rowsort
SELECT DISTINCT - tab0.col2 * + col2 + + 28 * + col0 AS col2 FROM tab0
----
-417
-4232
979
onlyif mysql # use DIV operator for integer division
query I rowsort label-4082
SELECT ALL + cor0.col0 + + 86 DIV + col2 FROM tab1 AS cor0
----
4
65
80
skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + cor0.col0 + + 86 / + col2 FROM tab1 AS cor0
----
4
65
80
query I rowsort
SELECT ALL + col2 + 47 FROM tab0
----
129
48
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 + + tab0.col2 + - 74 col0 FROM tab0
----
-74
query I rowsort
SELECT col0 * + 29 AS col0 FROM tab0
----
1015
2581
696
query I rowsort
SELECT + 32 AS col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT + 6 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT tab1.col2 + ( 36 ) AS col1 FROM tab1
----
132
90
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 78 + + 19 col0 FROM tab1
----
-33
-46
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4090
SELECT DISTINCT + col1 + 57 DIV - ( + tab2.col0 ) FROM tab2
----
17
23
59
skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT + col1 + 57 / - ( + tab2.col0 ) FROM tab2
----
17
23
59
query I rowsort
SELECT ALL + + 2 * + col2 FROM tab2 cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - col0 * col0 col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT ALL 55 * - col1 FROM tab0 AS cor0
----
-4730
-5005
-5335
query I rowsort
SELECT + 59 * col2 + - col1 + col0 FROM tab1 AS cor0
----
3163
3417
5731
query I rowsort
SELECT DISTINCT + + ( - cor0.col2 ) * col1 * col1 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT + + col1 + col0 + ( col0 ) * col0 AS col1 FROM tab1 AS cor0
----
38
4170
6493
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab2, tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT col2 - + 56 AS col0 FROM tab0
----
-23
-55
26
query I rowsort
SELECT + - 96 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT - - 2 AS col1 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT ALL cor0.col1 * col2 + ( col0 ) AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + 33 * + col0 + - 72 FROM tab0 AS cor0
----
1083
2865
720
query I rowsort
SELECT DISTINCT + - col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col1 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 * + col0 - 86 FROM tab0 AS cor0
----
-51
706
7212
query I rowsort
SELECT ALL tab0.col1 + + col0 + + ( 63 ) * tab0.col1 AS col2 FROM tab0
----
5528
5913
6243
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4107
SELECT - + 4 / col0 + + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4107
SELECT - + 4 / col0 + + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + tab1.col1 + + col1 FROM tab1
----
106
122
77
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-4110
SELECT + col1 DIV + 66 + - col0 + col0 DIV cor0.col0 col1 FROM tab2 AS cor0
----
-6
-77
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4110
SELECT + col1 / + 66 + - col0 + col0 / cor0.col0 col1 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT DISTINCT 79 - tab1.col2 AS col1 FROM tab1
----
-17
22
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT - col1 + + col2 DIV col0 FROM tab1
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-4112
SELECT - col1 + + col2 / col0 FROM tab1
----
-10
-12
-8
query I rowsort
SELECT DISTINCT col0 + col0 * + ( - 82 ) FROM tab2
----
-567
-6318
-6399
query I rowsort
SELECT col0 * col0 * 17 AS col1 FROM tab2 AS cor0
----
103428
106097
833
query I rowsort
SELECT - col1 * col0 + ( 38 ) FROM tab2 AS cor0
----
-1305
-179
-4564
query I rowsort
SELECT DISTINCT + - 12 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-11
21
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT ALL - col2 + col1 + col0 DIV + col0 FROM tab2 AS cor0
----
-20
34
5
skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - col2 + col1 + col0 / + col0 FROM tab2 AS cor0
----
-20
34
5
query I rowsort
SELECT DISTINCT + - cor0.col1 AS col2 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4119
SELECT + - col1 * + col2 + + col2 DIV col2 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-4119
SELECT + - col1 * + col2 + + col2 / col2 FROM tab0 AS cor0
----
-2837
-7461
-96
query I rowsort
SELECT DISTINCT - col1 * 58 + 9 AS col1 FROM tab0 AS cor0
----
-4979
-5269
-5617
query I rowsort
SELECT ALL + + col1 * col2 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + col2 + 72 * - col1 * + col0 FROM tab0 AS cor0
----
-148575
-244439
-583046
query I rowsort
SELECT + col0 - + cor0.col2 * 64 FROM tab2 AS cor0
----
-1586
-1721
-2353
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - ( - col1 ) col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4125
SELECT + + col1 + CAST( NULL AS SIGNED ) * 93 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4125
SELECT + + col1 + CAST ( NULL AS INTEGER ) * 93 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * col2 + - 69 FROM tab2 cor0
----
120
1959
2933
query I rowsort
SELECT DISTINCT + col2 * + 39 + cor0.col2 + - cor0.col0 AS col2 FROM tab0 cor0
----
1296
3191
5
query I rowsort
SELECT col1 - + 53 FROM tab0 AS cor0
----
33
38
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-4129
SELECT col2 DIV + col0 + col1 * ( col2 ) AS col0 FROM tab1
----
1249
1422
570
skipif mysql # not compatible
query I rowsort label-4129
SELECT col2 / + col0 + col1 * ( col2 ) AS col0 FROM tab1
----
1249
1422
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4130
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col0 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col0 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT - ( + 96 ) * - col2 FROM tab0 AS cor0
----
3168
7872
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT DISTINCT col2 + col0 DIV - cor0.col1 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT col2 + col0 / - cor0.col1 FROM tab2 AS cor0
----
25
27
34
query I rowsort
SELECT ALL - - ( - 59 ) AS col1 FROM tab2 AS cor0
----
-59
-59
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT + col2 + - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-4135
SELECT + col2 + - col2 / col2 AS col1 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT 74 * ( col0 ) + - 95 FROM tab1 AS cor0
----
127
4641
5825
query I rowsort
SELECT ALL 69 * cor0.col1 FROM tab2 AS cor0
----
1173
2139
4071
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) + col1 AS col2 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4139
SELECT ALL ( col0 ) DIV - col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL ( col0 ) / - col0 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT + col2 + cor0.col2 * col2 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
-17550
-19656
-54834
query I rowsort
SELECT ALL - col1 * + 22 AS col0 FROM tab1 cor0
----
-220
-286
-572
query I rowsort
SELECT - 38 * col0 FROM tab0 AS cor0
----
-1330
-3382
-912
query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL cor0.col1 + + col2 * 85 * col2 FROM tab1 cor0
----
247886
276175
783373
query I rowsort
SELECT + 43 + + 94 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 3da972573ade226d84f9191d39b85e4a
query I rowsort
SELECT DISTINCT - + col1 * cor0.col2 + - 81 AS col0 FROM tab2 AS cor0
----
-1615
-727
-918
onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT DISTINCT + - col2 * - col2 + - 42 + col2 DIV col1 AS col0 FROM tab0 AS cor0
----
-41
1047
6682
skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT + - col2 * - col2 + - 42 + col2 / col1 AS col0 FROM tab0 AS cor0
----
-41
1047
6682
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - cor0.col2 col1 FROM tab2 cor0
----
-55
-58
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL col0 * + 60 FROM tab1
----
180
3840
4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-4151
SELECT DISTINCT - 6 DIV - tab1.col1 AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT - 6 / - tab1.col1 AS col2 FROM tab1
----
0
query I rowsort
SELECT - ( - cor0.col2 ) + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - col2 + col0 * 3 FROM tab1 AS cor0
----
-45
135
144
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 * col1 col2 FROM tab1 AS cor0
----
1326
510
663
onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT col0 * col0 DIV - col2 FROM tab0 AS cor0
----
-1225
-17
-96
skipif mysql # not compatible
query I rowsort label-4155
SELECT col0 * col0 / - col2 FROM tab0 AS cor0
----
-1225
-17
-96
query I rowsort
SELECT cor0.col2 - - 17 FROM tab2, tab2 AS cor0
----
9 values hashing to 63afdb24d0d8b343db2eb05a7f329628
query I rowsort
SELECT - col2 * - col2 + + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL + 84 + - col2 + 2 AS col0 FROM tab0 AS cor0
----
4
53
85
query I rowsort
SELECT DISTINCT - + 40 + + col0 AS col1 FROM tab2 AS cor0
----
-33
38
39
query I rowsort
SELECT DISTINCT ( + col1 ) * - cor0.col1 - col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT ALL - ( - col1 ) * col0 + - col1 FROM tab1 AS cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * - cor0.col0 col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT + - col2 * - ( col1 ) + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - col1 + 64 AS col0 FROM tab2 cor0
----
33
47
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT ALL - col0 DIV + 18 col0 FROM tab1 AS cor0
----
-3
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL - col0 / + 18 col0 FROM tab1 AS cor0
----
-3
-4
0
query I rowsort
SELECT DISTINCT - col0 * col0 + - 7 * + col0 FROM tab0 cor0
----
-1470
-744
-8544
query I rowsort
SELECT + - col1 * 44 FROM tab0 AS cor0
----
-3784
-4004
-4268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT - col1 * 86 - + col0 FROM tab0 AS cor0
----
-7420
-7915
-8377
query I rowsort
SELECT cor0.col0 + + 8 AS col0 FROM tab2 cor0
----
15
86
87
query I rowsort
SELECT + + col0 + + col1 * col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT + col0 * - 91 * col1 - cor0.col2 AS col0 FROM tab2 cor0
----
-122251
-19774
-418808
query I rowsort
SELECT + cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col2 * ( - 54 ) FROM tab0
----
-1782
-4428
-54
query I rowsort
SELECT ALL - 17 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT ALL col1 * + 45 FROM tab1 AS cor0
----
1170
450
585
query I rowsort
SELECT DISTINCT - - cor0.col0 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + cor0.col1 + 22 * + col0 AS col2 FROM tab1 AS cor0
----
1418
1773
92
query I rowsort
SELECT 15 * col0 AS col0 FROM tab2 AS cor0
----
105
1170
1185
query I rowsort
SELECT ALL - col2 * col2 * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT - 46 * + col1 + + col1 FROM tab1 AS cor0
----
-1170
-450
-585
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4182
SELECT col1 * CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4182
SELECT col1 * CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4183
SELECT ALL - - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-4185
SELECT - + 77 DIV + col0 AS col2 FROM tab1 cor0
----
-1
-25
0
skipif mysql # not compatible
query I rowsort label-4185
SELECT - + 77 / + col0 AS col2 FROM tab1 cor0
----
-1
-25
0
query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
94
query I rowsort
SELECT ALL + - col2 * col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - 12 FROM tab1 cor0
----
-12
query I rowsort
SELECT + col0 + - col1 * - col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + + col2 * ( + col0 + cor0.col1 ) * col0 FROM tab1 AS cor0
----
269952
4698
714240
onlyif mysql # use DIV operator for integer division
query I rowsort label-4191
SELECT + col0 DIV 71 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4191
SELECT + col0 / 71 AS col1 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4192
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4192
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 95 col1 FROM tab1
----
-15
-31
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-4195
SELECT col2 * ( + 93 ) DIV - col1 + + 66 AS col0 FROM tab1
----
-127
-464
-620
skipif mysql # not compatible
query I rowsort label-4195
SELECT col2 * ( + 93 ) / - col1 + + 66 AS col0 FROM tab1
----
-127
-464
-620
query I rowsort
SELECT - col1 + cor0.col1 * - col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT col2 * col0 * col1 + tab0.col1 FROM tab0
----
3492
664209
68198
query I rowsort
SELECT - 56 * cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a25528cb2adafb9953cec876765cb142
onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT - col2 + + col2 DIV col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4199
SELECT - col2 + + col2 / col1 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4200
SELECT - col0 + col1 DIV - 64 FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-4200
SELECT - col0 + col1 / - 64 FROM tab0
----
-25
-36
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4201
SELECT DISTINCT - col0 * col2 + CAST( 11 AS SIGNED ) - + cor0.col2 * 25 AS col2 FROM tab1 AS cor0
----
-10069
-1501
-5062
skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT - col0 * col2 + CAST ( 11 AS INTEGER ) - + cor0.col2 * 25 AS col2 FROM tab1 AS cor0
----
-10069
-1501
-5062
query I rowsort
SELECT ALL + + col0 * + col0 - 81 FROM tab0 AS cor0
----
1144
495
7840
query I rowsort
SELECT ALL cor0.col0 + + col1 + + col1 AS col0 FROM tab0 cor0
----
196
229
271
query I rowsort
SELECT DISTINCT + + 5 * col0 - - col0 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT ( col0 ) - + col2 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + 56 + col2 AS col0 FROM tab0 AS cor0
----
138
57
89
query I rowsort
SELECT - col1 - - cor0.col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL 66 + col2 * 86 AS col0 FROM tab0 cor0
----
152
2904
7118
query I rowsort
SELECT ALL - col2 * + col1 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT col0 + col0 * + 54 AS col2 FROM tab1 AS cor0
----
165
3520
4400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4211
SELECT ALL col1 + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL col1 + col0 / col1 AS col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4212
SELECT col1 * - CAST( col1 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-164
-249
-679
skipif mysql # not compatible
query I rowsort label-4212
SELECT col1 * - CAST ( col1 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT DISTINCT + col0 + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + col1 * + 27 FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT - col2 - tab2.col0 AS col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col1 * 92 + - col2 FROM tab0 cor0
----
7879
8290
8923
query I rowsort
SELECT DISTINCT - col2 * + col2 * + cor0.col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT ALL + - col2 - col2 * col0 * - col1 FROM tab0 AS cor0
----
3394
664036
68079
query I rowsort
SELECT ALL + 45 * + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3c01e4cbd0132843aef106a31abf995e
query I rowsort
SELECT DISTINCT col1 * cor0.col1 * col0 + - col0 FROM tab2 AS cor0
----
22752
271440
6720
query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - col1 * col1 + ( 38 + col1 ) FROM tab2 AS cor0
----
-234
-3384
-892
query I rowsort
SELECT + - 75 + - col0 AS col0 FROM tab0 AS cor0
----
-110
-164
-99
query I rowsort
SELECT ALL - - cor0.col1 * - col1 + + ( - col1 + col2 * col0 ) AS col2 FROM tab0 cor0
----
-1074
-6690
-9471
query I rowsort
SELECT DISTINCT ( tab1.col1 ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT 14 + - col1 AS col1 FROM tab1
----
-12
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * col2 col0 FROM tab2 AS cor0
----
-1292
-884
-918
query I rowsort
SELECT cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + cor0.col2 * - cor0.col0 * - 16 AS col2 FROM tab2 AS cor0
----
3024
32448
48032
query I rowsort
SELECT 43 * + col0 + col1 FROM tab1 AS cor0
----
155
2762
3453
query I rowsort
SELECT + 60 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # use DIV operator for integer division
query I rowsort label-4232
SELECT ALL - 39 DIV col2 col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL - 39 / col2 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + 62 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT ALL ( cor1.col1 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL + 68 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT - 28 * - col1 AS col1 FROM tab2 AS cor0
----
1652
476
868
query I rowsort
SELECT ALL col1 + - col2 + + ( tab0.col1 * ( + tab0.col0 ) ) FROM tab0
----
2117
3491
8108
query I rowsort
SELECT + ( 72 ) AS col0 FROM tab1 AS cor0
----
72
72
72
query I rowsort
SELECT + - 15 + + 85 AS col2 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT - 97 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 col1 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4242
SELECT DISTINCT + 11 DIV 71 AS col1 FROM tab2, tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + 11 / 71 AS col1 FROM tab2, tab2 AS cor0
----
0
query I rowsort
SELECT + 84 + - 76 AS col2 FROM tab0 AS cor0
----
8
8
8
query I rowsort
SELECT + col2 * - ( cor0.col0 * col0 ) AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT + 82 * col0 + - col1 AS col2 FROM tab0 AS cor0
----
1882
2773
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-4246
SELECT + col1 DIV - col2 + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4246
SELECT + col1 / - col2 + col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4247
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4248
SELECT + CAST( NULL AS SIGNED ) + + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4248
SELECT + CAST ( NULL AS INTEGER ) + + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 89 * col0 * col0 FROM tab2 AS cor0
----
4361
541476
555449
query I rowsort
SELECT ALL + 93 * col2 AS col1 FROM tab1 AS cor0
----
5022
5301
8928
query I rowsort
SELECT ALL + 97 * col2 FROM tab0 cor0
----
3201
7954
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4252
SELECT ALL - - CAST( NULL AS SIGNED ) * 98 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - - CAST ( NULL AS INTEGER ) * 98 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col1 ) * + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT - 99 + col0 AS col0 FROM tab1 AS cor0
----
-19
-35
-96
query I rowsort
SELECT - col2 + + ( + 65 ) FROM tab0 AS cor0
----
-17
32
64
query I rowsort
SELECT + - col0 * - 71 * - 36 + col1 + + 13 FROM tab0 AS cor0
----
-227380
-61245
-89350
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * 9 col2 FROM tab1
----
-486
-513
-864
query I rowsort
SELECT col2 + + col0 + col1 * col2 AS col2 FROM tab1
----
1424
1461
691
query I rowsort
SELECT ALL tab1.col2 * + 41 AS col1 FROM tab1
----
2214
2337
3936
onlyif mysql # use DIV operator for integer division
query I rowsort label-4260
SELECT - - col2 DIV - 28 + - col1 * col1 col2 FROM tab1 AS cor0
----
-102
-172
-677
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4260
SELECT - - col2 / - 28 + - col1 * col1 col2 FROM tab1 AS cor0
----
-102
-172
-677
onlyif mysql # use DIV operator for integer division
query I rowsort label-4261
SELECT - + col0 * + ( + col2 ) * col0 + col2 DIV col0 + cor0.col0 * col0 FROM tab1 AS cor0
----
-229376
-459
-607999
skipif mysql # not compatible
query I rowsort label-4261
SELECT - + col0 * + ( + col2 ) * col0 + col2 / col0 + cor0.col0 * col0 FROM tab1 AS cor0
----
-229376
-459
-607999
onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT col1 + + cor0.col0 * col2 DIV + col0 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-4262
SELECT col1 + + cor0.col0 * col2 / + col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - + col0 + + col0 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - col1 + cor0.col0 * - 62 FROM tab1 AS cor0
----
-212
-3978
-4973
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT 41 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT DISTINCT - 84 * + cor0.col1 + cor0.col0 * - col2 FROM tab1 AS cor0
----
-2346
-4488
-8772
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col0 - - col0 * col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT 61 * cor0.col1 AS col2 FROM tab0 AS cor0
----
5246
5551
5917
query I rowsort
SELECT ALL + ( + col0 ) * + col0 + + col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT 90 - col1 AS col0 FROM tab0 AS cor0
----
-1
-7
4
query I rowsort
SELECT - col2 * - col2 - + 32 * - col1 FROM tab2 AS cor0
----
1721
1988
2564
query I rowsort
SELECT 11 + + col0 + col0 AS col0 FROM tab2 AS cor0
----
167
169
25
query I rowsort
SELECT ALL - 57 - cor0.col1 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to d8b7a51c1b8ae60c18458cce3a602bf6
query I rowsort
SELECT DISTINCT - + cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col2 * col2 * 94 AS col2 FROM tab0 AS cor0
----
102366
632056
94
query I rowsort
SELECT + 32 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1311
-185
-4570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * + 41 col0 FROM tab2 AS cor0
----
2009
249444
255881
query I rowsort
SELECT ALL - + col2 * + 74 AS col0 FROM tab2 AS cor0
----
-1924
-1998
-2812
onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT DISTINCT - col1 + - col0 DIV + 16 FROM tab2 AS cor0
----
-21
-31
-63
skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - col1 + - col0 / + 16 FROM tab2 AS cor0
----
-21
-31
-63
query I rowsort
SELECT ALL - - col1 * 22 FROM tab0 AS cor0
----
1892
2002
2134
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 7 col2 FROM tab2 AS cor0
----
0
71
72
query I rowsort
SELECT + cor0.col1 - + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col2 * - col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT col0 * col2 - + col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4286
SELECT + col1 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-4286
SELECT + col1 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col2 * col0 - 60 AS col2 FROM tab2 AS cor0
----
129
1968
2942
onlyif mysql # use DIV operator for integer division
query I rowsort label-4288
SELECT ALL 70 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL 70 / cor0.col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + cor0.col0 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + 23 + - col1 AS col0 FROM tab1 AS cor0
----
-3
10
13
query I rowsort
SELECT DISTINCT + col0 - + col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT 60 + cor0.col1 FROM tab2 AS cor0
----
119
77
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-4294
SELECT + 30 - - col1 DIV - tab0.col1 FROM tab0
----
29
29
29
skipif mysql # not compatible
query I rowsort label-4294
SELECT + 30 - - col1 / - tab0.col1 FROM tab0
----
29
29
29
query I rowsort
SELECT ALL - 98 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT 97 + col0 DIV - col0 AS col2 FROM tab1 cor0
----
96
96
96
skipif mysql # not compatible
query I rowsort label-4296
SELECT 97 + col0 / - col0 AS col2 FROM tab1 cor0
----
96
96
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 87 col1 FROM tab1
----
-261
-5568
-6960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 53 + ( - col0 ) * cor0.col1 col2 FROM tab2 AS cor0
----
-1860
-2244
-7729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4299
SELECT DISTINCT col0 DIV 74 AS col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT col0 / 74 AS col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL + 87 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT ALL 0 * + col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 17 col0 FROM tab0 AS cor0
----
17
17
17
query I rowsort
SELECT DISTINCT 38 FROM tab0 cor0
----
38
query I rowsort
SELECT DISTINCT col0 + cor0.col1 * - col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL col0 + 45 * col0 AS col1 FROM tab0 AS cor0
----
1104
1610
4094
query I rowsort
SELECT ALL - col0 + ( col1 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT cor0.col2 + col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + + ( - cor0.col1 ) + - col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL - + 41 + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-38
23
39
query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab2, tab0 cor0, tab1
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4311
SELECT tab0.col1 + + col1 DIV col0 AS col2 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-4311
SELECT tab0.col1 + + col1 / col0 AS col2 FROM tab0
----
89
92
99
query I rowsort
SELECT - col0 + col1 * tab0.col1 AS col1 FROM tab0
----
7372
8192
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-4313
SELECT DISTINCT - col1 DIV - col1 + - col2 * + 47 * + col2 FROM tab1
----
-137051
-152702
-433151
skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT - col1 / - col1 + - col2 * + 47 * + col2 FROM tab1
----
-137051
-152702
-433151
query I rowsort
SELECT ALL + - 26 * col1 AS col0 FROM tab2 AS cor0
----
-1534
-442
-806
query I rowsort
SELECT - - cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL + 52 - col1 AS col0 FROM tab2 AS cor0
----
-7
21
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT DISTINCT + 60 DIV col0 + - 79 FROM tab0 AS cor0
----
-77
-78
-79
skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT + 60 / col0 + - 79 FROM tab0 AS cor0
----
-77
-78
-79
query I rowsort
SELECT DISTINCT - - cor0.col0 * ( - col2 ) * col1 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
-115050
-49691
-5642
query I rowsort
SELECT DISTINCT + col2 + + ( + col2 ) AS col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + + col2 + - 98 * col0 FROM tab0 AS cor0
----
-2319
-3429
-8640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col0 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4322
SELECT + - col0 + col0 DIV - ( + col0 ) FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-4322
SELECT + - col0 + col0 / - ( + col0 ) FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT - col1 + - col1 * - ( col0 ) FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT - - cor0.col1 * col1 + + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL col1 * col2 + col2 AS col0 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT ALL - cor0.col2 + ( 80 ) AS col2 FROM tab0 cor0
----
-2
47
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4327
SELECT ALL tab1.col0 * col1 * col1 + + col0 DIV - col0 AS col0 FROM tab1
----
13519
2027
6399
skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL tab1.col0 * col1 * col1 + + col0 / - col0 AS col0 FROM tab1
----
13519
2027
6399
query I rowsort
SELECT ALL - + col2 * - 58 - col1 FROM tab2 AS cor0
----
1449
1535
2187
query I rowsort
SELECT ALL - cor0.col0 * + 75 + + col0 AS col1 FROM tab0 AS cor0
----
-1776
-2590
-6586
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + cor0.col1 col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT 40 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 * CAST ( col0 AS REAL ) / cor0.col0 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col2 * - 98 FROM tab2 AS cor0
----
-2548
-2646
-3724
query I rowsort
SELECT col1 * - col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4335
SELECT - col1 * + CAST( NULL AS SIGNED ) + ( - col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4335
SELECT - col1 * + CAST ( NULL AS INTEGER ) + ( - col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab0.col0 + + col1 * 13 FROM tab0
----
1142
1272
1296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4337
SELECT + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4337
SELECT + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 + - 62 AS col0 FROM tab2 AS cor0
----
-3
-31
-45
query I rowsort
SELECT + + tab2.col0 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT 86 * col0 AS col0 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT - col0 - cor0.col2 * + 26 AS col0 FROM tab2 AS cor0
----
-1067
-709
-754
onlyif mysql # use DIV operator for integer division
query I rowsort label-4342
SELECT DISTINCT cor0.col0 DIV + col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT cor0.col0 / + col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT - col0 * col1 * - col2 AS col0 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT ALL 32 * col2 + col1 FROM tab0
----
1142
129
2715
onlyif mysql # use DIV operator for integer division
query I rowsort label-4345
SELECT + + 63 DIV - col1 + + col0 * + 69 + cor0.col0 AS col0 FROM tab1 AS cor0
----
208
4474
5596
skipif mysql # not compatible
query I rowsort label-4345
SELECT + + 63 / - col1 + + col0 * + 69 + cor0.col0 AS col0 FROM tab1 AS cor0
----
208
4474
5596
query I rowsort
SELECT - col1 * tab2.col2 + col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - col0 + - 24 - col1 FROM tab0
----
-134
-156
-204
query I rowsort
SELECT DISTINCT - - col2 + col2 * - 35 * ( + col1 ) FROM tab1 AS cor0
----
-19893
-43584
-49086
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) * + col1 + - col0 * col1 * - 10 col1 FROM tab1 AS cor0
----
-624
5830
9152
query I rowsort
SELECT ALL 66 AS col2 FROM tab0, tab0 cor0, tab2 cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 13 ) col1 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT DISTINCT + + col0 * col1 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL + 0 * cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL 38 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT + 97 + col2 * + col0 FROM tab2 AS cor0
----
2125
286
3099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4356
SELECT ALL - col1 DIV col2 + col0 * col2 DIV col0 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL - col1 / col2 + col0 * col2 / col0 FROM tab0 AS cor0
----
-96
31
81
query I rowsort
SELECT DISTINCT - - 57 AS col2 FROM tab0 AS cor0
----
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 4 + col1 col0 FROM tab1 AS cor0
----
14
17
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-4359
SELECT ALL + 57 DIV - col0 AS col0 FROM tab1 cor0
----
-19
0
0
skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL + 57 / - col0 AS col0 FROM tab1 cor0
----
-19
0
0
query I rowsort
SELECT + - col1 * col0 - col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT + 77 * + col1 + col1 FROM tab0 AS cor0
----
6708
7098
7566
onlyif mysql # use DIV operator for integer division
query I rowsort label-4362
SELECT ALL - + col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL - + col2 / col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4363
SELECT - ( tab1.col2 ) DIV col0 col0 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4363
SELECT - ( tab1.col2 ) / col0 col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT DISTINCT col0 * ( col1 ) AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col0 + ( col0 ) * - col0 + col0 AS col2 FROM tab0
----
-1155
-528
-7743
query I rowsort
SELECT ALL ( - 83 ) - - col2 FROM tab0
----
-1
-50
-82
query I rowsort
SELECT + 19 + - col2 * - col1 FROM tab0
----
116
2857
7481
onlyif mysql # use DIV operator for integer division
query I rowsort label-4368
SELECT 43 * col0 DIV col1 FROM tab1
----
264
275
4
skipif mysql # not compatible
query I rowsort label-4368
SELECT 43 * col0 / col1 FROM tab1
----
264
275
4
query I rowsort
SELECT DISTINCT - ( + col0 + col1 ) AS col0 FROM tab2
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4370
SELECT 10 * + col0 DIV tab1.col0 AS col1 FROM tab1
----
10
10
10
skipif mysql # not compatible
query I rowsort label-4370
SELECT 10 * + col0 / tab1.col0 AS col1 FROM tab1
----
10
10
10
query I rowsort
SELECT - col1 + ( col1 ) * + col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + col1 + + col1 * 35 FROM tab2 AS cor0
----
1116
2124
612
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * - col2 col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab2, tab2 cor0, tab0 cor1
----
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * - col2 col0 FROM tab0
----
-2145
-5330
-65
query I rowsort
SELECT + - col0 + + 17 * + col2 AS col0 FROM tab0 cor0
----
-18
1305
537
query I rowsort
SELECT col2 * + ( tab0.col2 ) - col1 AS col2 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT - - cor0.col0 + - 70 FROM tab2 AS cor0
----
-63
8
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * col2 + col0 * col1 col0 FROM tab2
----
413
4424
6708
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + tab2.col2 * col1 col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col2 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + - col1 + col2 * col0 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-4385
SELECT ALL - + col2 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL - + col2 / + col1 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4386
SELECT DISTINCT - col1 DIV - tab0.col0 + col1 AS col0 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT - col1 / - tab0.col0 + col1 AS col0 FROM tab0
----
89
92
99
query I rowsort
SELECT ALL - col0 + + tab2.col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col1 + tab0.col0 * col0 AS col2 FROM tab0
----
16020
2640
4620
query I rowsort
SELECT ALL col1 * col2 + col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL col0 + col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT col0 + tab1.col1 * + col2 AS col2 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-4392
SELECT - col2 + + col2 DIV col0 AS col0 FROM tab1 cor0
----
-36
-57
-95
skipif mysql # not compatible
query I rowsort label-4392
SELECT - col2 + + col2 / col0 AS col0 FROM tab1 cor0
----
-36
-57
-95
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT - cor0.col1 + + col1 * col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 + + col2 * + cor0.col2 FROM tab1 AS cor0
----
3349
3592
9385
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT + col1 + col0 + col1 * col2 FROM tab2 cor0
----
1671
742
875
query I rowsort
SELECT ALL - + cor0.col1 * + col1 * - col2 FROM tab2 AS cor0
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col0 + col1 * + tab1.col0 FROM tab1
----
576
75
960
query I rowsort
SELECT 56 + col2 + col1 FROM tab1
----
123
136
165
query I rowsort
SELECT 42 + col0 FROM tab1 AS cor0
----
106
122
45
query I rowsort
SELECT - 12 - col2 AS col0 FROM tab0 AS cor0
----
-13
-45
-94
query I rowsort
SELECT ALL - ( col1 ) * - col1 * + col0 - col0 * - col0 AS col2 FROM tab2 AS cor0
----
277602
29072
6776
query I rowsort
SELECT col2 - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT ALL + - cor0.col2 * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4407
SELECT DISTINCT col1 DIV col1 AS col0 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT col1 / col1 AS col0 FROM tab2 cor0
----
1
query I rowsort
SELECT 7 * tab1.col2 FROM tab1
----
378
399
672
onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT ALL + - col0 + col1 * col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + - col0 + col1 * col0 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * - col0 * + col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT + - col1 + cor0.col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT ALL - cor0.col0 - + col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL + ( col1 ) * ( col1 ) + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT col1 * - col2 + ( 45 ) FROM tab1 AS cor0
----
-1203
-1359
-525
query I rowsort
SELECT ALL 35 + col2 AS col0 FROM tab2 AS cor0
----
61
62
73
query I rowsort
SELECT DISTINCT - 28 * col1 AS col0 FROM tab2 cor0
----
-1652
-476
-868
query I rowsort
SELECT DISTINCT col0 * - col1 * + 37 FROM tab1 AS cor0
----
-23680
-2886
-38480
onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT DISTINCT 31 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT 31 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL col0 * col1 - 54 AS col1 FROM tab0 cor0
----
2010
3341
8045
query I rowsort
SELECT ALL + col0 * + col2 + + col2 * 97 + col0 FROM tab0
----
15341
167
4017
query I rowsort
SELECT - 16 * col1 + - col1 FROM tab2
----
-1003
-289
-527
query I rowsort
SELECT DISTINCT - col2 * 62 + - col1 FROM tab1
----
-3374
-3544
-5965
query I rowsort
SELECT - + col0 * col0 + + col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL 26 + col1 FROM tab2
----
43
57
85
query I rowsort
SELECT - col0 + cor0.col1 * + ( 59 ) AS col0 FROM tab2 AS cor0
----
1822
3403
924
query I rowsort
SELECT col1 * 92 FROM tab1
----
1196
2392
920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col1 FROM tab0
----
-92
-92
-92
query I rowsort
SELECT ALL + 37 * - 54 + col1 + col1 * 23 AS col0 FROM tab2
----
-1254
-1590
-582
query I rowsort
SELECT + 72 * + col0 * - col1 + 75 + cor0.col1 FROM tab1 AS cor0
----
-45995
-5515
-74792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4430
SELECT ALL - 31 * + col1 DIV + col1 FROM tab0 AS cor0
----
-31
-31
-31
skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - 31 * + col1 / + col1 FROM tab0 AS cor0
----
-31
-31
-31
query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab1, tab2 AS cor0
----
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT ALL col2 DIV 73 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL col2 / 73 FROM tab2
----
0
0
0
query I rowsort
SELECT - 71 + 59 AS col2 FROM tab2
----
-12
-12
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT ALL - - col0 + - 64 DIV col1 FROM tab1 AS cor0
----
1
58
76
skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL - - col0 + - 64 / col1 FROM tab1 AS cor0
----
1
58
76
query I rowsort
SELECT DISTINCT - + 48 * + col0 + col2 * - ( 19 + + col1 ) AS col0 FROM tab1 AS cor0
----
-2574
-4725
-6912
query I rowsort
SELECT ALL + + 39 + ( cor0.col0 ) * cor0.col1 FROM tab0 AS cor0
----
2103
3434
8138
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4437
SELECT ALL CAST( NULL AS SIGNED ) + col2 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 68 * + col0 AS col1 FROM tab1 AS cor0
----
204
4352
5440
query I rowsort
SELECT ALL - col0 + 56 + col1 FROM tab1 AS cor0
----
-11
2
79
query I rowsort
SELECT + col1 + + 62 AS col2 FROM tab2 AS cor0
----
121
79
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 * 90 col2 FROM tab2 AS cor0
----
17010
182520
270180
query I rowsort
SELECT + col2 * + col0 + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL - 8 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
query I rowsort
SELECT + 54 * col0 AS col2 FROM tab2 AS cor0
----
378
4212
4266
onlyif mysql # use DIV operator for integer division
query I rowsort label-4445
SELECT + col0 * - col2 DIV + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4445
SELECT + col0 * - col2 / + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT ALL col2 + + 54 DIV + 41 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL col2 + + 54 / + 41 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + + 40 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT - 20 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT col2 + - col1 * + col1 * col1 FROM tab0 cor0
----
-636023
-753489
-912672
query I rowsort
SELECT + 20 + - 12 * - col2 FROM tab0 AS cor0
----
1004
32
416
query I rowsort
SELECT + col2 - col2 * col1 * + 42 AS col2 FROM tab2 AS cor0
----
-27094
-35127
-64402
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT + tab0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + - 29 FROM tab1 cor0
----
-29
-29
-29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4455
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) * - 80 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) * - 80 AS col0 FROM tab0
----
NULL
query I rowsort
SELECT ALL - col0 + - 93 AS col0 FROM tab1
----
-157
-173
-96
query I rowsort
SELECT ALL tab1.col0 + ( + 80 ) FROM tab1
----
144
160
83
query I rowsort
SELECT - 30 + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1564
-676
-867
query I rowsort
SELECT ALL - 43 + + 0 FROM tab2 cor0
----
-43
-43
-43
query I rowsort
SELECT DISTINCT col1 * - 21 FROM tab0 AS cor0
----
-1806
-1911
-2037
query I rowsort
SELECT DISTINCT 25 + col1 AS col1 FROM tab1 AS cor0
----
35
38
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4462
SELECT CAST( + col0 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-4462
SELECT CAST ( + col0 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT - ( col2 ) DIV cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4463
SELECT - ( col2 ) / cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col0 * 10 FROM tab0
----
240
350
890
query I rowsort
SELECT DISTINCT - col0 * - 55 + + col1 FROM tab0 AS cor0
----
1406
2022
4986
query I rowsort
SELECT + ( - col1 ) + + cor0.col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4467
SELECT - + col1 * + col2 / + CAST( NULL AS SIGNED ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4467
SELECT - + col1 * + col2 / + CAST ( NULL AS INTEGER ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4468
SELECT DISTINCT col1 + + ( - col2 ) DIV - col1 FROM tab2
----
19
31
59
skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT col1 + + ( - col2 ) / - col1 FROM tab2
----
19
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 * - cor0.col1 col1 FROM tab1, tab1 cor0
----
9 values hashing to f93d9d5d129a461f5b376b91d272c522
query I rowsort
SELECT - col0 * 77 AS col1 FROM tab1
----
-231
-4928
-6160
query I rowsort
SELECT + col0 * - cor0.col2 * + 41 + - 79 * + col0 + + 99 FROM tab2 AS cor0
----
-129224
-8203
-89211
query I rowsort
SELECT - col0 + 20 + col2 AS col1 FROM tab2 cor0
----
-21
-32
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-4473
SELECT + cor0.col0 + - ( + col1 ) DIV + col0 FROM tab1 AS cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-4473
SELECT + cor0.col0 + - ( + col1 ) / + col0 FROM tab1 AS cor0
----
-5
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4474
SELECT - col1 + col2 DIV cor0.col1 FROM tab1 AS cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-4474
SELECT - col1 + col2 / cor0.col1 FROM tab1 AS cor0
----
-24
-5
-6
query I rowsort
SELECT - cor0.col0 * col2 + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + col0 + col0 * - cor0.col1 AS col1 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT ALL - 24 - - col0 AS col0 FROM tab2
----
-17
54
55
query I rowsort
SELECT DISTINCT - 99 + col2 - - col0 * col0 FROM tab0
----
1127
510
7904
query I rowsort
SELECT col2 - col2 * + col2 * col0 FROM tab1
----
-207879
-737184
-8694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col2 FROM tab2
----
55
55
55
query I rowsort
SELECT col1 * - col1 * 7 AS col1 FROM tab1
----
-1183
-4732
-700
query I rowsort
SELECT DISTINCT tab1.col1 * 39 + - 90 FROM tab1
----
300
417
924
query I rowsort
SELECT 84 AS col0 FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
243 values hashing to 5db6994463e530932dc902f97f083437
query I rowsort
SELECT - col1 + - 50 AS col1 FROM tab0
----
-136
-141
-147
query I rowsort
SELECT - - col1 + + col0 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT col2 + 32 * cor0.col2 FROM tab1 AS cor0
----
1782
1881
3168
onlyif mysql # use DIV operator for integer division
query I rowsort label-4487
SELECT cor0.col0 * ( + col2 + col1 ) DIV 38 AS col2 FROM tab2 AS cor0
----
10
114
174
skipif mysql # not compatible
query I rowsort label-4487
SELECT cor0.col0 * ( + col2 + col1 ) / 38 AS col2 FROM tab2 AS cor0
----
10
114
174
query I rowsort
SELECT ALL tab1.col0 + + col2 * col0 AS col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL 88 * tab1.col1 FROM tab1
----
1144
2288
880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4490
SELECT + + CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4490
SELECT + + CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + ( - col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col1 AS REAL ) AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + 84 * col2 + + col0 - cor0.col2 AS col1 FROM tab1 cor0
----
4485
4795
8048
query I rowsort
SELECT ALL ( - col2 ) + tab1.col0 + col1 AS col0 FROM tab1
----
-25
-3
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-4495
SELECT ALL cor0.col1 + - col1 DIV ( + 31 ) FROM tab0 AS cor0
----
84
89
94
skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL cor0.col1 + - col1 / ( + 31 ) FROM tab0 AS cor0
----
84
89
94
query I rowsort
SELECT DISTINCT + - ( + col2 ) * col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - + 41 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-17
-6
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 * col1 col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL col0 * col0 * - col0 + - col2 AS col0 FROM tab0
----
-13857
-42876
-705051
query I rowsort
SELECT ALL + col2 - - col1 * + tab2.col1 * - tab2.col2 FROM tab2 WHERE NULL <> col1 * col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT DISTINCT col2 * + col1 + col0 DIV col1 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT col2 * + col1 + col0 / col1 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4503
SELECT col1 - col2 DIV + col1 AS col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4503
SELECT col1 - col2 / + col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT - col2 - col0 * col0 FROM tab1
----
-4153
-63
-6496
query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col1 - - col2 * + col2 AS col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL - col0 * col2 + + col1 * col0 + - col0 AS col1 FROM tab2
----
-1738
21
2496
onlyif mysql # use DIV operator for integer division
query I rowsort label-4508
SELECT + 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-4508
SELECT + col0 / + tab0.col2 col2 FROM tab0
----
0
1
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-4509
SELECT DISTINCT col2 + + col2 - - col2 DIV col2 FROM tab0
----
165
3
67
skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT col2 + + col2 - - col2 / col2 FROM tab0
----
165
3
67
query I rowsort
SELECT col0 + - col0 + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT - col1 * - col0 * col0 - col1 FROM tab2
----
106080
1488
358897
query I rowsort
SELECT - + col2 * - col2 + + ( + 32 ) * col0 AS col0 FROM tab0 AS cor0
----
1121
1857
9572
query I rowsort
SELECT DISTINCT col2 * + col2 + + col0 FROM tab0
----
1113
36
6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + - col0 col0 FROM tab2
----
210
3403
954
query I rowsort
SELECT ALL - col1 / col0 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col2 * - col1 )
----
query I rowsort
SELECT - col0 + - col0 * tab1.col1 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL - tab0.col1 + col0 AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col1 * col1 + col2 FROM tab1
----
157
265
730
query I rowsort
SELECT ALL tab1.col2 * - col2 AS col1 FROM tab1
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col0 col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT - cor0.col0 - col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 + col2 NOT IN ( - col2 + + col0 )
----
query I rowsort
SELECT col0 FROM tab2 WHERE NOT col1 + + col2 * col2 IN ( + tab2.col0 * - tab2.col2 )
----
7
78
79
query I rowsort
SELECT col2 - col0 AS col2 FROM tab2 WHERE NOT col0 + + col0 * col1 <= ( - col0 * + col0 )
----
-41
-52
20
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( - col2 / col1 )
----
query I rowsort
SELECT col1 * - col2 + col0 + col1 AS col2 FROM tab2
----
-1397
-550
-799
onlyif mysql # use DIV operator for integer division
query I rowsort label-4528
SELECT col2 * col0 DIV + col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4528
SELECT col2 * col0 / + col0 FROM tab1
----
54
57
96
query I rowsort
SELECT - tab2.col2 * col2 * col1 FROM tab2
----
-22599
-24548
-39884
query III rowsort
SELECT ALL * FROM tab0 WHERE col0 - - col2 BETWEEN - col0 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4531
SELECT DISTINCT col2 DIV col0 col1 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT col2 / col0 col1 FROM tab1
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-4532
SELECT + col1 * col2 DIV col2 AS col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4532
SELECT + col1 * col2 / col2 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT - cor0.col0 * - col0 - col2 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT col2 * col2 + + col0 AS col1 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT ALL - col1 - - col0 * col1 FROM tab2
----
1326
186
4543
query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + col1 >= ( - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - col1 - + 3 FROM tab1 AS cor0
----
-13
-16
-29
query I rowsort
SELECT DISTINCT + col1 + 15 * - tab2.col1 FROM tab2
----
-238
-434
-826
query I rowsort
SELECT col2 * - 19 * - 78 + col0 FROM tab1
----
142352
80031
84538
onlyif mysql # use DIV operator for integer division
query I rowsort label-4540
SELECT + ( - col1 + col1 ) DIV - 66 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4540
SELECT + ( - col1 + col1 ) / - 66 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - - 9 FROM tab0, tab1, tab2 cor0
----
9
query I rowsort
SELECT + ( + 16 ) * col1 - 33 AS col0 FROM tab2 AS cor0
----
239
463
911
onlyif mysql # use DIV operator for integer division
query I rowsort label-4543
SELECT DISTINCT - 98 DIV 64 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT - 98 / 64 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT + 43 + - col1 + - col0 FROM tab0 AS cor0
----
-137
-67
-89
query I rowsort
SELECT ALL - 33 AS col0 FROM tab0
----
-33
-33
-33
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * + tab0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
9 values hashing to 5ac8aba7baafe9bd6ceb7b5654f2c0b7
query I rowsort
SELECT col1 * tab1.col2 + + col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL - 44 * col2 + + cor0.col0 FROM tab1 AS cor0
----
-2373
-2444
-4144
query I rowsort
SELECT 27 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT - col2 * col1 * + ( col1 ) AS col0 FROM tab1 cor0
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + col2 + 59 AS col1 FROM tab1 AS cor0
----
-37
2
5
query I rowsort
SELECT DISTINCT - cor0.col2 * - ( col2 ) AS col1 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL - 21 * - 56 AS col0 FROM tab0
----
1176
1176
1176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4555
SELECT CAST( + 59 AS SIGNED ) * - col0 AS col1 FROM tab0
----
-1416
-2065
-5251
skipif mysql # not compatible
query I rowsort label-4555
SELECT CAST ( + 59 AS INTEGER ) * - col0 AS col1 FROM tab0
----
-1416
-2065
-5251
query I rowsort
SELECT 77 * - col0 FROM tab2 AS cor0
----
-539
-6006
-6083
query I rowsort
SELECT + 17 + col0 AS col1 FROM tab2 AS cor0
----
24
95
96
query I rowsort
SELECT ALL - + col1 * col1 + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT DISTINCT + cor0.col0 DIV col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT + cor0.col0 / col0 FROM tab2 AS cor0
----
1
query I rowsort
SELECT - col1 * 70 * ( col0 + - 52 ) FROM tab2
----
-107380
-32130
97650
query I rowsort
SELECT DISTINCT col0 - + ( col2 + - col1 ) * 10 AS col0 FROM tab1
----
-277
-406
-750
query I rowsort
SELECT DISTINCT + col2 - - 2 * + ( tab1.col2 ) FROM tab1
----
162
171
288
query I rowsort
SELECT - + col0 + 38 AS col0 FROM tab0 AS cor0
----
-51
14
3
query I rowsort
SELECT + + col1 - - col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + cor1.col1 - cor1.col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-4566
SELECT ( cor0.col2 ) DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4566
SELECT ( cor0.col2 ) / col1 AS col2 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT 61 - col0 FROM tab1 AS cor0
----
-19
-3
58
query I rowsort
SELECT - ( cor0.col1 ) + cor0.col2 AS col0 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + 38 * - 4 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2764
3097
9064
query I rowsort
SELECT - + ( 52 ) * + col2 + + col1 * col2 - - cor0.col0 FROM tab2 AS cor0
----
-1251
-560
260
query I rowsort
SELECT ALL + + 30 * 58 AS col0 FROM tab1 AS cor0
----
1740
1740
1740
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4572
SELECT DISTINCT - - CAST( col0 AS SIGNED ) * col2 + + col1 * + col1 FROM tab1 AS cor0
----
3748
7849
838
skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) * col2 + + col1 * + col1 FROM tab1 AS cor0
----
3748
7849
838
onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT - ( col0 ) DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4573
SELECT - ( col0 ) / - cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 * - ( col0 * col2 + 61 ) col2 FROM tab2 AS cor0
----
11500
140898
96094
query I rowsort
SELECT + 4 + - ( + col1 ) + col2 * - 8 * + col2 FROM tab0 cor0
----
-101
-53879
-8794
query I rowsort
SELECT ALL - 45 * 35 AS col0 FROM tab2 AS cor0
----
-1575
-1575
-1575
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4577
SELECT ALL + CAST( - 80 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-80
-80
-80
skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL + CAST ( - 80 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-80
-80
-80
query I rowsort
SELECT col2 + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 * col0 * col2 col1 FROM tab1 AS cor0
----
-207879
-737184
-8694
onlyif mysql # use DIV operator for integer division
query I rowsort label-4580
SELECT ALL 23 * - tab2.col1 + - col1 DIV + 50 AS col1 FROM tab2
----
-1358
-391
-713
skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL 23 * - tab2.col1 + - col1 / + 50 AS col1 FROM tab2
----
-1358
-391
-713
query I rowsort
SELECT ALL + 83 + tab1.col1 FROM tab1
----
109
93
96
query I rowsort
SELECT DISTINCT - col2 * col0 + col2 * + 48 AS col0 FROM tab2 AS cor0
----
-1178
-780
1107
query I rowsort
SELECT ALL 56 * 27 FROM tab0 AS cor0
----
1512
1512
1512
query I rowsort
SELECT col2 - 96 AS col1 FROM tab1 AS cor0
----
-39
-42
0
query I rowsort
SELECT DISTINCT - col1 + - col0 - - col2 AS col2 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT ALL - col0 + 98 FROM tab1 AS cor0
----
18
34
95
query I rowsort
SELECT + - ( 58 ) * + cor0.col1 - ( - col2 ) FROM tab0 AS cor0
----
-4955
-5196
-5625
onlyif mysql # use DIV operator for integer division
query I rowsort label-4588
SELECT ALL - - 28 DIV col0 - col2 FROM tab0 AS cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - - 28 / col0 - col2 FROM tab0 AS cor0
----
-1
-32
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 * col1 col2 FROM tab1 AS cor0
----
100
130
260
query I rowsort
SELECT + - 64 - cor0.col1 FROM tab1 AS cor0
----
-74
-77
-90
query I rowsort
SELECT DISTINCT - - ( col2 ) + - col1 + + col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - 77 + + cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 610abf461f7cd1941641105935b7ffb7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT DISTINCT - - col0 DIV + ( col2 ) - - 44 AS col2 FROM tab1 cor0
----
44
45
skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - - col0 / + ( col2 ) - - 44 AS col2 FROM tab1 cor0
----
44
45
query I rowsort
SELECT - 71 * - col0 FROM tab0 AS cor0
----
1704
2485
6319
query I rowsort
SELECT + cor0.col1 * col2 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - - col0 * col2 + - ( 43 ) * - col0 AS col2 FROM tab1 AS cor0
----
11120
291
6400
query I rowsort
SELECT + - cor0.col2 + - col1 AS col0 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + - col2 + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 31 + + col0 * - 63 AS col2 FROM tab1 AS cor0
----
-220
-4063
-5071
query I rowsort
SELECT DISTINCT 96 + + col0 FROM tab0 AS cor0
----
120
131
185
query I rowsort
SELECT ALL 19 + + col1 AS col0 FROM tab0 AS cor0
----
105
110
116
onlyif mysql # use DIV operator for integer division
query I rowsort label-4602
SELECT DISTINCT - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - col0 / - col1 AS col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT - 57 + + col2 AS col2 FROM tab2 AS cor0
----
-19
-30
-31
query I rowsort
SELECT ALL - 61 - - col1 AS col2 FROM tab1 AS cor0
----
-35
-48
-51
query I rowsort
SELECT - + col1 + col0 AS col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - + 59 * - cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
38114
49383
90506
query I rowsort
SELECT ALL - col2 * col2 + cor0.col1 * + col1 FROM tab2 AS cor0
----
-1155
232
2805
onlyif mysql # use DIV operator for integer division
query I rowsort label-4608
SELECT + col0 DIV tab1.col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4608
SELECT + col0 / tab1.col0 FROM tab1
----
1
1
1
query I rowsort
SELECT + col1 * 23 AS col0 FROM tab1
----
230
299
598
query I rowsort
SELECT DISTINCT + 35 - col2 FROM tab0
----
-47
2
34
query I rowsort
SELECT DISTINCT + col2 - - col2 * col0 AS col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL + tab1.col0 - col0 * - col2 * 93 FROM tab1
----
15069
339328
714320
query I rowsort
SELECT - tab0.col2 FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT + col2 * - col1 + + 66 * + col1 FROM tab1 AS cor0
----
-390
312
90
query I rowsort
SELECT ALL - col0 * + col2 + + 52 AS col0 FROM tab2 cor0
----
-137
-1976
-2950
query I rowsort
SELECT DISTINCT cor0.col1 + col2 * - col1 * col0 AS col0 FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL col1 * - cor0.col1 - - col1 FROM tab1 AS cor0
----
-156
-650
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + - ( 95 ) * + col2 col2 FROM tab1 AS cor0
----
-5133
-5479
-9200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4619
SELECT ALL + + col0 + - ( ( + col1 ) ) + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + + col0 + - ( ( + col1 ) ) + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + 11 AS col0 FROM tab1 AS cor0
----
21
24
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( - cor0.col2 ) col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - col1 + 55 AS col1 FROM tab0 AS cor0
----
-31
-36
-42
query I rowsort
SELECT ALL - + cor0.col1 * - ( - cor0.col0 ) - + col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - + col2 + - 67 FROM tab0 AS cor0
----
-100
-149
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4625
SELECT - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4625
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 5 * tab2.col1 FROM tab2
----
-155
-295
-85
query I rowsort
SELECT ALL + ( + col2 ) * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col1 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + + col1 * col2 + - cor0.col1 * cor0.col1 FROM tab1 cor0
----
1079
470
728
query I rowsort
SELECT col2 + ( ( cor0.col0 ) ) AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col0 - 40 FROM tab2 AS cor0
----
-118
-119
-47
query I rowsort
SELECT ALL + col0 * 12 AS col2 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT - col0 * - 30 FROM tab1 AS cor0
----
1920
2400
90
query I rowsort
SELECT + cor0.col0 * - 36 * cor0.col0 + + col2 + + col2 * col2 FROM tab0 AS cor0
----
-19614
-278350
-44098
query I rowsort
SELECT - + col2 - + cor0.col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT col0 + 27 AS col0 FROM tab1 AS cor0
----
107
30
91
query I rowsort
SELECT col2 + col1 + col0 AS col2 FROM tab0 AS cor0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-4638
SELECT col1 * col2 DIV + cor0.col1 - - col1 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-4638
SELECT col1 * col2 / + cor0.col1 - - col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + col1 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4640
SELECT - col0 + - 50 * + 22 + + col2 * CAST( 17 AS SIGNED ) FROM tab0 AS cor0
----
-1118
-563
205
skipif mysql # not compatible
query I rowsort label-4640
SELECT - col0 + - 50 * + 22 + + col2 * CAST ( 17 AS INTEGER ) FROM tab0 AS cor0
----
-1118
-563
205
query I rowsort
SELECT + col1 + + col2 * - col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - col2 + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT 57 + col2 FROM tab2 AS cor0
----
83
84
95
query I rowsort
SELECT ALL + 57 * col1 * + col1 + + col1 AS col1 FROM tab1 AS cor0
----
38558
5710
9646
query I rowsort
SELECT - + 82 FROM tab2 cor0
----
-82
-82
-82
query I rowsort
SELECT ALL - - col1 - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + ( col1 ) * - col2 + - col0 * + 92 * - col0 AS col2 FROM tab1 AS cor0
----
-576
376262
587552
query I rowsort
SELECT ALL + col2 * - col1 + col2 * 75 AS col0 FROM tab0 AS cor0
----
-1312
-22
-363
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col2 * cor0.col2 + + col1 FROM tab2 AS cor0
----
114093
5134
52787
query I rowsort
SELECT - 72 + col1 * + col0 FROM tab0 cor0
----
1992
3323
8027
query I rowsort
SELECT ALL - col1 + - 85 * - col0 AS col1 FROM tab2 AS cor0
----
564
6571
6698
query I rowsort
SELECT ALL + + col1 * + 44 AS col0 FROM tab1 AS cor0
----
1144
440
572
query I rowsort
SELECT DISTINCT 71 + + col2 AS col1 FROM tab0 AS cor0
----
104
153
72
query I rowsort
SELECT + 32 * - col0 AS col1 FROM tab0 cor0
----
-1120
-2848
-768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4655
SELECT ALL - 78 / - col2 + + CAST( NULL AS SIGNED ) * - 56 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL - 78 / - col2 + + CAST ( NULL AS INTEGER ) * - 56 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * - col0 + ( col0 * + col2 ) AS col1 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT DISTINCT - - col2 - + col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT 16 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4660
SELECT 58 * - col0 * - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
119712
196910
469742
skipif mysql # not compatible
query I rowsort label-4660
SELECT 58 * - col0 * - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
119712
196910
469742
query I rowsort
SELECT - + 61 * col0 AS col2 FROM tab1 AS cor0
----
-183
-3904
-4880
query I rowsort
SELECT - col0 * - col2 + 36 * - 44 AS col0 FROM tab1 cor0
----
-1422
2064
6096
query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT col2 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab0, tab2 cor0
----
26
27
38
query I rowsort
SELECT + col2 + + ( + col2 ) FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT ALL cor0.col1 * tab2.col2 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 2dce99ccc9ab3f12533423eaad01995c
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c
query I rowsort
SELECT - col1 * ( col1 ) FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 * + col1 col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL 87 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT DISTINCT 29 * + col1 AS col2 FROM tab2
----
1711
493
899
onlyif mysql # use DIV operator for integer division
query I rowsort label-4674
SELECT + col0 + - tab1.col0 DIV col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-4674
SELECT + col0 + - tab1.col0 / col0 FROM tab1
----
2
63
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4675
SELECT CAST( + col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4675
SELECT CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4676
SELECT DISTINCT - cor0.col1 + 79 DIV col0 AS col0 FROM tab0 AS cor0
----
-83
-91
-95
skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - cor0.col1 + 79 / col0 AS col0 FROM tab0 AS cor0
----
-83
-91
-95
query I rowsort
SELECT + 4 AS col2 FROM tab0 cor0
----
4
4
4
query I rowsort
SELECT DISTINCT + - col2 * 56 FROM tab2 cor0
----
-1456
-1512
-2128
query I rowsort
SELECT - cor0.col1 + col2 AS col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - col1 + + 10 AS col2 FROM tab2 AS cor0
----
-21
-49
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4681
SELECT ALL + - col1 * col2 + col1 * + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + - col1 * col2 + col1 * + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * col1 * - col0 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ALL col1 * ( - col1 ) * cor0.col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT + col2 * 92 FROM tab2 AS cor0
----
2392
2484
3496
query I rowsort
SELECT - 46 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
query I rowsort
SELECT ALL + tab2.col1 * + ( 63 ) * + col2 + - col1 * col2 AS col0 FROM tab2
----
40052
51894
95108
query I rowsort
SELECT ALL 33 + ( cor1.col0 ) FROM tab0, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to 620a7359e7efa0d320ebda499e8cbad9
query I rowsort
SELECT col0 * 51 * + col2 FROM tab1
----
186048
391680
8262
query I rowsort
SELECT DISTINCT col2 * + ( col0 ) * tab1.col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - col1 * 78 FROM tab1
----
-1014
-2028
-780
query I rowsort
SELECT ALL - ( + 93 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4692
SELECT ALL - col1 DIV + 95 + tab1.col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL - col1 / + 95 + tab1.col1 FROM tab1
----
10
13
26
query I rowsort
SELECT 59 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT - col0 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT DISTINCT + + 86 + col2 FROM tab2 AS cor0
----
112
113
124
query I rowsort
SELECT DISTINCT - 87 FROM tab1, tab2 AS cor0
----
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 * col1 ) col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT 59 AS col1 FROM tab2 AS cor0
----
59
59
59
query I rowsort
SELECT - 65 - - col1 FROM tab2
----
-34
-48
-6
query I rowsort
SELECT col1 * col1 * + tab0.col1 + 29 FROM tab0
----
636085
753600
912702
query I rowsort
SELECT DISTINCT 14 * col2 FROM tab1
----
1344
756
798
query I rowsort
SELECT - col1 + - col1 * + col0 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT - ( - col0 * 19 ) AS col0 FROM tab2
----
133
1482
1501
query I rowsort
SELECT 36 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT ALL col2 * + col0 + - 38 AS col1 FROM tab0 AS cor0
----
-3
7260
754
query I rowsort
SELECT ALL 98 + - col2 AS col1 FROM tab2 AS cor0
----
60
71
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 * + col2 col2 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4709
SELECT ALL + - col0 * CAST( NULL AS SIGNED ) / 91 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + - col0 * CAST ( NULL AS INTEGER ) / 91 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 + col2 * 11 AS col1 FROM tab2 AS cor0
----
304
364
497
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4711
SELECT DISTINCT - - col2 * + cor0.col1 + - ( col1 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT - - col2 * + cor0.col1 + - ( col1 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4712
SELECT ALL col2 DIV + 18 + 50 FROM tab2
----
51
51
52
skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL col2 / + 18 + 50 FROM tab2
----
51
51
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 + + 55 * + col2 col0 FROM tab2 AS cor0
----
1352
1478
2011
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - - col2 * 52 - col2 AS col0 FROM tab2 AS cor0
----
1326
1377
1938
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + 98 * 31 + col2 col2 FROM tab0 AS cor0
----
2942
2985
3029
query I rowsort
SELECT + cor0.col1 * cor0.col2 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col0 + 29 FROM tab1 AS cor0
----
-35
-51
26
query I rowsort
SELECT DISTINCT - + col0 * col1 * col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 * + 82 + + col2 * col2 ) col1 FROM tab2
----
-1813
-4162
50
query I rowsort
SELECT - col0 * + 11 + + 58 * - col2 + - 84 * 16 AS col2 FROM tab1 cor0
----
-4509
-5354
-7792
query I rowsort
SELECT ALL - + col2 + - ( cor0.col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT + col0 + ( - col2 + - cor0.col1 ) FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT ALL - + col0 * cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + - 56 + col2 FROM tab1 AS cor0
----
-2
1
40
query I rowsort
SELECT + - 28 * + col0 + cor0.col1 FROM tab0 AS cor0
----
-2401
-586
-883
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4727
SELECT CAST( + col2 AS SIGNED ) + - col1 * - tab1.col1 FROM tab1
----
157
265
730
skipif mysql # not compatible
query I rowsort label-4727
SELECT CAST ( + col2 AS INTEGER ) + - col1 * - tab1.col1 FROM tab1
----
157
265
730
query I rowsort
SELECT + 20 * - 22 AS col2 FROM tab2 AS cor0
----
-440
-440
-440
query I rowsort
SELECT DISTINCT - 93 AS col0 FROM tab1 AS cor0
----
-93
query I rowsort
SELECT ALL + 52 * col1 * col1 FROM tab1 AS cor0
----
35152
5200
8788
query I rowsort
SELECT DISTINCT + tab2.col1 * col2 * - col1 AS col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT - col0 + - ( col1 ) + 78 * + 6 FROM tab1 AS cor0
----
375
394
439
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( 92 AS REAL ) AS col2 FROM tab0 AS cor0
----
-92
-92
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 99 col1 FROM tab2 AS cor0
----
-99
-99
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT DISTINCT + col1 DIV + col0 + + col2 * cor0.col0 * + 82 AS col1 FROM tab1 AS cor0
----
13292
299136
629760
skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT + col1 / + col0 + + col2 * cor0.col0 * + 82 AS col1 FROM tab1 AS cor0
----
13292
299136
629760
query I rowsort
SELECT DISTINCT + col1 + - 92 AS col0 FROM tab0 AS cor0
----
-1
-6
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4737
SELECT CAST( + ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-4737
SELECT CAST ( + ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT cor0.col0 * col1 - + 46 * - cor0.col0 FROM tab1 cor0
----
216
3584
4720
query I rowsort
SELECT ALL 69 + cor0.col1 FROM tab1 AS cor0
----
79
82
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + cor0.col0 * col2 col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT tab2.col1 * 6 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 687d40698910b137efdf952c513255fa
query I rowsort
SELECT DISTINCT col2 + col1 * col2 * col1 FROM tab2
----
11020
25974
90532
query I rowsort
SELECT col0 + - col1 * - col1 * - col1 FROM tab0 AS cor0
----
-636032
-753482
-912638
query I rowsort
SELECT - col0 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ( + ( col1 ) ) * + 72 FROM tab2 AS cor0
----
1224
2232
4248
onlyif mysql # use DIV operator for integer division
query I rowsort label-4746
SELECT DISTINCT - col2 DIV - 27 AS col1 FROM tab1
----
2
3
skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT - col2 / - 27 AS col1 FROM tab1
----
2
3
query I rowsort
SELECT col1 + + ( tab1.col1 ) * + col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT + 76 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ( col2 ) + + col0 * - 84 FROM tab2
----
-561
-6526
-6598
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 + - col0 * + 90 col1 FROM tab0
----
-2103
-3114
-7839
query I rowsort
SELECT - 18 * + 42 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-65016
-68796
-73332
onlyif mysql # use DIV operator for integer division
query I rowsort label-4752
SELECT DISTINCT + + ( - col1 ) * col1 DIV 62 FROM tab0 AS cor0
----
-119
-133
-151
skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + + ( - col1 ) * col1 / 62 FROM tab0 AS cor0
----
-119
-133
-151
query I rowsort
SELECT + + col1 * col0 * - col2 FROM tab0 cor0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4754
SELECT DISTINCT CAST( - col0 AS SIGNED ) * - col0 FROM tab2
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL - cor0.col2 * ( + col2 ) AS col0 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - + 21 + col0 * col2 FROM tab0 AS cor0
----
14
7277
771
query I rowsort
SELECT DISTINCT - 31 + col2 + col0 * - col1 AS col1 FROM tab1
----
-55
-614
-975
query I rowsort
SELECT DISTINCT col0 + - tab1.col0 AS col1 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - - 6 + - col1 AS col0 FROM tab1 AS cor0
----
-20
-4
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4760
SELECT - - col0 * + col2 + - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4760
SELECT - - col0 * + col2 + - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4761
SELECT - cor0.col1 DIV col0 + + col1 FROM tab0 cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-4761
SELECT - cor0.col1 / col0 + + col1 FROM tab0 cor0
----
83
90
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 78 * + col1 * col1 + 19 * col2 col2 FROM tab1 AS cor0
----
15006
53754
8883
query I rowsort
SELECT + col1 * + col1 + col0 AS col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL + col0 - + col0 AS col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4765
SELECT - col2 + col1 DIV col0 FROM tab0 cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-4765
SELECT - col2 + col1 / col0 FROM tab0 cor0
----
-30
-81
1
query I rowsort
SELECT ALL + tab1.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-4767
SELECT ALL + + col1 DIV cor0.col1 col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + + col1 / cor0.col1 col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT col2 + col0 * - ( 82 ) AS col0 FROM tab2 AS cor0
----
-547
-6370
-6440
query I rowsort
SELECT - col1 * + 9 * col0 FROM tab1 AS cor0
----
-5760
-702
-9360
query I rowsort
SELECT DISTINCT + col0 * ( col0 * - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT - col1 * 86 FROM tab2 AS cor0
----
-1462
-2666
-5074
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + tab0.col0 * - tab0.col0 col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 3fb27a91711469131edbffaad90e6035
query I rowsort
SELECT ALL - 27 FROM tab0, tab1 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT ALL + cor0.col0 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4775
SELECT - col1 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4775
SELECT - col1 + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - 2 + - ( + col0 ) * + cor0.col0 FROM tab2 AS cor0
----
-103
-6136
-6317
query I rowsort
SELECT DISTINCT + - col0 + + ( + col1 ) * + cor0.col1 * 46 AS col1 FROM tab1 AS cor0
----
31093
4536
7694
query I rowsort
SELECT - + col1 * - ( col2 + - col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - ( + cor0.col1 ) + col2 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + col1 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL 6 AS col0 FROM tab1 AS cor0
----
6
6
6
query I rowsort
SELECT - - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + + 53 * + col2 * col1 AS col2 FROM tab2 AS cor0
----
34238
44361
81302
onlyif mysql # use DIV operator for integer division
query I rowsort label-4784
SELECT ALL - 67 DIV + col1 + tab2.col1 DIV col1 AS col2 FROM tab2
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL - 67 / + col1 + tab2.col1 / col1 AS col2 FROM tab2
----
-1
-2
0
query I rowsort
SELECT ALL - ( col0 ) + - tab0.col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + 7 FROM tab1, tab2, tab2 AS cor0
----
7
query I rowsort
SELECT col0 * - ( + col1 ) * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + 71 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT ALL - ( col2 + + col2 ) FROM tab2
----
-52
-54
-76
query I rowsort
SELECT - 45 * + cor0.col1 + ( - col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
120
234
663
query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
33
query I rowsort
SELECT DISTINCT 46 * - col2 * 62 + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-241326
-2949
-96954
query I rowsort
SELECT ALL - 10 * col0 AS col2 FROM tab1 AS cor0
----
-30
-640
-800
query I rowsort
SELECT DISTINCT 88 + - col2 AS col0 FROM tab2 AS cor0
----
50
61
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4795
SELECT DISTINCT + col1 * + col2 DIV 1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT + col1 * + col2 / 1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 * - col0 col0 FROM tab2 AS cor0
----
-1092
-1106
-98
query I rowsort
SELECT ALL col2 - col1 * - col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT ( - col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + 16 + col0 FROM tab0 AS cor0
----
105
40
51
query I rowsort
SELECT ALL + col1 * + col2 + ( - cor0.col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
6887
7618
886
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT ALL - 43 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT DISTINCT - col1 + + 84 FROM tab2 AS cor0
----
25
53
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT ALL + col1 DIV - col0 + + 92 FROM tab0 AS cor0
----
89
90
91
skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL + col1 / - col0 + + 92 FROM tab0 AS cor0
----
89
90
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + col0 + - col1 col1 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT - + col2 - + 33 AS col2 FROM tab2 AS cor0
----
-59
-60
-71
query I rowsort
SELECT + col1 - - cor0.col2 * + ( col2 ) * col1 AS col2 FROM tab0 AS cor0
----
194
611975
93740
query I rowsort
SELECT ALL + 0 FROM tab1, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4809
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 30 ) col0 FROM tab1, tab1 AS cor0
----
-30
query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4812
SELECT DISTINCT + - ( col2 ) - + col1 * CAST( - col1 * col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
205353
29764
4875
skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + - ( col2 ) - + col1 * CAST ( - col1 * col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
205353
29764
4875
query I rowsort
SELECT + + col0 + + 81 AS col1 FROM tab1 AS cor0
----
145
161
84
query I rowsort
SELECT ALL + cor0.col1 * col2 + + ( - col0 ) * - cor0.col1 FROM tab2 AS cor0
----
1054
1989
6136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + col2 col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + col1 - - col1 * 84 AS col1 FROM tab1 cor0
----
1105
2210
850
query I rowsort
SELECT ( - col0 ) - - col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + col1 + - ( tab1.col1 ) FROM tab1
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0, tab2 cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT DISTINCT 73 FROM tab1, tab2, tab0 AS cor0
----
73
query I rowsort
SELECT ALL - 98 * col0 FROM tab1 AS cor0
----
-294
-6272
-7840
query I rowsort
SELECT ALL + 50 + col0 FROM tab1 AS cor0
----
114
130
53
query I rowsort
SELECT col0 * col0 + + tab1.col1 FROM tab1
----
35
4106
6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4824
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 + col0 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 + col0 AS col1 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT ALL 67 * 44 DIV col0 FROM tab1
----
36
46
982
skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL 67 * 44 / col0 FROM tab1
----
36
46
982
query I rowsort
SELECT ALL 77 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT + col1 * + col2 + col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4829
SELECT + col2 + + tab1.col0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4829
SELECT + col2 + + tab1.col0 * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab1
----
5
query I rowsort
SELECT tab0.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - + col2 + col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 * col2 col1 FROM tab2 cor0
----
22599
24548
39884
query I rowsort
SELECT ALL - col2 * - tab0.col2 + 19 + col2 FROM tab0
----
1141
21
6825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4835
SELECT ALL 35 + + col1 DIV - col0 + 86 * 93 FROM tab2 AS cor0
----
8029
8033
8033
skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL 35 + + col1 / - col0 + 86 * 93 FROM tab2 AS cor0
----
8029
8033
8033
query I rowsort
SELECT DISTINCT + col2 * 17 FROM tab0
----
1394
17
561
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT ALL + + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - col2 * 81 * + 55 AS col0 FROM tab0
----
-147015
-365310
-4455
query I rowsort
SELECT col1 + + 80 FROM tab1 cor0
----
106
90
93
query I rowsort
SELECT ALL + + 60 + col2 AS col2 FROM tab0 AS cor0
----
142
61
93
query I rowsort
SELECT DISTINCT - col1 * + 38 AS col2 FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT - cor0.col2 * - 25 FROM tab0 cor0
----
2050
25
825
query I rowsort
SELECT DISTINCT 30 * 72 AS col2 FROM tab2 AS cor0
----
2160
query I rowsort
SELECT ALL - 74 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT - col0 + 97 AS col2 FROM tab0 AS cor0
----
62
73
8
query I rowsort
SELECT ALL - - 61 AS col1 FROM tab1 AS cor0
----
61
61
61
query I rowsort
SELECT - - col1 + + 98 * col0 AS col2 FROM tab2 AS cor0
----
717
7703
7759
query I rowsort
SELECT DISTINCT - 54 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-1404
-1458
-2052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4850
SELECT DISTINCT - CAST( - col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - ( + 31 ) * col0 + col0 AS col0 FROM tab2 AS cor0
----
-210
-2340
-2370
query I rowsort
SELECT + col1 * - 87 * - col1 AS col2 FROM tab1 AS cor0
----
14703
58812
8700
query I rowsort
SELECT ALL 91 * 92 FROM tab2 AS cor0
----
8372
8372
8372
query I rowsort
SELECT - cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + col1 * + 10 AS col1 FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT DISTINCT + + 98 * + 18 FROM tab0 AS cor0
----
1764
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 > NULL
----
query I rowsort
SELECT DISTINCT + col0 * + col0 - tab1.col1 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col2 + col1 / col2 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * col2 col1 FROM tab2
----
1523
736
754
query I rowsort
SELECT ALL col0 FROM tab2 WHERE col1 <= - col2
----
query I rowsort
SELECT - col1 FROM tab0 WHERE NULL < col1
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - col1 + - col0 * col2
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= col0
----
query I rowsort
SELECT DISTINCT col2 * - col2 - tab1.col1 * - col1 AS col2 FROM tab1
----
-2240
-3149
-9047
query I rowsort
SELECT ALL + col2 * col2 + - col1 * col2 * - col2 AS col1 FROM tab1
----
129024
35739
78732
query I rowsort
SELECT - tab2.col1 - - col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL tab1.col1 + - col1 AS col2 FROM tab1
----
0
0
0
query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) < ( NULL )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 > NULL
----
query I rowsort
SELECT - col1 + - cor0.col2 + col0 FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT - col0 + + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 / col0 ) OR NOT ( NULL ) BETWEEN ( col0 * cor0.col1 * - col0 + - col2 ) AND NULL
----
query I rowsort
SELECT - col0 * col2 + - col1 + - col2 * + col1 FROM tab1 AS cor0
----
-1592
-4228
-8941
query I rowsort
SELECT DISTINCT - col1 + tab0.col0 * col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - col0 * tab2.col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 + - col0 * col2 * tab2.col2 - col1 )
----
query I rowsort
SELECT + tab1.col0 + - col1 + + col1 AS col0 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4878
SELECT col0 DIV col0 + + col2 * - tab2.col1 AS col1 FROM tab2
----
-1533
-645
-836
skipif mysql # not compatible
query I rowsort label-4878
SELECT col0 / col0 + + col2 * - tab2.col1 AS col1 FROM tab2
----
-1533
-645
-836
onlyif mysql # use DIV operator for integer division
query I rowsort label-4879
SELECT - col1 DIV col2 + col0 AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4879
SELECT - col1 / col2 + col0 AS col1 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + tab2.col0 * col1 col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL - col1 + + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + col0 + + col0 * col1 + col1 AS col1 FROM tab0 AS cor0
----
2174
3527
8279
query I rowsort
SELECT - col1 * cor0.col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT - cor0.col0 - - col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col1 * col0 + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + col2 * cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT 51 * + col0 AS col0 FROM tab0
----
1224
1785
4539
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4888
SELECT col0 + CAST( col1 AS SIGNED ) * col2 + col2 FROM tab1 AS cor0
----
1424
1461
691
skipif mysql # not compatible
query I rowsort label-4888
SELECT col0 + CAST ( col1 AS INTEGER ) * col2 + col2 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT DISTINCT 90 * + col0 FROM tab0
----
2160
3150
8010
query I rowsort
SELECT + col2 * - col1 * 22 FROM tab0
----
-164164
-2134
-62436
onlyif mysql # use DIV operator for integer division
query I rowsort label-4891
SELECT + 83 DIV - col2 FROM tab0
----
-1
-2
-83
skipif mysql # not compatible
query I rowsort label-4891
SELECT + 83 / - col2 FROM tab0
----
-1
-2
-83
query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab2
----
52
query I rowsort
SELECT - - 99 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT - + col0 * + col2 + cor0.col2 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT + col0 * - col1 + + 27 FROM tab1 AS cor0
----
-1013
-51
-613
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4896
SELECT - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4896
SELECT - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <= + col0
----
query I rowsort
SELECT + col0 - col0 * - col1 AS col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab1 WHERE NOT ( - col1 * col1 ) BETWEEN ( NULL ) AND - col2 - + col1
----
query I rowsort
SELECT col0 + col2 + + tab1.col0 * col1 * col1 FROM tab1
----
13696
2085
6521
onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT + tab0.col2 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4901
SELECT + tab0.col2 / col1 FROM tab0
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IN ( + col1 )
----
query I rowsort
SELECT + col2 + col2 * col0 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT col1 + col2 AS col2 FROM tab1 WHERE NULL BETWEEN col2 * - col0 + col1 * - col0 + - col0 AND col0
----
query I rowsort
SELECT - col1 * col0 * col2 - col2 AS col2 FROM tab2 cor0
----
-119678
-51072
-5886
query I rowsort
SELECT + - col0 + - col1 * + ( col0 ) AS col2 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT col1 + - col2 - col2 FROM tab1
----
-104
-179
-82
query I rowsort
SELECT - col2 * cor0.col2 - - col0 AS col1 FROM tab2 cor0
----
-1365
-598
-722
query I rowsort
SELECT - cor0.col2 * + col1 + - col2 * col0 FROM tab0 AS cor0
----
-132
-14760
-3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-4910
SELECT DISTINCT tab2.col2 + + col2 DIV - col0 AS col1 FROM tab2
----
24
26
38
skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT tab2.col2 + + col2 / - col0 AS col1 FROM tab2
----
24
26
38
query I rowsort
SELECT cor0.col2 * col2 - - ( + col0 * - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-847
2816
2907
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4913
SELECT + CAST( + 79 AS SIGNED ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4913
SELECT + CAST ( + 79 AS INTEGER ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT - col0 + 57 FROM tab2 cor0
----
-21
-22
50
query I rowsort
SELECT + cor0.col0 + + col2 AS col0 FROM tab2 cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4916
SELECT + + CAST( col2 AS SIGNED ) * cor0.col0 * ( col2 ) FROM tab2 AS cor0
----
114076
5103
52728
skipif mysql # not compatible
query I rowsort label-4916
SELECT + + CAST ( col2 AS INTEGER ) * cor0.col0 * ( col2 ) FROM tab2 AS cor0
----
114076
5103
52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * + col0 col2 FROM tab0 cor0
----
-1190
-3026
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4918
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 41 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 41 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT + - 3 DIV col2 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4920
SELECT + - 3 / col2 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + ( + col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 49 * + 93 FROM tab0 AS cor0
----
4557
4557
4557
onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT - col1 + + col1 * col0 DIV 8 FROM tab0
----
172
327
921
skipif mysql # not compatible
query I rowsort label-4923
SELECT - col1 + + col1 * col0 / 8 FROM tab0
----
172
327
921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col1 * + 70 col1 FROM tab2 AS cor0
----
-15190
-322140
-94010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4925
SELECT ALL + col2 + - col1 + + CAST( - col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-268
-3514
-965
skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + col2 + - col1 + + CAST ( - col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-268
-3514
-965
onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT + col1 DIV + cor0.col0 + - col1 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-4926
SELECT + col1 / + cor0.col0 + - col1 FROM tab2 AS cor0
----
-17
-27
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 1 col1 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT col2 + 24 DIV - col0 AS col2 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-4928
SELECT col2 + 24 / - col0 AS col2 FROM tab2 AS cor0
----
24
26
38
query I rowsort
SELECT DISTINCT + - col1 * + 47 + + col1 + + col0 FROM tab2 AS cor0
----
-1419
-2636
-703
query I rowsort
SELECT + + col0 * + cor0.col1 + col1 + + col0 FROM tab0 AS cor0
----
2174
3527
8279
query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT - + col2 * + ( col1 ) + col2 * - ( + col1 + - col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col0 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT ( tab0.col2 + + ( col2 ) ) FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT - + col1 * col0 + ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-4936
SELECT col2 + + 57 DIV + 21 AS col1 FROM tab1 AS cor0
----
56
59
98
skipif mysql # not compatible
query I rowsort label-4936
SELECT col2 + + 57 / + 21 AS col1 FROM tab1 AS cor0
----
56
59
98
query I rowsort
SELECT + col2 * ( - col2 ) * col2 FROM tab0 AS cor0
----
-1
-35937
-551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-4938
SELECT + col2 + + col2 * 0 DIV col2 col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4938
SELECT + col2 + + col2 * 0 / col2 col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT cor0.col0 + ( 98 + col2 ) * 79 AS col2 FROM tab1 AS cor0
----
12011
12309
15406
query I rowsort
SELECT DISTINCT + col0 * - ( + 34 ) AS col2 FROM tab2 AS cor0
----
-238
-2652
-2686
query I rowsort
SELECT ALL col0 * - tab0.col2 + - tab0.col1 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT + ( col1 ) - col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - col0 * col0 AS col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4944
SELECT ALL CAST( + col2 AS SIGNED ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL CAST ( + col2 AS INTEGER ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - 86 * col0 AS col1 FROM tab2 AS cor0
----
-602
-6708
-6794
query I rowsort
SELECT - col2 * 65 AS col2 FROM tab2
----
-1690
-1755
-2470
query I rowsort
SELECT + col0 * + col1 * + col2 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL + 80 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT tab1.col0 + - 75 * tab1.col2 FROM tab1
----
-4047
-4211
-7120
onlyif mysql # use DIV operator for integer division
query I rowsort label-4950
SELECT DISTINCT col0 DIV 72 col0 FROM tab1 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT col0 / 72 col0 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL - col0 * - 78 * - col1 + tab2.col1 AS col2 FROM tab2
----
-104737
-16895
-358897
query I rowsort
SELECT ALL + + 85 AS col1 FROM tab2 AS cor0
----
85
85
85
query I rowsort
SELECT ALL + ( + col1 * - col2 ) AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - ( - col1 + col0 ) * - 31 AS col0 FROM tab2
----
-744
1922
589
query I rowsort
SELECT 53 - - col0 AS col1 FROM tab0 AS cor0
----
142
77
88
query I rowsort
SELECT - ( + 3 ) - col0 FROM tab2
----
-10
-81
-82
query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) AS col1 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4958
SELECT - 90 DIV - tab1.col2 + col2 + + tab1.col1 FROM tab1
----
109
68
81
skipif mysql # not compatible
query I rowsort label-4958
SELECT - 90 / - tab1.col2 + col2 + + tab1.col1 FROM tab1
----
109
68
81
query I rowsort
SELECT - 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT DISTINCT col2 + col2 * col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL - tab0.col0 + col1 + col2 * + col2 AS col0 FROM tab0
----
1151
63
6726
query I rowsort
SELECT DISTINCT 62 + + col1 AS col1 FROM tab1
----
72
75
88
query I rowsort
SELECT - col0 + col2 + col0 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4964
SELECT ALL - cor0.col2 DIV cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL - cor0.col2 / cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col0 + - col0 * - 83 AS col0 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT col2 * + col2 - ( - col2 ) * col2 * + 48 FROM tab1 AS cor0
----
142884
159201
451584
query I rowsort
SELECT - ( col1 ) + col1 * - col1 * col1 AS col1 FROM tab0 AS cor0
----
-636142
-753662
-912770
query I rowsort
SELECT - 0 + col0 * 81 * cor0.col1 FROM tab0 AS cor0
----
167184
274995
656019
query I rowsort
SELECT DISTINCT - ( col1 * + col2 ) AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT col1 * + ( col2 ) FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT ALL col0 + - col0 DIV - col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL col0 + - col0 / - col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT DISTINCT - col0 * 28 + + col2 AS col0 FROM tab0 AS cor0
----
-2410
-639
-979
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col2 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col1 * col0 + + col0 * - 93 FROM tab2 AS cor0
----
-2652
-434
-6004
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + - col2 col0 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT - 83 DIV - col1 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-4976
SELECT - 83 / - col1 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT col1 + - cor0.col0 * + 44 FROM tab0 AS cor0
----
-1443
-3825
-970
query I rowsort
SELECT ALL - col2 * - col2 + - 51 FROM tab0 AS cor0
----
-50
1038
6673
query I rowsort
SELECT ALL + col1 + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + - col2 col1 FROM tab0 AS cor0
----
-45
36
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col2 FROM tab2
----
62
62
62
query I rowsort
SELECT ALL + col2 + tab2.col1 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT ALL + 40 DIV + 94 + + col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + 40 / + 94 + + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL col2 * + col0 + 64 FROM tab1 AS cor0
----
226
3712
7744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4985
SELECT col2 * CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4985
SELECT col2 * CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * 1 * col0 + col2 FROM tab0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4987
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + 60 * col1 AS col0 FROM tab1 AS cor0
----
1614
657
876
onlyif mysql # use DIV operator for integer division
query I rowsort label-4989
SELECT DISTINCT + col2 DIV + 70 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT + col2 / + 70 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col0 + + col2 * 4 AS col1 FROM tab2 AS cor0
----
101
26
73
query I rowsort
SELECT + col2 * - col0 * col2 FROM tab2 cor0
----
-114076
-5103
-52728
query I rowsort
SELECT ALL + col1 * + cor0.col0 * - col0 + col0 FROM tab2 AS cor0
----
-106018
-1512
-358878
query I rowsort
SELECT DISTINCT cor0.col1 - + 0 AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + col2 * - 65 AS col2 FROM tab0 AS cor0
----
-2145
-5330
-65
query I rowsort
SELECT DISTINCT - tab2.col0 + - 19 FROM tab2
----
-26
-97
-98
query I rowsort
SELECT - 28 * col0 - - cor0.col1 * - ( col0 ) * + col1 FROM tab2 AS cor0
----
-25043
-273702
-6923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 col1 FROM tab2 AS cor0
----
77
77
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col1 FROM tab2, tab0 AS cor0
----
-2
query I rowsort
SELECT tab2.col2 * - ( col0 ) AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL ( 39 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT - col0 - - 18 FROM tab1 AS cor0
----
-46
-62
15
query I rowsort
SELECT - ( - col0 ) + col0 * col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL col2 * 31 * col0 FROM tab1
----
113088
238080
5022
query I rowsort
SELECT DISTINCT col1 * - 58 FROM tab0
----
-4988
-5278
-5626
query I rowsort
SELECT ( 72 ) AS col0 FROM tab2
----
72
72
72
query I rowsort
SELECT ALL + 92 - tab2.col0 * col2 * + 15 FROM tab2
----
-2743
-30328
-44938
query I rowsort
SELECT - col1 - col1 * + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
-36490
-4238
-99853
query I rowsort
SELECT + - col0 * col2 + - ( + 0 ) * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT - col2 DIV - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5009
SELECT - col2 / - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + col2 * 52 AS col1 FROM tab0 AS cor0
----
1716
4264
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5011
SELECT + col0 DIV col1 + col1 + - col0 * col0 FROM tab1 AS cor0
----
-4080
-6381
17
skipif mysql # not compatible
query I rowsort label-5011
SELECT + col0 / col1 + col1 + - col0 * col0 FROM tab1 AS cor0
----
-4080
-6381
17
query I rowsort
SELECT ALL - + 91 + col2 AS col1 FROM tab2 AS cor0
----
-53
-64
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-5013
SELECT ALL + + col0 + col2 * - col1 DIV col1 FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL + + col0 + col2 * - col1 / col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT ( col0 ) * - ( col0 ) + cor0.col2 * + col2 + - col0 FROM tab1 AS cor0
----
-911
2736
2904
query I rowsort
SELECT - + col2 + + cor0.col1 * - 38 FROM tab2 AS cor0
----
-1205
-2268
-684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5016
SELECT - 83 * - col0 * CAST( NULL AS SIGNED ) + - col0 + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5016
SELECT - 83 * - col0 * CAST ( NULL AS INTEGER ) + - col0 + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col0 FROM tab2 AS cor0
----
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT DISTINCT + 52 + + col0 DIV cor0.col0 FROM tab2 cor0
----
53
skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT + 52 + + col0 / cor0.col0 FROM tab2 cor0
----
53
query I rowsort
SELECT DISTINCT col1 + 5 AS col0 FROM tab2
----
22
36
64
query I rowsort
SELECT - col2 * tab1.col2 + tab1.col1 * 0 + col0 AS col2 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT + ( col1 ) * + col1 * ( + 86 ) AS col1 FROM tab2
----
24854
299366
82646
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) * + col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5023
SELECT tab0.col0 DIV + col0 + ( col0 ) col2 FROM tab0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5023
SELECT tab0.col0 / + col0 + ( col0 ) col2 FROM tab0
----
25
36
90
query I rowsort
SELECT + tab2.col0 * - col0 - tab2.col0 AS col0 FROM tab2
----
-56
-6162
-6320
query I rowsort
SELECT DISTINCT col2 * - col0 * col0 + 19 AS col2 FROM tab1
----
-233453
-467
-614381
query I rowsort
SELECT ALL 44 * + cor0.col1 + ( - 20 ) * col2 * col0 FROM tab1 AS cor0
----
-153028
-2096
-72520
onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT ALL + - col2 - - col2 DIV - col1 col2 FROM tab2 AS cor0
----
-26
-27
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + - col2 - - col2 / - col1 col2 FROM tab2 AS cor0
----
-26
-27
-40
query I rowsort
SELECT 31 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT - col0 * 50 * cor0.col2 FROM tab1 AS cor0
----
-182400
-384000
-8100
query I rowsort
SELECT ALL + 15 FROM tab2 cor0
----
15
15
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 62 - col2 col2 FROM tab1
----
-240
-4025
-5056
query I rowsort
SELECT + + 81 + col2 * cor0.col0 + ( col0 ) FROM tab2 AS cor0
----
2187
277
3162
query I rowsort
SELECT + - 50 AS col1 FROM tab1 cor0
----
-50
-50
-50
query I rowsort
SELECT + 18 * + 2 - col2 * - col0 FROM tab1 AS cor0
----
198
3684
7716
query I rowsort
SELECT DISTINCT - col1 + 23 * + col0 AS col0 FROM tab0
----
1956
466
708
query I rowsort
SELECT DISTINCT - col0 * col2 * col0 + - col1 * col0 AS col0 FROM tab1
----
-234112
-564
-615440
query I rowsort
SELECT ALL tab2.col1 + col1 + + tab2.col1 AS col1 FROM tab2
----
177
51
93
query I rowsort
SELECT DISTINCT - - 33 FROM tab0 AS cor0
----
33
query I rowsort
SELECT - 18 * + col1 FROM tab0 AS cor0
----
-1548
-1638
-1746
query I rowsort
SELECT DISTINCT - col1 * - 48 AS col2 FROM tab1 AS cor0
----
1248
480
624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5041
SELECT CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5041
SELECT CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 83 + + ( - col2 * - ( col1 ) + + col0 * - 45 ) AS col1 FROM tab2
----
-2059
-2992
439
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT - col0 + - tab1.col1 AS col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT ALL - - col1 + cor0.col1 * col1 * ( cor0.col0 * col0 ) FROM tab0 cor0
----
11526122
4260182
65593892
query I rowsort
SELECT col0 * col2 + + col0 * ( - col2 ) + col0 * + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col1 + col1 * col0 AS col0 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT - col2 DIV - col2 + - col2 * col1 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-5048
SELECT - col2 / - col2 + - col2 * col1 FROM tab0 AS cor0
----
-2837
-7461
-96
query I rowsort
SELECT ALL - col1 + - col1 + - col1 * col1 * - col2 FROM tab0 cor0
----
243896
678860
9215
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5050
SELECT DISTINCT - CAST( 90 AS SIGNED ) FROM tab0 AS cor0
----
-90
skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT - CAST ( 90 AS INTEGER ) FROM tab0 AS cor0
----
-90
query I rowsort
SELECT col0 + cor0.col1 * - col1 + + cor0.col0 FROM tab1 AS cor0
----
-670
-9
28
query I rowsort
SELECT ALL + 27 AS col2 FROM tab0 cor0
----
27
27
27
query I rowsort
SELECT DISTINCT + col1 + ( col2 ) * col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL ( + 10 ) FROM tab1 AS cor0
----
10
10
10
query I rowsort
SELECT + + col1 + + col0 - col0 * ( col1 ) FROM tab0 AS cor0
----
-1954
-3263
-7919
query I rowsort
SELECT + col0 * - col2 * - col0 + + col2 - col1 AS col1 FROM tab2 AS cor0
----
1319
158151
237179
query I rowsort
SELECT DISTINCT - col2 * + col1 * col0 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + col0 + + cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT DISTINCT + 49 + - col1 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-18
-31
-60
query I rowsort
SELECT - col1 * col1 + - col2 - 63 AS col0 FROM tab1 cor0
----
-220
-328
-793
query I rowsort
SELECT 54 FROM tab0, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT DISTINCT + col0 * ( - 93 ) + - col2 FROM tab2 AS cor0
----
-678
-7280
-7385
query I rowsort
SELECT DISTINCT + + col0 + - ( + col0 ) * col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + 93 col2 FROM tab2
----
-124
-1250
-4509
query I rowsort
SELECT - tab0.col2 * col2 + - col2 AS col1 FROM tab0
----
-1122
-2
-6806
query I rowsort
SELECT ALL - - col2 + - col2 * + 6 + col1 FROM tab2 cor0
----
-104
-173
-71
query I rowsort
SELECT ALL + cor0.col0 - ( col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5069
SELECT ALL - + col1 DIV 73 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - + col1 / 73 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + col1 * - 15 + col0 FROM tab2 AS cor0
----
334
472
963
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5071
SELECT col0 * CAST( NULL AS DECIMAL ) + + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5071
SELECT col0 * CAST ( NULL AS REAL ) + + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 85 * cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3ff678bc00a5c2759e7f8e8c4bd7dafe
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 * - col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
36470
4186
99827
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5074
SELECT tab2.col2 + CAST( - col1 + + col2 AS SIGNED ) FROM tab2
----
-7
23
59
skipif mysql # not compatible
query I rowsort label-5074
SELECT tab2.col2 + CAST ( - col1 + + col2 AS INTEGER ) FROM tab2
----
-7
23
59
query I rowsort
SELECT ALL + + col1 + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL col1 + + col2 AS col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT - 56 * + 0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 41 - 53 FROM tab2 AS cor0
----
-12
query I rowsort
SELECT ( + 96 ) FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT - col2 * 26 FROM tab0 AS cor0
----
-2132
-26
-858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5081
SELECT tab1.col2 + CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5081
SELECT tab1.col2 + CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 - + 87 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5e33d2d8f703f8947b2b80ebb6511d71
query I rowsort
SELECT ALL col0 * ( 32 ) * - col2 FROM tab1
----
-116736
-245760
-5184
query I rowsort
SELECT - cor0.col0 * + 28 + col0 + - col0 FROM tab2 AS cor0
----
-196
-2184
-2212
query I rowsort
SELECT 80 * + 53 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 37e64abe2461db975c9c300e5755422b
query I rowsort
SELECT - ( + col2 + col0 ) AS col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT col2 * + 38 * 97 AS col0 FROM tab1
----
199044
210102
353856
query I rowsort
SELECT DISTINCT col2 * + tab1.col2 * col1 AS col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT DISTINCT - tab1.col0 * + 28 AS col2 FROM tab1
----
-1792
-2240
-84
query I rowsort
SELECT + col0 * - col0 - + col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT col1 * - col0 * + tab2.col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT col0 + 94 FROM tab2
----
101
172
173
query I rowsort
SELECT - 92 + - col1 FROM tab2
----
-109
-123
-151
query I rowsort
SELECT 8 + - col2 * - col1 FROM tab1
----
1256
1412
578
query I rowsort
SELECT ALL + ( col2 ) + - col2 * ( + cor0.col1 ) * cor0.col0 AS col0 FROM tab0 cor0
----
-3394
-664036
-68079
query I rowsort
SELECT ( tab2.col0 ) FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL 89 * col1 * col0 AS col2 FROM tab0
----
183696
302155
720811
query I rowsort
SELECT + 30 + col1 FROM tab1 AS cor0
----
40
43
56
query I rowsort
SELECT ALL + col0 * col0 + + 30 + - col0 FROM tab2 AS cor0
----
6036
6192
72
query I rowsort
SELECT ALL + 57 + col0 FROM tab2 AS cor0
----
135
136
64
query I rowsort
SELECT + - col0 * - col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - 67 AS col2 FROM tab0
----
-67
-67
-67
query I rowsort
SELECT 72 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2376
5904
72
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 cor1, tab2 cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT + col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5106
SELECT ALL + - cor0.col1 + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL + - cor0.col1 + col2 / col0 AS col1 FROM tab0 AS cor0
----
-85
-91
-97
query I rowsort
SELECT DISTINCT - + col1 * 31 FROM tab0 AS cor0
----
-2666
-2821
-3007
query I rowsort
SELECT DISTINCT + col2 * col1 * - 89 FROM tab1 AS cor0
----
-111072
-124956
-50730
query I rowsort
SELECT DISTINCT + col2 + + 68 AS col0 FROM tab1 cor0
----
122
125
164
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5110
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 * + 3 FROM tab2 AS cor0
----
-114
-78
-81
query I rowsort
SELECT ALL - col0 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5113
SELECT col2 + CAST( NULL AS SIGNED ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5113
SELECT col2 + CAST ( NULL AS INTEGER ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( 66 ) * col2 col2 FROM tab0 AS cor0
----
163
2264
5503
query I rowsort
SELECT DISTINCT col1 + 68 * - 78 FROM tab0 AS cor0
----
-5207
-5213
-5218
query I rowsort
SELECT ALL col1 * - tab0.col0 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + - 81 AS col1 FROM tab2 AS cor0
----
-81
-81
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col1 + + col0 col2 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5119
SELECT - ( + ( + col1 ) ) + CAST( cor0.col0 * + col0 AS SIGNED ) FROM tab2 AS cor0
----
18
6025
6224
skipif mysql # not compatible
query I rowsort label-5119
SELECT - ( + ( + col1 ) ) + CAST ( cor0.col0 * + col0 AS INTEGER ) FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT - - col1 + cor0.col1 AS col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT - 41 + + cor0.col2 FROM tab1 AS cor0
----
13
16
55
query I rowsort
SELECT + ( - ( col0 ) ) + 45 FROM tab0 AS cor0
----
-44
10
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col2 ) col1 FROM tab0 AS cor0
----
1
33
82
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2, tab0 cor1
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262
onlyif mysql # use DIV operator for integer division
query I rowsort label-5125
SELECT DISTINCT + col1 * col1 DIV + col1 + ( col0 ) * + col0 FROM tab2 cor0
----
6143
6258
80
skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT + col1 * col1 / + col1 + ( col0 ) * + col0 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT 44 + - tab1.col2 * col2 FROM tab1
----
-2872
-3205
-9172
query I rowsort
SELECT col1 + - ( + col1 * - col2 ) FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - col0 * ( - col0 ) - + cor0.col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT DISTINCT col2 * - ( - col0 ) + - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col1 * + 57 FROM tab0
----
4902
5187
5529
query I rowsort
SELECT - + cor0.col0 * col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - col2 + col2 * - 58 FROM tab2 cor0
----
-1534
-1593
-2242
query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col0 col1 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + - col2 * + col0 + - 12 FROM tab2 AS cor0
----
-201
-2040
-3014
onlyif mysql # use DIV operator for integer division
query I rowsort label-5138
SELECT ALL + + col1 DIV + col1 + col1 AS col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + + col1 / + col1 + col1 AS col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col0 * - CAST ( + col1 AS REAL ) - + cor0.col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT col2 * col2 - + col2 FROM tab2 AS cor0
----
1406
650
702
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * CAST ( - col0 AS REAL ) * col2 + col1 AS col0 FROM tab1 cor0
----
233482
512
614413
onlyif mysql # use DIV operator for integer division
query I rowsort label-5142
SELECT DISTINCT + 21 DIV 69 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT + 21 / 69 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col2 + - 44 * col0 FROM tab2 AS cor0
----
-281
-3406
-3438
query I rowsort
SELECT + col1 * col1 + + col1 + col2 AS col1 FROM tab1
----
167
278
756
query I rowsort
SELECT DISTINCT col1 + - tab2.col2 AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL + - 88 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT ALL - + col2 * col1 * + ( + 38 ) AS col0 FROM tab0 cor0
----
-107844
-283556
-3686
query I rowsort
SELECT DISTINCT - 35 + + col0 + + col1 FROM tab1 AS cor0
----
-6
39
58
query I rowsort
SELECT + - 26 * + col0 FROM tab2 AS cor0
----
-182
-2028
-2054
query I rowsort
SELECT ALL - + 58 * cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
39208
5800
9802
query I rowsort
SELECT 82 + - col0 AS col0 FROM tab2
----
3
4
75
query I rowsort
SELECT - 93 * + col0 * - ( - 3 ) + col2 + - col2 FROM tab0
----
-24831
-6696
-9765
onlyif mysql # use DIV operator for integer division
query I rowsort label-5153
SELECT DISTINCT 69 + + col2 - col2 DIV - col1 AS col0 FROM tab1
----
125
131
172
skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT 69 + + col2 - col2 / - col1 AS col0 FROM tab1
----
125
131
172
query I rowsort
SELECT tab2.col0 + col2 * - 69 FROM tab2
----
-1716
-1856
-2543
query I rowsort
SELECT + col2 - + col1 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT ( + col0 ) * + 31 FROM tab1
----
1984
2480
93
query I rowsort
SELECT DISTINCT - 32 * tab1.col2 * col1 + col1 - col2 AS col2 FROM tab1
----
-18287
-40019
-44956
query I rowsort
SELECT col2 + - col1 + 24 * col1 FROM tab2
----
1383
429
740
query I rowsort
SELECT + + col1 + - col2 * ( col2 ) AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT - 46 + cor0.col2 FROM tab2 AS cor0
----
-19
-20
-8
query I rowsort
SELECT - + 37 * col0 * + col2 FROM tab0 AS cor0
----
-1295
-270026
-29304
query I rowsort
SELECT ALL + + cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5163
SELECT + col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5163
SELECT + col0 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5164
SELECT DISTINCT - col1 + col1 DIV - cor0.col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT - col1 + col1 / - cor0.col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + + cor0.col1 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL tab0.col1 + tab0.col0 + col0 AS col0 FROM tab0
----
134
167
269
query I rowsort
SELECT ALL - col2 * col1 * col1 + col0 FROM tab0
----
-244044
-678953
-9374
query I rowsort
SELECT tab2.col2 + tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7
query I rowsort
SELECT ALL - col2 * - col2 + col0 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT - tab0.col1 * - cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3aa3dc9c06ac75ec040ed5bc20953cf9
query I rowsort
SELECT ALL col2 + - col2 + col2 FROM tab2
----
26
27
38
query I rowsort
SELECT col1 * + cor0.col0 * + col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT + col0 * + col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - 79 * - col0 AS col1 FROM tab0
----
1896
2765
7031
query I rowsort
SELECT ALL + 35 AS col1 FROM tab1
----
35
35
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT ALL - + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - + col1 / + col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab0, tab2 AS cor0
----
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + - col0 col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL 99 * cor0.col0 FROM tab0 AS cor0
----
2376
3465
8811
query I rowsort
SELECT + + col1 * - 91 AS col2 FROM tab2 cor0
----
-1547
-2821
-5369
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5181
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col1 + - col0 * col1 + + col1 * col2 FROM tab0 cor0
----
-3395
-728
688
query I rowsort
SELECT ALL + 72 * - cor0.col0 + - col0 + col0 AS col1 FROM tab1 AS cor0
----
-216
-4608
-5760
query I rowsort
SELECT DISTINCT + - 11 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-10
22
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-5185
SELECT ALL + col1 DIV - cor0.col1 + col2 AS col2 FROM tab0 cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + col1 / - cor0.col1 + col2 AS col2 FROM tab0 cor0
----
0
32
81
query I rowsort
SELECT ALL tab2.col1 + - ( col1 ) FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5187
SELECT ALL - 43 * - col2 * + col1 + - col0 DIV col2 AS col1 FROM tab1
----
24509
53664
60372
skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL - 43 * - col2 * + col1 + - col0 / col2 AS col1 FROM tab1
----
24509
53664
60372
query I rowsort
SELECT - + col1 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL + col1 * col1 + + cor0.col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT + 21 * - col2 AS col1 FROM tab0 cor0
----
-1722
-21
-693
query I rowsort
SELECT ALL - 59 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT 66 * col2 AS col1 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT DISTINCT - + col1 * + 69 + col2 FROM tab1 AS cor0
----
-1740
-633
-801
query I rowsort
SELECT + - 12 + col0 AS col0 FROM tab1 AS cor0
----
-9
52
68
query I rowsort
SELECT - 86 FROM tab0, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
query I rowsort
SELECT + tab2.col2 + - 43 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e3b50d9d54218003c009ab6db6e2bcfb
onlyif mysql # use DIV operator for integer division
query I rowsort label-5197
SELECT - ( col0 ) + - col0 DIV col0 FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-5197
SELECT - ( col0 ) + - col0 / col0 FROM tab0
----
-25
-36
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5198
SELECT ALL CAST( + 37 AS SIGNED ) FROM tab2
----
37
37
37
skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL CAST ( + 37 AS INTEGER ) FROM tab2
----
37
37
37
query I rowsort
SELECT ALL col1 + - col0 + + col2 * - 98 FROM tab2 AS cor0
----
-2567
-2622
-3786
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - ( col2 ) AS REAL ) AS col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL 67 * + col2 + + col1 AS col0 FROM tab0
----
164
2297
5585
query I rowsort
SELECT col0 * 94 AS col2 FROM tab0 AS cor0
----
2256
3290
8366
query I rowsort
SELECT DISTINCT ( + col2 ) * - col1 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col2 * tab2.col0 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - cor0.col2 * + cor0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9fc71e55d98c21fc68f4af540b1d7651
query I rowsort
SELECT ALL - col0 * 54 + col0 AS col2 FROM tab1 AS cor0
----
-159
-3392
-4240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5207
SELECT DISTINCT + - col1 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT + - col1 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + - cor0.col1 * - 82 * cor0.col1 AS col2 FROM tab0 AS cor0
----
606472
679042
771538
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * - col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + + col1 + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - cor0.col2 + 77 * col2 FROM tab2 cor0
----
1976
2052
2888
query I rowsort
SELECT ALL col0 + 75 AS col1 FROM tab1 AS cor0
----
139
155
78
query I rowsort
SELECT DISTINCT + col2 - + col0 * col1 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-5214
SELECT ALL + - col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL + - col2 / col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + + col2 * - 87 FROM tab1 cor0
----
-4698
-4959
-8352
query I rowsort
SELECT + col1 + - 20 FROM tab1 AS cor0
----
-10
-7
6
skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 / + CAST ( col1 AS REAL ) FROM tab2
----
-1
-1
-1
query I rowsort
SELECT - col0 * - 3 FROM tab0
----
105
267
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT DISTINCT + col2 DIV 88 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT + col2 / 88 FROM tab2
----
0
query I rowsort
SELECT 38 * 77 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f253fad027ee461dc37c96a7367162f8
query I rowsort
SELECT - 37 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT ALL col0 + + 17 * - 44 FROM tab1
----
-668
-684
-745
query I rowsort
SELECT - col1 * - col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT + ( 88 ) FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT - ( + 78 ) * - col0 FROM tab2 cor0
----
546
6084
6162
query I rowsort
SELECT + 0 * col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col2 + - 52 FROM tab0 AS cor0
----
-134
-53
-85
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col1 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT col2 * tab0.col0 AS col0 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col0 col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - 17 * + col1 FROM tab0 AS cor0
----
-1462
-1547
-1649
query I rowsort
SELECT + col1 + ( - tab2.col1 ) FROM tab2
----
0
0
0
query I rowsort
SELECT - - 84 + col2 FROM tab0 AS cor0
----
117
166
85
query I rowsort
SELECT + 23 * col0 + col2 AS col1 FROM tab2 cor0
----
1820
1855
188
query I rowsort
SELECT 26 + + cor0.col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
1369
243
4628
query I rowsort
SELECT ALL - + col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5237
SELECT + - col2 DIV col0 + - 80 AS col1 FROM tab2 AS cor0
----
-80
-80
-83
skipif mysql # not compatible
query I rowsort label-5237
SELECT + - col2 / col0 + - 80 AS col1 FROM tab2 AS cor0
----
-80
-80
-83
query I rowsort
SELECT ALL 8 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT + cor0.col2 * + col2 + - col1 AS col0 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT - 52 - col0 FROM tab0 AS cor0
----
-141
-76
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 * 19 col1 FROM tab2 AS cor0
----
-1062
-306
-558
query I rowsort
SELECT tab2.col1 * - col1 AS col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL + col1 * - 23 AS col0 FROM tab2 AS cor0
----
-1357
-391
-713
query I rowsort
SELECT ALL + 21 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT ( tab2.col2 * - 5 ) FROM tab2
----
-130
-135
-190
query I rowsort
SELECT ALL 49 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col2 col2 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT col0 + col2 DIV 19 FROM tab2
----
79
8
81
skipif mysql # not compatible
query I rowsort label-5248
SELECT col0 + col2 / 19 FROM tab2
----
79
8
81
query I rowsort
SELECT DISTINCT - - col2 * col2 * + col0 AS col1 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT ALL 22 * - col1 FROM tab1
----
-220
-286
-572
query I rowsort
SELECT DISTINCT cor1.col1 - 13 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
18
4
46
query I rowsort
SELECT + - 49 + - col0 FROM tab1 AS cor0
----
-113
-129
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5253
SELECT DISTINCT - col0 DIV CAST( col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - col0 / CAST ( col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 21 col0 FROM tab2 AS cor0
----
-100
-28
-99
query I rowsort
SELECT - col2 + col0 + col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col0 * - 49 * col2 FROM tab2 AS cor0
----
-147098
-9261
-99372
query I rowsort
SELECT col0 - + ( - 88 ) AS col0 FROM tab1 AS cor0
----
152
168
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 * cor0.col2 col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - col2 * col1 + + cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT + col2 * - 78 + + col2 + col1 FROM tab1 cor0
----
-4132
-4379
-7379
query I rowsort
SELECT col2 - col0 * 76 AS col1 FROM tab0 AS cor0
----
-1791
-2659
-6682
query I rowsort
SELECT DISTINCT - col1 + - 71 AS col1 FROM tab2 cor0
----
-102
-130
-88
query I rowsort
SELECT col1 * - 35 + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1085
-2065
-595
query I rowsort
SELECT ALL - col2 + + 4 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-148
-158
-97
query I rowsort
SELECT DISTINCT + 34 * - col2 AS col0 FROM tab2
----
-1292
-884
-918
onlyif mysql # use DIV operator for integer division
query I rowsort label-5266
SELECT col0 DIV ( col1 * - col2 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5266
SELECT col0 / ( col1 * - col2 ) FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 + col2 col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + + col2 * + 14 FROM tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT DISTINCT + col0 * + col0 + + col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5270
SELECT + col2 + - CAST( + col2 AS SIGNED ) + col2 * - col2 * - col2 FROM tab2 AS cor0
----
17576
19683
54872
skipif mysql # not compatible
query I rowsort label-5270
SELECT + col2 + - CAST ( + col2 AS INTEGER ) + col2 * - col2 * - col2 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT - + 56 * col2 FROM tab0 cor0
----
-1848
-4592
-56
query I rowsort
SELECT ALL + ( 1 ) * cor0.col0 * ( col1 ) + - cor0.col0 * - 82 + cor0.col0 AS col0 FROM tab2 AS cor0
----
11076
7900
798
query I rowsort
SELECT ALL + 75 * - col2 FROM tab0 AS cor0
----
-2475
-6150
-75
query I rowsort
SELECT ALL + 79 + + col0 AS col1 FROM tab2 AS cor0
----
157
158
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5275
SELECT DISTINCT CAST( + 36 AS SIGNED ) * - col2 + col0 FROM tab0 AS cor0
----
-1
-1164
-2863
skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT CAST ( + 36 AS INTEGER ) * - col2 + col0 FROM tab0 AS cor0
----
-1
-1164
-2863
onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT ALL + - ( - col0 ) * - col0 + col1 DIV col0 FROM tab0 AS cor0
----
-1223
-573
-7920
skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL + - ( - col0 ) * - col0 + col1 / col0 FROM tab0 AS cor0
----
-1223
-573
-7920
query I rowsort
SELECT ALL col2 + + col1 + col0 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT DISTINCT + col0 + - 81 AS col0 FROM tab0 AS cor0
----
-46
-57
8
query I rowsort
SELECT DISTINCT + ( 1 ) + col1 * - 47 AS col0 FROM tab1 AS cor0
----
-1221
-469
-610
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL cor0.col1 + col2 * cor0.col2 AS col0 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT ALL + + col0 + - col0 * ( + col1 ) FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT 43 * 3 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e22c0ac8c36876eca9404c607330984
query I rowsort
SELECT DISTINCT + - 9 * col2 + col0 AS col1 FROM tab1 AS cor0
----
-449
-483
-784
query I rowsort
SELECT DISTINCT + - cor0.col2 * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5286
SELECT DISTINCT col0 * col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT col0 * col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - cor0.col0 ) FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to adaea38eae032c1639715f21831dd376
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) * - 36 + col0 col1 FROM tab2 AS cor0
----
-1289
-858
-965
query I rowsort
SELECT - + ( + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5290
SELECT ALL + col2 + + col2 DIV 10 AS col2 FROM tab0 AS cor0
----
1
36
90
skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL + col2 + + col2 / 10 AS col2 FROM tab0 AS cor0
----
1
36
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5291
SELECT - col2 + col0 * - CAST( + 64 AS SIGNED ) FROM tab0 AS cor0
----
-1569
-2241
-5778
skipif mysql # not compatible
query I rowsort label-5291
SELECT - col2 + col0 * - CAST ( + 64 AS INTEGER ) FROM tab0 AS cor0
----
-1569
-2241
-5778
query I rowsort
SELECT DISTINCT - ( col0 ) + 3 FROM tab2 AS cor0
----
-4
-75
-76
query I rowsort
SELECT ALL col0 + - col2 * 82 AS col2 FROM tab0 AS cor0
----
-2682
-47
-6635
onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT DISTINCT - + col2 DIV - col1 + col1 * + col1 - + col1 AS col2 FROM tab1 AS cor0
----
163
652
95
skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT - + col2 / - col1 + col1 * + col1 - + col1 AS col2 FROM tab1 AS cor0
----
163
652
95
query I rowsort
SELECT ALL + tab1.col2 * - 72 + + col2 FROM tab1
----
-3834
-4047
-6816
query I rowsort
SELECT DISTINCT col1 * + col0 + - col0 FROM tab1
----
576
75
960
query I rowsort
SELECT + + 50 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5298
SELECT DISTINCT ( - col0 ) DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT ( - col0 ) / col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT - 82 + col2 FROM tab2 AS cor0
----
-44
-55
-56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5301
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5301
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + col2 * + cor0.col2 col1 FROM tab1 AS cor0
----
2609
2838
8176
query I rowsort
SELECT ALL - col2 + - ( + col2 ) * + tab1.col1 AS col1 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT + ( col2 + col1 ) * + 57 FROM tab2
----
3135
3306
4845
query I rowsort
SELECT 59 FROM tab2, tab1 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT DISTINCT 5 * tab1.col1 FROM tab1
----
130
50
65
query I rowsort
SELECT + 79 * ( col2 ) FROM tab2
----
2054
2133
3002
query I rowsort
SELECT DISTINCT 18 FROM tab0, tab2 AS cor0
----
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5309
SELECT ALL CAST( 32 AS SIGNED ) FROM tab0
----
32
32
32
skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL CAST ( 32 AS INTEGER ) FROM tab0
----
32
32
32
query I rowsort
SELECT ( 28 ) + - tab2.col1 AS col2 FROM tab2
----
-3
-31
11
query I rowsort
SELECT ALL - - 84 - cor0.col1 AS col2 FROM tab1 AS cor0
----
58
71
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5313
SELECT ALL - CAST( cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - CAST ( cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT ( + 38 ) AS col2 FROM tab0 AS cor0
----
38
query I rowsort
SELECT DISTINCT + 94 * 11 AS col1 FROM tab2, tab2 AS cor0
----
1034
query I rowsort
SELECT ALL 56 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT - col1 + 58 * col2 * col2 AS col1 FROM tab1 AS cor0
----
169102
188432
534515
query I rowsort
SELECT col1 * col1 * + col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT + + col1 + - ( + col1 ) AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col0 * 5 - - 56 * + col1 FROM tab1 AS cor0
----
1128
1471
880
query I rowsort
SELECT col1 + + col0 * cor0.col2 * col0 FROM tab2 AS cor0
----
1354
158243
237175
query I rowsort
SELECT - col2 * 86 AS col1 FROM tab0 AS cor0
----
-2838
-7052
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5323
SELECT + + CAST( NULL AS SIGNED ) * - 51 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5323
SELECT + + CAST ( NULL AS INTEGER ) * - 51 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab2
----
42
query I rowsort
SELECT ALL + - 45 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
124
55
631
query I rowsort
SELECT ALL + cor0.col0 * col1 * col1 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - col0 + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
-34
1065
6635
onlyif mysql # use DIV operator for integer division
query I rowsort label-5330
SELECT DISTINCT + ( col1 ) DIV ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT + ( col1 ) / ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT col1 - col1 * 5 FROM tab2 cor0
----
-124
-236
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * tab0.col1 + col2 * + tab0.col0 AS col1 FROM tab0
----
15579
8188
9444
query I rowsort
SELECT ALL 96 AS col0 FROM tab1
----
96
96
96
query I rowsort
SELECT + + 39 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT - - col0 * 91 + col1 * - col2 FROM tab0 AS cor0
----
-654
3088
637
query I rowsort
SELECT DISTINCT + tab0.col2 * col2 * + 3 FROM tab0
----
20172
3
3267
query I rowsort
SELECT - 51 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4
query I rowsort
SELECT col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col1 + - ( + col1 ) * col2 FROM tab0 AS cor0
----
-2752
-7371
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT DISTINCT - col1 + - col0 + col1 AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT - col1 * + ( col2 ) FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5344
SELECT ALL cor0.col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col0 FROM tab1, tab2 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 4ffdaaf27fe62f3aa6cc6bee2d5812a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * + col0 col0 FROM tab1
----
177
3776
4720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * tab2.col1 + + 74 col1 FROM tab2
----
-1460
-572
-763
query I rowsort
SELECT DISTINCT col0 + + 80 AS col1 FROM tab2
----
158
159
87
query I rowsort
SELECT col1 * + ( - col0 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - col0 * 47 - + col0 AS col2 FROM tab0
----
-1152
-1680
-4272
query I rowsort
SELECT DISTINCT - col1 + col1 * - 24 FROM tab2
----
-1475
-425
-775
query I rowsort
SELECT - col2 * - 15 FROM tab2
----
390
405
570
query I rowsort
SELECT + - col2 + + ( col2 + + cor0.col2 ) * - ( col1 ) FROM tab2 cor0
----
-1330
-1701
-3094
query I rowsort
SELECT + col1 - col0 * col0 AS col0 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL col1 + - tab0.col0 AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL - col1 * + col2 * + col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT + ( col0 ) * - col1 * + col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ( col1 ) + - cor0.col2 * + 68 FROM tab0 AS cor0
----
-2158
-5485
29
query I rowsort
SELECT ALL + 38 FROM tab2
----
38
38
38
query I rowsort
SELECT DISTINCT ( - 64 * tab0.col1 ) FROM tab0
----
-5504
-5824
-6208
query I rowsort
SELECT - ( - col1 ) * col2 * + col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + 80 FROM tab0, tab2, tab1 AS cor0, tab2 AS cor1
----
80
query I rowsort
SELECT + col1 * - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + + col1 * - col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT - cor0.col2 * + 89 FROM tab0, tab0 AS cor0
----
9 values hashing to d8e40f1ab07fa8f54a72b1dfc2909de7
query I rowsort
SELECT + + 41 * col0 * col1 FROM tab1 AS cor0
----
26240
3198
42640
query I rowsort
SELECT + 50 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1300
1350
1900
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT + col1 - col2 * col2 * col0 AS col1 FROM tab1 AS cor0
----
-207926
-737267
-8722
query I rowsort
SELECT ALL col1 * - col0 * + col1 AS col1 FROM tab2
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-5371
SELECT DISTINCT tab1.col1 DIV col0 AS col2 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT tab1.col1 / col0 AS col2 FROM tab1
----
0
8
query I rowsort
SELECT + col0 * - col0 * col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL + + ( + 97 ) * col2 AS col1 FROM tab0 AS cor0
----
3201
7954
97
query I rowsort
SELECT 40 AS col0 FROM tab0 cor0
----
40
40
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5375
SELECT DISTINCT CAST( + cor0.col0 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT CAST ( + cor0.col0 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + tab1.col2 * + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to bbf44891fdcfbe372162a2e549d3eeed
query I rowsort
SELECT - 13 * col0 AS col2 FROM tab2 AS cor0
----
-1014
-1027
-91
query I rowsort
SELECT DISTINCT + + ( + 19 ) + col0 * col1 AS col1 FROM tab0 AS cor0
----
2083
3414
8118
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5379
SELECT DISTINCT CAST( 32 AS SIGNED ) FROM tab2 AS cor0
----
32
skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT CAST ( 32 AS INTEGER ) FROM tab2 AS cor0
----
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-5380
SELECT DISTINCT - - ( 25 ) + cor0.col0 DIV col2 AS col2 FROM tab0 AS cor0
----
25
26
60
skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT - - ( 25 ) + cor0.col0 / col2 AS col2 FROM tab0 AS cor0
----
25
26
60
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( - col1 AS REAL ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - + cor0.col1 * col0 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
-106135
-1546
-358982
query I rowsort
SELECT + 88 + - 95 * + cor0.col2 FROM tab2 AS cor0
----
-2382
-2477
-3522
query I rowsort
SELECT ALL col0 * col1 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT 80 * col2 FROM tab1
----
4320
4560
7680
query I rowsort
SELECT + col2 + col2 + col1 AS col1 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT + - col0 + + col0 * - 35 FROM tab1 AS cor0
----
-108
-2304
-2880
query I rowsort
SELECT ALL 13 * + col0 * cor0.col0 + col2 * col1 + 95 AS col0 FROM tab1 AS cor0
----
1616
53913
84543
onlyif mysql # use DIV operator for integer division
query I rowsort label-5389
SELECT col1 + - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-5389
SELECT col1 + - col0 / col0 AS col1 FROM tab0 AS cor0
----
85
90
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5390
SELECT - col2 * cor0.col2 DIV col2 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5390
SELECT - col2 * cor0.col2 / col2 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col0 + col1 + + col2 col0 FROM tab0 AS cor0
----
133
7471
911
query I rowsort
SELECT + cor0.col0 * + col2 + col0 - - col2 FROM tab1 cor0
----
219
3769
7856
query I rowsort
SELECT + col1 + + col2 * - col0 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-5394
SELECT ALL + cor0.col2 * col2 DIV - 97 FROM tab0 AS cor0
----
-11
-69
0
skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL + cor0.col2 * col2 / - 97 FROM tab0 AS cor0
----
-11
-69
0
query I rowsort
SELECT DISTINCT - col2 + 17 FROM tab2 AS cor0
----
-10
-21
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT - cor0.col1 + - ( + col0 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-5396
SELECT - cor0.col1 + - ( + col0 ) / col1 AS col2 FROM tab2 AS cor0
----
-21
-31
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT - + col2 * ( col0 + col1 ) DIV 53 FROM tab2 AS cor0
----
-19
-67
-68
skipif mysql # not compatible
query I rowsort label-5397
SELECT - + col2 * ( col0 + col1 ) / 53 FROM tab2 AS cor0
----
-19
-67
-68
query I rowsort
SELECT - col2 * ( + col1 + col0 ) FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT - col1 * + 20 + col1 * col0 FROM tab2 AS cor0
----
-403
1003
3422
onlyif mysql # use DIV operator for integer division
query I rowsort label-5400
SELECT ALL + col2 DIV + col0 - cor0.col2 DIV cor0.col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL + col2 / + col0 - cor0.col2 / cor0.col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * 1 + + col1 * col2 * col2 FROM tab0 cor0
----
194
611975
93740
query I rowsort
SELECT ALL + col0 + 73 AS col2 FROM tab2 cor0
----
151
152
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5403
SELECT + col0 * CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5403
SELECT + col0 * CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT ALL col0 DIV + cor0.col0 + col1 + cor0.col2 FROM tab0 AS cor0
----
120
174
99
skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL col0 / + cor0.col0 + col1 + cor0.col2 FROM tab0 AS cor0
----
120
174
99
query I rowsort
SELECT + col1 * col0 + 64 FROM tab2 AS cor0
----
1407
281
4666
query I rowsort
SELECT col2 * + col2 + + 64 * + col0 AS col1 FROM tab0 AS cor0
----
12420
2241
2625
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5407
SELECT DISTINCT - - col0 * CAST( - 86 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3010
-7654
skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT - - col0 * CAST ( - 86 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3010
-7654
query I rowsort
SELECT DISTINCT + + col1 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 73 FROM tab0, tab0 AS cor0
----
73
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT col1 + - ( ( - col0 ) ) FROM tab0
----
110
132
180
query I rowsort
SELECT - 94 FROM tab1, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT 73 * col2 * col0 + col0 - cor0.col1 FROM tab2 AS cor0
----
13773
148063
219208
query I rowsort
SELECT - + col0 * - cor0.col2 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT 72 + col2 * col2 AS col2 FROM tab2 cor0
----
1516
748
801
query I rowsort
SELECT ALL + + col0 + col0 - + 29 FROM tab0 AS cor0
----
149
19
41
query I rowsort
SELECT - + col1 * col2 * ( col0 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT ( col1 ) * + 45 AS col2 FROM tab1 AS cor0
----
1170
450
585
query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2, tab2 cor0, tab0 cor1
----
-86
-91
-97
query I rowsort
SELECT ALL + col0 * - col2 * - col0 + 85 * - col0 FROM tab2
----
151554
230443
728
query I rowsort
SELECT - col1 + + 25 FROM tab1 AS cor0
----
-1
12
15
query I rowsort
SELECT 77 + - col1 FROM tab2 AS cor0
----
18
46
60
query I rowsort
SELECT ALL - 94 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT + col0 - col2 * - col2 AS col1 FROM tab1 cor0
----
2919
3313
9296
query I rowsort
SELECT - - 5 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5427
SELECT ALL col0 * - col1 + CAST( NULL AS SIGNED ) * - ( - col2 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL col0 * - col1 + CAST ( NULL AS INTEGER ) * - ( - col2 ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 6 + col0 FROM tab2
----
13
84
85
query I rowsort
SELECT DISTINCT + ( - col0 ) + + col1 + col1 FROM tab2
----
-45
40
55
query I rowsort
SELECT DISTINCT - col2 * 26 FROM tab1 AS cor0
----
-1404
-1482
-2496
onlyif mysql # use DIV operator for integer division
query I rowsort label-5431
SELECT ALL 32 DIV col0 col2 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL 32 / col0 col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT + + 81 * + col2 + col1 FROM tab1 cor0
----
4400
4627
7789
query I rowsort
SELECT 16 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + + col0 col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT cor0.col1 * cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ( + cor0.col1 ) AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT - 96 FROM tab2, tab0 cor0, tab0 AS cor1
----
-96
query I rowsort
SELECT DISTINCT col1 + + 57 FROM tab1 cor0
----
67
70
83
query I rowsort
SELECT DISTINCT col1 * + 81 + + 86 AS col2 FROM tab0 AS cor0
----
7052
7457
7943
query I rowsort
SELECT - col0 * 60 + - col1 * - col1 FROM tab1 AS cor0
----
-3740
-4631
496
query I rowsort
SELECT + cor0.col1 + 81 * + col2 AS col0 FROM tab1 AS cor0
----
4400
4627
7789
query I rowsort
SELECT - - col2 + ( cor0.col2 ) AS col0 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT + 19 + 42 AS col0 FROM tab1 AS cor0
----
61
61
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5444
SELECT + col2 + col1 * + col2 - - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2904
7626
99
skipif mysql # not compatible
query I rowsort label-5444
SELECT + col2 + col1 * + col2 - - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2904
7626
99
query I rowsort
SELECT + + 78 - col1 FROM tab1 AS cor0
----
52
65
68
query I rowsort
SELECT 81 + + 88 + + col1 FROM tab0 AS cor0
----
255
260
266
query I rowsort
SELECT col0 * col0 * + col0 AS col2 FROM tab2
----
343
474552
493039
onlyif mysql # use DIV operator for integer division
query I rowsort label-5448
SELECT ALL col0 + col1 DIV 79 + col2 DIV + 79 FROM tab1
----
3
64
81
skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL col0 + col1 / 79 + col2 / + 79 FROM tab1
----
3
64
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT - col1 - col1 DIV cor0.col2 col2 FROM tab1 cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5449
SELECT - col1 - col1 / cor0.col2 col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL col0 * - 73 + - 90 AS col2 FROM tab0
----
-1842
-2645
-6587
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5451
SELECT - col0 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5451
SELECT - col0 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + tab1.col0 * + tab1.col1 * - col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT ALL + col2 + - cor0.col0 * + col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + + 68 - col0 FROM tab1 AS cor0
----
-12
4
65
query I rowsort
SELECT ALL - 18 + col2 FROM tab0 AS cor0
----
-17
15
64
query I rowsort
SELECT ALL + col0 * + col1 + 3 FROM tab1 AS cor0
----
1043
643
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col0 + col2 * col0 col0 FROM tab0 AS cor0
----
-27
7296
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5458
SELECT - col1 + - col1 * tab2.col1 + CAST( 40 AS SIGNED ) FROM tab2
----
-266
-3500
-952
skipif mysql # not compatible
query I rowsort label-5458
SELECT - col1 + - col1 * tab2.col1 + CAST ( 40 AS INTEGER ) FROM tab2
----
-266
-3500
-952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 - - ( - col1 * 14 + col0 ) col2 FROM tab1
----
-12
-22
-358
query I rowsort
SELECT - 45 * 45 FROM tab2
----
-2025
-2025
-2025
query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT tab1.col0 * - col2 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab2, tab1 AS cor0
----
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5464
SELECT DISTINCT col1 * CAST( ( - col1 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT col1 * CAST ( ( - col1 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5465
SELECT + - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5465
SELECT + - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 * ( cor0.col2 ) * col2 + - col1 * - col1 FROM tab0 AS cor0
----
43333
559649
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab1, tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col0 FROM tab0
----
-89
-89
-89
query I rowsort
SELECT + tab1.col1 * + ( + 19 ) FROM tab1, tab2 AS cor0
----
9 values hashing to fa80d67a77cef9463bc185ea9e379d2b
query I rowsort
SELECT - 6 * col1 FROM tab1 AS cor0
----
-156
-60
-78
query I rowsort
SELECT DISTINCT 91 * - col0 AS col0 FROM tab1 AS cor0
----
-273
-5824
-7280
query I rowsort
SELECT ALL 8 + + col0 + 96 * col1 AS col2 FROM tab0 AS cor0
----
8288
8833
9355
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5473
SELECT - + col0 * col0 + CAST( col0 + + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1093
-466
-7741
skipif mysql # not compatible
query I rowsort label-5473
SELECT - + col0 * col0 + CAST ( col0 + + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1093
-466
-7741
query I rowsort
SELECT ALL + 83 AS col0 FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT ALL ( - col0 ) * + 96 AS col2 FROM tab1 cor0
----
-288
-6144
-7680
query I rowsort
SELECT DISTINCT + col2 * - col1 + - col2 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5477
SELECT ALL col0 + - col0 DIV - col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL col0 + - col0 / - col1 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL - 53 + + col2 FROM tab2
----
-15
-26
-27
query I rowsort
SELECT ALL - cor0.col1 + col1 * col1 * 32 AS col2 FROM tab1 AS cor0
----
21606
3190
5395
query I rowsort
SELECT DISTINCT + - 54 + + col0 FROM tab2 cor0
----
-47
24
25
query I rowsort
SELECT ALL + tab0.col1 + tab0.col0 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL + tab1.col2 * - tab1.col2 + col0 * + 77 AS col0 FROM tab1
----
-2685
-3056
1679
query I rowsort
SELECT + - col1 + - col0 * col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT - col0 * 16 + cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
-1253
-327
-524
query I rowsort
SELECT 6 * - tab1.col0 + - col1 AS col2 FROM tab1
----
-394
-44
-493
query I rowsort
SELECT 49 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT DISTINCT - tab2.col1 * col1 AS col0 FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col1 * col0 col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - ( + 95 ) + - cor0.col0 * + col0 FROM tab0 AS cor0
----
-1320
-671
-8016
query I rowsort
SELECT ALL 47 * col2 AS col2 FROM tab0 AS cor0
----
1551
3854
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-5492
SELECT + - 95 + col1 DIV col2 AS col2 FROM tab0 cor0
----
-93
-94
2
skipif mysql # not compatible
query I rowsort label-5492
SELECT + - 95 + col1 / col2 AS col2 FROM tab0 cor0
----
-93
-94
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 + + col1 * col1 col1 FROM tab2 cor0
----
1007
335
3527
query I rowsort
SELECT + + 97 + - col2 FROM tab0 AS cor0
----
15
64
96
query I rowsort
SELECT ALL + 47 * col1 FROM tab2 AS cor0
----
1457
2773
799
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5496
SELECT + CAST( NULL AS SIGNED ) + - col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5496
SELECT + CAST ( NULL AS INTEGER ) + - col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5497
SELECT col0 DIV + col1 + - tab2.col2 DIV - col1 AS col1 FROM tab2
----
0
1
6
skipif mysql # not compatible
query I rowsort label-5497
SELECT col0 / + col1 + - tab2.col2 / - col1 AS col1 FROM tab2
----
0
1
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
onlyif mysql # use DIV operator for integer division
query I rowsort label-5499
SELECT DISTINCT col0 DIV col0 + - col0 * col0 - + col2 FROM tab2
----
-6109
-6278
-75
skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT col0 / col0 + - col0 * col0 - + col2 FROM tab2
----
-6109
-6278
-75
query I rowsort
SELECT col1 * col2 + col1 + + col0 FROM tab0
----
229
2948
7642
query I rowsort
SELECT + col2 + + tab2.col2 * 91 * + col1 - col0 FROM tab2
----
139542
58745
76187
query I rowsort
SELECT DISTINCT - tab0.col0 - + 44 FROM tab0
----
-133
-68
-79
query I rowsort
SELECT DISTINCT + 46 + col2 * tab2.col1 FROM tab2
----
1580
692
883
query I rowsort
SELECT - 89 + col0 + col1 * - ( col1 * + col1 ) FROM tab0
----
-636121
-753571
-912727
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - 30 AS REAL ) + - col0 * col2 FROM tab0
----
-65
-7328
-822
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col1 col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL 71 * col0 + col0 AS col2 FROM tab1 AS cor0
----
216
4608
5760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5508
SELECT + 27 * + col0 * cor0.col0 + - CAST( NULL AS SIGNED ) * - 22 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5508
SELECT + 27 * + col0 * cor0.col0 + - CAST ( NULL AS INTEGER ) * - 22 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + 95 FROM tab0 AS cor0
----
-2
4
9
query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1128
490
7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5511
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - cor0.col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT - CAST ( NULL AS REAL ) * - cor0.col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 11 * col1 - cor0.col1 FROM tab0 cor0
----
-1032
-1092
-1164
query I rowsort
SELECT ALL - - 46 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
164
2954
3693
query I rowsort
SELECT DISTINCT - col1 * col1 - - cor0.col1 AS col0 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT - col0 * + 83 AS col2 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT ALL col2 + + 32 AS col0 FROM tab1
----
128
86
89
query I rowsort
SELECT + col1 + - 79 + - col2 FROM tab2
----
-100
-46
-75
query I rowsort
SELECT - col0 * + 37 FROM tab0
----
-1295
-3293
-888
query I rowsort
SELECT DISTINCT col1 + + 59 AS col0 FROM tab2
----
118
76
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5520
SELECT ALL CAST( NULL AS DECIMAL ) * - ( col2 ) + - tab0.col2 * col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL CAST ( NULL AS REAL ) * - ( col2 ) + - tab0.col2 * col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 32 + + col1 FROM tab2 AS cor0
----
49
63
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5522
SELECT DISTINCT - col0 * tab2.col1 + col1 DIV + col0 AS col2 FROM tab2
----
-1343
-213
-4602
skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT - col0 * tab2.col1 + col1 / + col0 AS col2 FROM tab2
----
-1343
-213
-4602
query I rowsort
SELECT DISTINCT - 25 * col0 + col1 + + col2 AS col2 FROM tab2
----
-117
-1865
-1920
query I rowsort
SELECT DISTINCT - col0 * - 57 AS col2 FROM tab0
----
1368
1995
5073
query I rowsort
SELECT ALL - 48 * + col2 + - col0 AS col1 FROM tab2
----
-1303
-1326
-1903
onlyif mysql # use DIV operator for integer division
query I rowsort label-5526
SELECT ALL col2 + col1 DIV + col1 AS col0 FROM tab2 cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL col2 + col1 / + col1 AS col0 FROM tab2 cor0
----
27
28
39
query I rowsort
SELECT - 84 * col1 AS col1 FROM tab0 AS cor0
----
-7224
-7644
-8148
query I rowsort
SELECT - + col0 * col1 * col0 - - col0 * col0 AS col1 FROM tab1 AS cor0
----
-225
-36864
-76800
query I rowsort
SELECT + + ( + col0 ) * col0 - + col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col0 + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-5532
SELECT - + col2 + + CAST( + ( + col0 ) AS SIGNED ) DIV col0 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-5532
SELECT - + col2 + + CAST ( + ( + col0 ) AS INTEGER ) / col0 FROM tab1 AS cor0
----
-53
-56
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5533
SELECT DISTINCT + col2 DIV 34 + col2 AS col1 FROM tab1 AS cor0
----
55
58
98
skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT + col2 / 34 + col2 AS col1 FROM tab1 AS cor0
----
55
58
98
query I rowsort
SELECT ALL col2 * ( col2 + + col1 * col0 ) AS col1 FROM tab2 AS cor0
----
120328
52478
6588
query I rowsort
SELECT DISTINCT - col0 + col1 + - 87 FROM tab2 AS cor0
----
-106
-149
-63
query I rowsort
SELECT - col1 * + col0 + + 15 FROM tab2 cor0
----
-1328
-202
-4587
query I rowsort
SELECT DISTINCT - + col1 * - ( + col0 ) + + col2 + - col0 AS col2 FROM tab1 AS cor0
----
1056
129
633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 - 60 col1 FROM tab1 cor0
----
-34
-47
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 * cor0.col1 col1 FROM tab2, tab2 cor0
----
1798
3422
986
query I rowsort
SELECT DISTINCT 74 * col0 AS col1 FROM tab0 AS cor0
----
1776
2590
6586
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5541
SELECT - col2 - CAST( NULL AS SIGNED ) * 76 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5541
SELECT - col2 - CAST ( NULL AS INTEGER ) * 76 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 73 AS col1 FROM tab1 AS cor0
----
137
153
76
query I rowsort
SELECT - - col0 + + cor0.col2 AS col0 FROM tab2 cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5544
SELECT - col1 + + CAST( col2 AS SIGNED ) * col1 AS col0 FROM tab1 cor0
----
1235
1378
560
skipif mysql # not compatible
query I rowsort label-5544
SELECT - col1 + + CAST ( col2 AS INTEGER ) * col1 AS col0 FROM tab1 cor0
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * ( + cor0.col1 ) col0 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT DISTINCT + - 94 DIV - col0 FROM tab1 AS cor0
----
1
31
skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT + - 94 / - col0 FROM tab1 AS cor0
----
1
31
query I rowsort
SELECT - ( + col2 ) + + cor0.col1 * - col2 AS col2 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT - col0 * cor0.col0 + + col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT - 91 FROM tab2, tab2 cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT 8 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT ALL + 85 FROM tab2, tab1 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT - + ( - 72 ) * col1 FROM tab2 AS cor0
----
1224
2232
4248
query I rowsort
SELECT 24 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT - - ( col0 ) * - 35 FROM tab0 AS cor0
----
-1225
-3115
-840
query I rowsort
SELECT + col1 + + col2 * 11 FROM tab2 AS cor0
----
328
345
435
query I rowsort
SELECT - col1 * + col2 + 87 AS col1 FROM tab2 AS cor0
----
-1447
-559
-750
query I rowsort
SELECT + + col2 * 78 * 88 FROM tab0 AS cor0
----
226512
562848
6864
query I rowsort
SELECT DISTINCT + col2 * ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - col1 * ( - col2 ) * tab1.col0 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT col1 + - 63 AS col1 FROM tab0 AS cor0
----
23
28
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5561
SELECT + col0 DIV + 66 FROM tab2 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5561
SELECT + col0 / + 66 FROM tab2 cor0
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5562
SELECT col2 * CAST( ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-5562
SELECT col2 * CAST ( ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - - cor0.col2 + col0 - + ( + col2 + + col0 * + 6 ) FROM tab2 cor0
----
-35
-390
-395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5564
SELECT + CAST( NULL AS DECIMAL ) + tab1.col1 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5564
SELECT + CAST ( NULL AS REAL ) + tab1.col1 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col2 * - col0 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 80 col0 FROM tab0 AS cor0
----
80
query I rowsort
SELECT DISTINCT 11 FROM tab2, tab1 AS cor0
----
11
query I rowsort
SELECT DISTINCT - 9 + + col2 AS col0 FROM tab1 cor0
----
45
48
87
query I rowsort
SELECT col0 + - col0 * + 63 FROM tab0 AS cor0
----
-1488
-2170
-5518
query I rowsort
SELECT DISTINCT - col1 * col0 * 56 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
-32192
-4206
-50560
onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT cor0.col0 + + col2 * 20 DIV col0 AS col0 FROM tab1 AS cor0
----
104
363
81
skipif mysql # not compatible
query I rowsort label-5571
SELECT cor0.col0 + + col2 * 20 / col0 AS col0 FROM tab1 AS cor0
----
104
363
81
query I rowsort
SELECT ( - ( + col0 ) ) AS col1 FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT col0 * col1 DIV col1 + ( 15 + col1 * ( col1 ) ) FROM tab1
----
179
264
694
skipif mysql # not compatible
query I rowsort label-5573
SELECT col0 * col1 / col1 + ( 15 + col1 * ( col1 ) ) FROM tab1
----
179
264
694
query I rowsort
SELECT ( + col0 * + tab1.col1 ) FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5575
SELECT DISTINCT + CAST( 75 * col1 AS SIGNED ) FROM tab1
----
1950
750
975
skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT + CAST ( 75 * col1 AS INTEGER ) FROM tab1
----
1950
750
975
query I rowsort
SELECT + 34 * + col0 FROM tab2
----
238
2652
2686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( + tab1.col1 ) ) col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + ( 60 ) FROM tab0, tab2, tab2 AS cor0
----
60
query I rowsort
SELECT ALL 26 * col1 + tab2.col0 AS col0 FROM tab2
----
1612
521
813
query I rowsort
SELECT + col0 * col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT ALL + 57 * cor0.col2 * - 5 FROM tab1, tab2 AS cor0
----
9 values hashing to ae34ccf66baef1339ec3046f71526188
query I rowsort
SELECT DISTINCT - + 62 * - 10 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2684
4015
8719
query I rowsort
SELECT ALL + - ( 37 ) + col2 * col0 AS col1 FROM tab1 cor0
----
125
3611
7643
query I rowsort
SELECT - + col2 + 74 * - cor0.col1 * ( col2 ) AS col1 FROM tab1 AS cor0
----
-103950
-42237
-92448
query I rowsort
SELECT + col1 * col0 + - col2 * col2 - 12 AS col1 FROM tab1 AS cor0
----
-2621
-2850
-8188
query I rowsort
SELECT ALL + 66 * + col1 + col0 - + 51 AS col2 FROM tab0 AS cor0
----
5649
6044
6386
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5587
SELECT DISTINCT - + ( + col1 ) + + col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT - + ( + col1 ) + + col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - - col0 * - col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT - + col1 + col1 AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT + 69 + - col2 AS col2 FROM tab2 cor0
----
31
42
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-5591
SELECT ALL + 26 DIV + col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + 26 / + col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT 95 + col1 * col1 AS col0 FROM tab1 AS cor0
----
195
264
771
query I rowsort
SELECT ALL - - col0 + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5594
SELECT + - col0 + - col1 DIV ( + col1 + col0 ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5594
SELECT + - col0 + - col1 / ( + col1 + col0 ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - ( col1 ) - + col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT ( col2 ) + tab2.col0 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT col0 + - col0 + + col1 * - col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 58 * 54 + - col1 AS col0 FROM tab2
----
3073
3101
3115
onlyif mysql # use DIV operator for integer division
query I rowsort label-5599
SELECT DISTINCT ( 42 ) DIV + col1 + ( 49 + - col0 ) FROM tab0
----
-40
14
25
skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT ( 42 ) / + col1 + ( 49 + - col0 ) FROM tab0
----
-40
14
25
query I rowsort
SELECT DISTINCT col2 + + tab0.col0 * + col0 + + col0 * + col0 AS col1 FROM tab0
----
1185
15924
2451
query I rowsort
SELECT col2 + - col0 * col1 + + col1 FROM tab2
----
-1288
-159
-4517
query I rowsort
SELECT DISTINCT - ( col1 ) * - col1 + col1 AS col0 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT ALL + - col2 + 47 AS col1 FROM tab0 AS cor0
----
-35
14
46
query I rowsort
SELECT DISTINCT - + col0 - + 70 FROM tab0 AS cor0
----
-105
-159
-94
query I rowsort
SELECT + - col0 * ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - cor0.col0 + - 87 AS col0 FROM tab1 AS cor0
----
-151
-167
-90
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + cor0.col2 + col1 * + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - col1 * 61 AS col2 FROM tab0 cor0
----
-5246
-5551
-5917
query I rowsort
SELECT DISTINCT + + cor0.col2 * - 85 FROM tab0 AS cor0
----
-2805
-6970
-85
query I rowsort
SELECT ALL + col1 + - col0 * cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-5612
SELECT DISTINCT - + col0 DIV + col2 - - ( + col1 ) FROM tab0 AS cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT - + col0 / + col2 - - ( + col1 ) FROM tab0 AS cor0
----
62
86
90
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( col1 ) col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + col0 + col0 * - 64 AS col0 FROM tab1 AS cor0
----
-189
-4032
-5040
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT col1 * - 20 AS col2 FROM tab0 AS cor0
----
-1720
-1820
-1940
query I rowsort
SELECT ALL 16 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT col0 + + 23 * + col2 FROM tab2 AS cor0
----
628
676
953
query I rowsort
SELECT + col2 * - ( + col2 * - col2 ) FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT + 33 + - col0 FROM tab0 AS cor0
----
-2
-56
9
query I rowsort
SELECT + col2 + ( col2 ) FROM tab2
----
52
54
76
query I rowsort
SELECT - tab0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT - 5 + + col0 AS col2 FROM tab1
----
-2
59
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + col2 col2 FROM tab2 AS cor0
----
104
92
93
query I rowsort
SELECT + 52 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-12
-28
49
query I rowsort
SELECT DISTINCT + 51 + col1 FROM tab0 AS cor0
----
137
142
148
query I rowsort
SELECT ALL + 42 + 73 * col1 FROM tab2 cor0
----
1283
2305
4349
query I rowsort
SELECT DISTINCT - ( 89 ) + cor0.col0 FROM tab1 AS cor0
----
-25
-86
-9
query I rowsort
SELECT DISTINCT - 90 * col0 * + col1 + + col1 - + col1 FROM tab0 AS cor0
----
-185760
-305550
-728910
query I rowsort
SELECT ALL 72 * - col0 + + col2 * col2 FROM tab0 AS cor0
----
-2519
-639
316
query I rowsort
SELECT 20 * + tab1.col0 + col2 FROM tab1
----
114
1337
1696
query I rowsort
SELECT DISTINCT col1 * + col1 + ( col2 ) + + col2 AS col2 FROM tab0
----
7462
8445
9411
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * - col1 + + col1 col2 FROM tab2 AS cor0
----
-1643
-3127
-901
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col2 col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * col0 * - col0 AS col2 FROM tab0 AS cor0
----
13824
42875
704969
onlyif mysql # use DIV operator for integer division
query I rowsort label-5638
SELECT ALL + 7 DIV cor0.col0 FROM tab2 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + 7 / cor0.col0 FROM tab2 cor0
----
0
0
1
query I rowsort
SELECT DISTINCT col0 * 21 AS col2 FROM tab2 AS cor0
----
147
1638
1659
query I rowsort
SELECT + 78 + 75 FROM tab1, tab0 cor0
----
9 values hashing to a445e00df74bda4e6af4f1e4258ba685
query I rowsort
SELECT ALL 35 + + 69 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to d32adf5fdd5e4096e2c037977ca3f009
query I rowsort
SELECT ( + cor0.col0 ) FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 col0 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5644
SELECT ALL cor0.col1 * col1 + + 57 * + col2 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL cor0.col1 * col1 + + 57 * + col2 * CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + col2 col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + col2 + + tab0.col1 = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5647
SELECT 92 DIV + col0 + + col1 * - col0 + - col2 FROM tab1
----
-102
-1135
-696
skipif mysql # not compatible
query I rowsort label-5647
SELECT 92 / + col0 + + col1 * - col0 + - col2 FROM tab1
----
-102
-1135
-696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * + col0 col1 FROM tab2
----
399
4446
4503
query I rowsort
SELECT DISTINCT col2 - col0 * + col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT col2 * col0 + - col0 AS col1 FROM tab1
----
159
3584
7600
query I rowsort
SELECT - 52 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to bee61227972ad9a02705a1cd2b945aee
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 col2 FROM tab1 AS cor0
----
109
67
80
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( col1 / + col0 )
----
query I rowsort
SELECT DISTINCT tab2.col0 + + col2 * + col1 * - col1 + + col0 * col1 * col2 AS col1 FROM tab2
----
-20081
29224
40131
query I rowsort
SELECT ALL - col1 * + col0 + - col1 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT ALL col2 - tab2.col2 * - col1 AS col1 FROM tab2
----
1560
684
864
query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) = NULL
----
query I rowsort
SELECT ALL col2 + - col0 * col0 - col1 FROM tab2 WHERE NOT col0 + - col0 <> ( NULL )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) = ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT col1 * tab0.col1 DIV - col1 AS col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-5660
SELECT col1 * tab0.col1 / - col1 AS col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + col0 * col0 * 96 + col1 FROM tab0
----
117697
55382
760507
query I rowsort
SELECT + + ( + tab2.col1 ) AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL - 51 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4
query I rowsort
SELECT ALL col2 * + cor0.col1 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 + + col2 * ( - 73 ) * + col1 col1 FROM tab2 AS cor0
----
-112015
-47191
-61134
query I rowsort
SELECT DISTINCT + col1 * - col0 + 26 FROM tab0 AS cor0
----
-2038
-3369
-8073
query I rowsort
SELECT ALL + 4 * col2 - + col0 FROM tab1 AS cor0
----
164
213
304
query I rowsort
SELECT ALL tab2.col2 + col0 - - col2 FROM tab2
----
130
155
61
query I rowsort
SELECT + col0 FROM tab2 WHERE NULL IN ( - col2 )
----
query I rowsort
SELECT tab0.col0 * - tab0.col2 + + col2 * col0 FROM tab0
----
0
0
0
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 * - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5672
SELECT DISTINCT col1 DIV col2 AS col1 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT col1 / col2 AS col1 FROM tab0
----
1
2
97
query I rowsort
SELECT col2 + col2 + col0 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT - col0 * col2 AS col2 FROM tab2 WHERE NULL IN ( + col0 * - col1 + col1 * + tab2.col2 )
----
query I rowsort
SELECT DISTINCT - col1 * col2 + + col0 + col0 FROM tab0
----
-27
-2790
-7284
query I rowsort
SELECT ALL col2 - + tab0.col2 * col1 AS col0 FROM tab0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 - + col2 col1 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT - - col1 * col1 * col1 FROM tab1 cor0
----
1000
17576
2197
query I rowsort
SELECT - + cor0.col2 - - col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + - cor0.col2 + - 62 AS col2 FROM tab1 AS cor0
----
-116
-119
-158
query I rowsort
SELECT DISTINCT + - col1 * ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT - 75 FROM tab1, tab2, tab1 AS cor0, tab1 AS cor1
----
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-5683
SELECT ALL + col0 DIV - 5 + col1 DIV + col0 AS col2 FROM tab2
----
-15
-15
3
skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + col0 / - 5 + col1 / + col0 AS col2 FROM tab2
----
-15
-15
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT DISTINCT col2 * - 82 + - col0 + col0 AS col1 FROM tab1 AS cor0
----
-4428
-4674
-7872
onlyif mysql # use DIV operator for integer division
query I rowsort label-5686
SELECT ALL - - col2 + - 63 DIV + 28 AS col2 FROM tab1 cor0
----
52
55
94
skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - - col2 + - 63 / + 28 AS col2 FROM tab1 cor0
----
52
55
94
query I rowsort
SELECT ALL + + col2 * - col2 * col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT - - col1 + + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT + ( - col0 ) * col0 * - col0 FROM tab0 cor0
----
13824
42875
704969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5690
SELECT CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5690
SELECT CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 53 AS col1 FROM tab0 AS cor0
----
-53
-53
-53
query I rowsort
SELECT DISTINCT + + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 66 * col0 FROM tab0 cor0
----
1584
2310
5874
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5694
SELECT DISTINCT - col2 + - cor0.col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT - col2 + - cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * - col2 col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + + cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5697
SELECT ALL - col2 + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL - col2 + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL ( tab0.col0 + - col1 ) * - col2 AS col1 FROM tab0
----
164
2046
62
query I rowsort
SELECT ALL - 44 AS col1 FROM tab0
----
-44
-44
-44
query I rowsort
SELECT DISTINCT - col0 * + col0 * - 78 FROM tab0 AS cor0
----
44928
617838
95550
query I rowsort
SELECT DISTINCT + 83 + col0 AS col2 FROM tab2 AS cor0
----
161
162
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col1 + 52 col2 FROM tab2 cor0
----
1586
698
889
query I rowsort
SELECT DISTINCT - ( + col0 ) + + col0 * 9 FROM tab1 cor0
----
24
512
640
query I rowsort
SELECT 58 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT DISTINCT col0 * - col1 * - ( - tab2.col0 ) FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT cor0.col2 * cor0.col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 00f153c5d80e692faff5018d8701b92d
query I rowsort
SELECT + + col0 * + cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - col2 + + col0 * col2 * col1 AS col2 FROM tab2 AS cor0
----
119626
50996
5832
query I rowsort
SELECT DISTINCT + col1 * + col1 * + 5 FROM tab1
----
3380
500
845
query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5713
SELECT - CAST( - 54 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
54
54
54
skipif mysql # not compatible
query I rowsort label-5713
SELECT - CAST ( - 54 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
54
54
54
query I rowsort
SELECT DISTINCT - + 49 + + col0 AS col2 FROM tab1 cor0
----
-46
15
31
query I rowsort
SELECT ALL - - col1 * col0 + - cor0.col2 * + 77 AS col0 FROM tab1 AS cor0
----
-3749
-4080
-6352
query I rowsort
SELECT DISTINCT - col0 * 68 AS col1 FROM tab2 AS cor0
----
-476
-5304
-5372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 28 col1 FROM tab1 AS cor0
----
280
364
728
query I rowsort
SELECT + + 2 + + col0 AS col0 FROM tab1 AS cor0
----
5
66
82
query I rowsort
SELECT DISTINCT - tab0.col0 * col0 + - col1 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT + col0 + - tab2.col0 + col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL 20 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT + col2 - + 49 AS col0 FROM tab1 cor0
----
47
5
8
query I rowsort
SELECT DISTINCT col1 + col1 * + 0 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT 92 + + tab0.col2 + col2 FROM tab0
----
158
256
94
query I rowsort
SELECT ( - 41 + col1 ) * 3 AS col0 FROM tab2
----
-30
-72
54
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) * col0 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + 0 * - col0 + - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + + col1 + + 86 AS col0 FROM tab2 AS cor0
----
103
117
145
onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT DISTINCT - col0 DIV + col2 FROM tab1 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT - col0 / + col2 FROM tab1 cor0
----
-1
0
query I rowsort
SELECT DISTINCT 17 + 88 FROM tab0, tab0 AS cor0
----
105
query I rowsort
SELECT col1 * 61 AS col1 FROM tab1
----
1586
610
793
query I rowsort
SELECT ALL ( 80 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT col0 + 81 * + 39 * col0 FROM tab0 AS cor0
----
110600
281240
75840
query I rowsort
SELECT tab0.col0 - - col1 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + col1 + + 58 + 71 AS col2 FROM tab0
----
215
220
226
query I rowsort
SELECT ( + 68 + col1 ) FROM tab0
----
154
159
165
query I rowsort
SELECT DISTINCT + 56 * col1 + col2 AS col0 FROM tab1 cor0
----
1510
617
824
query I rowsort
SELECT ALL + ( - cor0.col1 ) + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL cor0.col2 - - col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - 97 * col2 FROM tab2 cor0
----
-2522
-2619
-3686
query I rowsort
SELECT ALL - ( - col2 ) * + col0 - - ( col2 * + col2 ) AS col0 FROM tab0 AS cor0
----
14022
1881
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-5742
SELECT DISTINCT - + col1 + ( col1 + col1 ) DIV + 50 FROM tab0 AS cor0
----
-83
-88
-94
skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT - + col1 + ( col1 + col1 ) / + 50 FROM tab0 AS cor0
----
-83
-88
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5743
SELECT CAST( ( col1 ) AS SIGNED ) * + 58 * - col0 FROM tab0 AS cor0
----
-119712
-196910
-469742
skipif mysql # not compatible
query I rowsort label-5743
SELECT CAST ( ( col1 ) AS INTEGER ) * + 58 * - col0 FROM tab0 AS cor0
----
-119712
-196910
-469742
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5744
SELECT + + CAST( NULL AS SIGNED ) * col1 * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5744
SELECT + + CAST ( NULL AS INTEGER ) * col1 * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5746
SELECT - col1 + ( col1 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5746
SELECT - col1 + ( col1 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT ( - col1 ) + col0 DIV - cor0.col1 FROM tab2 AS cor0
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-5747
SELECT ( - col1 ) + col0 / - cor0.col1 FROM tab2 AS cor0
----
-21
-31
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT col1 * + col0 + + ( - 18 ) - + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
1323
199
4584
skipif mysql # not compatible
query I rowsort label-5748
SELECT col1 * + col0 + + ( - 18 ) - + col2 / + col1 AS col0 FROM tab2 AS cor0
----
1323
199
4584
query I rowsort
SELECT - col0 * col2 + - cor0.col2 * - col0 * + col2 + 59 AS col2 FROM tab2 AS cor0
----
111133
4973
50759
query I rowsort
SELECT col0 + cor0.col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5751
SELECT + - col2 * col1 + + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-5751
SELECT + - col2 * col1 + + col2 / col2 AS col2 FROM tab0 AS cor0
----
-2837
-7461
-96
query I rowsort
SELECT - 8 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
query I rowsort
SELECT ALL - 39 FROM tab1, tab1 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
onlyif mysql # use DIV operator for integer division
query I rowsort label-5754
SELECT + - col0 * ( + col0 ) DIV + col2 AS col1 FROM tab1 AS cor0
----
-66
-71
0
skipif mysql # not compatible
query I rowsort label-5754
SELECT + - col0 * ( + col0 ) / + col2 AS col1 FROM tab1 AS cor0
----
-66
-71
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col0 FROM tab2
----
36
query I rowsort
SELECT ALL 99 * - col2 FROM tab2
----
-2574
-2673
-3762
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5757
SELECT - - CAST( NULL AS SIGNED ) * - 17 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5757
SELECT - - CAST ( NULL AS INTEGER ) * - 17 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 26 * col2 FROM tab1
----
1404
1482
2496
onlyif mysql # use DIV operator for integer division
query I rowsort label-5759
SELECT DISTINCT - + col0 DIV ( cor0.col0 ) + col0 FROM tab0 cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT - + col0 / ( cor0.col0 ) + col0 FROM tab0 cor0
----
23
34
88
query I rowsort
SELECT - col1 + - ( - 91 ) FROM tab1 AS cor0
----
65
78
81
query I rowsort
SELECT - col1 - 30 * col1 AS col0 FROM tab2 AS cor0
----
-1829
-527
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-5762
SELECT ALL + cor0.col1 + - col0 DIV - col2 AS col0 FROM tab1 cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL + cor0.col1 + - col0 / - col2 AS col0 FROM tab1 cor0
----
11
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5763
SELECT cor0.col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5763
SELECT cor0.col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5764
SELECT DISTINCT col2 DIV col0 + 13 * col2 FROM tab2 cor0
----
338
354
494
skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT col2 / col0 + 13 * col2 FROM tab2 cor0
----
338
354
494
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 + - col0 FROM tab2 AS cor0
----
-3500
-351
-937
query I rowsort
SELECT DISTINCT col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT + col2 DIV + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-5767
SELECT + col2 / + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT + col1 + ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - - col0 * ( + col2 ) FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 * + 19 FROM tab2 AS cor0
----
494
513
722
query I rowsort
SELECT + - col0 + + col2 - col0 AS col2 FROM tab0 AS cor0
----
-15
-69
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2
query I rowsort
SELECT 71 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( ( cor0.col2 ) ) + - col1 col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT col1 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + + col2 + - col2 - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col2 + + ( + 56 ) FROM tab1 AS cor0
----
-1
-40
2
query I rowsort
SELECT ALL - col0 * col0 + 86 FROM tab2 AS cor0
----
-5998
-6155
37
query I rowsort
SELECT - 78 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5780
SELECT + col2 DIV ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5780
SELECT + col2 / ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab2 cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab0 cor0, tab1 cor1
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5783
SELECT col2 + + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-5783
SELECT col2 + + col2 / col0 AS col2 FROM tab0 AS cor0
----
1
34
82
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 3d17e101d6f341609114801ea035bed1
query I rowsort
SELECT + ( cor0.col2 ) * ( col0 ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - - 13 + col2 + ( 8 ) AS col2 FROM tab1 AS cor0
----
117
75
78
query I rowsort
SELECT DISTINCT - - col0 - - col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - - col2 * - col0 * 59 FROM tab2 AS cor0
----
-11151
-119652
-177118
query I rowsort
SELECT DISTINCT + + cor0.col0 AS col1 FROM tab1, tab0 cor0, tab2, tab2 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT 99 + col1 FROM tab0 AS cor0
----
185
190
196
query I rowsort
SELECT DISTINCT + 9 + - cor1.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-17
-18
-29
query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab1 AS cor0
----
38
query I rowsort
SELECT ( col0 + + tab1.col2 ) FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + tab2.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 + + cor0.col1 + CAST ( + col1 AS REAL ) * col2 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - 53 + col0 * col1 FROM tab1 AS cor0
----
25
587
987
query I rowsort
SELECT + 35 + ( + col1 ) FROM tab1 AS cor0
----
45
48
61
query I rowsort
SELECT col0 - - tab0.col2 * - col0 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT 85 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col1 FROM tab1 cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5801
SELECT ALL + - 66 * - 79 * - col2 + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-171976
-427457
-5117
skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + - 66 * - 79 * - col2 + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-171976
-427457
-5117
query I rowsort
SELECT ALL col0 * tab2.col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT 19 + 75 FROM tab2
----
94
94
94
query I rowsort
SELECT 58 + col0 AS col0 FROM tab2
----
136
137
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5805
SELECT - CAST( NULL AS SIGNED ) + - col0 * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5805
SELECT - CAST ( NULL AS INTEGER ) + - col0 * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5806
SELECT DISTINCT ( - col1 ) DIV col1 AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT ( - col1 ) / col1 AS col2 FROM tab1 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + 75 ) * col0 + cor0.col0 col0 FROM tab1 AS cor0
----
-222
-4736
-5920
query I rowsort
SELECT col1 + + col2 * - cor0.col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT + 32 * 51 AS col0 FROM tab0 AS cor0
----
1632
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5810
SELECT col1 + col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5810
SELECT col1 + col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 19 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5812
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5812
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - col1 + - col1 * col2 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT + tab2.col0 + + col1 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL + 42 + + col1 AS col0 FROM tab2
----
101
59
73
query I rowsort
SELECT ALL + cor0.col1 * - 96 - - 40 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5c964090fa06c983b6604d5a01c60d70
query I rowsort
SELECT ALL col2 + - col0 * 66 + + col1 AS col2 FROM tab0
----
-1465
-2212
-5701
onlyif mysql # use DIV operator for integer division
query I rowsort label-5818
SELECT DISTINCT + + col2 DIV - col1 AS col2 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT + + col2 / - col1 AS col2 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT cor0.col0 + + 24 FROM tab0 AS cor0
----
113
48
59
query I rowsort
SELECT ALL - col0 * + 48 * + col1 AS col0 FROM tab1 AS cor0
----
-30720
-3744
-49920
onlyif mysql # use DIV operator for integer division
query I rowsort label-5821
SELECT col1 DIV - col2 + col0 * - col0 col0 FROM tab1
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5821
SELECT col1 / - col2 + col0 * - col0 col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT col1 + 87 * 83 FROM tab1
----
7231
7234
7247
query I rowsort
SELECT DISTINCT + + col0 + - 29 AS col1 FROM tab0 AS cor0
----
-5
6
60
query I rowsort
SELECT + col0 * col1 + 9 AS col0 FROM tab2 AS cor0
----
1352
226
4611
query I rowsort
SELECT ALL + col1 * col1 * - col1 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT ALL col2 * col0 + - ( + col2 ) - - 70 * col2 FROM tab2 AS cor0
----
2052
3822
5624
onlyif mysql # use DIV operator for integer division
query I rowsort label-5827
SELECT ALL + col2 * + col2 - 30 DIV - col2 AS col2 FROM tab0 AS cor0
----
1089
31
6724
skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + col2 * + col2 - 30 / - col2 AS col2 FROM tab0 AS cor0
----
1089
31
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5828
SELECT ALL - - col2 DIV + col2 AS col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - - col2 / + col2 AS col0 FROM tab0 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * cor0.col0 - - cor0.col1 * - col0 col0 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT tab2.col2 * 65 * - col2 FROM tab2
----
-43940
-47385
-93860
query I rowsort
SELECT - tab2.col0 + 61 * tab2.col2 * + col0 AS col1 FROM tab2
----
11522
123630
183043
query I rowsort
SELECT + col1 * + 95 AS col0 FROM tab2 AS cor0
----
1615
2945
5605
query I rowsort
SELECT ALL + + cor0.col1 * ( + col2 ) + - col0 + - col0 FROM tab2 AS cor0
----
1378
488
823
query I rowsort
SELECT ALL + + col1 + - 6 AS col0 FROM tab0 cor0
----
80
85
91
query I rowsort
SELECT col1 * cor0.col2 * + 20 + col0 FROM tab2 AS cor0
----
12999
16747
30758
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5837
SELECT CAST( + col2 AS SIGNED ) * + col2 + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813
skipif mysql # not compatible
query I rowsort label-5837
SELECT CAST ( + col2 AS INTEGER ) * + col2 + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT - - col2 * cor0.col2 DIV + cor0.col0 + + 66 FROM tab2 AS cor0
----
170
74
84
skipif mysql # not compatible
query I rowsort label-5838
SELECT - - col2 * cor0.col2 / + cor0.col0 + + 66 FROM tab2 AS cor0
----
170
74
84
query I rowsort
SELECT ALL - - ( col1 ) * col0 + - 63 * col0 AS col0 FROM tab2 AS cor0
----
-224
-312
-3634
query I rowsort
SELECT + - col1 + - col1 * - col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - ( 97 ) * - col2 + - 18 FROM tab2 AS cor0
----
2504
2601
3668
query I rowsort
SELECT 72 * + col2 * col2 FROM tab0 AS cor0
----
484128
72
78408
query I rowsort
SELECT ALL + 25 - cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 36949fec2283b64ddffa9bcdf6ee484e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 25 + cor0.col0 col2 FROM tab2 AS cor0
----
103
104
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - cor0.col1 * 83 * - 56 col2 FROM tab0 AS cor0
----
399761
423050
450857
query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL 69 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
2133
3464
8168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col1 + - col2 col0 FROM tab1 cor0
----
-2
-37
-70
query I rowsort
SELECT ALL - + 17 * + cor0.col0 + 0 FROM tab2 AS cor0
----
-119
-1326
-1343
query I rowsort
SELECT DISTINCT - + col0 * - col1 + 82 FROM tab1 cor0
----
1122
160
722
query I rowsort
SELECT - ( + col2 ) * col2 + ( 4 ) * + col1 FROM tab0
----
-6360
-745
387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5852
SELECT - + ( col0 ) + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-14
-156
-158
skipif mysql # not compatible
query I rowsort label-5852
SELECT - + ( col0 ) + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + + ( col2 ) * + ( - cor0.col0 + col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
-147456
-148716
22743
query I rowsort
SELECT + 47 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT + 81 + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b015e7bfdc986ed0cf4bcd18b2e14de5
query I rowsort
SELECT + 18 * + col0 FROM tab2
----
126
1404
1422
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5857
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5857
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL col2 - + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * col2 + ( 53 + - col2 ) AS col2 FROM tab1 AS cor0
----
161
3644
7637
query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
10944
25920
90480
query I rowsort
SELECT DISTINCT + + 77 - col0 FROM tab1 AS cor0
----
-3
13
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5862
SELECT CAST( col0 + col1 AS SIGNED ) * + col0 FROM tab1
----
4736
7440
87
skipif mysql # not compatible
query I rowsort label-5862
SELECT CAST ( col0 + col1 AS INTEGER ) * + col0 FROM tab1
----
4736
7440
87
query I rowsort
SELECT 2 * col2 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT 39 * - col2 FROM tab2
----
-1014
-1053
-1482
query I rowsort
SELECT DISTINCT + 20 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
20
query I rowsort
SELECT col2 * col2 + 97 FROM tab0 AS cor0
----
1186
6821
98
query I rowsort
SELECT + col1 * col1 + + ( col0 ) FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT 4 + - col0 AS col2 FROM tab0
----
-20
-31
-85
query I rowsort
SELECT + col2 + col1 * + col1 * + col2 FROM tab2 AS cor0
----
11020
25974
90532
onlyif mysql # use DIV operator for integer division
query I rowsort label-5870
SELECT - + col0 + + col2 DIV col0 + col0 * - cor0.col1 * col2 FROM tab1 AS cor0
----
-36544
-4197
-99919
skipif mysql # not compatible
query I rowsort label-5870
SELECT - + col0 + + col2 / col0 + col0 * - cor0.col1 * col2 FROM tab1 AS cor0
----
-36544
-4197
-99919
query I rowsort
SELECT + + col1 * cor0.col1 * - 93 FROM tab0 AS cor0
----
-687828
-770133
-875037
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5872
SELECT col2 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-5872
SELECT col2 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + + col1 + - ( - col0 ) AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT cor0.col2 + 74 FROM tab0 AS cor0
----
107
156
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-5875
SELECT col2 DIV + col1 + - col2 * col2 + + col1 FROM tab1
----
-2888
-3234
-9196
skipif mysql # not compatible
query I rowsort label-5875
SELECT col2 / + col1 + - col2 * col2 + + col1 FROM tab1
----
-2888
-3234
-9196
onlyif mysql # use DIV operator for integer division
query I rowsort label-5876
SELECT col0 * cor0.col1 + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-5876
SELECT col0 * cor0.col1 + col0 / col0 AS col2 FROM tab1 AS cor0
----
1041
641
79
query I rowsort
SELECT - - 80 FROM tab2 AS cor0
----
80
80
80
query I rowsort
SELECT - - cor0.col0 * col1 * cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT - 42 + - cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-138
-96
-99
query I rowsort
SELECT - 13 * - col0 FROM tab0 AS cor0
----
1157
312
455
query I rowsort
SELECT - - col2 * + cor0.col0 * + cor0.col0 - - ( 7 * - col0 ) FROM tab1 cor0
----
233024
465
613840
query I rowsort
SELECT + + 12 * ( - col2 ) + + 24 AS col2 FROM tab2 AS cor0
----
-288
-300
-432
query I rowsort
SELECT DISTINCT 92 * - col0 - tab2.col1 FROM tab2
----
-675
-7235
-7285
query I rowsort
SELECT ALL - 29 + - col0 - tab0.col0 * + col1 AS col0 FROM tab0
----
-2117
-3459
-8217
query I rowsort
SELECT ALL + 81 FROM tab2 cor0
----
81
81
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5886
SELECT - + 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-5886
SELECT - + col2 / + col0 col2 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT + col0 * col0 + col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT - + 73 + + col1 FROM tab1 AS cor0
----
-47
-60
-63
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - col0 * + 39 AS col0 FROM tab2 AS cor0
----
-273
-3042
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-5891
SELECT 57 DIV col2 AS col0 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5891
SELECT 57 / col2 AS col0 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5892
SELECT DISTINCT + CAST( col2 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - 11 + - cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
-60
-6095
-6252
query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab0 cor0
----
89
query I rowsort
SELECT - + col1 + col2 + - 0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col1 * col1 - cor0.col2 FROM tab0 AS cor0
----
7363
8199
9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5897
SELECT CAST( - 63 AS SIGNED ) * col2 FROM tab2
----
-1638
-1701
-2394
skipif mysql # not compatible
query I rowsort label-5897
SELECT CAST ( - 63 AS INTEGER ) * col2 FROM tab2
----
-1638
-1701
-2394
query I rowsort
SELECT - ( col2 ) * + tab0.col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col2 + 57 AS col0 FROM tab2 AS cor0
----
83
84
95
query I rowsort
SELECT DISTINCT 63 + - 40 AS col1 FROM tab2, tab2 cor0
----
23
query I rowsort
SELECT ALL + + cor0.col2 * col1 + col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5902
SELECT - - col2 * + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-5902
SELECT - - col2 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col2 - ( - col2 ) * + col0 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT ALL - col1 + + ( - col0 ) FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + - col1 * 23 + - col1 AS col1 FROM tab2 AS cor0
----
-1416
-408
-744
query I rowsort
SELECT ALL + - cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + col0 * col2 - cor0.col2 col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5908
SELECT ALL + + col2 DIV - 88 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + + col2 / - 88 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5909
SELECT + - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5909
SELECT + - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5910
SELECT + - col2 + - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-5910
SELECT + - col2 + - col2 / col0 AS col2 FROM tab1 AS cor0
----
-57
-72
-97
query I rowsort
SELECT - col0 * 4 + col0 FROM tab1
----
-192
-240
-9
query I rowsort
SELECT col0 * + 51 FROM tab0 AS cor0
----
1224
1785
4539
query I rowsort
SELECT - col1 * ( 28 ) + col2 AS col0 FROM tab0 AS cor0
----
-2375
-2466
-2715
query I rowsort
SELECT ALL + + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT col0 + 34 AS col1 FROM tab2 AS cor0
----
112
113
41
query I rowsort
SELECT - + col1 + col1 * 18 AS col1 FROM tab2 AS cor0
----
1003
289
527
onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT col1 * + col2 + ( col0 + cor0.col2 ) * col2 DIV col0 FROM tab2 AS cor0
----
1568
702
968
skipif mysql # not compatible
query I rowsort label-5918
SELECT col1 * + col2 + ( col0 + cor0.col2 ) * col2 / col0 FROM tab2 AS cor0
----
1568
702
968
query I rowsort
SELECT ALL col0 + ( + col0 ) FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + + col2 * col1 * - 24 FROM tab2 AS cor0
----
-15504
-20088
-36816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col0 col2 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + col1 col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT col2 + ( 34 ) FROM tab0
----
116
35
67
query I rowsort
SELECT ALL - cor0.col2 * - col2 + col0 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5925
SELECT - CAST( NULL AS SIGNED ) * 29 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5925
SELECT - CAST ( NULL AS INTEGER ) * 29 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 51 + col0 AS col0 FROM tab1 cor0
----
115
131
54
query I rowsort
SELECT DISTINCT + 60 * - cor1.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-1020
-1860
-3540
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - col1 col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + - col1 * - col2 + - col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL col0 * - col0 * - col0 + - col2 * + col2 AS col0 FROM tab0
----
12735
42874
698245
query I rowsort
SELECT + col0 + tab2.col2 * + col1 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT col0 + col1 * + col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT + cor0.col2 * - col1 + 53 FROM tab2 AS cor0
----
-1481
-593
-784
query I rowsort
SELECT tab0.col1 * tab0.col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - col2 + col0 * + col0 + col1 * col0 AS col1 FROM tab0
----
15938
2607
4619
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + col0 )
----
query I rowsort
SELECT DISTINCT - 3 + col1 FROM tab2
----
14
28
56
query I rowsort
SELECT - 5 + col1 + - col2 * col1 * + col2 AS col1 FROM tab1
----
-119800
-32485
-75795
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 + col2 col1 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT - 7 * + col1 + col1 AS col0 FROM tab0
----
-516
-546
-582
query I rowsort
SELECT - 69 AS col2 FROM tab0
----
-69
-69
-69
query I rowsort
SELECT + ( col1 ) + - 93 + 87 AS col2 FROM tab1 AS cor0
----
20
4
7
query I rowsort
SELECT DISTINCT - - col2 + + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - 33 + - col1 * 48 FROM tab2 AS cor0
----
-1521
-2865
-849
query I rowsort
SELECT 21 * + col2 AS col1 FROM tab0
----
1722
21
693
query I rowsort
SELECT 66 + + tab0.col0 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to fa5abea9703325e238e45516f04d8fa5
query I rowsort
SELECT ALL 50 * col0 + + ( col1 ) FROM tab0
----
1286
1847
4541
query I rowsort
SELECT - + 4 FROM tab0, tab1 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT ALL - 81 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81
query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5952
SELECT col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5952
SELECT col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + 74 AS col2 FROM tab2
----
518
5772
5846
query I rowsort
SELECT + + col0 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + ( col1 * - col2 ) AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT 41 * 72 + col0 * + col0 AS col1 FROM tab0
----
10873
3528
4177
onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT - 52 + 42 DIV col0 AS col1 FROM tab1
----
-38
-52
-52
skipif mysql # not compatible
query I rowsort label-5957
SELECT - 52 + 42 / col0 AS col1 FROM tab1
----
-38
-52
-52
query I rowsort
SELECT DISTINCT - col1 * - 40 AS col2 FROM tab0
----
3440
3640
3880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5959
SELECT + CAST( - col1 AS SIGNED ) + col1 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5959
SELECT + CAST ( - col1 AS INTEGER ) + col1 AS col1 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5960
SELECT CAST( NULL AS SIGNED ) * col1 + col1 / + CAST( col1 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5960
SELECT CAST ( NULL AS INTEGER ) * col1 + col1 / + CAST ( col1 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 65 + - 98 * col0 FROM tab0 AS cor0
----
-2417
-3495
-8787
query I rowsort
SELECT - - 72 * - 97 * - col0 FROM tab1 AS cor0
----
20952
446976
558720
query I rowsort
SELECT DISTINCT + tab0.col0 * + col1 * col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT ALL + - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - 74 * - col1 FROM tab0 AS cor0
----
6364
6734
7178
query I rowsort
SELECT ALL col1 * - col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * + 42 FROM tab1 AS cor0
----
-2268
-2394
-4032
query I rowsort
SELECT 95 * + col0 AS col1 FROM tab2 AS cor0
----
665
7410
7505
query I rowsort
SELECT ALL ( - col2 ) * col1 + + col2 * + cor0.col2 * 8 - - col2 FROM tab2 AS cor0
----
10944
3900
5022
query I rowsort
SELECT + - cor0.col2 + - col1 * 91 * col1 FROM tab1 cor0
----
-15475
-61570
-9157
query I rowsort
SELECT - - col2 - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col1 - - col1 * col2 AS col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT - col2 + - col0 + - col0 FROM tab1
----
-185
-256
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col1 col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + cor0.col2 FROM tab1 cor0
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col0 FROM tab0 AS cor0
----
2064
3395
8099
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - cor0.col0 + col0 AND ( col1 ) OR NULL NOT IN ( + col1 )
----
query I rowsort
SELECT ALL + + col0 * - col1 * - col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT col0 + + col2 * + cor0.col0 + cor0.col0 * col2 FROM tab1 cor0
----
15440
327
7360
query I rowsort
SELECT + col0 * - col1 + col2 + col1 AS col1 FROM tab0
----
-1945
-3297
-7926
query I rowsort
SELECT - col2 - + tab1.col1 AS col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT - col0 + + col1 - - col1 FROM tab0
----
148
159
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 - col2 * col2 col0 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + col0 - tab2.col2 FROM tab2
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 - - col0 col0 FROM tab2
----
113
196
69
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + col2 * - col1 - + col1 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL + cor0.col1 * + cor0.col0 + + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT col1 + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - col2 * + 54 AS col1 FROM tab2
----
-1404
-1458
-2052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5991
SELECT CAST( - 88 AS SIGNED ) AS col1 FROM tab1
----
-88
-88
-88
skipif mysql # not compatible
query I rowsort label-5991
SELECT CAST ( - 88 AS INTEGER ) AS col1 FROM tab1
----
-88
-88
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT 42 DIV col0 FROM tab1 AS cor0
----
0
0
14
skipif mysql # not compatible
query I rowsort label-5992
SELECT 42 / col0 FROM tab1 AS cor0
----
0
0
14
query I rowsort
SELECT - 6 + col0 AS col2 FROM tab0
----
18
29
83
query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 IN ( col1 * col1 )
----
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 DISTINCT + col1 - + col1 FROM tab0
----
0
query I rowsort
SELECT col1 FROM tab2 WHERE NULL IN ( + col1 * + tab2.col0 + + col1 )
----
query I rowsort
SELECT col1 * tab0.col2 + - tab0.col1 * + col0 + - col0 AS col2 FROM tab0
----
-3333
-726
750
query I rowsort
SELECT DISTINCT + col2 - col2 AS col1 FROM tab0
----
0
query I rowsort
SELECT + col1 + - col0 + + col1 AS col2 FROM tab0
----
148
159
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6001
SELECT col0 - - col2 * + col1 DIV + col1 AS col2 FROM tab1
----
121
176
57
skipif mysql # not compatible
query I rowsort label-6001
SELECT col0 - - col2 * + col1 / + col1 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL col2 * col0 * + col0 + col0 * col2 FROM tab0
----
1260
19800
656820
query I rowsort
SELECT ALL - col2 * col2 * tab1.col2 - - col2 FROM tab1
----
-157410
-185136
-884640
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - col1 + col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) NOT BETWEEN col0 * col2 * col0 + tab1.col1 * - col0 AND ( NULL )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6006
SELECT DISTINCT - tab0.col1 * col2 + tab0.col1 DIV col0 AS col1 FROM tab0
----
-2835
-7461
-95
skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - tab0.col1 * col2 + tab0.col1 / col0 AS col1 FROM tab0
----
-2835
-7461
-95
query I rowsort
SELECT DISTINCT - col0 * - col2 + + col2 AS col1 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT col0 + col2 + - col0 AS col0 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6009
SELECT ALL - col1 + col2 DIV col1 FROM tab1
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL - col1 + col2 / col1 FROM tab1
----
-24
-5
-6
query I rowsort
SELECT DISTINCT col2 + col1 * col0 + + col2 FROM tab1
----
1232
186
754
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2 WHERE NULL > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6012
SELECT - cor0.col1 + col0 DIV - cor0.col0 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-6012
SELECT - cor0.col1 + col0 / - cor0.col0 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT - col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - col0 * col0 * - col1 + - cor0.col0 FROM tab0 AS cor0
----
118790
49512
720722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * cor0.col0 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + col1 * - col2 * col2 AS col2 FROM tab0 cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL cor0.col1 + - col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - col2 * + tab1.col1 AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - 16 + - col1 * col1 FROM tab0 AS cor0
----
-7412
-8297
-9425
query I rowsort
SELECT DISTINCT - 69 * col2 FROM tab0 cor0
----
-2277
-5658
-69
query I rowsort
SELECT ( - cor0.col2 ) + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - 9 * col2 + + col2 FROM tab0 AS cor0
----
-264
-656
-8
query I rowsort
SELECT + col0 - - ( + col1 ) * col0 * - cor0.col2 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT + ( + col2 ) * - col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col1 * 93 * cor0.col1 AS col0 FROM tab0 AS cor0
----
687828
770133
875037
query I rowsort
SELECT DISTINCT col1 * 25 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT - ( 59 ) - cor0.col2 * col1 FROM tab1 AS cor0
----
-1307
-1463
-629
query I rowsort
SELECT + cor0.col2 * - col0 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-6029
SELECT DISTINCT col2 - + col1 DIV + col1 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT col2 - + col1 / + col1 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT ALL + - 17 FROM tab1 cor0
----
-17
-17
-17
query I rowsort
SELECT - + col2 * col0 + 58 FROM tab0 AS cor0
----
-7240
-734
23
query I rowsort
SELECT ALL + cor0.col1 + + 1 AS col0 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT DISTINCT col2 + 25 FROM tab0 AS cor0
----
107
26
58
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + + 8 FROM tab1 AS cor0
----
1048
648
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6035
SELECT DISTINCT - + col2 * CAST( NULL AS SIGNED ) + col1 * col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT - + col2 * CAST ( NULL AS INTEGER ) + col1 * col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6036
SELECT ALL - col2 * - CAST( - col1 AS SIGNED ) + col0 * 98 * col0 AS col1 FROM tab2 AS cor0
----
3965
594698
610972
skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL - col2 * - CAST ( - col1 AS INTEGER ) + col0 * 98 * col0 AS col1 FROM tab2 AS cor0
----
3965
594698
610972
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6037
SELECT DISTINCT + + col1 * + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT + + col1 * + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col1 + col0 * - ( + col0 * col1 ) AS col1 FROM tab0 AS cor0
----
-118922
-49622
-720902
onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT - ( - ( + col1 ) ) DIV + 89 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6039
SELECT - ( - ( + col1 ) ) / + 89 FROM tab0 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6040
SELECT ( col0 ) DIV col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6040
SELECT ( col0 ) / col0 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6041
SELECT col1 - col1 DIV tab0.col2 FROM tab0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-6041
SELECT col1 - col1 / tab0.col2 FROM tab0
----
0
84
90
query I rowsort
SELECT DISTINCT + - ( col2 ) * - col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col0 - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 - + 3 * col0 AS col1 FROM tab0 AS cor0
----
-104
-185
-39
query I rowsort
SELECT ALL + 22 + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2816
-7440
-75
query I rowsort
SELECT col0 - col1 * + col0 * + col0 AS col1 FROM tab1 cor0
----
-231
-40896
-83120
query I rowsort
SELECT DISTINCT - - ( - 13 ) FROM tab0 AS cor0
----
-13
query I rowsort
SELECT - - ( - col0 ) + cor0.col1 * ( + col0 * col0 ) FROM tab2 AS cor0
----
106018
1512
358878
onlyif mysql # use DIV operator for integer division
query I rowsort label-6049
SELECT ALL - col1 DIV - 10 AS col1 FROM tab2
----
1
3
5
skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - col1 / - 10 AS col1 FROM tab2
----
1
3
5
query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab2, tab0 AS cor0
----
45
query I rowsort
SELECT tab0.col2 - ( - col1 ) * + col2 AS col0 FROM tab0
----
2871
7544
98
query I rowsort
SELECT - 87 * cor0.col1 FROM tab2 AS cor0
----
-1479
-2697
-5133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 44 col2 FROM tab1 AS cor0
----
1144
440
572
query I rowsort
SELECT - 36 * ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-1944
-2052
-3456
query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE - cor0.col0 NOT IN ( + cor0.col1 )
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + col2 * tab2.col2 + - col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT + tab2.col2 * + col0 * + col1 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - 47 * col2 AS col0 FROM tab0 AS cor0
----
-1551
-3854
-47
query I rowsort
SELECT col2 * col1 * + 12 - + col2 * col2 FROM tab1 AS cor0
----
13932
3591
5760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col0 FROM tab0
----
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL + cor0.col0 - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1c0f12b2ac8c8b522b92205460500f94
onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT ALL - + ( + col1 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - + ( + col1 ) / - col1 AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6065
SELECT col2 DIV - col1 + + col0 AS col2 FROM tab2
----
7
77
78
skipif mysql # not compatible
query I rowsort label-6065
SELECT col2 / - col1 + + col0 AS col2 FROM tab2
----
7
77
78
query I rowsort
SELECT - col0 * + cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
-448
1280
153
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6067
SELECT - col0 * ( - 32 * cor0.col2 ) + - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6067
SELECT - col0 * ( - 32 * cor0.col2 ) + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 44 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT ALL + col2 + + ( - col1 ) * col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT ALL - col0 * 84 AS col0 FROM tab2 AS cor0
----
-588
-6552
-6636
query I rowsort
SELECT DISTINCT - + col1 * col1 + col0 * cor0.col1 AS col0 FROM tab0 cor0
----
-182
-5332
-6014
query I rowsort
SELECT - col1 * - 20 FROM tab1 AS cor0
----
200
260
520
query I rowsort
SELECT DISTINCT + - col0 * 7 AS col2 FROM tab1 AS cor0
----
-21
-448
-560
query I rowsort
SELECT ALL + + cor0.col1 * + col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + - col2 * - ( + 9 ) AS col0 FROM tab2 AS cor0
----
234
243
342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6077
SELECT ALL - CAST( - cor1.col1 AS SIGNED ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - CAST ( - cor1.col1 AS INTEGER ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 30 + - col2 AS col2 FROM tab0 cor0
----
-3
-52
29
query I rowsort
SELECT - ( - col1 ) * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - cor0.col2 * - 96 * col0 AS col1 FROM tab1 AS cor0
----
15552
350208
737280
query I rowsort
SELECT DISTINCT - col1 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - - col1 * col0 * col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - + col0 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7372
8192
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-6084
SELECT col2 * col1 DIV col0 AS col1 FROM tab0 AS cor0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-6084
SELECT col2 * col1 / col0 AS col1 FROM tab0 AS cor0
----
118
2
83
query I rowsort
SELECT col1 + + ( cor0.col2 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col0 * col0 * col0 AS col1 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT DISTINCT ( - col1 ) * - col1 * 35 FROM tab2
----
10115
121835
33635
query I rowsort
SELECT DISTINCT 11 * col2 FROM tab0
----
11
363
902
query I rowsort
SELECT DISTINCT - - cor0.col0 + - ( col2 ) * + col0 AS col0 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + col0 * 7 + col0 * cor0.col2 FROM tab0 AS cor0
----
280
7921
960
query I rowsort
SELECT - + col2 * ( col0 ) FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 * 92 FROM tab0 AS cor0
----
3036
7544
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-6093
SELECT ALL col0 * - col0 DIV col0 AS col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL col0 * - col0 / col0 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - 68 * col1 AS col0 FROM tab0 AS cor0
----
-5848
-6188
-6596
query I rowsort
SELECT + 18 + 70 AS col2 FROM tab2 AS cor0
----
88
88
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6096
SELECT + 73 DIV + col0 + col2 * - ( + col1 ) col0 FROM tab1 AS cor0
----
-1248
-1380
-569
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6096
SELECT + 73 / + col0 + col2 * - ( + col1 ) col0 FROM tab1 AS cor0
----
-1248
-1380
-569
onlyif mysql # use DIV operator for integer division
query I rowsort label-6097
SELECT cor0.col2 DIV 84 col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6097
SELECT cor0.col2 / 84 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + col0 * + col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT + + ( col0 ) + col1 * col0 * + col0 FROM tab2 AS cor0
----
106176
1526
359034
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6100
SELECT - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6100
SELECT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col1 * + col2 + - cor0.col2 FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6102
SELECT ALL - 30 DIV tab2.col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL - 30 / tab2.col0 FROM tab2
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * - cor0.col1 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d43cb5ec49d07ed28abf45a3dad5bd4d
query I rowsort
SELECT ALL - 0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT 98 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT DISTINCT + col2 * - col2 + 60 + 21 DIV col1 AS col1 FROM tab1 AS cor0
----
-2856
-3187
-9155
skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT + col2 * - col2 + 60 + 21 / col1 AS col1 FROM tab1 AS cor0
----
-2856
-3187
-9155
query I rowsort
SELECT ALL 81 - - col1 FROM tab1 AS cor0
----
107
91
94
query I rowsort
SELECT ALL + 47 + cor0.col1 * - col0 * 41 AS col0 FROM tab0 AS cor0
----
-139148
-332012
-84577
query I rowsort
SELECT ALL - cor0.col0 + - col2 + - col0 AS col0 FROM tab2 cor0
----
-182
-196
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-6110
SELECT 13 + col0 DIV + 45 FROM tab2 AS cor0
----
13
14
14
skipif mysql # not compatible
query I rowsort label-6110
SELECT 13 + col0 / + 45 FROM tab2 AS cor0
----
13
14
14
query I rowsort
SELECT + - 10 * col2 + col0 * col0 AS col2 FROM tab1 AS cor0
----
-531
3526
5440
query I rowsort
SELECT DISTINCT col1 + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6113
SELECT DISTINCT - 73 * + cor0.col1 + + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT - 73 * + cor0.col1 + + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 42 + + col2 col2 FROM tab1
----
1146
477
642
query I rowsort
SELECT DISTINCT - 41 AS col2 FROM tab1
----
-41
query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6117
SELECT cor0.col0 + - col0 * - CAST( NULL AS DECIMAL ) * 47 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6117
SELECT cor0.col0 + - col0 * - CAST ( NULL AS REAL ) * 47 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col0 ) * + 48 + col0 * col0 + - ( col1 ) FROM tab1 AS cor0
----
10227
127
7158
query I rowsort
SELECT DISTINCT 77 * - cor0.col2 + + 25 + - 15 FROM tab2 AS cor0
----
-1992
-2069
-2916
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6120
SELECT - CAST( NULL AS SIGNED ) + 71 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6120
SELECT - CAST ( NULL AS INTEGER ) + 71 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - ( + col0 ) * - col1 + col2 * 95 AS col2 FROM tab0 AS cor0
----
-309
-3300
1071
query I rowsort
SELECT - + col0 * + 80 - cor0.col1 FROM tab0 AS cor0
----
-2006
-2897
-7211
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6123
SELECT ALL - CAST( NULL AS SIGNED ) + + 40 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL - CAST ( NULL AS INTEGER ) + + 40 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor1.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL col1 + + ( tab2.col0 ) * + col1 FROM tab2
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 65 + col0 col0 FROM tab1 AS cor0
----
1693
714
925
query I rowsort
SELECT ALL + col1 * - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL - col0 + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + - ( - 55 ) * + col0 - - col2 AS col0 FROM tab0 AS cor0
----
1353
1926
4977
query I rowsort
SELECT ALL + + 0 * + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - + col2 + ( - 70 ) * col1 AS col0 FROM tab0 AS cor0
----
-6053
-6452
-6791
query I rowsort
SELECT DISTINCT - 96 FROM tab1
----
-96
query I rowsort
SELECT col1 * col1 + - 38 * - 26 FROM tab1
----
1088
1157
1664
query I rowsort
SELECT ALL col1 * + tab0.col2 AS col0 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6137
SELECT ALL cor0.col2 * - CAST( - col1 AS SIGNED ) * col2 + + col1 DIV col1 + + col2 AS col2 FROM tab2 AS cor0
----
22627
24587
39911
skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL cor0.col2 * - CAST ( - col1 AS INTEGER ) * col2 + + col1 / col1 + + col2 AS col2 FROM tab2 AS cor0
----
22627
24587
39911
query I rowsort
SELECT - - col2 * ( + col1 + col0 ) AS col1 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT ALL + cor0.col1 * - col0 + - col2 * + col1 + - 1 * + 36 FROM tab0 AS cor0
----
-15597
-3528
-4938
query I rowsort
SELECT DISTINCT - + cor0.col1 * - col1 - - col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-6141
SELECT col1 * col0 DIV 37 AS col1 FROM tab2
----
124
36
5
skipif mysql # not compatible
query I rowsort label-6141
SELECT col1 * col0 / 37 AS col1 FROM tab2
----
124
36
5
query I rowsort
SELECT ALL + col2 - - col0 * + col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + col1 + + 97 FROM tab0 AS cor0
----
183
188
194
query I rowsort
SELECT ALL col0 + + col1 * 58 FROM tab0 AS cor0
----
5012
5367
5661
onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV - col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT CAST ( col1 AS INTEGER ) / - col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT DISTINCT + + col0 DIV col0 col1 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + + col0 / col0 col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT - ( col0 * col1 ) AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL 70 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT ALL - col1 * cor0.col2 - + ( - col0 * + col2 ) AS col2 FROM tab2 AS cor0
----
-648
2356
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col0 ) * cor0.col2 col1 FROM tab0 cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6151
SELECT - - col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-6151
SELECT - - col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT - cor0.col1 + col1 DIV + CAST( + col1 + col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6152
SELECT - cor0.col1 + col1 / + CAST ( + col1 + col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT 37 * col0 DIV col0 FROM tab1 cor0
----
37
37
37
skipif mysql # not compatible
query I rowsort label-6153
SELECT 37 * col0 / col0 FROM tab1 cor0
----
37
37
37
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
86
91
97
query I rowsort
SELECT + - col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-6156
SELECT - ( ( - col0 ) ) DIV - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6156
SELECT - ( ( - col0 ) ) / - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 41 * + col2 AS col0 FROM tab1 AS cor0
----
-2214
-2337
-3936
query I rowsort
SELECT cor0.col2 + + col2 - - col1 * col0 AS col2 FROM tab1 AS cor0
----
1232
186
754
query I rowsort
SELECT ALL - cor0.col1 * + cor0.col1 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 79ea663c5f468cc57a869fc826cf04a5
query I rowsort
SELECT 13 + - col1 AS col1 FROM tab1 AS cor0
----
-13
0
3
query I rowsort
SELECT - - col0 + col0 * + 64 AS col2 FROM tab1 AS cor0
----
195
4160
5200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6162
SELECT ( col1 ) + CAST( NULL AS SIGNED ) * + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6162
SELECT ( col1 ) + CAST ( NULL AS INTEGER ) * + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 + - col0 AS col1 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT ( ( col2 ) ) FROM tab1
----
54
57
96
query I rowsort
SELECT ( col2 ) * - col0 AS col1 FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6166
SELECT ALL CAST( + cor0.col1 AS SIGNED ) AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL CAST ( + cor0.col1 AS INTEGER ) AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( + col0 ) ) * 69 col2 FROM tab1
----
207
4416
5520
query I rowsort
SELECT ALL 36 * col0 AS col1 FROM tab2
----
252
2808
2844
query I rowsort
SELECT col2 * col0 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - ( - col0 ) + cor0.col2 + - col2 * - ( col2 ) FROM tab2 AS cor0
----
1561
763
780
query I rowsort
SELECT + - 79 AS col0 FROM tab2 AS cor0
----
-79
-79
-79
query I rowsort
SELECT ALL + + col2 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT - + col2 + 17 FROM tab2 AS cor0
----
-10
-21
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT + col2 + + ( col1 + col2 ) AS col0 FROM tab1
----
124
134
205
onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT ALL col2 DIV col1 + 84 FROM tab0
----
84
84
84
skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL col2 / col1 + 84 FROM tab0
----
84
84
84
query I rowsort
SELECT ALL + 36 + + 87 AS col0 FROM tab2 AS cor0
----
123
123
123
onlyif mysql # use DIV operator for integer division
query I rowsort label-6178
SELECT DISTINCT col0 + col2 DIV + col2 col1 FROM tab0 AS cor0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT col0 + col2 / + col2 col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL - 38 * 23 AS col1 FROM tab0 AS cor0
----
-874
-874
-874
onlyif mysql # use DIV operator for integer division
query I rowsort label-6180
SELECT ALL + + col2 + - col1 DIV - col0 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL + + col2 + - col1 / - col0 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT DISTINCT 6 * 85 * - col1 - col2 AS col0 FROM tab2 AS cor0
----
-15837
-30116
-8708
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6182
SELECT 30 * col1 * - CAST( + 5 AS SIGNED ) AS col2 FROM tab2
----
-2550
-4650
-8850
skipif mysql # not compatible
query I rowsort label-6182
SELECT 30 * col1 * - CAST ( + 5 AS INTEGER ) AS col2 FROM tab2
----
-2550
-4650
-8850
query I rowsort
SELECT 91 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT ALL + 0 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT + 35 * cor0.col1 - ( + 54 + + col0 * + 23 ) FROM tab2 AS cor0
----
-1276
217
870
onlyif mysql # use DIV operator for integer division
query I rowsort label-6186
SELECT + cor0.col1 DIV + col0 - 95 * - col2 AS col2 FROM tab2 AS cor0
----
2470
2569
3610
skipif mysql # not compatible
query I rowsort label-6186
SELECT + cor0.col1 / + col0 - 95 * - col2 AS col2 FROM tab2 AS cor0
----
2470
2569
3610
query I rowsort
SELECT DISTINCT col0 * - col0 - col0 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT ( tab0.col1 ) + + cor1.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
9 values hashing to 07a9fa96c94913f866af2be611e89dab
onlyif mysql # use DIV operator for integer division
query I rowsort label-6189
SELECT DISTINCT - tab0.col0 DIV - col0 - CAST( tab0.col2 AS SIGNED ) * + col0 FROM tab0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT - tab0.col0 / - col0 - CAST ( tab0.col2 AS INTEGER ) * + col0 FROM tab0
----
-34
-7297
-791
query I rowsort
SELECT + - 41 - col0 * - col0 AS col2 FROM tab2 AS cor0
----
6043
6200
8
query I rowsort
SELECT cor0.col0 + - ( col1 + col1 ) * - 10 * col0 FROM tab1 AS cor0
----
12864
1563
20880
query I rowsort
SELECT - 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT col1 * 59 + 91 AS col0 FROM tab2 AS cor0
----
1094
1920
3572
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6194
SELECT - - col0 + + CAST( NULL AS DECIMAL ) * 93 * + 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-6194
SELECT - - col0 + + CAST ( NULL AS REAL ) * 93 * + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * 6 FROM tab1 cor0
----
156
60
78
query I rowsort
SELECT ALL + col2 * 87 FROM tab0 AS cor0
----
2871
7134
87
query I rowsort
SELECT ALL + cor0.col1 - - ( 76 ) AS col1 FROM tab2 AS cor0
----
107
135
93
query I rowsort
SELECT + col0 * ( - 33 ) + + col1 AS col2 FROM tab2 AS cor0
----
-200
-2515
-2590
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6199
SELECT ALL - tab1.col0 + + CAST( NULL AS SIGNED ) + - col0 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL - tab1.col0 + + CAST ( NULL AS INTEGER ) + - col0 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6200
SELECT ALL + col0 * CAST( col2 AS SIGNED ) * - col0 + - ( tab2.col2 ) AS col1 FROM tab2
----
-1350
-158210
-237196
skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL + col0 * CAST ( col2 AS INTEGER ) * - col0 + - ( tab2.col2 ) AS col1 FROM tab2
----
-1350
-158210
-237196
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6201
SELECT - CAST( 20 AS SIGNED ) col1 FROM tab0, tab2 cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6201
SELECT - CAST ( 20 AS INTEGER ) col1 FROM tab0, tab2 cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
query I rowsort
SELECT col0 + - col2 + + col0 AS col1 FROM tab2
----
-13
120
130
query I rowsort
SELECT 46 + tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c072a3156883c434f8b49cdb0c025c1d
query I rowsort
SELECT + col2 * - 63 * 48 + col0 AS col1 FROM tab1
----
-163293
-172304
-290224
query I rowsort
SELECT col0 - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT col2 * + 19 + - col1 FROM tab1 AS cor0
----
1000
1073
1811
query I rowsort
SELECT ALL - col1 * col0 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
-3068
-697
620
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6209
SELECT - col1 + CAST( + ( - cor0.col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-6209
SELECT - col1 + CAST ( + ( - cor0.col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - 76 * + 34 AS col2 FROM tab2 AS cor0
----
-2584
-2584
-2584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + col2 col2 FROM tab1 AS cor0
----
110
113
152
onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT DISTINCT 38 DIV + 27 col1 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT 38 / + 27 col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + cor0.col0 * - cor0.col1 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT - + 94 DIV + cor0.col0 + - col2 FROM tab1 AS cor0
----
-58
-85
-97
skipif mysql # not compatible
query I rowsort label-6214
SELECT - + 94 / + cor0.col0 + - col2 FROM tab1 AS cor0
----
-58
-85
-97
query I rowsort
SELECT ALL - col0 * + col2 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6216
SELECT ALL + CAST( NULL AS SIGNED ) * cor0.col0 * + col0 - + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL + CAST ( NULL AS INTEGER ) * cor0.col0 * + col0 - + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 12 * col1 AS col1 FROM tab2 AS cor0
----
204
372
708
query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab1 AS cor0
----
-53
query I rowsort
SELECT ALL + + 87 * col2 FROM tab1 AS cor0
----
4698
4959
8352
query I rowsort
SELECT + col1 * 50 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
1581
3009
867
query I rowsort
SELECT col1 - + 44 FROM tab1
----
-18
-31
-34
query I rowsort
SELECT DISTINCT + col1 + col1 * ( col1 * col0 ) FROM tab2
----
22848
271577
6758
onlyif mysql # use DIV operator for integer division
query I rowsort label-6223
SELECT + cor0.col2 DIV - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f7964c9c62ba2640d854c2a70d834dea
skipif mysql # not compatible
query I rowsort label-6223
SELECT + cor0.col2 / - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f7964c9c62ba2640d854c2a70d834dea
query I rowsort
SELECT DISTINCT - tab0.col1 + ( col0 ) FROM tab0
----
-2
-62
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 + - col2 * col2 AS col2 FROM tab0
----
-13931
-1795
61
query I rowsort
SELECT + tab0.col2 * + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 50c4b0a13fc95d13442dcf4b04857ce8
query I rowsort
SELECT DISTINCT col2 + + 87 FROM tab1
----
141
144
183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 + col0 * + col0 col0 FROM tab2
----
42
6006
6162
query I rowsort
SELECT col1 * 31 * 57 + - col2 FROM tab2
----
104227
30001
54750
query I rowsort
SELECT + col2 * col1 * + col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT - - 83 * col1 FROM tab0 cor0
----
7138
7553
8051
query I rowsort
SELECT DISTINCT - - 55 * - col0 + - col2 FROM tab2 cor0
----
-412
-4316
-4383
query I rowsort
SELECT ALL + - col0 * col1 + - ( + 55 ) FROM tab0 AS cor0
----
-2119
-3450
-8154
query I rowsort
SELECT ALL 24 + + col1 FROM tab2 AS cor0
----
41
55
83
query I rowsort
SELECT - - col0 * cor0.col2 * + 74 AS col0 FROM tab1 AS cor0
----
11988
269952
568320
onlyif mysql # use DIV operator for integer division
query I rowsort label-6236
SELECT ALL 83 DIV col0 AS col2 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL 83 / col0 AS col2 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab0, tab1 AS cor0
----
10
query I rowsort
SELECT ALL - + col2 + col2 * - ( - col2 * - col2 + col0 ) FROM tab0 AS cor0
----
-36762
-37
-558748
query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT 25 * col0 AS col1 FROM tab1 cor0
----
1600
2000
75
query I rowsort
SELECT ALL - - col2 * col2 + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - - 58 - col0 FROM tab0 AS cor0
----
-31
23
34
query I rowsort
SELECT DISTINCT - col1 + + col1 * - col2 * - ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT ALL + 86 - - tab1.col0 FROM tab1
----
150
166
89
query I rowsort
SELECT DISTINCT + col0 + col1 - col2 * + col1 AS col1 FROM tab0
----
-2728
-7282
35
query I rowsort
SELECT DISTINCT + - 78 * - col2 AS col0 FROM tab2 AS cor0
----
2028
2106
2964
query I rowsort
SELECT - 87 * - col1 FROM tab1 AS cor0
----
1131
2262
870
query I rowsort
SELECT DISTINCT - - 85 * + col0 AS col0 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT DISTINCT - + col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL - 43 + - col2 FROM tab0 AS cor0
----
-125
-44
-76
query I rowsort
SELECT DISTINCT - ( + tab1.col1 ) * tab1.col1 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + 32 AS col2 FROM tab0
----
32
query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab2, tab2 AS cor0
----
56
query I rowsort
SELECT col0 + + cor0.col0 * + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT ALL - - 2 FROM tab2 AS cor0
----
2
2
2
query I rowsort
SELECT ALL col1 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + cor0.col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT col1 + - col0 * - 6 AS col0 FROM tab0
----
230
307
625
query I rowsort
SELECT + 2 + cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9dc17bb7f15a8022f7e6b373083de097
onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT ALL - col0 DIV + CAST( 9 AS SIGNED ) FROM tab2
----
-8
-8
0
skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL - col0 / + CAST ( 9 AS INTEGER ) FROM tab2
----
-8
-8
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6261
SELECT col2 * CAST( - 31 AS SIGNED ) FROM tab1
----
-1674
-1767
-2976
skipif mysql # not compatible
query I rowsort label-6261
SELECT col2 * CAST ( - 31 AS INTEGER ) FROM tab1
----
-1674
-1767
-2976
query I rowsort
SELECT DISTINCT + + col2 + + col0 * + 52 * col2 FROM tab2 AS cor0
----
105482
156142
9855
query I rowsort
SELECT ALL + col2 * - 88 FROM tab0 AS cor0
----
-2904
-7216
-88
query I rowsort
SELECT + 81 + - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 800bbd386a7585e0c8f3050a4b5589c0
query I rowsort
SELECT ALL ( 74 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - tab1.col2 col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + 58 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL + 24 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT - 68 AS col1 FROM tab2
----
-68
-68
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + cor0.col2 * - cor0.col1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 44163019171abe3a7d88d91197d909f0
query I rowsort
SELECT 58 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT - ( col0 ) + col2 * 50 FROM tab2 AS cor0
----
1222
1343
1821
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6273
SELECT DISTINCT - col0 * - col1 + CAST( col0 AS SIGNED ) * - cor0.col0 + col1 * col1 FROM tab1 cor0
----
-3356
-5191
745
skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT - col0 * - col1 + CAST ( col0 AS INTEGER ) * - cor0.col0 + col1 * col1 FROM tab1 cor0
----
-3356
-5191
745
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2, tab0 cor2
----
3645 values hashing to 5acb69cde71208fe580e10b8b669428e
query I rowsort
SELECT cor0.col0 + 7 AS col0 FROM tab0 AS cor0
----
31
42
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT - + col0 + - ( col0 ) DIV + col2 + col0 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6276
SELECT - + col0 + - ( col0 ) / + col2 + col0 AS col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + col0 * 12 FROM tab1 cor0
----
36
768
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6278
SELECT - cor0.col1 * CAST( col1 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
skipif mysql # not compatible
query I rowsort label-6278
SELECT - cor0.col1 * CAST ( col1 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 13 - - col0 col1 FROM tab1 cor0
----
194
249
341
query I rowsort
SELECT - col0 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( col2 AS REAL ) + col2 * col1 FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT 23 + - cor0.col2 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 8039f0507a197a66ee0fed4751dbd342
query I rowsort
SELECT col0 * + col0 + - col1 + tab0.col0 AS col1 FROM tab0
----
1163
514
7919
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * 68 * + 56 col0 FROM tab1
----
11421
243648
304560
query I rowsort
SELECT col0 + + cor0.col0 * + cor0.col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-6286
SELECT col0 DIV - col1 + ( tab0.col2 + col2 ) FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-6286
SELECT col0 / - col1 + ( tab0.col2 + col2 ) FROM tab0
----
164
2
66
query I rowsort
SELECT col1 - 36 AS col2 FROM tab2 AS cor0
----
-19
-5
23
query I rowsort
SELECT DISTINCT + col0 + + col0 + - ( + 59 ) AS col2 FROM tab0
----
-11
11
119
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 + col2 col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT 19 * - col1 FROM tab0
----
-1634
-1729
-1843
query I rowsort
SELECT DISTINCT col0 + col2 + + col1 * + ( col1 ) FROM tab1
----
221
345
733
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * - col0 col1 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT DISTINCT - 31 + col2 FROM tab2 cor0
----
-4
-5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col0 col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT ALL + col0 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + col0 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 82 * col0 AS col2 FROM tab0 AS cor0
----
1968
2870
7298
onlyif mysql # use DIV operator for integer division
query I rowsort label-6297
SELECT DISTINCT + col2 DIV + col2 col1 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT + col2 / + col2 col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT 58 * - tab2.col1 AS col1 FROM tab2
----
-1798
-3422
-986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * + 68 col1 FROM tab1
----
1632
1632
1632
query I rowsort
SELECT + ( col0 + ( + 57 ) ) * col2 AS col1 FROM tab1
----
13152
3240
6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT ALL + tab0.col1 DIV - col0 + - col2 DIV + 9 col2 FROM tab0
----
-10
-2
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + tab0.col1 / - col0 + - col2 / + 9 col2 FROM tab0
----
-10
-2
-6
query I rowsort
SELECT + col2 + col2 - col1 AS col2 FROM tab1
----
104
179
82
query I rowsort
SELECT ALL + 47 * 49 * + col1 + + col2 + + ( + col1 ) FROM tab2 cor0
----
135962
39206
71451
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) + col2 col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col0 + col0 + col2 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT ALL ( col2 ) + col1 + - 42 FROM tab0 AS cor0
----
131
56
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) * cor0.col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col0 - 73 FROM tab0
----
-38
-49
16
query I rowsort
SELECT 83 + col0 AS col1 FROM tab0 AS cor0
----
107
118
172
query I rowsort
SELECT + ( + 6 ) FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT + ( 61 ) * col2 AS col0 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT ALL + - 76 * col2 * col1 FROM tab2 AS cor0
----
-116584
-49096
-63612
onlyif mysql # use DIV operator for integer division
query I rowsort label-6313
SELECT DISTINCT - + CAST( - 18 AS SIGNED ) + col1 DIV ( + col2 ) FROM tab1 AS cor0
----
18
skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT - + CAST ( - 18 AS INTEGER ) + col1 / ( + col2 ) FROM tab1 AS cor0
----
18
query I rowsort
SELECT + col1 - col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - - 78 + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-13
-19
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * col1 - - col1 col2 FROM tab2 AS cor0
----
1411
2573
4897
query I rowsort
SELECT + col0 * - 82 + + col1 AS col1 FROM tab2
----
-543
-6337
-6461
query I rowsort
SELECT + col0 * + cor0.col2 * - cor0.col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6319
SELECT DISTINCT ( + ( col1 ) ) + - CAST( + col0 AS SIGNED ) * cor0.col1 * ( + col2 + col1 * col2 ) FROM tab2 AS cor0
----
-187457
-7179061
-918595
skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT ( + ( col1 ) ) + - CAST ( + col0 AS INTEGER ) * cor0.col1 * ( + col2 + col1 * col2 ) FROM tab2 AS cor0
----
-187457
-7179061
-918595
onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT col1 + tab1.col2 DIV - tab1.col0 FROM tab1
----
10
12
8
skipif mysql # not compatible
query I rowsort label-6320
SELECT col1 + tab1.col2 / - tab1.col0 FROM tab1
----
10
12
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT ALL - cor0.col1 DIV - 91 AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL - cor0.col1 / - 91 AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT DISTINCT + cor0.col1 DIV - col1 + ( cor0.col2 ) FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT + cor0.col1 / - col1 + ( cor0.col2 ) FROM tab1 AS cor0
----
53
56
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6323
SELECT + cor0.col0 + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6323
SELECT + cor0.col0 + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col2 + col2 col1 FROM tab2 AS cor0
----
-1406
-650
-702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6325
SELECT col1 * col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6325
SELECT col1 * col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col2 * col0 * 96 - cor0.col1 * col2 AS col0 FROM tab2 cor0
----
-18981
-196222
-288838
query I rowsort
SELECT - + col2 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6328
SELECT DISTINCT + + 90 * - cor0.col2 + CAST( NULL AS SIGNED ) * col0 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT + + 90 * - cor0.col2 + CAST ( NULL AS INTEGER ) * col0 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - 64 + col0 FROM tab0 AS cor0
----
-29
-40
25
query I rowsort
SELECT ALL + col2 * col2 - + col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - col1 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT 2 + + col1 FROM tab1 AS cor0
----
12
15
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT DISTINCT col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT col0 / - col2 AS col0 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT ALL + tab1.col2 + tab1.col0 * col1 - ( 20 ) FROM tab1
----
1116
112
677
query I rowsort
SELECT ALL - col2 - tab1.col1 * - col0 AS col1 FROM tab1
----
24
583
944
query I rowsort
SELECT - + col1 + cor0.col1 * 4 AS col0 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT col1 * cor0.col0 - - cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL - 18 * col1 AS col2 FROM tab2 AS cor0
----
-1062
-306
-558
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * - col2 + + ( col2 ) * + col0 col1 FROM tab1 AS cor0
----
15360
324
7296
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-6342
SELECT + cor0.col0 DIV - 57 + col0 FROM tab1 cor0
----
3
63
79
skipif mysql # not compatible
query I rowsort label-6342
SELECT + cor0.col0 / - 57 + col0 FROM tab1 cor0
----
3
63
79
query I rowsort
SELECT ALL col0 + ( col2 * - col1 ) FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT + cor0.col2 * 10 AS col1 FROM tab0 AS cor0
----
10
330
820
query I rowsort
SELECT DISTINCT + + col1 + ( 47 ) * col0 * + col2 AS col1 FROM tab1 AS cor0
----
171466
360973
7640
onlyif mysql # use DIV operator for integer division
query I rowsort label-6346
SELECT + col0 + cor0.col1 DIV 53 AS col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-6346
SELECT + col0 + cor0.col1 / 53 AS col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT col0 + + 24 AS col2 FROM tab0 cor0
----
113
48
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6348
SELECT DISTINCT cor0.col1 + + 98 + 72 DIV + col1 AS col2 FROM tab1 AS cor0
----
115
116
126
skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT cor0.col1 + + 98 + 72 / + col1 AS col2 FROM tab1 AS cor0
----
115
116
126
query I rowsort
SELECT col1 * - 66 + col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1200
2589
8358
query I rowsort
SELECT DISTINCT - col1 * 1 + col0 * - col2 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6351
SELECT ALL + + col0 * CAST( - cor0.col0 AS SIGNED ) + - col2 * 29 AS col1 FROM tab2 AS cor0
----
-6838
-7343
-832
skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + + col0 * CAST ( - cor0.col0 AS INTEGER ) + - col2 * 29 AS col1 FROM tab2 AS cor0
----
-6838
-7343
-832
query I rowsort
SELECT DISTINCT - + 16 AS col2 FROM tab0 AS cor0
----
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-6353
SELECT ALL + + 64 * - col0 DIV + col0 FROM tab1 AS cor0
----
-64
-64
-64
skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL + + 64 * - col0 / + col0 FROM tab1 AS cor0
----
-64
-64
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6354
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - col2 * col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - col2 * col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + + cor0.col0 + + col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-6356
SELECT ALL ( ( - col2 ) ) DIV + col2 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL ( ( - col2 ) ) / + col2 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT + col2 + - col1 * ( col0 ) AS col1 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL col1 * ( - ( + col2 ) ) FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - 16 col2 FROM tab0 cor0
----
19
73
8
query I rowsort
SELECT DISTINCT - col1 * 31 * col0 FROM tab0
----
-105245
-251069
-63984
query I rowsort
SELECT - col0 * ( cor0.col1 ) * col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT - 85 + + col0 AS col2 FROM tab0 cor0
----
-50
-61
4
query I rowsort
SELECT + col2 * 12 AS col2 FROM tab0 AS cor0
----
12
396
984
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - col0 AS REAL ) + col0 * 85 col2 FROM tab0 AS cor0
----
2016
2940
7476
query I rowsort
SELECT - col1 * 59 FROM tab0 AS cor0
----
-5074
-5369
-5723
query I rowsort
SELECT DISTINCT - 68 AS col0 FROM tab2 cor0
----
-68
query I rowsort
SELECT + - col0 * col2 * - col1 FROM tab0 AS cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col0 col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + ( - col1 ) + - 28 + + col0 FROM tab0 AS cor0
----
-30
-90
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6370
SELECT - 45 + + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6370
SELECT - 45 + + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 76 * col0 AS col0 FROM tab2 AS cor0
----
532
5928
6004
query I rowsort
SELECT DISTINCT + 43 * cor0.col2 FROM tab2 AS cor0
----
1118
1161
1634
query I rowsort
SELECT - - 25 * - col1 + col0 + + 95 * + col2 FROM tab0 AS cor0
----
-2295
1009
5604
query I rowsort
SELECT ALL - 99 AS col0 FROM tab0 AS cor0
----
-99
-99
-99
query I rowsort
SELECT - 52 * - col0 - + ( + col1 ) * + col1 FROM tab0 AS cor0
----
-3653
-6148
-7589
query I rowsort
SELECT 35 - col2 FROM tab2 AS cor0
----
-3
8
9
query I rowsort
SELECT DISTINCT - 34 * col1 AS col0 FROM tab1 AS cor0
----
-340
-442
-884
query I rowsort
SELECT + 72 * - col2 AS col1 FROM tab1 AS cor0
----
-3888
-4104
-6912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 + col1 col2 FROM tab2 AS cor0
----
177
51
93
query I rowsort
SELECT + col2 + + 14 - + col2 * col1 FROM tab1 AS cor0
----
-1138
-1336
-499
query I rowsort
SELECT - - col0 + ( - col1 ) - col2 FROM tab0 AS cor0
----
-63
-84
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-6382
SELECT col0 + ( - col0 ) DIV - col1 + - ( 89 + + col1 ) FROM tab0 cor0
----
-151
-151
-91
skipif mysql # not compatible
query I rowsort label-6382
SELECT col0 + ( - col0 ) / - col1 + - ( 89 + + col1 ) FROM tab0 cor0
----
-151
-151
-91
query I rowsort
SELECT + + cor0.col2 + - 49 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
-1220
-433
-541
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 - - 91 * - col1 * - col2 col2 FROM tab1 AS cor0
----
113760
127872
51984
query I rowsort
SELECT ALL tab1.col1 * - 0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL col2 * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT cor0.col2 * col2 + 88 AS col0 FROM tab0 cor0
----
1177
6812
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6388
SELECT col2 * col0 DIV + 51 FROM tab0
----
0
143
15
skipif mysql # not compatible
query I rowsort label-6388
SELECT col2 * col0 / + 51 FROM tab0
----
0
143
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 98 col2 FROM tab0
----
8428
8918
9506
query I rowsort
SELECT - cor0.col2 + + ( + col0 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - col0 * col1 * col1 - - col2 AS col0 FROM tab1
----
-13424
-1974
-6343
query I rowsort
SELECT + - col1 + 68 * 82 FROM tab2 AS cor0
----
5517
5545
5559
query I rowsort
SELECT - col2 + ( 41 ) AS col2 FROM tab2 cor0
----
14
15
3
query I rowsort
SELECT DISTINCT 10 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
10
query I rowsort
SELECT ALL 61 FROM tab0, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 26 ) col1 FROM tab2
----
26
26
26
query I rowsort
SELECT ALL 71 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT 42 AS col2 FROM tab1
----
42
query I rowsort
SELECT ALL + ( + col1 + + 48 ) FROM tab2
----
107
65
79
query I rowsort
SELECT ALL 82 FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab2, tab0, tab1 AS cor0
----
67
query I rowsort
SELECT 4 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT ALL ( 97 ) - col2 FROM tab0
----
15
64
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6405
SELECT ALL - - col1 DIV - col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL - - col1 / - col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - + col1 + + col2 * - col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL + - col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + 27 * col2 + col0 * col2 FROM tab0 cor0
----
1683
62
9512
query I rowsort
SELECT col1 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL + ( ( col2 ) ) * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * col1 + col2 AS col2 FROM tab0 AS cor0
----
2073
3361
8092
query I rowsort
SELECT DISTINCT 79 + col0 FROM tab2 AS cor0
----
157
158
86
query I rowsort
SELECT - 65 + + col1 FROM tab1 AS cor0
----
-39
-52
-55
query I rowsort
SELECT col2 * - col2 - - col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT - tab0.col0 + - tab0.col2 AS col2 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - 73 * + col2 AS col0 FROM tab0 AS cor0
----
-2409
-5986
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-6417
SELECT ALL 40 DIV - col0 FROM tab2 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL 40 / - col0 FROM tab2 AS cor0
----
-5
0
0
query I rowsort
SELECT 35 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT 49 * + col0 * col0 FROM tab2
----
2401
298116
305809
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6420
SELECT ALL cor0.col0 * CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL cor0.col0 * CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - 94 * - col2 AS col2 FROM tab2 AS cor0
----
135736
63544
68526
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6422
SELECT - col1 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6422
SELECT - col1 / CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * - 71 + 58 FROM tab1 AS cor0
----
-3776
-3989
-6758
query I rowsort
SELECT 75 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
onlyif mysql # use DIV operator for integer division
query I rowsort label-6425
SELECT + 35 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6425
SELECT + 35 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col0 + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - tab1.col0 + col2 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL + - 36 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to aea3eb70e9270b660d4c81f39b11409b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6429
SELECT ALL - col0 DIV ( 77 ) FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL - col0 / ( 77 ) FROM tab1
----
-1
0
0
query I rowsort
SELECT ALL + - col2 * - col1 + col1 * 80 AS col0 FROM tab0 AS cor0
----
14742
7857
9718
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 + col2 * col1 AS col2 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT 67 * 46 FROM tab1 AS cor0
----
3082
3082
3082
query I rowsort
SELECT DISTINCT + + col2 * + 78 AS col0 FROM tab1 cor0
----
4212
4446
7488
query I rowsort
SELECT ALL 16 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6435
SELECT + - CAST( - col0 AS SIGNED ) * col2 AS col2 FROM tab0 cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-6435
SELECT + - CAST ( - col0 AS INTEGER ) * col2 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - tab1.col2 + 60 FROM tab1
----
-36
3
6
query I rowsort
SELECT DISTINCT tab1.col1 * - tab1.col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + 52 FROM tab0
----
52
query I rowsort
SELECT 25 * col0 + + tab2.col0 * + col1 FROM tab2
----
3318
392
6552
query I rowsort
SELECT + + 61 AS col0 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT + 39 DIV - col0 + tab2.col2 FROM tab2
----
22
26
38
skipif mysql # not compatible
query I rowsort label-6441
SELECT + 39 / - col0 + tab2.col2 FROM tab2
----
22
26
38
query I rowsort
SELECT ALL + + 78 * 63 FROM tab2 AS cor0
----
4914
4914
4914
query I rowsort
SELECT DISTINCT ( + col1 ) * col1 + + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 + col2 * - ( cor0.col0 ) * col1 AS col2 FROM tab1 AS cor0
----
-100880
-37120
-4290
query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6446
SELECT - CAST( + 32 AS SIGNED ) AS col0 FROM tab1
----
-32
-32
-32
skipif mysql # not compatible
query I rowsort label-6446
SELECT - CAST ( + 32 AS INTEGER ) AS col0 FROM tab1
----
-32
-32
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) * - col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab2
----
42
skipif mysql # not compatible
query I rowsort
SELECT + col1 + col1 - CAST ( col2 AS REAL ) FROM tab0
----
100
139
193
query I rowsort
SELECT DISTINCT col0 + tab1.col2 * - col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT col1 + - col0 * 39 AS col1 FROM tab0
----
-1268
-3380
-850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + 77 col0 FROM tab1
----
2993
3326
9293
query I rowsort
SELECT + - col2 + 24 AS col0 FROM tab0 AS cor0
----
-58
-9
23
query I rowsort
SELECT - col2 * 55 + 98 FROM tab0 AS cor0
----
-1717
-4412
43
query I rowsort
SELECT col1 + tab0.col0 * - 38 AS col2 FROM tab0
----
-1233
-3291
-826
query I rowsort
SELECT - ( col1 + + col2 * - 9 ) FROM tab2
----
175
212
325
query I rowsort
SELECT DISTINCT - col1 * col0 + 76 FROM tab1
----
-2
-564
-964
onlyif mysql # use DIV operator for integer division
query I rowsort label-6458
SELECT DISTINCT - col2 DIV col0 + - col0 FROM tab2
----
-10
-78
-79
skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT - col2 / col0 + - col0 FROM tab2
----
-10
-78
-79
query I rowsort
SELECT ALL + 82 + col0 AS col0 FROM tab0
----
106
117
171
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + col1 col1 FROM tab2
----
109
137
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + tab0.col0 col1 FROM tab0, tab1, tab0 cor0
----
9 values hashing to c345857bb273aa2639457b7deb30fe90
query I rowsort
SELECT ALL - col2 * - 28 + + 30 + - cor0.col2 FROM tab0 AS cor0
----
2244
57
921
query I rowsort
SELECT DISTINCT col1 * - ( - cor0.col0 ) - - col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT col0 * - col1 * + col1 + col1 FROM tab0 AS cor0
----
-177418
-329218
-736918
query I rowsort
SELECT DISTINCT col1 * - 60 FROM tab0 AS cor0
----
-5160
-5460
-5820
query I rowsort
SELECT DISTINCT - col2 * col2 * - col1 FROM tab0 cor0
----
611884
93654
97
query I rowsort
SELECT + col0 * cor0.col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - col1 * - 29 AS col0 FROM tab2 AS cor0
----
1711
493
899
query I rowsort
SELECT ALL - - col1 + 12 FROM tab0 AS cor0
----
103
109
98
query I rowsort
SELECT DISTINCT col2 * col0 + ( + cor0.col1 ) - col2 FROM tab1 AS cor0
----
134
3601
7597
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6471
SELECT + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6471
SELECT + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 20 col0 FROM tab2
----
-140
-1560
-1580
onlyif mysql # use DIV operator for integer division
query I rowsort label-6473
SELECT 30 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6473
SELECT 30 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - ( - ( - col2 ) ) FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 38 ) col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT DISTINCT col2 * + col0 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL + col0 + - col1 + + 72 AS col0 FROM tab2 cor0
----
134
48
91
query I rowsort
SELECT ALL + col2 * + cor0.col2 + 55 FROM tab0 AS cor0
----
1144
56
6779
query I rowsort
SELECT - cor0.col1 + + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col2 + - col2 col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT col2 + - cor0.col2 * - col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - - col0 * - 31 FROM tab2 AS cor0
----
-217
-2418
-2449
query I rowsort
SELECT 63 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT DISTINCT col0 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col0 * col2 * + col2 FROM tab2 cor0
----
114076
5103
52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6486
SELECT ALL col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - ( col2 ) * col2 col1 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT DISTINCT - col1 * - 74 + + 91 AS col1 FROM tab0 AS cor0
----
6455
6825
7269
query I rowsort
SELECT + col0 * ( col0 + + col0 ) * - col2 FROM tab1 AS cor0
----
-1228800
-466944
-972
query I rowsort
SELECT DISTINCT - + col0 + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + col0 + - cor0.col1 * - 41 FROM tab2 cor0
----
1278
2497
776
query I rowsort
SELECT + - 27 * 9 AS col1 FROM tab0 cor0
----
-243
-243
-243
query I rowsort
SELECT + 82 * + col1 * - col0 FROM tab0 cor0
----
-169248
-278390
-664118
query I rowsort
SELECT - ( - col2 ) - - col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + + ( 52 ) * col1 - cor0.col0 * - col1 FROM tab2 AS cor0
----
1829
2227
7670
query I rowsort
SELECT - + col0 * col2 + col0 * - 55 FROM tab1 AS cor0
----
-12080
-327
-7168
query I rowsort
SELECT DISTINCT + ( 77 ) FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
77
query I rowsort
SELECT ALL - ( + 63 ) * col1 FROM tab1 AS cor0
----
-1638
-630
-819
query I rowsort
SELECT ALL cor0.col0 + - cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 363494b33b4d1826f58e179e26d91c4a
query I rowsort
SELECT 4 FROM tab2, tab0 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6502
SELECT CAST( ( col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6502
SELECT CAST ( ( col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + - 95 * col0 FROM tab1 AS cor0
----
-285
-6080
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT - col1 DIV - col1 AS col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6504
SELECT - col1 / - col1 AS col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT - 72 * 29 FROM tab1 AS cor0
----
-2088
-2088
-2088
query I rowsort
SELECT 50 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1300
1350
1900
query I rowsort
SELECT ALL 87 * - col0 FROM tab2 AS cor0
----
-609
-6786
-6873
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0, tab2 AS cor1
----
3645 values hashing to 773bb916e463ebc075d701108532badb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col1 FROM tab2
----
1
1
1
query I rowsort
SELECT 63 * col1 AS col1 FROM tab0
----
5418
5733
6111
query I rowsort
SELECT + col2 * - tab0.col2 AS col1 FROM tab0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 1 * + tab2.col0 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - - col2 * 66 FROM tab2 AS cor0
----
1716
1782
2508
query I rowsort
SELECT + + cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + + ( col2 ) col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT - - col2 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - + 50 * col1 FROM tab2 AS cor0
----
-1550
-2950
-850
query I rowsort
SELECT 72 + col2 AS col0 FROM tab2 cor0
----
110
98
99
query I rowsort
SELECT - ( col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - - col1 + cor0.col2 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col1 * 78 + + col2 * + col2 - - 59 * + col0 FROM tab0 AS cor0
----
-4203
-5500
4877
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6522
SELECT DISTINCT col0 + 26 * - col0 - - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT col0 + 26 * - col0 - - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + ( 62 ) AS col1 FROM tab1, tab2 AS cor0
----
62
query I rowsort
SELECT 65 * 82 FROM tab2, tab2 AS cor0
----
9 values hashing to acd486da20bf89795c7900e5bf855d23
query I rowsort
SELECT - 46 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - cor0.col2 col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6528
SELECT ALL + + col0 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL + + col0 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + + 43 FROM tab1
----
-21
-37
40
query I rowsort
SELECT - 33 * col2 + - col2 * col2 * - col1 AS col1 FROM tab0
----
609178
64
92565
query I rowsort
SELECT + 42 + - tab2.col0 AS col2 FROM tab2
----
-36
-37
35
query I rowsort
SELECT ALL - ( col1 ) + col0 * + col0 AS col1 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT + 50 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 6932c991110d256d3f92f3e9538f8040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 + col0 col0 FROM tab1 cor0
----
132
148
71
query I rowsort
SELECT + + 22 + 48 AS col2 FROM tab1 AS cor0
----
70
70
70
query I rowsort
SELECT ALL 49 + + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1089
127
689
query I rowsort
SELECT - col1 * col0 + + col2 * ( 98 ) AS col2 FROM tab1 AS cor0
----
4946
5214
8368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 * + col0 col0 FROM tab0 AS cor0
----
1560
2275
5785
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col0 * + ( col2 ) col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + col0 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6541
SELECT ALL - 74 * - col0 + + CAST( NULL AS SIGNED ) * 18 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-6541
SELECT ALL - 74 * - col0 + + CAST ( NULL AS INTEGER ) * 18 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - 21 ) * col2 FROM tab2
----
546
567
798
query I rowsort
SELECT ( - tab1.col0 + + col2 ) * - 96 AS col0 FROM tab1
----
-1536
-4896
672
query I rowsort
SELECT ALL - col2 * + col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + + col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col0 * col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL 21 AS col2 FROM tab1 cor0
----
21
21
21
query I rowsort
SELECT DISTINCT - - cor0.col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + - 83 * + col1 FROM tab2 AS cor0
----
-1411
-2573
-4897
query I rowsort
SELECT + 21 + col1 FROM tab0 AS cor0
----
107
112
118
query I rowsort
SELECT DISTINCT + col0 * col0 + col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6552
SELECT + ( cor0.col1 ) + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-6552
SELECT + ( cor0.col1 ) + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT cor0.col2 DIV tab0.col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 46dc82396a3ef8c6a2f1d1e7bccce5f0
skipif mysql # not compatible
query I rowsort label-6553
SELECT cor0.col2 / tab0.col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 46dc82396a3ef8c6a2f1d1e7bccce5f0
query I rowsort
SELECT 21 * col0 FROM tab2
----
147
1638
1659
query I rowsort
SELECT + col0 * + col1 * col2 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6556
SELECT DISTINCT ( - col1 ) DIV + col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT ( - col1 ) / + col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL ( + col1 ) + + cor0.col2 * - ( col2 ) * col0 FROM tab2 AS cor0
----
-114059
-5072
-52669
onlyif mysql # use DIV operator for integer division
query I rowsort label-6558
SELECT DISTINCT - 8 + col2 DIV col0 FROM tab1 cor0
----
-7
-8
10
skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT - 8 + col2 / col0 FROM tab1 cor0
----
-7
-8
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
3
64
80
query I rowsort
SELECT + col2 + col1 - + 24 FROM tab0
----
149
74
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-6561
SELECT DISTINCT + - col2 DIV + cor0.col2 - + col1 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT + - col2 / + cor0.col2 - + col1 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT - col1 * - ( + col0 ) * 31 AS col0 FROM tab0 cor0
----
105245
251069
63984
query I rowsort
SELECT DISTINCT - ( - col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + ( + col0 ) + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 + + col2 col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT tab1.col2 - + 15 AS col1 FROM tab1
----
39
42
81
query I rowsort
SELECT tab2.col2 * ( col1 + col1 ) * + col1 FROM tab2
----
181012
21964
51894
query I rowsort
SELECT col0 + - ( + tab2.col0 ) AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - col1 + - col0 + col2 FROM tab0
----
-131
-77
-98
query I rowsort
SELECT DISTINCT col2 - 64 FROM tab2
----
-26
-37
-38
query I rowsort
SELECT ALL tab0.col0 - ( col0 ) FROM tab0
----
0
0
0
query I rowsort
SELECT col2 + col1 * 23 + col0 FROM tab0
----
2035
2264
2267
query I rowsort
SELECT DISTINCT + cor1.col2 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT - 28 * + col0 * col1 AS col0 FROM tab1 AS cor0
----
-17920
-2184
-29120
query I rowsort
SELECT ALL col0 + + 2 AS col0 FROM tab0 AS cor0
----
26
37
91
query I rowsort
SELECT ALL - 40 * + col2 AS col2 FROM tab0 AS cor0
----
-1320
-3280
-40
query I rowsort
SELECT ALL 0 * + col0 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col2 * 70 AS col0 FROM tab1 AS cor0
----
3780
3990
6720
query I rowsort
SELECT DISTINCT - col1 + + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT + + ( - 32 ) + col2 FROM tab1 AS cor0
----
22
25
64
query I rowsort
SELECT ALL + - 24 - 40 FROM tab1 AS cor0
----
-64
-64
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT - + ( - col2 ) DIV - col0 + col2 AS col1 FROM tab0 cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-6582
SELECT - + ( - col2 ) / - col0 + col2 AS col1 FROM tab0 cor0
----
1
32
82
query I rowsort
SELECT - + cor0.col0 * - 47 FROM tab1 AS cor0
----
141
3008
3760
query I rowsort
SELECT DISTINCT - 22 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-22
query I rowsort
SELECT - cor0.col0 + 96 AS col1 FROM tab2 cor0
----
17
18
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6586
SELECT - col0 + ( + ( col1 ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6586
SELECT - col0 + ( + ( col1 ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6587
SELECT - cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6587
SELECT - cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col2 * - ( - col0 ) + + col1 * ( tab1.col2 ) AS col0 FROM tab1
----
-3078
-6432
1242
query I rowsort
SELECT + col0 * - 92 + col2 + 55 AS col2 FROM tab0 AS cor0
----
-2120
-3164
-8051
query I rowsort
SELECT col0 + + ( + col1 ) AS col0 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6591
SELECT + 6 DIV ( + col0 + cor0.col2 * + col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6591
SELECT + 6 / ( + col0 + cor0.col2 * + col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + col2 * - col1 AS col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT col0 * 73 + col2 FROM tab0
----
1785
2556
6579
onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT ALL + col2 DIV col2 col0 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + col2 / col2 col0 FROM tab0
----
1
1
1
query I rowsort
SELECT 32 FROM tab1, tab0 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6596
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6596
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - + col0 + - ( col2 + col0 ) * ( 21 ) FROM tab2 AS cor0
----
-2262
-2536
-721
query I rowsort
SELECT cor0.col2 * - col0 + - 37 AS col2 FROM tab0 AS cor0
----
-72
-7335
-829
query I rowsort
SELECT col2 * + 93 AS col0 FROM tab0
----
3069
7626
93
query I rowsort
SELECT - col1 * tab2.col1 + - col0 * col1 FROM tab2
----
-1178
-1632
-8083
query I rowsort
SELECT DISTINCT - tab1.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-54
-57
-96
query I rowsort
SELECT ALL 47 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 + col0 * + col2 col0 FROM tab1 AS cor0
----
111
3655
7664
query I rowsort
SELECT DISTINCT - col2 * + col0 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL + - col1 + + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1427
617
698
onlyif mysql # use DIV operator for integer division
query I rowsort label-6606
SELECT DISTINCT + 6 DIV col0 col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT + 6 / col0 col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col1 * + col1 + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT DISTINCT col1 * cor0.col0 + - ( - col1 ) * col1 AS col1 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT DISTINCT - 13 AS col0 FROM tab1
----
-13
query I rowsort
SELECT - 61 * + col1 AS col0 FROM tab0
----
-5246
-5551
-5917
query I rowsort
SELECT + ( tab1.col2 ) AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT 2 * col2 FROM tab0
----
164
2
66
query I rowsort
SELECT - - col1 + cor0.col0 * + 80 FROM tab2 AS cor0
----
591
6299
6337
query I rowsort
SELECT DISTINCT ( + col1 + 44 ) FROM tab2
----
103
61
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6615
SELECT ( col2 ) - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6615
SELECT ( col2 ) - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * ( + 23 ) + col1 AS col1 FROM tab1
----
240
312
624
query I rowsort
SELECT + - col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + cor0.col2 * + 74 + col2 FROM tab1 AS cor0
----
4050
4275
7200
query I rowsort
SELECT DISTINCT + cor0.col1 - - 7 AS col1 FROM tab1 cor0
----
17
20
33
query I rowsort
SELECT DISTINCT + col2 - col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL + - col0 * + col1 * col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-6622
SELECT - col1 + col1 DIV - col1 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-6622
SELECT - col1 + col1 / - col1 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT DISTINCT col2 + + col2 AS col2 FROM tab0 cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6624
SELECT DISTINCT - - col1 * - CAST( NULL AS SIGNED ) - col0 / + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT - - col1 * - CAST ( NULL AS INTEGER ) - col0 / + col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 90 col2 FROM tab0 AS cor0
----
176
181
187
query I rowsort
SELECT + - col1 + + ( + 42 ) * - col2 AS col2 FROM tab1 cor0
----
-2294
-2404
-4045
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6627
SELECT DISTINCT - + col2 * CAST( - 20 + col0 * - col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
1245
19668
651162
skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT - + col2 * CAST ( - 20 + col0 * - col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
1245
19668
651162
query I rowsort
SELECT + cor0.col2 + ( - col1 ) * 82 FROM tab2 cor0
----
-1356
-2515
-4812
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT + col1 * + col1 - cor0.col1 * col0 DIV + cor0.col1 col1 FROM tab2 AS cor0
----
210
3403
954
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6630
SELECT + col1 * + col1 - cor0.col1 * col0 / + cor0.col1 col1 FROM tab2 AS cor0
----
210
3403
954
onlyif mysql # use DIV operator for integer division
query I rowsort label-6631
SELECT + - col0 DIV + 76 - cor0.col0 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6631
SELECT + - col0 / + 76 - cor0.col0 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT - + col0 * - col1 + - ( col2 + col1 * - col0 ) FROM tab0 AS cor0
----
16116
4095
6789
query I rowsort
SELECT + 55 + col2 AS col2 FROM tab2 AS cor0
----
81
82
93
query I rowsort
SELECT - 19 * col2 AS col0 FROM tab0
----
-1558
-19
-627
query I rowsort
SELECT DISTINCT 40 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1383
257
4642
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
query I rowsort
SELECT - 96 * + col0 FROM tab0
----
-2304
-3360
-8544
query I rowsort
SELECT DISTINCT - - col2 * col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + col1 * + 71 AS col2 FROM tab1 AS cor0
----
1846
710
923
query I rowsort
SELECT + col2 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6641
SELECT DISTINCT + col1 DIV 14 + col2 AS col0 FROM tab1 AS cor0
----
55
57
96
skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT + col1 / 14 + col2 AS col0 FROM tab1 AS cor0
----
55
57
96
query I rowsort
SELECT DISTINCT + - col2 * col0 + + col2 AS col0 FROM tab2 cor0
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6643
SELECT + CAST( 77 AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
131
134
173
skipif mysql # not compatible
query I rowsort label-6643
SELECT + CAST ( 77 AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
131
134
173
query I rowsort
SELECT ALL + col2 * - col1 + col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-6645
SELECT ALL - cor0.col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL - cor0.col0 / + col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT ( 24 ) * - col0 FROM tab1 AS cor0
----
-1536
-1920
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6647
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) * tab2.col1 + col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) * tab2.col1 + col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT col1 + + 25 AS col1 FROM tab1
----
35
38
51
query I rowsort
SELECT DISTINCT col0 + 83 * - 14 FROM tab0
----
-1073
-1127
-1138
query I rowsort
SELECT col0 * - 19 + + tab2.col2 FROM tab2
----
-106
-1456
-1463
query I rowsort
SELECT col1 * - col2 * - col2 + + col0 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT col1 - - ( - col0 ) FROM tab1
----
-54
-67
23
query I rowsort
SELECT col0 + col1 * col1 AS col0 FROM tab1
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-6654
SELECT ALL + - col2 DIV + 21 + - col1 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL + - col2 / + 21 + - col1 FROM tab2 AS cor0
----
-18
-32
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6655
SELECT CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6655
SELECT CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + - col2 - ( 3 * - col2 ) FROM tab0
----
1
33
82
query I rowsort
SELECT 64 * tab2.col0 AS col1 FROM tab2
----
448
4992
5056
query I rowsort
SELECT col0 * col2 - - cor0.col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6659
SELECT ALL + tab2.col1 + CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL + tab2.col1 + CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6660
SELECT DISTINCT col0 * 22 DIV cor0.col2 + col1 * 74 FROM tab1 AS cor0
----
1925
764
980
skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT col0 * 22 / cor0.col2 + col1 * 74 FROM tab1 AS cor0
----
1925
764
980
query I rowsort
SELECT - + cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6662
SELECT DISTINCT + + cor0.col0 * + CAST( NULL AS SIGNED ) + 44 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT + + cor0.col0 * + CAST ( NULL AS INTEGER ) + 44 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col2 * 16 FROM tab1 AS cor0
----
-1536
-864
-912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6664
SELECT col1 * CAST( NULL AS SIGNED ) + ( col1 ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6664
SELECT col1 * CAST ( NULL AS INTEGER ) + ( col1 ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + + col1 + + 23 AS col1 FROM tab1 AS cor0
----
116
52
97
query I rowsort
SELECT ALL col1 + - col2 * + col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + + col2 - + 96 * + 60 AS col2 FROM tab2 cor0
----
-5722
-5733
-5734
query I rowsort
SELECT DISTINCT - + col1 * - ( col0 ) + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT col1 * col2 * + col0 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT 37 FROM tab2, tab0 AS cor0, tab1 cor1, tab0 cor2
----
81 values hashing to b8def841e97863779a391f3a05d3eb92
query I rowsort
SELECT DISTINCT + col2 * + 56 FROM tab1 AS cor0
----
3024
3192
5376
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col2 FROM tab1
----
37
37
37
query I rowsort
SELECT ALL + - ( - col1 ) * 24 - col2 AS col0 FROM tab0 AS cor0
----
2031
2102
2327
onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT ALL - - col2 + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - - col2 + col2 / + col0 AS col2 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT + 3 + cor0.col1 * col0 FROM tab2 cor0
----
1346
220
4605
query I rowsort
SELECT DISTINCT - 55 + col1 * ( col2 * + col1 ) AS col0 FROM tab1 AS cor0
----
16169
36449
5645
query I rowsort
SELECT - + col2 + - col0 * + col1 * - col0 AS col2 FROM tab0 AS cor0
----
118824
49503
720729
query I rowsort
SELECT ALL - - col2 * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 90 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1253
-127
-4512
query I rowsort
SELECT + col1 + cor0.col1 * - cor0.col2 * col2 FROM tab0 AS cor0
----
-611793
-93568
0
query I rowsort
SELECT ALL - cor0.col0 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT - col0 * col1 * - col1 + col1 FROM tab0 AS cor0
----
177590
329412
737100
query I rowsort
SELECT ALL + - col2 * - ( col0 ) AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col1 * - 21 FROM tab0 cor0
----
-1806
-1911
-2037
onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT + col2 DIV + ( - col1 ) + + col1 col1 FROM tab2 cor0
----
15
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6685
SELECT + col2 / + ( - col1 ) + + col1 col1 FROM tab2 cor0
----
15
31
59
query I rowsort
SELECT - col1 * col0 + 18 * cor0.col2 * col1 FROM tab1 AS cor0
----
21424
25194
9620
query I rowsort
SELECT 6 + col0 * + col2 AS col0 FROM tab0
----
41
7304
798
query I rowsort
SELECT + col1 * col1 + + ( + col2 ) FROM tab0
----
7429
8363
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT DISTINCT + 18 DIV + col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT + 18 / + col0 FROM tab0
----
0
query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT 54 * col2 FROM tab1
----
2916
3078
5184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6692
SELECT DISTINCT + tab2.col0 * CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT + tab2.col0 * CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
NULL
query I rowsort
SELECT + + 98 + col0 * + ( + col1 ) AS col2 FROM tab2 cor0
----
1441
315
4700
query I rowsort
SELECT ALL cor1.col1 * 99 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to bcd60d28479500be67fb7f800619901d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 52 col1 FROM tab0 AS cor0
----
-1248
-1820
-4628
query I rowsort
SELECT ALL - tab1.col0 * col0 * col2 FROM tab1
----
-233472
-486
-614400
query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + - col2 IN ( - col2 )
----
query I rowsort
SELECT DISTINCT col1 * col1 * col0 AS col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT col1 + + tab1.col1 * col1 + tab1.col1 FROM tab1
----
120
195
728
query I rowsort
SELECT ALL col0 * - col1 * + col0 AS col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT col2 * + tab2.col2 FROM tab2 WHERE NULL < ( NULL )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> ( + col2 - - col2 * col2 )
----
query I rowsort
SELECT DISTINCT + col1 * col0 * tab2.col0 FROM tab2
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 * + col0 col0 FROM tab1
----
262144
27
512000
query I rowsort
SELECT ALL + tab2.col2 * col2 * col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT + col1 - - col2 * col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT DISTINCT col1 + col1 * col0 + col1 FROM tab1
----
1066
130
660
query I rowsort
SELECT + tab0.col0 * col2 * - col0 AS col2 FROM tab0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - col2 * - col2 col2 FROM tab1
----
16896
3078
6897
query I rowsort
SELECT - col0 * col2 * tab0.col2 FROM tab0
----
-26136
-35
-598436
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + col1 IN ( col0 + + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( col2 / col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 IN ( + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + col1 - + tab0.col1 FROM tab0
----
0
0
0
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col2 * col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * + col1 col0 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT + col2 * col1 + + col2 AS col0 FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT + tab1.col2 * + col1 - col2 AS col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT ALL + col0 + + col1 * + col2 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT - col2 * - col1 + - 29 + + col2 FROM tab0 AS cor0
----
2842
69
7515
query I rowsort
SELECT DISTINCT + col0 * col1 + 54 AS col0 FROM tab2 AS cor0
----
1397
271
4656
query I rowsort
SELECT DISTINCT 42 * - cor0.col0 FROM tab2 AS cor0
----
-294
-3276
-3318
query I rowsort
SELECT ALL 61 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT - 62 * + col0 AS col2 FROM tab0
----
-1488
-2170
-5518
query I rowsort
SELECT ALL + 74 + + col2 FROM tab1
----
128
131
170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 79 + col0 col1 FROM tab2 AS cor0
----
-1
-72
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 52 col2 FROM tab1 AS cor0
----
52
52
52
query I rowsort
SELECT col2 + + col2 * 93 AS col0 FROM tab2 cor0
----
2444
2538
3572
query I rowsort
SELECT + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT col1 * ( 86 ) + col2 FROM tab2 AS cor0
----
1500
2693
5100
query I rowsort
SELECT - + col1 * - 91 + + col0 FROM tab0 AS cor0
----
7850
8370
8862
query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab0, tab1 cor0
----
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col1 - col2 col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6736
SELECT CAST( NULL AS SIGNED ) + - 34 * - tab0.col2 + col0 * - ( + col0 + col0 ) * tab0.col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6736
SELECT CAST ( NULL AS INTEGER ) + - 34 * - tab0.col2 + col0 * - ( + col0 + col0 ) * tab0.col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * - col2 col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT + 67 - col2 FROM tab1 AS cor0
----
-29
10
13
query I rowsort
SELECT col1 * - col2 - col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT - 39 + col1 + col0 AS col2 FROM tab1 AS cor0
----
-10
35
54
query I rowsort
SELECT ALL + col2 * - col1 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT - col1 + - col1 * - col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT - 21 + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1423
655
708
query I rowsort
SELECT - + col2 * + col2 * + col1 + + col0 * + col0 * - col0 + col2 FROM tab1 AS cor0
----
-294577
-631712
-75789
query I rowsort
SELECT DISTINCT 7 + col1 AS col0 FROM tab2 AS cor0
----
24
38
66
query I rowsort
SELECT ALL + + col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT - 75 + + col2 DIV - col0 AS col0 FROM tab0
----
-75
-75
-76
skipif mysql # not compatible
query I rowsort label-6747
SELECT - 75 + + col2 / - col0 AS col0 FROM tab0
----
-75
-75
-76
query I rowsort
SELECT - 73 * + cor0.col2 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
-1134
-2128
-364
query I rowsort
SELECT ALL - 42 + - col1 AS col0 FROM tab2 AS cor0
----
-101
-59
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6750
SELECT ALL CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL - ( + col2 ) * - col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT 21 + + col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
310
3502
982
query I rowsort
SELECT ALL + - 17 FROM tab1 AS cor0
----
-17
-17
-17
query I rowsort
SELECT ALL + cor0.col1 + - col1 * + cor0.col0 + col2 FROM tab2 AS cor0
----
-1288
-159
-4517
query I rowsort
SELECT + col1 * col2 + col0 - - col0 * + col0 AS col2 FROM tab2 AS cor0
----
6966
7696
893
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col1 col2 FROM tab0 cor0
----
7396
8281
9409
query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NULL >= NULL
----
query I rowsort
SELECT ALL - col2 + col1 * col0 * col2 + - col0 FROM tab2
----
119548
50917
5825
query I rowsort
SELECT - col0 * - col2 + - col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL + col1 * - col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + col0 * + col0 + + col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL + - ( col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - 7 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-156
-162
-228
query I rowsort
SELECT ALL + - 75 - ( + col2 ) FROM tab2 cor0
----
-101
-102
-113
query I rowsort
SELECT DISTINCT + - 73 AS col0 FROM tab2 AS cor0
----
-73
query I rowsort
SELECT ALL tab2.col1 - + tab2.col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT col1 * col2 * - col0 AS col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + col0 + + 74 - tab0.col0 AS col0 FROM tab0
----
74
query I rowsort
SELECT DISTINCT - col2 - + 19 * - tab1.col0 FROM tab1
----
1159
1424
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6770
SELECT + CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6770
SELECT + CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 70 - ( - col0 ) FROM tab2
----
148
149
77
query I rowsort
SELECT - + ( 43 ) * cor0.col0 - - cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
-2182
-2192
1275
query I rowsort
SELECT + - ( col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - ( - 40 ) FROM tab1 AS cor0
----
40
40
40
query I rowsort
SELECT + ( - col0 ) - col2 * - col1 FROM tab1
----
1168
1401
506
query I rowsort
SELECT + col0 * + cor0.col0 - cor0.col2 AS col0 FROM tab0 AS cor0
----
1224
543
7839
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col1 * - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + cor0.col2 col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NULL < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6780
SELECT col2 * col2 + + col2 * tab0.col2 DIV - col1 FROM tab0
----
1
1077
6651
skipif mysql # not compatible
query I rowsort label-6780
SELECT col2 * col2 + + col2 * tab0.col2 / - col1 FROM tab0
----
1
1077
6651
query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 * col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT col1 * col1 - col2 FROM tab1
----
43
622
73
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + col1 * col0 BETWEEN - col2 AND ( - col1 * col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL col0 * col1 * tab1.col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - col2 - + col2 AS col1 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT ALL cor0.col0 - - col0 * - col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT col2 + + col2 * col1 * + col1 FROM tab0
----
244101
679124
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT - + col2 * + col0 DIV - cor0.col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6788
SELECT - + col2 * + col0 / - cor0.col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6789
SELECT ALL col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL col0 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col0 + col0 * - col2 AS col0 FROM tab0 cor0
----
-70
-7387
-816
query I rowsort
SELECT - col1 + + col1 * + col1 FROM tab0 AS cor0
----
7310
8190
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col1 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 + col1 * + col1 * - col2 FROM tab0 AS cor0
----
-244035
-678960
-9408
query I rowsort
SELECT DISTINCT + - col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + + cor0.col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - - col1 * col2 + col1 + - cor0.col2 FROM tab0 AS cor0
----
193
2891
7471
onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT ALL col0 + col0 DIV - cor0.col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL col0 + col0 / - cor0.col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL - + cor0.col2 + col1 * + col0 + col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT ALL - col0 * col1 DIV - col1 - col1 * col1 * cor0.col1 FROM tab0 AS cor0
----
-636032
-753482
-912638
skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL - col0 * col1 / - col1 - col1 * col1 * cor0.col1 FROM tab0 AS cor0
----
-636032
-753482
-912638
query I rowsort
SELECT DISTINCT col1 + + col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT col0 - - cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - col0 * col2 * + cor0.col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - col0 * + col2 * + col1 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + cor0.col0 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL + col1 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + col2 + 41 AS col2 FROM tab2 AS cor0
----
67
68
79
query I rowsort
SELECT col0 + ( col0 * col0 ) FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT cor0.col2 + ( + col2 ) * + col1 * col2 FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT + 79 * + col2 * + col1 AS col2 FROM tab2
----
121186
51034
66123
query I rowsort
SELECT 97 - col0 AS col0 FROM tab1
----
17
33
94
query I rowsort
SELECT + + ( col0 ) AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL - 90 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT ALL + col1 - + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col0 - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + - cor0.col0 * cor0.col1 * + col1 - - col1 * col1 AS col0 FROM tab1 AS cor0
----
-13351
-1352
-6300
onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT - col2 + - 7 DIV ( + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6816
SELECT - col2 + - 7 / ( + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + cor0.col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + col1 * 29 FROM tab1 AS cor0
----
290
377
754
query I rowsort
SELECT - col2 + ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col2 * col1 + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 48 * + col1 col2 FROM tab0 cor0
----
4104
4279
4621
query I rowsort
SELECT - col2 + col2 + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL tab1.col0 + tab1.col0 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT + ( tab1.col1 + 94 ) FROM tab1
----
104
107
120
query I rowsort
SELECT - col1 * cor0.col0 * col2 - + col2 FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT + + col2 + - col0 * 38 AS col0 FROM tab1 AS cor0
----
-2375
-2944
-60
query I rowsort
SELECT - 25 + - col0 FROM tab0
----
-114
-49
-60
query I rowsort
SELECT DISTINCT - tab1.col1 AS col2 FROM tab1, tab0, tab2 cor0
----
-10
-13
-26
query I rowsort
SELECT 57 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT DISTINCT col1 * col2 - + 33 FROM tab1
----
1215
1371
537
query I rowsort
SELECT DISTINCT + col2 + col2 - col0 * col0 AS col2 FROM tab2
----
-6032
-6165
5
query I rowsort
SELECT cor0.col0 * col1 * + col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + 23 col1 FROM tab0 AS cor0
----
-1
-12
-66
query I rowsort
SELECT - cor0.col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT ( - 72 ) * - col1 * + col0 + col0 * col1 AS col0 FROM tab1 AS cor0
----
46720
5694
75920
query I rowsort
SELECT DISTINCT + - ( ( col0 ) ) + + col0 + - 31 AS col2 FROM tab0 AS cor0
----
-31
query I rowsort
SELECT DISTINCT 93 + col0 FROM tab1 AS cor0
----
157
173
96
query I rowsort
SELECT ALL - + ( + col1 ) * col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col0 * 18 * - col2 FROM tab2 AS cor0
----
-3402
-36504
-54036
query I rowsort
SELECT ALL - + ( 47 ) AS col1 FROM tab2 AS cor0
----
-47
-47
-47
query I rowsort
SELECT ALL - col2 * - 5 FROM tab1 cor0
----
270
285
480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT + tab0.col2 * 44 + + tab0.col1 FROM tab0
----
141
1538
3699
onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT col2 DIV col0 + - col2 - - col0 FROM tab0
----
-8
34
7
skipif mysql # not compatible
query I rowsort label-6844
SELECT col2 / col0 + - col2 - - col0 FROM tab0
----
-8
34
7
query I rowsort
SELECT - col0 * ( - 32 ) + + col2 * + ( - col0 ) FROM tab1
----
-1600
-5120
-66
query I rowsort
SELECT + col2 + - 79 AS col0 FROM tab0
----
-46
-78
3
query I rowsort
SELECT DISTINCT col0 * - ( + 62 + col0 ) FROM tab1
----
-11360
-195
-8064
query I rowsort
SELECT ALL - 90 * + col0 FROM tab1 AS cor0
----
-270
-5760
-7200
query I rowsort
SELECT DISTINCT + 92 + + col0 AS col0 FROM tab2 AS cor0
----
170
171
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6850
SELECT + CAST( col2 + + col1 * + col2 AS SIGNED ) FROM tab0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort label-6850
SELECT + CAST ( col2 + + col1 * + col2 AS INTEGER ) FROM tab0
----
2871
7544
98
query I rowsort
SELECT - ( ( col2 ) ) AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL + ( + col1 ) * col1 AS col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - + 68 + + col2 FROM tab2 AS cor0
----
-30
-41
-42
query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab2, tab1 cor0
----
16
query I rowsort
SELECT DISTINCT - ( col2 ) * + col1 - 51 FROM tab2
----
-1585
-697
-888
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6856
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6856
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT ALL 86 - - 62 * col0 DIV 56 FROM tab2
----
172
173
93
skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL 86 - - 62 * col0 / 56 FROM tab2
----
172
173
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6858
SELECT ALL - 62 - 67 DIV col1 FROM tab1 AS cor0
----
-64
-67
-68
skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL - 62 - 67 / col1 FROM tab1 AS cor0
----
-64
-67
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * + cor0.col1 + cor0.col0 col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + + col1 * col0 + col2 * col0 + ( - col0 ) FROM tab0 AS cor0
----
15308
2832
3395
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 + col2 * col0 - - 90 col1 FROM tab2 AS cor0
----
2086
247
3060
query I rowsort
SELECT ALL - col1 + 78 FROM tab1 AS cor0
----
52
65
68
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS REAL ) + col0 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL 22 * + 13 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 35c7ea775742d01022acba3f694a02ce
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT + + col0 + col2 AS col2 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT DISTINCT - cor0.col2 * + col0 DIV CAST( - col0 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT - cor0.col2 * + col0 / CAST ( - col0 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT ALL - cor0.col1 DIV + cor0.col1 AS col0 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - cor0.col1 / + cor0.col1 AS col0 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT + col1 * - col1 - 83 AS col1 FROM tab1 AS cor0
----
-183
-252
-759
query I rowsort
SELECT DISTINCT + - col1 - cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-6871
SELECT col2 * col0 + + col2 DIV 63 FROM tab1 AS cor0
----
162
3648
7681
skipif mysql # not compatible
query I rowsort label-6871
SELECT col2 * col0 + + col2 / 63 FROM tab1 AS cor0
----
162
3648
7681
query I rowsort
SELECT + - ( col0 ) - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - - col0 + col0 * cor0.col0 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT ALL - + col1 * col1 - - col2 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT + col1 + - cor0.col2 * 0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + 96 * col1 + + 27 FROM tab1 AS cor0
----
1275
2523
987
query I rowsort
SELECT ALL - col1 * cor0.col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT - 19 - col1 AS col1 FROM tab1 AS cor0
----
-29
-32
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6879
SELECT - + col2 * - CAST( NULL AS SIGNED ) * col1 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6879
SELECT - + col2 * - CAST ( NULL AS INTEGER ) * col1 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 + ( + col0 ) col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - + col1 - + col0 * + col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ( 10 ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT + - col0 * - ( - col0 ) AS col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col0 + 21 * col1 FROM tab1 AS cor0
----
274
353
549
query I rowsort
SELECT + col1 * - col0 + + col0 * - col1 AS col1 FROM tab0 cor0
----
-16198
-4128
-6790
query I rowsort
SELECT ALL col2 * 69 FROM tab1 AS cor0
----
3726
3933
6624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6887
SELECT DISTINCT - - col0 + + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT - - col0 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + col1 * - 16 FROM tab0 AS cor0
----
-1376
-1456
-1552
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6889
SELECT col0 * CAST( NULL AS SIGNED ) * - 69 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6889
SELECT col0 * CAST ( NULL AS INTEGER ) * - 69 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 35 - col0 FROM tab1 AS cor0
----
-115
-38
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT DISTINCT + cor0.col2 DIV + 81 AS col1 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT + cor0.col2 / + 81 AS col1 FROM tab1 AS cor0
----
0
1
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab0 cor3
----
3645 values hashing to 752ce7d2fdd0678058de6a90ff2b0f3a
query I rowsort
SELECT ALL + 79 AS col1 FROM tab1 cor0
----
79
79
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6894
SELECT - CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6894
SELECT - CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 + col0 * cor0.col2 col0 FROM tab2 cor0
----
2092
253
3066
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6896
SELECT ALL + - CAST( col0 AS SIGNED ) * col2 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL + - CAST ( col0 AS INTEGER ) * col2 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL - - col1 * + 55 FROM tab0 AS cor0
----
4730
5005
5335
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6898
SELECT DISTINCT - 21 * - col2 + col2 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT - 21 * - col2 + col2 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col1 + 8 FROM tab1 AS cor0
----
18
21
34
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col1 * 70 FROM tab0 AS cor0
----
-6020
-6370
-6790
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab2 cor0, tab0 cor1
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT - cor0.col1 + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-6903
SELECT - cor0.col1 + col2 / + col2 AS col1 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT 20 - + cor0.col2 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 41cf91d1a4eea1142f868f53a9e77b22
query I rowsort
SELECT ALL - cor0.col0 * col0 + col1 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT cor0.col0 * ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6907
SELECT ALL + col1 + col0 DIV CAST( - col1 AS SIGNED ) FROM tab1
----
26
4
7
skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL + col1 + col0 / CAST ( - col1 AS INTEGER ) FROM tab1
----
26
4
7
query I rowsort
SELECT ALL col0 * 35 FROM tab0
----
1225
3115
840
query I rowsort
SELECT DISTINCT + cor1.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT col0 * + 31 * - col1 AS col2 FROM tab1 AS cor0
----
-19840
-2418
-32240
onlyif mysql # use DIV operator for integer division
query I rowsort label-6911
SELECT + col2 DIV ( col0 ) AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6911
SELECT + col2 / ( col0 ) AS col1 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6912
SELECT ALL + col0 * CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL + col0 * CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT DISTINCT + col2 DIV - col0 col0 FROM tab2 cor0
----
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT + col2 / - col0 col0 FROM tab2 cor0
----
-3
0
query I rowsort
SELECT - + cor0.col0 * - col1 + col2 * - 51 AS col0 FROM tab1 AS cor0
----
-2267
-2676
-3856
query I rowsort
SELECT DISTINCT + 40 + 30 FROM tab0
----
70
query I rowsort
SELECT ALL 45 * col1 AS col0 FROM tab0
----
3870
4095
4365
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6917
SELECT ALL CAST( - cor0.col0 AS SIGNED ) * + cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 633f70c5ab9666b0cc9ce993d5e4f469
skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL CAST ( - cor0.col0 AS INTEGER ) * + cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 633f70c5ab9666b0cc9ce993d5e4f469
query I rowsort
SELECT + - 59 * + col0 - col1 AS col2 FROM tab1 AS cor0
----
-203
-3786
-4733
query I rowsort
SELECT - col0 + col1 * - tab0.col1 FROM tab0
----
-7420
-8370
-9444
query I rowsort
SELECT DISTINCT col0 * ( 91 ) FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT ALL + + col0 * ( col1 ) + + cor0.col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT ALL col1 * - 61 FROM tab1 AS cor0
----
-1586
-610
-793
query I rowsort
SELECT ALL ( + ( col2 ) ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - + 1 * ( + col2 ) + - ( - 70 ) AS col2 FROM tab2 AS cor0
----
32
43
44
query I rowsort
SELECT ( 2 ) AS col2 FROM tab2 AS cor0
----
2
2
2
query I rowsort
SELECT - 75 * - 28 + cor0.col2 AS col1 FROM tab2 AS cor0
----
2126
2127
2138
query I rowsort
SELECT - + ( 32 ) AS col1 FROM tab0 AS cor0
----
-32
-32
-32
query I rowsort
SELECT 56 + + col2 FROM tab1 cor0
----
110
113
152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * - tab1.col2 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c4ec5f984b43d492930de349b59edd55
query I rowsort
SELECT col2 * 86 AS col0 FROM tab0 AS cor0
----
2838
7052
86
query I rowsort
SELECT ( + cor0.col2 ) * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT ALL 23 * 55 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
13
22
23
skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL 23 * 55 / cor0.col2 AS col1 FROM tab1 AS cor0
----
13
22
23
query I rowsort
SELECT + - ( 69 ) * col1 FROM tab2 AS cor0
----
-1173
-2139
-4071
query I rowsort
SELECT ALL + + 49 * - col0 + ( col0 + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1119
-1679
-4190
onlyif mysql # use DIV operator for integer division
query I rowsort label-6935
SELECT ALL col0 + + col2 DIV 90 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL col0 + + col2 / 90 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + + 27 + col1 AS col0 FROM tab1 cor0
----
37
40
53
query I rowsort
SELECT ALL - col2 * + col0 + - cor0.col1 * - col2 FROM tab0 AS cor0
----
164
2046
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6938
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - 59 + col2 - - 92 FROM tab1 AS cor0
----
129
87
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col0 FROM tab0 cor0
----
-36
-36
-36
query I rowsort
SELECT - - col1 * cor0.col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - - col1 * - col2 + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT + col1 + 80 AS col0 FROM tab2 AS cor0
----
111
139
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6944
SELECT - - col2 DIV col0 + ( + col0 ) DIV CAST( 88 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6944
SELECT - - col2 / col0 + ( + col0 ) / CAST ( 88 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6945
SELECT + col0 DIV + ( - col0 ) FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6945
SELECT + col0 / + ( - col0 ) FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col1 * + 93 * col2 FROM tab2 AS cor0
----
142662
60078
77841
onlyif mysql # use DIV operator for integer division
query I rowsort label-6947
SELECT ALL - ( + col1 + + col2 ) DIV 41 AS col2 FROM tab2
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL - ( + col1 + + col2 ) / 41 AS col2 FROM tab2
----
-1
-1
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6948
SELECT + col0 DIV ( 56 ) + cor0.col1 * - col1 AS col0 FROM tab2 cor0
----
-288
-3480
-961
skipif mysql # not compatible
query I rowsort label-6948
SELECT + col0 / ( 56 ) + cor0.col1 * - col1 AS col0 FROM tab2 cor0
----
-288
-3480
-961
query I rowsort
SELECT ALL col0 * col2 + - 51 FROM tab2 AS cor0
----
138
1977
2951
query I rowsort
SELECT DISTINCT col2 + 53 FROM tab1 AS cor0
----
107
110
149
onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT col0 DIV + 92 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6951
SELECT col0 / + 92 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT ALL + col0 DIV col2 - col1 AS col1 FROM tab0 AS cor0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL + col0 / col2 - col1 AS col1 FROM tab0 AS cor0
----
-62
-86
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 - + col0 col0 FROM tab2
----
-153
-154
-82
query I rowsort
SELECT ALL - - col2 * col1 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
251
3455
934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6956
SELECT ALL + + cor0.col2 - CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL + + cor0.col2 - CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-6957
SELECT DISTINCT col2 DIV - 84 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT col2 / - 84 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT ALL col2 * cor0.col2 - + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1352
-1558
540
query I rowsort
SELECT DISTINCT - cor0.col1 * + ( 37 ) + - col2 FROM tab2 AS cor0
----
-1174
-2209
-667
query I rowsort
SELECT ALL - col2 * ( + ( tab0.col1 ) ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - col0 + - ( + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6962
SELECT ALL + col0 * - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL + col0 * - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - - cor0.col1 * 62 * + 70 FROM tab2 AS cor0
----
134540
256060
73780
onlyif mysql # use DIV operator for integer division
query I rowsort label-6964
SELECT ALL + col1 DIV - col0 FROM tab2 cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL + col1 / - col0 FROM tab2 cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT col0 + - 85 AS col1 FROM tab1 AS cor0
----
-21
-5
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6966
SELECT - + col2 DIV 40 AS col1 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-6966
SELECT - + col2 / 40 AS col1 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT ALL - col1 * col0 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - col2 * + ( col1 ) * col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL - 30 + + tab2.col1 FROM tab2
----
-13
1
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6970
SELECT ALL - CAST( col1 AS SIGNED ) + - col2 + - ( col1 ) FROM tab1
----
-106
-122
-77
skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - CAST ( col1 AS INTEGER ) + - col2 + - ( col1 ) FROM tab1
----
-106
-122
-77
query I rowsort
SELECT - col1 * + 5 + - col2 FROM tab2 AS cor0
----
-123
-182
-321
query I rowsort
SELECT ALL 60 AS col0 FROM tab1 AS cor0
----
60
60
60
query I rowsort
SELECT DISTINCT + 61 * + ( col1 * + col0 ) FROM tab1 AS cor0
----
39040
4758
63440
query I rowsort
SELECT - col1 + - col0 * + col2 + + 86 AS col2 FROM tab1 AS cor0
----
-102
-3572
-7607
query I rowsort
SELECT DISTINCT - ( + 64 ) + + col1 * col0 AS col2 FROM tab0 cor0
----
2000
3331
8035
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - 45 ) col1 FROM tab0 AS cor0
----
-45
-45
-45
query I rowsort
SELECT - col0 + + 9 * - col0 AS col1 FROM tab2 AS cor0
----
-70
-780
-790
query I rowsort
SELECT DISTINCT - 54 + col0 FROM tab2 AS cor0
----
-47
24
25
query I rowsort
SELECT DISTINCT col0 * cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6980
SELECT DISTINCT - col0 * cor0.col1 * CAST( + ( col0 ) * 26 AS SIGNED ) + - 64 AS col1 FROM tab2 AS cor0
----
-2758586
-39558
-9332920
skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT - col0 * cor0.col1 * CAST ( + ( col0 ) * 26 AS INTEGER ) + - 64 AS col1 FROM tab2 AS cor0
----
-2758586
-39558
-9332920
query I rowsort
SELECT ALL 44 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT ALL cor0.col1 + col2 * col0 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + col1 * col1 + - col2 FROM tab1 cor0
----
43
622
73
query I rowsort
SELECT + 33 * col2 AS col0 FROM tab2
----
1254
858
891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + - ( + cor0.col0 ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 48730a4f3ae72ef34da4083404b84d99
query I rowsort
SELECT ALL - + 45 * - col2 + + col1 AS col1 FROM tab0 AS cor0
----
142
1571
3781
query I rowsort
SELECT ALL - 8 * cor0.col2 + + col0 AS col0 FROM tab1 AS cor0
----
-392
-429
-688
query I rowsort
SELECT ALL col0 * + col2 + + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT 58 + + col1 AS col2 FROM tab0 AS cor0
----
144
149
155
query I rowsort
SELECT ALL 69 * col0 FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT + + col0 * col2 + + col2 + + col2 FROM tab0 AS cor0
----
37
7462
858
query I rowsort
SELECT + col0 + cor0.col2 + + 57 * + col2 AS col1 FROM tab0 AS cor0
----
1938
4845
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6993
SELECT 9 + - col0 DIV - 64 col2 FROM tab1 cor0
----
10
10
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6993
SELECT 9 + - col0 / - 64 col2 FROM tab1 cor0
----
10
10
9
query I rowsort
SELECT ALL - cor0.col1 * col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT DISTINCT + ( + col2 ) * 76 AS col1 FROM tab0 AS cor0
----
2508
6232
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6996
SELECT + ( - tab2.col1 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6996
SELECT + ( - tab2.col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 89 * col2 AS col1 FROM tab0
----
-2937
-7298
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6998
SELECT tab2.col2 + col0 DIV col0 AS col0 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-6998
SELECT tab2.col2 + col0 / col0 AS col0 FROM tab2
----
27
28
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT + 83 DIV - col1 - + col1 AS col0 FROM tab2 AS cor0
----
-21
-33
-60
skipif mysql # not compatible
query I rowsort label-6999
SELECT + 83 / - col1 - + col1 AS col0 FROM tab2 AS cor0
----
-21
-33
-60
query I rowsort
SELECT ALL 23 FROM tab0 cor0
----
23
23
23
query I rowsort
SELECT ALL col1 * + col2 * col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7002
SELECT + - CAST( + ( - col2 ) AS SIGNED ) * 75 AS col1 FROM tab2 AS cor0
----
1950
2025
2850
skipif mysql # not compatible
query I rowsort label-7002
SELECT + - CAST ( + ( - col2 ) AS INTEGER ) * 75 AS col1 FROM tab2 AS cor0
----
1950
2025
2850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7003
SELECT - CAST( col0 AS SIGNED ) * + col2 FROM tab1 cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-7003
SELECT - CAST ( col0 AS INTEGER ) * + col2 FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 + col2 + - col0 col1 FROM tab2
----
-22
-83
-94
query I rowsort
SELECT + 30 + tab0.col0 + col0 AS col0 FROM tab0
----
100
208
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7006
SELECT - col1 * - col0 + + CAST( NULL AS SIGNED ) * + col1 + - col1 * + ( 72 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7006
SELECT - col1 * - col0 + + CAST ( NULL AS INTEGER ) * + col1 + - col1 * + ( 72 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 18 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT 7 * col0 AS col1 FROM tab2
----
49
546
553
query I rowsort
SELECT 93 * - col0 AS col2 FROM tab0
----
-2232
-3255
-8277
query I rowsort
SELECT - ( + col2 ) + + col0 - + col0 AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 22 + - tab1.col2 * + col2 FROM tab1
----
-2894
-3227
-9194
onlyif mysql # use DIV operator for integer division
query I rowsort label-7012
SELECT + col0 DIV - col0 + col1 * + col2 + + col2 AS col0 FROM tab0
----
2870
7543
97
skipif mysql # not compatible
query I rowsort label-7012
SELECT + col0 / - col0 + col1 * + col2 + + col2 AS col0 FROM tab0
----
2870
7543
97
query I rowsort
SELECT col0 + - col1 + + tab2.col1 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT + col0 - - col1 * col1 FROM tab0
----
7420
8370
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col2 FROM tab0
----
171
36
57
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 = NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7017
SELECT col2 * col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7017
SELECT col2 * col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 75 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT ALL - col2 * - col2 * + col2 AS col1 FROM tab1
----
157464
185193
884736
onlyif mysql # use DIV operator for integer division
query I rowsort label-7020
SELECT - col0 DIV col1 - - cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
1034
634
78
skipif mysql # not compatible
query I rowsort label-7020
SELECT - col0 / col1 - - cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
1034
634
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT DISTINCT + 80 + - cor0.col0 DIV col1 AS col2 FROM tab2 AS cor0
----
76
79
80
skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT + 80 + - cor0.col0 / col1 AS col2 FROM tab2 AS cor0
----
76
79
80
query I rowsort
SELECT col1 + col1 * - col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col1 + - col0 * - col2 AS col2 FROM tab2
----
2087
220
3019
query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) IN ( + col2 * - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7025
SELECT DISTINCT - col1 DIV col1 + col1 AS col0 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT - col1 / col1 + col1 AS col0 FROM tab0
----
85
90
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT + tab2.col0 + col2 DIV col0 AS col2 FROM tab2
----
10
78
79
skipif mysql # not compatible
query I rowsort label-7026
SELECT + tab2.col0 + col2 / col0 AS col2 FROM tab2
----
10
78
79
query I rowsort
SELECT - col2 FROM tab0 WHERE NULL BETWEEN NULL AND + col2 / - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT DISTINCT + col1 DIV col0 + tab0.col1 DIV - col1 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT + col1 / col0 + tab0.col1 / - col1 FROM tab0
----
0
1
2
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( col0 )
----
query I rowsort
SELECT cor0.col2 + + col2 * - cor0.col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1 )
----
query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 * - col1 )
----
query I rowsort
SELECT tab1.col1 + + col0 * col2 FROM tab1 WHERE NOT - col1 + - col2 * - col0 * tab1.col0 NOT IN ( col0 * - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + tab0.col1 - - col2 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT col2 > NULL
----
query I rowsort
SELECT col2 + + tab0.col0 * + col1 FROM tab0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col1 * tab0.col2 col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + col0 - - col1 * col0 AS col2 FROM tab1
----
1120
704
81
query I rowsort
SELECT - col0 * + col0 * col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NULL = NULL
----
query I rowsort
SELECT DISTINCT col2 - col2 AS col0 FROM tab0 WHERE ( col1 ) NOT IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7043
SELECT col1 + - col1 * tab2.col0 DIV col1 AS col2 FROM tab2
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-7043
SELECT col1 + - col1 * tab2.col0 / col1 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT - + 41 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT ALL col0 + - col0 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - - col2 + col1 * col2 * - col0 + + col1 AS col1 FROM tab0 AS cor0
----
-3297
-663945
-67993
query I rowsort
SELECT ALL 29 + - col0 AS col0 FROM tab0 AS cor0
----
-6
-60
5
query I rowsort
SELECT + 41 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7049
SELECT ALL - CAST( - ( col0 ) AS SIGNED ) * CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL - CAST ( - ( col0 ) AS INTEGER ) * CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT - + ( - 67 ) + col2 * - ( col0 ) FROM tab0 AS cor0
----
-7231
-725
32
query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + cor0.col1 + + 88 AS col0 FROM tab0 AS cor0
----
174
179
185
query I rowsort
SELECT DISTINCT + 98 + 46 FROM tab2 AS cor0
----
144
query I rowsort
SELECT ALL - - col0 + 86 FROM tab1 AS cor0
----
150
166
89
query I rowsort
SELECT ALL + - 67 AS col0 FROM tab0 AS cor0
----
-67
-67
-67
query I rowsort
SELECT - + col2 + - col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT col2 - + col2 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT col1 + 65 * - col0 FROM tab1 AS cor0
----
-169
-4150
-5187
query I rowsort
SELECT + - cor0.col1 * - 29 FROM tab0 AS cor0
----
2494
2639
2813
query I rowsort
SELECT ALL col1 + 84 AS col2 FROM tab1 AS cor0
----
110
94
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT ALL - col2 + + ( + ( - col2 ) ) DIV 32 FROM tab0 AS cor0
----
-1
-34
-84
skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL - col2 + + ( + ( - col2 ) ) / 32 FROM tab0 AS cor0
----
-1
-34
-84
query I rowsort
SELECT DISTINCT col0 + col1 * col1 FROM tab1
----
164
249
679
query I rowsort
SELECT - col2 * - col1 * + cor0.col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
22630
24565
39943
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7064
SELECT DISTINCT + - cor0.col1 + + CAST( 60 AS SIGNED ) FROM tab1 AS cor0
----
34
47
50
skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT + - cor0.col1 + + CAST ( 60 AS INTEGER ) FROM tab1 AS cor0
----
34
47
50
query I rowsort
SELECT ALL - col2 * ( - 46 ) - col1 AS col2 FROM tab1 AS cor0
----
2458
2612
4403
query I rowsort
SELECT + col1 * + 14 * + col0 + - col1 * + col2 FROM tab0 AS cor0
----
105924
26058
47433
query I rowsort
SELECT ALL - + col2 + 11 * col2 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT ALL + col0 + + 51 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-16
-1659
-4093
query I rowsort
SELECT DISTINCT - + col2 + + col2 * - cor0.col2 * col2 FROM tab1 AS cor0
----
-157518
-185250
-884832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7070
SELECT ALL col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7071
SELECT DISTINCT + col0 DIV col1 + + col0 AS col2 FROM tab2 cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT + col0 / col1 + + col0 AS col2 FROM tab2 cor0
----
7
79
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT + col2 + + ( cor0.col1 ) * col0 FROM tab0 cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 95 col2 FROM tab1 AS cor0
----
-95
-95
-95
query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab0 AS cor0
----
60
query I rowsort
SELECT ALL - ( col2 ) * col0 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - col1 * - 80 AS col2 FROM tab2
----
1360
2480
4720
query I rowsort
SELECT + cor0.col2 * col0 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + tab2.col2 * + col0 + tab2.col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT + col0 * ( - col0 * - col1 ) AS col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab1 AS cor0
----
-80
query I rowsort
SELECT DISTINCT - ( - ( - cor0.col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - 93 * + 9 FROM tab0
----
-837
query I rowsort
SELECT ALL + ( - col2 + - tab1.col0 ) AS col1 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT 56 * col0 * col2 AS col2 FROM tab1
----
204288
430080
9072
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 26 col0 FROM tab1 AS cor0
----
-26
-26
-26
query I rowsort
SELECT DISTINCT 81 * 27 AS col2 FROM tab1
----
2187
query I rowsort
SELECT ALL + 0 * - col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + ( - col1 ) AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col1 + col0 * + 17 + col1 FROM tab1 AS cor0
----
103
1108
1386
query I rowsort
SELECT + col1 * 97 + + 56 - - col1 AS col2 FROM tab1 AS cor0
----
1036
1330
2604
onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT DISTINCT + col0 + ( col0 ) DIV + col1 + col2 * + col0 FROM tab0 AS cor0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT + col0 + ( col0 ) / + col1 + col2 * + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT + col1 * 20 + + 79 * + col2 AS col0 FROM tab1 AS cor0
----
4703
4786
7844
query I rowsort
SELECT DISTINCT - col1 + ( 30 ) AS col1 FROM tab0 AS cor0
----
-56
-61
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) - 41 * col0 col1 FROM tab1
----
-120
-2560
-3200
query I rowsort
SELECT - 31 + col2 FROM tab0
----
-30
2
51
query I rowsort
SELECT col2 + + tab2.col2 + col2 AS col0 FROM tab2
----
114
78
81
query I rowsort
SELECT ALL tab1.col0 + tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c3106673b5165f666b99e75c964d6287
query I rowsort
SELECT ALL col0 + 23 + col2 FROM tab0
----
194
59
80
query I rowsort
SELECT ALL - col2 * + col2 * + col0 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-7101
SELECT DISTINCT - cor0.col0 DIV cor0.col0 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT - cor0.col0 / cor0.col0 FROM tab1 cor0
----
-1
query I rowsort
SELECT + col1 + ( + cor0.col0 ) * - cor0.col2 + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1642
2633
59
query I rowsort
SELECT DISTINCT + + col2 * col0 + col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT - col1 * 22 + col1 + + col2 FROM tab2 cor0
----
-1213
-319
-624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7105
SELECT col2 * CAST( col0 AS SIGNED ) + - col0 col0 FROM tab1 AS cor0
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7105
SELECT col2 * CAST ( col0 AS INTEGER ) + - col0 col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL + - col0 * 17 FROM tab0 AS cor0
----
-1513
-408
-595
query I rowsort
SELECT + - col0 + + 34 AS col0 FROM tab1 AS cor0
----
-30
-46
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-7108
SELECT col0 * col1 DIV + col1 AS col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7108
SELECT col0 * col1 / + col1 AS col1 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT DISTINCT col2 DIV + tab1.col1 + col1 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT col2 / + tab1.col1 + col1 FROM tab1
----
15
20
28
query I rowsort
SELECT DISTINCT - tab2.col1 + col1 + col1 * col0 FROM tab2
----
1343
217
4602
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 * col0 AND col2 / col0 AND NOT NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT cor0.col0 + - col2 * col1 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-7113
SELECT DISTINCT + col0 + col2 DIV col1 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT + col0 + col2 / col1 FROM tab1
----
5
69
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7114
SELECT DISTINCT - col1 DIV col0 + + col1 AS col2 FROM tab2
----
17
27
59
skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT - col1 / col0 + + col1 AS col2 FROM tab2
----
17
27
59
query I rowsort
SELECT DISTINCT - col2 + col0 * col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL + + cor0.col0 * - col1 + + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - col1 + tab0.col2 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col0 * - col1 * + col0 - col1 FROM tab0 AS cor0
----
-118922
-49622
-720902
query I rowsort
SELECT + col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - ( col2 ) * + col2 + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7121
SELECT ALL - - 43 DIV col0 + col1 FROM tab2 cor0
----
17
37
59
skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL - - 43 / col0 + col1 FROM tab2 cor0
----
17
37
59
query I rowsort
SELECT ALL col1 * - col2 - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-7123
SELECT ALL - - col1 + + col0 DIV + col2 AS col2 FROM tab1 cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - - col1 + + col0 / + col2 AS col2 FROM tab1 cor0
----
11
13
26
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + 96 * col2 + + col0 FROM tab1 AS cor0
----
5187
5536
9296
query I rowsort
SELECT ALL + - col2 * - col0 - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT - - col0 * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT DISTINCT col0 * + cor0.col2 + + col0 + col0 * col2 DIV - col1 col1 FROM tab2 AS cor0
----
190
2072
2905
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT col0 * + cor0.col2 + + col0 + col0 * col2 / - col1 col1 FROM tab2 AS cor0
----
190
2072
2905
query I rowsort
SELECT DISTINCT - 33 + col0 * col1 FROM tab1 AS cor0
----
1007
45
607
query I rowsort
SELECT + 58 * - col1 AS col1 FROM tab2 AS cor0
----
-1798
-3422
-986
query I rowsort
SELECT ALL - col2 - cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT ALL + 33 * col0 AS col0 FROM tab0 AS cor0
----
1155
2937
792
query I rowsort
SELECT - + col2 - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * col1 - + col0 AS col1 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-7135
SELECT cor0.col0 DIV - cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-7135
SELECT cor0.col0 / - cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT col2 * col2 - col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT 45 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT + col2 * - col1 * - 22 + - col0 DIV col2 col0 FROM tab0 AS cor0
----
164163
2099
62436
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7138
SELECT + col2 * - col1 * - 22 + - col0 / col2 col0 FROM tab0 AS cor0
----
164163
2099
62436
query I rowsort
SELECT - 8 + col1 AS col1 FROM tab1 AS cor0
----
18
2
5
query I rowsort
SELECT col0 + col1 * cor0.col2 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT + - cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col1 * + 69 FROM tab2 AS cor0
----
-1173
-2139
-4071
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col1 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - cor0.col0 * - 55 + + cor0.col1 FROM tab0 AS cor0
----
1406
2022
4986
query I rowsort
SELECT ALL + col0 - 38 * 74 AS col2 FROM tab1 AS cor0
----
-2732
-2748
-2809
query I rowsort
SELECT - col1 + 0 AS col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - tab2.col1 * ( col2 ) * - tab2.col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT + + cor0.col1 * + 51 + + col0 + - ( col2 ) * + col1 FROM tab0 AS cor0
----
-2732
1572
4885
query I rowsort
SELECT ALL ( tab2.col1 ) FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT 72 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2, tab1 AS cor3
----
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7152
SELECT - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7152
SELECT - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT - - col0 + + col0 DIV ( + col0 + - col1 ) FROM tab2 cor0
----
7
80
82
skipif mysql # not compatible
query I rowsort label-7153
SELECT - - col0 + + col0 / ( + col0 + - col1 ) FROM tab2 cor0
----
7
80
82
query I rowsort
SELECT + - 7 * - col1 FROM tab1 AS cor0
----
182
70
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col0 col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - 10 * + tab0.col0 AS col0 FROM tab0
----
-240
-350
-890
query I rowsort
SELECT col0 + + col2 * col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7158
SELECT + col0 + - col2 * + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-7158
SELECT + col0 + - col2 * + col1 / - col1 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7159
SELECT DISTINCT col1 * + col2 / CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT col1 * + col2 / CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
query I rowsort
SELECT + col1 * + col1 - + col2 FROM tab1
----
43
622
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7161
SELECT ALL + col0 + + col1 DIV + col0 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL + col0 + + col1 / + col0 FROM tab2
----
11
78
79
query I rowsort
SELECT - - col2 * + 82 FROM tab1 AS cor0
----
4428
4674
7872
query I rowsort
SELECT 30 + + col1 + col1 FROM tab1
----
50
56
82
query I rowsort
SELECT + 5 * + cor0.col2 * - col1 FROM tab0 cor0
----
-14190
-37310
-485
query I rowsort
SELECT ALL + 46 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT - 44 * - tab1.col1 FROM tab1
----
1144
440
572
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 + col0 col2 FROM tab2
----
-24
19
62
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 2 AS REAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7169
SELECT CAST( + col1 AS SIGNED ) - + col1 * cor0.col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-119593
-51017
-5828
skipif mysql # not compatible
query I rowsort label-7169
SELECT CAST ( + col1 AS INTEGER ) - + col1 * cor0.col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-119593
-51017
-5828
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( + 3 AS REAL ) + cor0.col2 AS col0 FROM tab2 cor0
----
29
30
41
query I rowsort
SELECT DISTINCT - col1 + - 43 + cor0.col2 * 19 AS col2 FROM tab1 AS cor0
----
1030
1768
957
query I rowsort
SELECT ALL - col0 * col2 - cor0.col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL + - col0 * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + - col2 + col1 - + cor0.col2 AS col2 FROM tab1 cor0
----
-104
-179
-82
query I rowsort
SELECT DISTINCT - - ( + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 * col2 - col1 * - 24 AS col1 FROM tab2 AS cor0
----
-2594
-612
555
query I rowsort
SELECT ALL + ( - ( - cor0.col2 ) ) + col2 + - col0 FROM tab0 AS cor0
----
-33
42
75
query I rowsort
SELECT - - 47 * + col2 AS col1 FROM tab0 cor0
----
1551
3854
47
query I rowsort
SELECT DISTINCT - + ( - 87 ) + - col2 FROM tab2 AS cor0
----
49
60
61
query I rowsort
SELECT - 31 + 67 + - col1 AS col2 FROM tab2 AS cor0
----
-23
19
5
query I rowsort
SELECT ALL + col0 * 63 AS col1 FROM tab1 AS cor0
----
189
4032
5040
query I rowsort
SELECT DISTINCT - tab1.col0 * - ( col0 ) + - col0 + tab1.col2 AS col1 FROM tab1
----
4089
60
6416
query I rowsort
SELECT ALL - col2 * + 48 FROM tab1 AS cor0
----
-2592
-2736
-4608
query I rowsort
SELECT ALL + col0 - ( - 28 ) FROM tab1 AS cor0
----
108
31
92
query I rowsort
SELECT DISTINCT - col1 - col2 AS col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT - cor0.col0 + 33 AS col2 FROM tab2 AS cor0
----
-45
-46
26
query I rowsort
SELECT DISTINCT + - col1 + col0 * - cor0.col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL + - 7 + 69 AS col1 FROM tab2 AS cor0
----
62
62
62
query I rowsort
SELECT 34 * - col2 + + cor0.col2 + cor0.col0 FROM tab2 cor0
----
-1175
-780
-884
query I rowsort
SELECT ( 87 ) + + col0 AS col2 FROM tab2 AS cor0
----
165
166
94
query I rowsort
SELECT ALL - 72 * 70 AS col2 FROM tab2 cor0
----
-5040
-5040
-5040
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 * cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT - 40 + 78 AS col2 FROM tab1 AS cor0
----
38
38
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( cor0.col1 AS REAL ) col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col1 * 6 FROM tab0
----
516
546
582
query I rowsort
SELECT DISTINCT col0 * - tab0.col0 + + tab0.col2 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT + col0 + col2 * - col2 FROM tab0
----
-1065
-6635
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * col1 col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 + - ( col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT ALL ( + col1 ) + + col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col2 ) * col0 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 95 * col1 AS col0 FROM tab1 AS cor0
----
-1235
-2470
-950
query I rowsort
SELECT ALL + + cor0.col2 + - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7205
SELECT + 30 + - col0 DIV 73 AS col1 FROM tab1 AS cor0
----
29
30
30
skipif mysql # not compatible
query I rowsort label-7205
SELECT + 30 + - col0 / 73 AS col1 FROM tab1 AS cor0
----
29
30
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-7206
SELECT DISTINCT + col2 DIV - col0 AS col0 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT + col2 / - col0 AS col0 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT - ( col0 ) + - 55 * 30 FROM tab0 AS cor0
----
-1674
-1685
-1739
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL + 8 AS col2 FROM tab2
----
8
8
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7210
SELECT ALL ( col0 ) DIV col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL ( col0 ) / col1 AS col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7211
SELECT ( col2 ) + + col0 DIV - tab0.col1 AS col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7211
SELECT ( col2 ) + + col0 / - tab0.col1 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + + ( - col1 ) * col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ( col0 ) * ( 38 ) FROM tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT DISTINCT + - col2 * + cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + + col1 + + col0 * 22 AS col1 FROM tab1 AS cor0
----
1418
1773
92
query I rowsort
SELECT - + 51 * col1 FROM tab0 AS cor0
----
-4386
-4641
-4947
query I rowsort
SELECT DISTINCT + 1 * col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + - 32 AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT - col1 + - col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-29
-3
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7220
SELECT ALL + col2 * - CAST( NULL AS DECIMAL ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL + col2 * - CAST ( NULL AS REAL ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + 90 + col2 col2 FROM tab0 cor0
----
188
209
263
query I rowsort
SELECT - + col2 + - ( + ( col0 ) ) * col1 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-7223
SELECT ALL + col0 DIV col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL + col0 / col1 AS col0 FROM tab2
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7224
SELECT - 96 + + col2 * 83 DIV col1 FROM tab0
----
-22
-65
-96
skipif mysql # not compatible
query I rowsort label-7224
SELECT - 96 + + col2 * 83 / col1 FROM tab0
----
-22
-65
-96
query I rowsort
SELECT ALL 6 - + cor1.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 5a00d5aaa1d3055748f52a967508c840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7226
SELECT - tab0.col0 * - CAST( + col1 AS SIGNED ) FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-7226
SELECT - tab0.col0 * - CAST ( + col1 AS INTEGER ) FROM tab0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7227
SELECT ALL - col2 + - CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab1
----
-111
-163
-31
skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL - col2 + - CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab1
----
-111
-163
-31
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col0 + CAST ( col0 + + col1 AS REAL ) * 48 FROM tab2 AS cor0
----
1831
4687
6654
query I rowsort
SELECT + col1 - - ( - cor0.col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + + col0 * + col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT col1 + + col2 + 68 FROM tab1 AS cor0
----
135
148
177
onlyif mysql # use DIV operator for integer division
query I rowsort label-7232
SELECT - col2 DIV - col1 - - 83 FROM tab2 AS cor0
----
83
83
85
skipif mysql # not compatible
query I rowsort label-7232
SELECT - col2 / - col1 - - 83 FROM tab2 AS cor0
----
83
83
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col1 * + col0 * col0 col2 FROM tab0 AS cor0
----
118922
49622
720902
query I rowsort
SELECT ALL - col1 + ( - 87 ) * cor0.col2 * - ( + 90 ) FROM tab2 AS cor0
----
203521
211379
297523
query I rowsort
SELECT col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + + ( col1 ) + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7237
SELECT DISTINCT CAST( col2 AS SIGNED ) + - col2 - - 56 AS col1 FROM tab1 AS cor0
----
56
skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT CAST ( col2 AS INTEGER ) + - col2 - - 56 AS col1 FROM tab1 AS cor0
----
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-7238
SELECT + + 17 + 63 DIV col1 FROM tab1 AS cor0
----
19
21
23
skipif mysql # not compatible
query I rowsort label-7238
SELECT + + 17 + 63 / col1 FROM tab1 AS cor0
----
19
21
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT DISTINCT - col2 DIV 75 + cor0.col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT - col2 / 75 + cor0.col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + 30 + + 56 AS col0 FROM tab2 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT + ( col2 ) * - col2 - + col1 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT - 1 * col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - 70 * col1 AS col0 FROM tab2 AS cor0
----
-1190
-2170
-4130
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 55 col0 FROM tab2 AS cor0
----
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-7245
SELECT DISTINCT 1 DIV - 59 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT 1 / - 59 AS col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * col2 col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL + ( 74 ) * col2 AS col2 FROM tab1 AS cor0
----
3996
4218
7104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7248
SELECT - col0 + + cor0.col2 * - cor0.col1 * + CAST( + ( - col2 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
611795
62
93630
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7248
SELECT - col0 + + cor0.col2 * - cor0.col1 * + CAST ( + ( - col2 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
611795
62
93630
query I rowsort
SELECT ALL - col2 * col0 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT + col0 * 61 FROM tab2
----
427
4758
4819
query I rowsort
SELECT - 5 + 20 AS col0 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT - cor0.col2 * + ( + col2 ) * col1 + + col1 FROM tab1 AS cor0
----
-119795
-32480
-75790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( col0 ) ) * col1 + - 99 * cor0.col1 col0 FROM tab1 AS cor0
----
-247
-2496
-350
query I rowsort
SELECT ALL + - 76 * + ( col2 * ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-2660
-554648
-60192
query I rowsort
SELECT DISTINCT + + cor1.col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7256
SELECT + CAST( 65 AS SIGNED ) * - col0 - - col2 * col1 FROM tab1
----
-3590
-3952
1209
skipif mysql # not compatible
query I rowsort label-7256
SELECT + CAST ( 65 AS INTEGER ) * - col0 - - col2 * col1 FROM tab1
----
-3590
-3952
1209
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57
query I rowsort
SELECT + - 46 AS col2 FROM tab1 AS cor0
----
-46
-46
-46
query I rowsort
SELECT + col2 * 85 AS col2 FROM tab0 AS cor0
----
2805
6970
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7260
SELECT col2 + col1 * col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
146
45
46
skipif mysql # not compatible
query I rowsort label-7260
SELECT col2 + col1 * col2 / + col0 AS col2 FROM tab2 AS cor0
----
146
45
46
query I rowsort
SELECT ( 34 ) * + col0 + col0 AS col2 FROM tab0 AS cor0
----
1225
3115
840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7262
SELECT col1 * - col0 DIV + col0 + col2 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-7262
SELECT col1 * - col0 / + col0 + col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - cor0.col1 * 99 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b2dac2ae35ea24ad8c3d936f473fa9af
query I rowsort
SELECT ALL tab1.col0 * 64 FROM tab1, tab2 AS cor0
----
9 values hashing to 3ec0d39bf7d991632c9b7ce42b175748
query I rowsort
SELECT - 90 + - cor0.col0 FROM tab2 AS cor0
----
-168
-169
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7266
SELECT DISTINCT + col2 * 61 DIV - col0 - col1 AS col0 FROM tab1
----
-1124
-64
-86
skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT + col2 * 61 / - col0 - col1 AS col0 FROM tab1
----
-1124
-64
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-7267
SELECT + col2 + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-7267
SELECT + col2 + col2 / col2 AS col2 FROM tab1 AS cor0
----
55
58
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7268
SELECT - col1 - CAST( - cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7268
SELECT - col1 - CAST ( - cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + + col2 * col1 col0 FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT - - col2 * 94 + 54 * col1 FROM tab2 AS cor0
----
4212
4490
5630
onlyif mysql # use DIV operator for integer division
query I rowsort label-7271
SELECT ALL col0 + - col1 DIV tab2.col1 AS col2 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL col0 + - col1 / tab2.col1 AS col2 FROM tab2
----
6
77
78
query I rowsort
SELECT ALL + col0 + 57 + - 17 FROM tab2
----
118
119
47
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query I rowsort
SELECT - cor0.col2 * + 49 AS col2 FROM tab1 AS cor0
----
-2646
-2793
-4704
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7275
SELECT DISTINCT + - col0 / CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT + - col0 / CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL col2 * col0 - - col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - col1 + col1 * - col0 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL col1 + + 0 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + col2 * + ( - col2 ) + + col1 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT col0 + - 37 AS col1 FROM tab0 AS cor0
----
-13
-2
52
query I rowsort
SELECT ALL - col0 + col2 - col1 * + cor0.col2 FROM tab0 AS cor0
----
-131
-2829
-7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col2 + col1 col1 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT + 52 * + ( - col1 ) + + ( col2 ) FROM tab1 AS cor0
----
-1298
-463
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-7284
SELECT DISTINCT - 26 DIV - col1 col0 FROM tab2 cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT - 26 / - col1 col0 FROM tab2 cor0
----
0
1
query I rowsort
SELECT - 26 + + cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 00209c3416c35f5d6ab1ff8958b0d781
query I rowsort
SELECT DISTINCT + + ( 49 ) * + col0 AS col0 FROM tab2 AS cor0
----
343
3822
3871
query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab2, tab2 AS cor0
----
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-7288
SELECT DISTINCT - + 46 * - 89 - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
4090
4093
4094
skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT - + 46 * - 89 - col0 / col1 AS col2 FROM tab2 AS cor0
----
4090
4093
4094
query I rowsort
SELECT DISTINCT + col2 - col2 * - ( - col1 ) * + col2 FROM tab0
----
-611802
-93621
-96
query I rowsort
SELECT + 8 * - col2 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT DISTINCT ( col0 ) + + col0 - + 23 AS col0 FROM tab0 AS cor0
----
155
25
47
query I rowsort
SELECT + - col0 + + cor0.col1 * + col2 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7293
SELECT - col1 * - CAST( col2 AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506
skipif mysql # not compatible
query I rowsort label-7293
SELECT - col1 * - CAST ( col2 AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ALL + col2 * + ( col2 ) AS col1 FROM tab0 cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 * + ( - col2 ) col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT ( 94 ) FROM tab2, tab0 AS cor0, tab1 cor1
----
94
query I rowsort
SELECT + 54 + + cor0.col1 FROM tab1 AS cor0
----
64
67
80
query I rowsort
SELECT ALL - - cor1.col2 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT DISTINCT + + col0 + col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + col2 * col1 * col1 AS col2 FROM tab2
----
10982
25947
90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7301
SELECT + col2 DIV col1 + col2 * - col0 FROM tab1
----
-160
-3643
-7673
skipif mysql # not compatible
query I rowsort label-7301
SELECT + col2 / col1 + col2 * - col0 FROM tab1
----
-160
-3643
-7673
query I rowsort
SELECT DISTINCT - 88 * col2 AS col1 FROM tab0
----
-2904
-7216
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7303
SELECT DISTINCT ( col0 * CAST( col0 AS SIGNED ) ) AS col2 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT ( col0 * CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL - 98 AS col1 FROM tab1
----
-98
-98
-98
query I rowsort
SELECT DISTINCT + + col2 + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL 61 + col0 + - 53 * + col1 FROM tab0
----
-4473
-4673
-5045
query I rowsort
SELECT 95 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT - 54 - col2 AS col0 FROM tab1 AS cor0
----
-108
-111
-150
query I rowsort
SELECT ALL - - 17 AS col2 FROM tab1 AS cor0
----
17
17
17
query I rowsort
SELECT + col0 * - cor0.col1 + ( - col2 ) + + col1 AS col2 FROM tab0 cor0
----
-2011
-3299
-8090
query I rowsort
SELECT - - ( col2 ) * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + ( 70 ) FROM tab1, tab1 AS cor0
----
70
query I rowsort
SELECT + tab2.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL + + col2 + + ( + 30 ) AS col2 FROM tab0 cor0
----
112
31
63
query I rowsort
SELECT ALL + col1 * + 38 AS col2 FROM tab2 AS cor0
----
1178
2242
646
query I rowsort
SELECT DISTINCT + col0 * + 21 * - 55 FROM tab1 AS cor0
----
-3465
-73920
-92400
onlyif mysql # use DIV operator for integer division
query I rowsort label-7317
SELECT DISTINCT - + col0 + col2 + + cor0.col1 * 44 DIV - col0 AS col0 FROM tab0 cor0
----
-148
-155
-51
skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT - + col0 + col2 + + cor0.col1 * 44 / - col0 AS col0 FROM tab0 cor0
----
-148
-155
-51
query I rowsort
SELECT ALL - - col0 + + 74 * - col1 * col0 FROM tab0 AS cor0
----
-152712
-251195
-599237
query I rowsort
SELECT ALL - 74 + - col2 FROM tab2 AS cor0
----
-100
-101
-112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7320
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - - 6 * cor0.col1 AS col1 FROM tab1 AS cor0
----
156
60
78
query I rowsort
SELECT DISTINCT - - 33 + 85 AS col1 FROM tab0 cor0
----
118
onlyif mysql # use DIV operator for integer division
query I rowsort label-7324
SELECT - col1 + ( 96 ) DIV tab0.col1 AS col1 FROM tab0
----
-85
-90
-97
skipif mysql # not compatible
query I rowsort label-7324
SELECT - col1 + ( 96 ) / tab0.col1 AS col1 FROM tab0
----
-85
-90
-97
query I rowsort
SELECT ALL + col0 + 72 AS col1 FROM tab0 AS cor0
----
107
161
96
query I rowsort
SELECT DISTINCT + col2 * + 93 AS col2 FROM tab2 AS cor0
----
2418
2511
3534
query I rowsort
SELECT - cor0.col2 * ( - cor0.col0 * 11 ) AS col2 FROM tab1 AS cor0
----
1782
40128
84480
query I rowsort
SELECT DISTINCT 10 * 62 FROM tab2
----
620
query I rowsort
SELECT + ( - col2 + col0 ) FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * cor0.col1 col2 FROM tab0, tab0 cor0
----
9 values hashing to 84ad71c6d02c194cabb6d219a204bcb2
query I rowsort
SELECT DISTINCT - 65 * 79 FROM tab0
----
-5135
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT + - col2 + - col2 * col2 FROM tab2 cor0
----
-1482
-702
-756
query I rowsort
SELECT + 87 * + col0 AS col2 FROM tab2 AS cor0
----
609
6786
6873
query I rowsort
SELECT + col2 * col0 + + ( + col1 ) FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + ( + col1 ) * + col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - + col1 + col0 * cor0.col0 FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT + + tab2.col0 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ( col1 * + col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) AS col2 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7341
SELECT - cor0.col0 DIV col0 col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7341
SELECT - cor0.col0 / col0 col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col1 * + 1 + 41 * + col0 AS col1 FROM tab1 AS cor0
----
149
2634
3293
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 92 col2 FROM tab1 AS cor0
----
1196
2392
920
onlyif mysql # use DIV operator for integer division
query I rowsort label-7344
SELECT - col0 * col2 DIV - col0 AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7344
SELECT - col0 * col2 / - col0 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT 83 + col1 FROM tab2
----
100
114
142
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + col1 * + col1 col2 FROM tab0
----
7397
8282
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-7348
SELECT - 34 + - col1 DIV col1 AS col0 FROM tab2
----
-35
-35
-35
skipif mysql # not compatible
query I rowsort label-7348
SELECT - 34 + - col1 / col1 AS col0 FROM tab2
----
-35
-35
-35
query I rowsort
SELECT ALL + 46 * cor0.col1 - 58 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 3f258b6420e702542fccc93d6021b02d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + ( + col2 ) col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * + col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT 91 * 38 FROM tab2, tab0 AS cor0
----
3458
onlyif mysql # use DIV operator for integer division
query I rowsort label-7353
SELECT - + col2 DIV + col0 + col0 AS col0 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-7353
SELECT - + col2 / + col0 + col0 AS col0 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT col2 * + col0 + + col0 + + col1 AS col0 FROM tab2 AS cor0
----
2165
227
3098
query I rowsort
SELECT + 97 * - col2 FROM tab1 AS cor0
----
-5238
-5529
-9312
query I rowsort
SELECT ALL - + ( cor0.col2 ) * ( col1 ) + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL - + col0 * - col2 AS col2 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT ( - tab2.col0 ) + + col1 + - col1 AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT 43 + col2 - + col0 AS col2 FROM tab2
----
-9
2
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT - - 86 + col0 DIV - 63 + - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
78
85
85
skipif mysql # not compatible
query I rowsort label-7362
SELECT - - 86 + col0 / - 63 + - col1 / col0 AS col2 FROM tab1 AS cor0
----
78
85
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * + cor0.col0 + + cor0.col2 + + 47 col1 FROM tab2 AS cor0
----
2569
2613
298
query I rowsort
SELECT DISTINCT col1 * col2 * col1 AS col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab2, tab0 AS cor0
----
-75
query I rowsort
SELECT + col2 + - 2 AS col2 FROM tab0 AS cor0
----
-1
31
80
query I rowsort
SELECT ALL - 96 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7368
SELECT ALL - CAST( + ( - col0 ) * + col0 AS SIGNED ) FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL - CAST ( + ( - col0 ) * + col0 AS INTEGER ) FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL 58 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 55 col2 FROM tab2
----
385
4290
4345
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) col1 FROM tab0
----
24
35
89
query I rowsort
SELECT - col2 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 29 * + 19 + + col1 AS col2 FROM tab2
----
568
582
610
onlyif mysql # use DIV operator for integer division
query I rowsort label-7374
SELECT ALL - + col2 + + col2 DIV - col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - + col2 + + col2 / - col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT ( + col2 ) * + col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col2 + tab2.col0 * + col1 * col2 FROM tab2
----
119626
50996
5832
query I rowsort
SELECT DISTINCT - 74 * - col2 + col2 AS col1 FROM tab2
----
1950
2025
2850
onlyif mysql # use DIV operator for integer division
query I rowsort label-7378
SELECT DISTINCT + col1 DIV col1 + - col0 AS col0 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT + col1 / col1 + - col0 AS col0 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT DISTINCT col2 * - col0 + col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + + col0 * col0 + cor0.col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL + col0 + - cor0.col0 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7382
SELECT - + col2 DIV - col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7382
SELECT - + col2 / - col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + col0 * col2 + + 5 * cor0.col0 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1435
1488
15664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 * + 81 col1 FROM tab1 cor0
----
246
5248
6560
query I rowsort
SELECT ALL col1 + - 18 * 85 + col2 AS col2 FROM tab2
----
-1445
-1472
-1475
onlyif mysql # use DIV operator for integer division
query I rowsort label-7386
SELECT + col0 DIV 58 col1 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7386
SELECT + col0 / 58 col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + col0 - 44 AS col0 FROM tab2
----
-37
34
35
query I rowsort
SELECT DISTINCT tab1.col1 + + ( - col2 ) * col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT - col2 * - ( 47 ) - + col0 * 86 AS col2 FROM tab2
----
-5008
-5486
667
query I rowsort
SELECT - col1 * - ( ( + col1 ) ) + + ( 76 ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
1157
2652
860
query I rowsort
SELECT DISTINCT + - col2 * - 26 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT - 17 + ( cor0.col1 ) * col2 * + col1 AS col2 FROM tab2 AS cor0
----
10965
25930
90489
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 * - 31 col0 FROM tab1 AS cor0
----
-2139
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - - ( + 4 ) * cor0.col0 FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT ALL - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - col1 * cor0.col0 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT col2 + 67 FROM tab0 cor0
----
100
149
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-7399
SELECT DISTINCT + + col0 DIV 56 - - col2 AS col0 FROM tab0 AS cor0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT + + col0 / 56 - - col2 AS col0 FROM tab0 AS cor0
----
1
33
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * - col2 col2 FROM tab1 cor0
----
-4644
-4902
-8256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 * col1 - col0 col1 FROM tab2 AS cor0
----
1884
3521
958
query I rowsort
SELECT + col0 - 89 FROM tab2
----
-10
-11
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7403
SELECT + col0 DIV + tab0.col0 + ( tab0.col0 ) AS col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7403
SELECT + col0 / + tab0.col0 + ( tab0.col0 ) AS col0 FROM tab0
----
25
36
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7404
SELECT DISTINCT tab0.col2 * CAST( + col0 AS SIGNED ) + + tab0.col0 * 1 FROM tab0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT tab0.col2 * CAST ( + col0 AS INTEGER ) + + tab0.col0 * 1 FROM tab0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7405
SELECT DISTINCT col0 / - ( col1 + col2 * + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT col0 / - ( col1 + col2 * + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
query I rowsort
SELECT ALL - col2 * - 66 FROM tab2
----
1716
1782
2508
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7407
SELECT ALL - col1 * CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - col1 * CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - tab0.col2 * + ( + col1 + col0 ) AS col0 FROM tab0
----
-132
-14760
-3630
query I rowsort
SELECT DISTINCT + col2 + col1 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT - col0 + col0 * ( cor0.col0 ) * + ( 88 ) AS col1 FROM tab1 AS cor0
----
360384
563120
789
query I rowsort
SELECT ( + 52 ) + cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 9f6b5c871c035cb01794bbfdb3e50b9c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7412
SELECT ALL - - cor0.col2 + CAST( NULL AS SIGNED ) * ( col1 ) * + 14 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - - cor0.col2 + CAST ( NULL AS INTEGER ) * ( col1 ) * + 14 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 46 FROM tab2, tab0 AS cor0
----
46
query I rowsort
SELECT DISTINCT - col2 * - 39 FROM tab0
----
1287
3198
39
query I rowsort
SELECT DISTINCT 48 FROM tab0, tab1 cor0
----
48
query I rowsort
SELECT 73 * - tab2.col2 FROM tab2
----
-1898
-1971
-2774
onlyif mysql # use DIV operator for integer division
query I rowsort label-7417
SELECT + col0 DIV col1 - col2 AS col0 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7417
SELECT + col0 / col1 - col2 AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT col2 + 14 FROM tab2
----
40
41
52
query I rowsort
SELECT + ( - 99 ) AS col0 FROM tab2
----
-99
-99
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7420
SELECT DISTINCT CAST( + ( col1 ) AS SIGNED ) + - ( col0 ) FROM tab2
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT CAST ( + ( col1 ) AS INTEGER ) + - ( col0 ) FROM tab2
----
-19
-62
24
query I rowsort
SELECT - col0 + + col1 - + col2 AS col2 FROM tab2
----
-100
-3
-45
skipif mysql # not compatible
query I rowsort
SELECT ALL + ( + 33 ) * col0 * - col2 + col1 * tab1.col1 / - CAST ( + col1 AS REAL ) FROM tab1
----
-120394
-253453
-5372
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7423
SELECT col1 * ( col1 ) * CAST( NULL AS SIGNED ) + 10 col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7423
SELECT col1 * ( col1 ) * CAST ( NULL AS INTEGER ) + 10 col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 62 + + 92 AS col2 FROM tab1
----
154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 29 ) + col2 + + col1 col1 FROM tab0
----
127
148
202
query I rowsort
SELECT ALL + 67 + + 51 + col2 AS col2 FROM tab2
----
144
145
156
query I rowsort
SELECT DISTINCT - col1 + ( col2 ) AS col0 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * col0 + col1 * + ( + 55 ) col1 FROM tab1
----
1190
1508
1755
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7429
SELECT CAST( NULL AS SIGNED ) + 10 + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7429
SELECT CAST ( NULL AS INTEGER ) + 10 + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col1 * + col1 + + col1 AS col1 FROM tab0 cor0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7431
SELECT col0 DIV - col0 + col0 * - col0 FROM tab1 cor0
----
-10
-4097
-6401
skipif mysql # not compatible
query I rowsort label-7431
SELECT col0 / - col0 + col0 * - col0 FROM tab1 cor0
----
-10
-4097
-6401
query I rowsort
SELECT ALL + + 73 * col2 * 10 + - 30 * col2 FROM tab0 AS cor0
----
23100
57400
700
query I rowsort
SELECT DISTINCT col2 - - cor0.col0 * + 6 AS col2 FROM tab1 AS cor0
----
441
576
72
query I rowsort
SELECT DISTINCT + col1 + - col0 * - cor0.col0 * col2 FROM tab0 AS cor0
----
1322
19094
649613
query I rowsort
SELECT ALL + 67 * - col2 FROM tab0 AS cor0
----
-2211
-5494
-67
query I rowsort
SELECT DISTINCT + 69 * col1 FROM tab1 AS cor0
----
1794
690
897
query I rowsort
SELECT ALL cor0.col2 + col1 + col0 FROM tab2 AS cor0
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * col1 col0 FROM tab0 AS cor0
----
-6192
-6552
-6984
query I rowsort
SELECT ALL 62 * - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-1464
-2135
-5429
onlyif mysql # use DIV operator for integer division
query I rowsort label-7440
SELECT - 60 * col2 + 88 DIV 5 + + col0 FROM tab1 AS cor0
----
-3220
-3339
-5663
skipif mysql # not compatible
query I rowsort label-7440
SELECT - 60 * col2 + 88 / 5 + + col0 FROM tab1 AS cor0
----
-3220
-3339
-5663
onlyif mysql # use DIV operator for integer division
query I rowsort label-7441
SELECT DISTINCT + ( - col1 ) DIV 22 FROM tab0 AS cor0
----
-3
-4
skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT + ( - col1 ) / 22 FROM tab0 AS cor0
----
-3
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT - + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7442
SELECT - + col1 / col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7443
SELECT + col1 + cor0.col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-7443
SELECT + col1 + cor0.col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT DISTINCT + - col2 * col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7446
SELECT + - col2 + + 43 DIV + col1 AS col1 FROM tab1 AS cor0
----
-53
-53
-93
skipif mysql # not compatible
query I rowsort label-7446
SELECT + - col2 + + 43 / + col1 AS col1 FROM tab1 AS cor0
----
-53
-53
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7447
SELECT - - col0 + CAST( NULL AS DECIMAL ) * col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7447
SELECT - - col0 + CAST ( NULL AS REAL ) * col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col0 - + col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - col0 * - 37 + + col2 AS col1 FROM tab2 AS cor0
----
286
2912
2961
query I rowsort
SELECT - + cor0.col2 + 89 AS col1 FROM tab1 AS cor0
----
-7
32
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 * 80 + col0 col1 FROM tab2 AS cor0
----
567
638
639
query I rowsort
SELECT DISTINCT 68 * cor0.col0 + + cor0.col2 FROM tab2 AS cor0
----
503
5330
5410
query I rowsort
SELECT ALL + col1 * + col0 * col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7454
SELECT ALL + + col0 DIV 97 AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL + + col0 / 97 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - - 96 + ( - col0 ) * + ( 77 + col1 ) FROM tab1 AS cor0
----
-213
-5472
-7104
query I rowsort
SELECT ALL + + ( ( col2 ) ) * + col1 + col1 * col2 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT ALL + 91 * cor0.col2 - + col2 FROM tab1 AS cor0
----
4860
5130
8640
onlyif mysql # use DIV operator for integer division
query I rowsort label-7458
SELECT - col1 DIV + 34 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7458
SELECT - col1 / + 34 FROM tab2
----
-1
0
0
query I rowsort
SELECT cor0.col0 * ( col1 ) - 14 AS col1 FROM tab0 AS cor0
----
2050
3381
8085
query I rowsort
SELECT + + 59 + 81 * col1 * + ( col1 * col2 ) AS col1 FROM tab2 AS cor0
----
2101766
7331045
889601
query I rowsort
SELECT + col1 * - 17 AS col2 FROM tab1 AS cor0
----
-170
-221
-442
query I rowsort
SELECT - - 62 * + cor0.col0 FROM tab1 AS cor0
----
186
3968
4960
query I rowsort
SELECT - - ( - col0 ) * col1 * 77 - - col2 * col1 FROM tab1 AS cor0
----
-4602
-48710
-78832
query I rowsort
SELECT - + cor0.col1 * col2 - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT col1 - - 69 FROM tab1 AS cor0
----
79
82
95
query I rowsort
SELECT 83 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 002a717a3d902d97220759065fb107c3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7467
SELECT + 98 DIV + 15 col1 FROM tab1
----
6
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7467
SELECT + 98 / + 15 col1 FROM tab1
----
6
6
6
query I rowsort
SELECT ALL 34 + col1 AS col0 FROM tab2
----
51
65
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( col2 ) * ( col2 ) ) col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - col0 * col0 - col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT ALL col2 * - col0 + col2 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT 3 + col2 + col1 * - col2 FROM tab1 AS cor0
----
-1149
-1347
-510
onlyif mysql # use DIV operator for integer division
query I rowsort label-7473
SELECT - + col1 + col1 DIV ( - col2 ) AS col2 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-7473
SELECT - + col1 + col1 / ( - col2 ) AS col2 FROM tab0 AS cor0
----
-194
-88
-92
query I rowsort
SELECT + + cor0.col2 * col0 + + 37 AS col0 FROM tab1 cor0
----
199
3685
7717
query I rowsort
SELECT ALL col2 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT - - col2 * + col1 + + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL ( - col2 ) + col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - + 77 * - col2 + - 4 FROM tab1 AS cor0
----
4154
4385
7388
query I rowsort
SELECT - + 0 + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + cor0.col2 * col2 + - 66 * + col1 AS col1 FROM tab0 AS cor0
----
-4587
-6401
718
query I rowsort
SELECT DISTINCT - + col2 * - cor0.col2 + - 26 * - 67 FROM tab0 cor0
----
1743
2831
8466
query I rowsort
SELECT ALL + + 19 * col1 * + 57 + + col0 * col1 * cor0.col0 - - col1 FROM tab0 AS cor0
----
142760
223973
819455
query I rowsort
SELECT DISTINCT col0 - + col1 * + col0 * 67 FROM tab2 cor0
----
-14532
-308256
-89902
query I rowsort
SELECT ALL + ( cor0.col2 ) * col1 + ( cor0.col2 ) - 28 AS col1 FROM tab2 AS cor0
----
1532
656
836
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * cor0.col0 + ( col2 ) col1 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-7486
SELECT - 70 DIV - col0 FROM tab0 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-7486
SELECT - 70 / - col0 FROM tab0 AS cor0
----
0
2
2
query I rowsort
SELECT ALL col1 * col1 + 12 + col2 AS col1 FROM tab0 AS cor0
----
7441
8375
9422
query I rowsort
SELECT - col1 * col2 + - 7 FROM tab2 AS cor0
----
-1541
-653
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-7489
SELECT + col1 DIV 97 AS col0 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7489
SELECT + col1 / 97 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 + 16 * + col2 * + col1 AS col1 FROM tab0
----
119481
1587
45432
query I rowsort
SELECT - col1 * + col0 * col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7492
SELECT DISTINCT cor0.col1 DIV - 92 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT cor0.col1 / - 92 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - + col2 + + col0 * col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT cor0.col1 * col2 * - ( col0 ) FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT col0 * ( col0 * - col2 ) FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT + - col2 * - 46 FROM tab0 cor0
----
1518
3772
46
query I rowsort
SELECT ALL - - col2 + 31 AS col0 FROM tab1 AS cor0
----
127
85
88
query I rowsort
SELECT + col0 * 15 FROM tab1 cor0
----
1200
45
960
query I rowsort
SELECT ALL + col0 * - 6 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
-113
-443
-58
query I rowsort
SELECT DISTINCT - col0 + 11 AS col1 FROM tab1 AS cor0
----
-53
-69
8
query I rowsort
SELECT + cor0.col2 + + 95 AS col2 FROM tab0 AS cor0
----
128
177
96
query I rowsort
SELECT ALL col2 + + ( col1 ) FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + + col2 + - 73 FROM tab2 AS cor0
----
-35
-46
-47
query I rowsort
SELECT DISTINCT - - 96 * cor0.col1 * col2 FROM tab1 AS cor0
----
119808
134784
54720
query I rowsort
SELECT ALL - - 2 AS col2 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT ( + 31 ) FROM tab1 AS cor0
----
31
31
31
query I rowsort
SELECT ALL - + col2 * col0 * col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-7508
SELECT - cor0.col0 + col2 DIV col0 FROM tab2 AS cor0
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-7508
SELECT - cor0.col0 + col2 / col0 FROM tab2 AS cor0
----
-4
-78
-79
query I rowsort
SELECT + col0 - ( col0 ) * + col2 * ( + col0 ) FROM tab0
----
-1190
-18984
-649433
query I rowsort
SELECT ALL 84 + 59 FROM tab2 cor0
----
143
143
143
onlyif mysql # use DIV operator for integer division
query I rowsort label-7511
SELECT - + 59 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-7511
SELECT - + 59 / col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT - col0 + 63 AS col0 FROM tab2
----
-15
-16
56
query I rowsort
SELECT col0 * col2 + col2 AS col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - 64 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT - 11 * - cor0.col1 FROM tab1, tab1 cor0
----
9 values hashing to 2317ce0c4c8f7dfe40c62e4e9ed83fb1
query I rowsort
SELECT - cor0.col0 + - col1 * + col0 * - 30 FROM tab1 AS cor0
----
19136
2337
31120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7517
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 * - col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 * - col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL + 40 AS col1 FROM tab1 AS cor0
----
40
40
40
query I rowsort
SELECT + - 29 + col2 * col0 FROM tab2 cor0
----
160
1999
2973
query I rowsort
SELECT + 12 * 96 + col0 AS col1 FROM tab1 AS cor0
----
1155
1216
1232
onlyif mysql # use DIV operator for integer division
query I rowsort label-7521
SELECT - col2 DIV - col1 + + col0 * + col2 * - 9 FROM tab2
----
-1701
-18252
-27016
skipif mysql # not compatible
query I rowsort label-7521
SELECT - col2 / - col1 + + col0 * + col2 * - 9 FROM tab2
----
-1701
-18252
-27016
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT 47 - - col1 FROM tab0
----
133
138
144
onlyif mysql # use DIV operator for integer division
query I rowsort label-7524
SELECT + + col1 DIV CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7524
SELECT + + col1 / CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ( + tab1.col1 ) * - tab1.col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + tab2.col0 * + col1 + ( col1 * col2 ) - - 61 FROM tab2
----
1115
2050
6197
query I rowsort
SELECT DISTINCT tab0.col1 + + col0 - col0 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7528
SELECT ALL col0 + + col1 - col1 DIV - col1 FROM tab1
----
30
75
94
skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL col0 + + col1 - col1 / - col1 FROM tab1
----
30
75
94
query I rowsort
SELECT DISTINCT - col2 + 27 FROM tab1
----
-27
-30
-69
query I rowsort
SELECT + col0 + - tab2.col1 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT - col0 * - col2 + - col2 AS col1 FROM tab2
----
162
2002
2964
query I rowsort
SELECT DISTINCT col0 + - 47 + tab0.col0 AS col0 FROM tab0
----
1
131
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7533
SELECT DISTINCT + tab1.col1 + + 30 DIV + tab1.col1 AS col0 FROM tab1
----
13
15
27
skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT + tab1.col1 + + 30 / + tab1.col1 AS col0 FROM tab1
----
13
15
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-7534
SELECT DISTINCT + col2 * cor0.col1 DIV col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT + col2 * cor0.col1 / col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col0 + col0 * + col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT - + col0 + col0 * col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT + col1 + - col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT + 17 * col0 + + 90 AS col1 FROM tab0 AS cor0
----
1603
498
685
query I rowsort
SELECT - + col0 + - col0 * col2 FROM tab2 AS cor0
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-7542
SELECT DISTINCT + 41 DIV + col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT + 41 / + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + - col1 * ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - col2 * col2 + col1 AS col1 FROM tab1
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT - col0 + - col2 * col0 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-7546
SELECT - col2 DIV + col1 - + col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7546
SELECT - col2 / + col1 - + col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 8 FROM tab2, tab0 cor0
----
8
query I rowsort
SELECT 57 + - cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to de52c26e404e11955ba6f38d63128f48
query I rowsort
SELECT DISTINCT - - 7 + col1 * col2 FROM tab1 AS cor0
----
1255
1411
577
query I rowsort
SELECT col2 * - col1 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT col0 * col2 + col0 * - tab0.col1 AS col1 FROM tab0
----
-1272
-3360
-801
onlyif mysql # use DIV operator for integer division
query I rowsort label-7552
SELECT DISTINCT col1 * col1 DIV col2 - col2 col1 FROM tab0
----
18
191
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT col1 * col1 / col2 - col2 col1 FROM tab0
----
18
191
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-7553
SELECT ALL col1 DIV - 13 + tab0.col1 DIV - ( col2 ) FROM tab0
----
-104
-8
-8
skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL col1 / - 13 + tab0.col1 / - ( col2 ) FROM tab0
----
-104
-8
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col0 col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7555
SELECT CAST( col0 * col0 AS SIGNED ) + + 67 FROM tab2
----
116
6151
6308
skipif mysql # not compatible
query I rowsort label-7555
SELECT CAST ( col0 * col0 AS INTEGER ) + + 67 FROM tab2
----
116
6151
6308
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7556
SELECT - cor0.col1 * + cor0.col2 + + CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7556
SELECT - cor0.col1 * + cor0.col2 + + CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( + col1 ) AS col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT col0 + + ( tab2.col1 ) + col2 * col2 FROM tab2
----
1540
767
813
query I rowsort
SELECT - ( 30 ) + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-108
-109
-37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7560
SELECT ALL + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - 27 col0 FROM tab0 cor0
----
-2322
-2457
-2619
query I rowsort
SELECT ALL - 20 * - col0 FROM tab1
----
1280
1600
60
query I rowsort
SELECT ALL - col2 * col0 + + col0 * 23 AS col1 FROM tab2
----
-1185
-234
-28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7564
SELECT ALL CAST( col1 AS SIGNED ) + + col2 * ( - col1 ) FROM tab1
----
-1235
-1378
-560
skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL CAST ( col1 AS INTEGER ) + + col2 * ( - col1 ) FROM tab1
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-7565
SELECT DISTINCT tab0.col2 * col1 DIV ( 8 ) col0 FROM tab0
----
12
354
932
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT tab0.col2 * col1 / ( 8 ) col0 FROM tab0
----
12
354
932
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) col1 FROM tab2
----
7
78
79
query I rowsort
SELECT + tab1.col1 + tab1.col1 - col0 AS col1 FROM tab1
----
-44
-54
49
query I rowsort
SELECT ALL + tab0.col1 * - col0 - tab0.col0 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT 20 * - col0 AS col2 FROM tab2 AS cor0
----
-140
-1560
-1580
onlyif mysql # use DIV operator for integer division
query I rowsort label-7570
SELECT ALL - col1 + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL - col1 + col1 / col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT DISTINCT + col2 + + 69 * + col1 AS col1 FROM tab1 AS cor0
----
1848
747
993
query I rowsort
SELECT + col0 * + col1 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + ( ( col1 ) ) * col1 AS col1 FROM tab2 cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-7574
SELECT DISTINCT + 47 DIV 7 AS col1 FROM tab0
----
6
skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT + 47 / 7 AS col1 FROM tab0
----
6
query I rowsort
SELECT - 88 * - col2 AS col1 FROM tab0
----
2904
7216
88
query I rowsort
SELECT ALL - col0 * - col0 * - col1 + + col2 AS col1 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT ( - 33 ) FROM tab1 AS cor0
----
-33
-33
-33
query I rowsort
SELECT + 52 * - 99 AS col0 FROM tab1 AS cor0
----
-5148
-5148
-5148
query I rowsort
SELECT - ( col0 ) * - 69 * ( col0 ) FROM tab1
----
282624
441600
621
query I rowsort
SELECT - ( + tab2.col1 * + 82 ) AS col2 FROM tab2
----
-1394
-2542
-4838
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7581
SELECT ALL - col0 * - CAST( - cor0.col0 AS SIGNED ) * col1 + CAST( NULL AS SIGNED ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL - col0 * - CAST ( - cor0.col0 AS INTEGER ) * col1 + CAST ( NULL AS INTEGER ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7582
SELECT - col0 DIV col2 + col0 AS col0 FROM tab0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-7582
SELECT - col0 / col2 + col0 AS col0 FROM tab0
----
0
24
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * + col0 - - col0 col2 FROM tab0
----
1050
2670
720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7584
SELECT col1 * CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-7584
SELECT col1 * CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 80 col1 FROM tab2
----
42
53
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-7586
SELECT DISTINCT + + col0 DIV - cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT + + col0 / - cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT + + cor0.col0 * ( - col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7588
SELECT + col2 + + ( + col2 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-7588
SELECT + col2 + + ( + col2 ) / + col2 AS col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
-54
-57
-96
query I rowsort
SELECT - cor0.col2 + 1 AS col0 FROM tab2 AS cor0
----
-25
-26
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-7591
SELECT + - col1 + + cor0.col1 + col2 DIV ( col2 ) AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7591
SELECT + - col1 + + cor0.col1 + col2 / ( col2 ) AS col2 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT + col2 * col0 + + col1 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT 64 + + 15 * + col0 FROM tab2 cor0
----
1234
1249
169
query I rowsort
SELECT - ( - col0 ) - col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + col2 * + col2 + 38 FROM tab2 AS cor0
----
1482
714
767
query I rowsort
SELECT DISTINCT - 61 - + col0 AS col1 FROM tab0 AS cor0
----
-150
-85
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col2 FROM tab1 AS cor0
----
21
21
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 + + col1 col1 FROM tab0 AS cor0
----
54
59
65
query I rowsort
SELECT + col2 * col2 * col0 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7601
SELECT CAST( NULL AS SIGNED ) * col2 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7601
SELECT CAST ( NULL AS INTEGER ) * col2 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7602
SELECT cor0.col0 + col2 DIV col0 + + 6 col2 FROM tab2 AS cor0
----
16
84
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7602
SELECT cor0.col0 + col2 / col0 + + 6 col2 FROM tab2 AS cor0
----
16
84
85
query I rowsort
SELECT DISTINCT + ( col1 ) + 16 FROM tab2 AS cor0
----
33
47
75
query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + - 44 * - col0 AS col2 FROM tab0 cor0
----
1056
1540
3916
query I rowsort
SELECT col1 + col0 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL - + 32 AS col0 FROM tab2 AS cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT col0 * col2 + col0 * col1 FROM tab0 AS cor0
----
15397
2856
3430
onlyif mysql # use DIV operator for integer division
query I rowsort label-7609
SELECT ALL + col1 DIV - col0 + - 94 * + col0 + col2 FROM tab2 AS cor0
----
-635
-7306
-7388
skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL + col1 / - col0 + - 94 * + col0 + col2 FROM tab2 AS cor0
----
-635
-7306
-7388
query I rowsort
SELECT - 35 + - col1 AS col0 FROM tab1 AS cor0
----
-45
-48
-61
query I rowsort
SELECT ALL + col2 * col0 - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL - 22 * col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1867
-442
-673
query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT + col0 * - col0 - + 66 FROM tab0 AS cor0
----
-1291
-642
-7987
query I rowsort
SELECT ALL - 68 * col1 + col2 FROM tab2 AS cor0
----
-1118
-2081
-3986
query I rowsort
SELECT ALL 23 + col0 + + ( - col0 ) AS col2 FROM tab0
----
23
23
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7617
SELECT DISTINCT - col2 / CAST( NULL AS DECIMAL ) - col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT - col2 / CAST ( NULL AS REAL ) - col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 * - col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 + - CAST ( col0 AS REAL ) * - col0 col2 FROM tab0 cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT - - col2 + - 94 FROM tab2 AS cor0
----
-56
-67
-68
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col2 FROM tab1
----
20
26
52
query I rowsort
SELECT 2 + + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e539bf0beb11ad56ef3c9cededc47e07
query I rowsort
SELECT DISTINCT - - ( + col0 ) * col0 + ( + col1 ) FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - 6 * + col1 FROM tab1 AS cor0
----
-156
-60
-78
query I rowsort
SELECT ALL - ( 84 ) * col2 * + 68 AS col0 FROM tab0 AS cor0
----
-188496
-468384
-5712
query I rowsort
SELECT ALL + cor0.col2 * 52 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT col2 + 74 FROM tab0
----
107
156
75
query I rowsort
SELECT DISTINCT - col2 * 93 - col1 AS col1 FROM tab0
----
-190
-3155
-7717
onlyif mysql # use DIV operator for integer division
query I rowsort label-7630
SELECT ALL + col2 * + col1 + + col1 DIV - col2 - col2 AS col1 FROM tab1
----
1152
1350
513
skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL + col2 * + col1 + + col1 / - col2 - col2 AS col1 FROM tab1
----
1152
1350
513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + tab1.col2 + - col1 col1 FROM tab1
----
1331
1432
617
query I rowsort
SELECT DISTINCT 29 * + col2 - + col2 AS col0 FROM tab2
----
1064
728
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-7633
SELECT DISTINCT - col0 DIV - col0 - + col0 AS col1 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - col0 / - col0 - + col0 AS col1 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT 33 * col2 - col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-5575
-6307
-9376
onlyif mysql # use DIV operator for integer division
query I rowsort label-7635
SELECT - - cor0.col1 DIV + col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7635
SELECT - - cor0.col1 / + col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - + 88 + - col2 FROM tab1 AS cor0
----
-142
-145
-184
query I rowsort
SELECT DISTINCT tab0.col1 + 23 * + col1 AS col0 FROM tab0
----
2064
2184
2328
query I rowsort
SELECT 26 + col2 - col2 * ( - 46 ) FROM tab1
----
2564
2705
4538
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * col1 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL - col2 + col1 * col1 AS col1 FROM tab1
----
43
622
73
query I rowsort
SELECT col2 + - col1 * col1 * col2 AS col2 FROM tab0 AS cor0
----
-244035
-678960
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-7642
SELECT DISTINCT + cor0.col0 * 89 DIV + col1 FROM tab0 cor0
----
24
32
87
skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT + cor0.col0 * 89 / + col1 FROM tab0 cor0
----
24
32
87
query I rowsort
SELECT ALL + - cor0.col2 + + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + - cor0.col1 + col0 * 11 FROM tab1 AS cor0
----
694
7
867
query I rowsort
SELECT DISTINCT + + col0 + - cor0.col0 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7646
SELECT + col1 DIV + 74 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7646
SELECT + col1 / + 74 FROM tab1
----
0
0
0
query I rowsort
SELECT + col2 * col1 + + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT + col0 * col0 + col1 * col1 * cor0.col2 FROM tab1 AS cor0
----
22624
36513
9796
onlyif mysql # use DIV operator for integer division
query I rowsort label-7649
SELECT ALL + + 31 DIV col0 AS col1 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + + 31 / col0 AS col1 FROM tab2 cor0
----
0
0
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7650
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 30 + cor0.col1 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 30 + cor0.col1 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + 58 + cor0.col2 * 44 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3c60187fb32ffad25c4c9c0e44916bf9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 660751b3166f5cb8964b7ef659605795
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - cor0.col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT 29 * + col0 AS col1 FROM tab1 AS cor0
----
1856
2320
87
query I rowsort
SELECT + 2 + - col2 * cor0.col0 FROM tab0 AS cor0
----
-33
-7296
-790
query I rowsort
SELECT DISTINCT - - col1 + + col2 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT + + 12 + + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1546
658
849
query I rowsort
SELECT DISTINCT + 34 * col2 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT ALL - ( col0 ) * ( col1 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + 91 + col0 * 81 FROM tab0 AS cor0
----
2035
2926
7300
query I rowsort
SELECT ALL - cor0.col0 * + col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL cor0.col0 * col2 - - col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + 37 * - col2 FROM tab0 AS cor0
----
-1221
-3034
-37
query I rowsort
SELECT DISTINCT - cor0.col0 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT col2 * col0 + 56 FROM tab0 AS cor0
----
7354
848
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 - col2 col2 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7669
SELECT col2 + - CAST( NULL AS SIGNED ) * + 6 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7669
SELECT col2 + - CAST ( NULL AS INTEGER ) * + 6 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + - 14 FROM tab0 AS cor0
----
-100
-105
-111
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - col1 * + col0 * col0 col2 FROM tab1 AS cor0
----
-288
-41017
-83296
query I rowsort
SELECT ALL col2 * 77 * col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
12477
280960
591440
query I rowsort
SELECT - cor0.col1 - + col0 * col0 AS col0 FROM tab1 cor0
----
-35
-4106
-6413
query I rowsort
SELECT cor0.col0 - + ( + 64 * cor0.col2 ) FROM tab0 AS cor0
----
-2088
-29
-5159
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 * + col0 - + 16 col2 FROM tab2
----
1232
1248
96
query I rowsort
SELECT - col1 * - ( col2 ) FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + cor0.col2 + ( + col1 ) * col1 * + 29 FROM tab2 AS cor0
----
100975
27896
8419
query I rowsort
SELECT + col1 + cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT - col2 + col2 * - col2 * + col1 FROM tab1 AS cor0
----
-119904
-32547
-75870
query I rowsort
SELECT DISTINCT col0 + + 88 * col0 * - col2 + - 43 AS col1 FROM tab1
----
-14296
-321003
-675803
query I rowsort
SELECT ALL - ( cor0.col2 ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7682
SELECT col1 * CAST( 0 AS SIGNED ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7682
SELECT col1 * CAST ( 0 AS INTEGER ) FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col0 + ( col1 ) AS col2 FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7685
SELECT - col1 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7685
SELECT - col1 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab0.col0 * 76 FROM tab0
----
1824
2660
6764
query I rowsort
SELECT 27 * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2106
2133
query I rowsort
SELECT - + 28 * col1 AS col1 FROM tab0 AS cor0
----
-2408
-2548
-2716
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + + col0 col0 FROM tab2 AS cor0
----
-29
42
43
query I rowsort
SELECT + ( - col2 ) * + col2 AS col2 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-7691
SELECT tab0.col0 DIV - ( ( + tab0.col1 ) ) AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-7691
SELECT tab0.col0 / - ( ( + tab0.col1 ) ) AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL - col2 * + ( col0 ) * + col1 AS col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT + 24 * col1 AS col0 FROM tab1 AS cor0
----
240
312
624
query I rowsort
SELECT col1 * col2 * 60 AS col0 FROM tab0 AS cor0
----
170280
447720
5820
query I rowsort
SELECT ALL - - 35 + col2 AS col2 FROM tab2 AS cor0
----
61
62
73
query I rowsort
SELECT col2 * + col2 * col2 AS col0 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT DISTINCT + - col0 * + 56 AS col1 FROM tab2 AS cor0
----
-392
-4368
-4424
query I rowsort
SELECT DISTINCT 45 * - col1 AS col2 FROM tab2 AS cor0
----
-1395
-2655
-765
query I rowsort
SELECT ( + 28 ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-26
-29
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7700
SELECT ALL - CAST( NULL AS DECIMAL ) * cor0.col2 * col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL - CAST ( NULL AS REAL ) * cor0.col2 * col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( - col0 AS REAL ) + + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT 91 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 8a48d0ac75792561e233f0311a8872fd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 + col2 * col2 col1 FROM tab0
----
-25
1063
6698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 + - tab1.col0 col0 FROM tab1
----
-2919
-3313
-9296
query I rowsort
SELECT DISTINCT col2 + + 24 * tab2.col0 FROM tab2
----
1898
1934
195
query I rowsort
SELECT 10 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
onlyif mysql # use DIV operator for integer division
query I rowsort label-7707
SELECT col2 DIV tab1.col1 + - tab1.col0 DIV ( col2 ) AS col0 FROM tab1
----
2
4
7
skipif mysql # not compatible
query I rowsort label-7707
SELECT col2 / tab1.col1 + - tab1.col0 / ( col2 ) AS col0 FROM tab1
----
2
4
7
query I rowsort
SELECT + - 46 * col2 + col2 FROM tab2 AS cor0
----
-1170
-1215
-1710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col2 * + cor0.col1 col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL - ( + col2 ) + col1 + ( ( - col2 ) ) FROM tab0
----
-73
20
95
query I rowsort
SELECT DISTINCT ( col0 ) + + tab2.col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT 25 * col0 * col1 + + 20 * col0 * + col2 FROM tab2
----
155610
9205
93615
query I rowsort
SELECT DISTINCT + - cor0.col1 + 92 * + cor0.col2 * + col1 FROM tab2 cor0
----
141069
59415
76973
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col2 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT - + col0 + 83 * + col1 + + col2 AS col0 FROM tab2 AS cor0
----
1370
2593
4845
query I rowsort
SELECT - - col0 * + ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col2 FROM tab2
----
87
87
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7718
SELECT ALL + col2 + - 13 DIV + col1 - + col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + col2 + - 13 / + col1 - + col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT tab2.col0 - - col1 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT + col0 * col2 * col1 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - - 93 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT - - cor0.col1 - - col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + col1 * - ( - col2 ) AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col2 * + ( - cor0.col0 + col1 ) FROM tab1 AS cor0
----
-3078
-6432
1242
onlyif mysql # use DIV operator for integer division
query I rowsort label-7725
SELECT + cor0.col2 DIV + col0 - + 18 AS col1 FROM tab2 AS cor0
----
-15
-18
-18
skipif mysql # not compatible
query I rowsort label-7725
SELECT + cor0.col2 / + col0 - + 18 AS col1 FROM tab2 AS cor0
----
-15
-18
-18
onlyif mysql # use DIV operator for integer division
query I rowsort label-7726
SELECT col1 * - col1 DIV col1 AS col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-7726
SELECT col1 * - col1 / col1 AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + col2 * + 85 FROM tab0
----
2805
6970
85
query I rowsort
SELECT col0 + - 53 FROM tab1
----
-50
11
27
query I rowsort
SELECT ALL + col2 - - ( - ( tab0.col0 ) ) AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL col2 - - ( - col2 + + col0 ) FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col0 * ( - col2 ) - col1 FROM tab2
----
-2087
-220
-3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7732
SELECT ALL - col0 + 95 * - col1 + - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL - col0 + 95 * - col1 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7733
SELECT DISTINCT - - col2 DIV + col0 + col2 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT - - col2 / + col0 + col2 FROM tab1 AS cor0
----
57
72
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7734
SELECT DISTINCT col2 DIV col2 + - tab1.col0 AS col1 FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT col2 / col2 + - tab1.col0 AS col1 FROM tab1
----
-2
-63
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7735
SELECT + col2 + + ( + col2 + - tab1.col1 ) * CAST( col2 * - col0 AS SIGNED ) AS col2 FROM tab1
----
-171399
-4482
-637344
skipif mysql # not compatible
query I rowsort label-7735
SELECT + col2 + + ( + col2 + - tab1.col1 ) * CAST ( col2 * - col0 AS INTEGER ) AS col2 FROM tab1
----
-171399
-4482
-637344
onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT - col1 * CAST( ( - col0 ) AS SIGNED ) DIV - 55 + col2 col1 FROM tab2
----
-57
14
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7736
SELECT - col1 * CAST ( ( - col0 ) AS INTEGER ) / - 55 + col2 col1 FROM tab2
----
-57
14
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-7737
SELECT col1 * + col1 + cor0.col2 DIV 16 FROM tab2 AS cor0
----
291
3482
962
skipif mysql # not compatible
query I rowsort label-7737
SELECT col1 * + col1 + cor0.col2 / 16 FROM tab2 AS cor0
----
291
3482
962
onlyif mysql # use DIV operator for integer division
query I rowsort label-7738
SELECT ALL + col1 + - col1 * - col2 DIV col2 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + col1 + - col1 * - col2 / col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - 37 + col2 AS col2 FROM tab1 AS cor0
----
17
20
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7740
SELECT ALL col0 + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL col0 + col2 / col0 AS col2 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT DISTINCT + col2 * - col0 + - col0 + col1 AS col2 FROM tab1 AS cor0
----
-139
-3702
-7747
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7743
SELECT - col1 DIV + 61 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7743
SELECT - col1 / + 61 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * - 25 AS col1 FROM tab2 AS cor0
----
-650
-675
-950
onlyif mysql # use DIV operator for integer division
query I rowsort label-7745
SELECT - col2 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-7745
SELECT - col2 / col1 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 28 * + col1 FROM tab1 AS cor0
----
280
364
728
query I rowsort
SELECT + ( - 23 ) * col0 AS col1 FROM tab2 AS cor0
----
-161
-1794
-1817
onlyif mysql # use DIV operator for integer division
query I rowsort label-7748
SELECT - col2 * tab0.col2 DIV col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7748
SELECT - col2 * tab0.col2 / col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - tab1.col1 AS col2 FROM tab1, tab2, tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - - 22 FROM tab1 AS cor0
----
22
22
22
query I rowsort
SELECT ALL + cor0.col2 + - 38 AS col1 FROM tab2 AS cor0
----
-11
-12
0
query I rowsort
SELECT ALL 18 + ( - col2 ) FROM tab2 AS cor0
----
-20
-8
-9
query I rowsort
SELECT DISTINCT - col1 * + 47 AS col0 FROM tab0 AS cor0
----
-4042
-4277
-4559
query I rowsort
SELECT + + ( col0 ) - - col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + ( - col0 ) + + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - 3 * + ( + col1 ) FROM tab2 cor0
----
-177
-51
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7757
SELECT - col0 * col0 DIV ( col0 ) + tab2.col1 AS col1 FROM tab2
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-7757
SELECT - col0 * col0 / ( col0 ) + tab2.col1 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT - 52 * - col2 AS col0 FROM tab0 AS cor0
----
1716
4264
52
query I rowsort
SELECT + 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 * + ( - 7 * col1 ) - col1 AS col0 FROM tab0 AS cor0
----
23668
4648735
476698
onlyif mysql # use DIV operator for integer division
query I rowsort label-7761
SELECT ALL - + 84 * col0 DIV ( 14 + col2 ) AS col1 FROM tab1 AS cor0
----
-3
-61
-75
skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL - + 84 * col0 / ( 14 + col2 ) AS col1 FROM tab1 AS cor0
----
-3
-61
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7762
SELECT DISTINCT ( col0 ) * CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT ( col0 ) * CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - - 80 * - col1 * col1 FROM tab1 cor0
----
-13520
-54080
-8000
query I rowsort
SELECT + cor0.col2 * + col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - + 13 * + col2 * - col2 + col0 AS col0 FROM tab0 cor0
----
14181
48
87501
query I rowsort
SELECT ALL + cor0.col1 - + cor0.col1 * + 89 FROM tab0 cor0
----
-7568
-8008
-8536
onlyif mysql # use DIV operator for integer division
query I rowsort label-7768
SELECT DISTINCT - col0 + + col2 DIV 8 AS col0 FROM tab0 AS cor0
----
-20
-35
-79
skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT - col0 + + col2 / 8 AS col0 FROM tab0 AS cor0
----
-20
-35
-79
query I rowsort
SELECT DISTINCT - - col2 * - col0 - cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) + + col2 * col0 + + col0 FROM tab1 AS cor0
----
14160
174
7808
query I rowsort
SELECT DISTINCT - 94 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-94
query I rowsort
SELECT ALL + ( cor0.col2 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - - col1 * + 90 - - ( - col2 ) * - 74 AS col1 FROM tab1 AS cor0
----
5118
6336
8274
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7774
SELECT + col1 * col0 + CAST( NULL AS DECIMAL ) * col0 * - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7774
SELECT + col1 * col0 + CAST ( NULL AS REAL ) * col0 * - col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * 67 FROM tab2, tab2 AS cor0
----
9 values hashing to cdaa91088e3d795974518f8ccfc5fcca
query I rowsort
SELECT - 64 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT - 9 * col2 FROM tab0 cor0
----
-297
-738
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col2 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7779
SELECT + - col1 + + col2 * + 38 + ( - col1 ) DIV cor0.col0 FROM tab0 AS cor0
----
-61
1165
3024
skipif mysql # not compatible
query I rowsort label-7779
SELECT + - col1 + + col2 * + 38 + ( - col1 ) / cor0.col0 FROM tab0 AS cor0
----
-61
1165
3024
query I rowsort
SELECT - 98 + col0 AS col2 FROM tab2 AS cor0
----
-19
-20
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7781
SELECT - cor0.col2 + - cor0.col2 * + CAST( NULL AS SIGNED ) - - 16 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7781
SELECT - cor0.col2 + - cor0.col2 * + CAST ( NULL AS INTEGER ) - - 16 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col0 + + col2 * + col1 * col1 AS col1 FROM tab1
----
16304
36507
5764
query I rowsort
SELECT - col0 * - cor0.col2 - + 7 AS col2 FROM tab2 AS cor0
----
182
2021
2995
query I rowsort
SELECT ALL - - col0 * - col0 * + col0 + cor0.col2 AS col2 FROM tab0 cor0
----
-13791
-42874
-704887
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7785
SELECT - col0 * col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7785
SELECT - col0 * col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 16 + col2 FROM tab2 AS cor0
----
10
11
22
query I rowsort
SELECT - - 7 * col2 FROM tab0 AS cor0
----
231
574
7
query I rowsort
SELECT DISTINCT 92 - - col0 FROM tab1 AS cor0
----
156
172
95
query I rowsort
SELECT col1 + + 47 * + tab0.col2 FROM tab0
----
144
1637
3945
skipif mysql # not compatible
query I rowsort
SELECT col1 + + CAST ( - 15 AS REAL ) FROM tab2
----
16
2
44
query I rowsort
SELECT + col2 * + ( 27 + - col1 ) AS col1 FROM tab2 AS cor0
----
-108
-832
380
query I rowsort
SELECT ALL - + col0 + - 5 FROM tab0 AS cor0
----
-29
-40
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-7793
SELECT - - col0 DIV 39 FROM tab0 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-7793
SELECT - - col0 / 39 FROM tab0 cor0
----
0
0
2
query I rowsort
SELECT + + col0 * 91 * + col2 FROM tab2 AS cor0
----
17199
184548
273182
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 67 * + col0 col2 FROM tab0 AS cor0
----
1608
2345
5963
query I rowsort
SELECT ALL 43 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 53b2f139a07f856ac44a1158efd4e63d
query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT 6 * + col2 FROM tab2
----
156
162
228
query I rowsort
SELECT DISTINCT 11 FROM tab1, tab1 cor0
----
11
query I rowsort
SELECT + 84 * - col1 AS col0 FROM tab0 AS cor0
----
-7224
-7644
-8148
query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + 90 + + col2 col1 FROM tab2 AS cor0
----
1568
2817
5336
query I rowsort
SELECT + - col2 * + 58 AS col0 FROM tab2 AS cor0
----
-1508
-1566
-2204
query I rowsort
SELECT ALL ( + col1 + - col0 ) AS col0 FROM tab1
----
-54
-67
23
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983
query I rowsort
SELECT + col2 * 27 FROM tab1 AS cor0
----
1458
1539
2592
query I rowsort
SELECT DISTINCT - 77 + - tab2.col0 FROM tab2
----
-155
-156
-84
query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab1
----
58
query I rowsort
SELECT DISTINCT + col0 * + col1 + - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - col2 * + cor0.col1 + + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + - col2 - col1 * + 56 AS col0 FROM tab1 AS cor0
----
-1510
-617
-824
query I rowsort
SELECT ALL 74 + tab0.col2 FROM tab0
----
107
156
75
query I rowsort
SELECT - col0 + + ( 3 ) + + cor0.col1 FROM tab0 AS cor0
----
5
65
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7814
SELECT tab1.col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7814
SELECT tab1.col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - tab2.col2 ) * 36 AS col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
1368
936
972
query I rowsort
SELECT + + col0 * 15 FROM tab2 AS cor0
----
105
1170
1185
query I rowsort
SELECT + col0 - + col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-7818
SELECT col1 - - cor0.col0 DIV + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7818
SELECT col1 - - cor0.col0 / + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + col2 * - col0 * - col0 + tab2.col0 + col2 AS col2 FROM tab2
----
1357
158288
237275
query I rowsort
SELECT - col0 * - col1 + - col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT ALL col2 + - col2 - col2 * - tab0.col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL col0 * - col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT + col1 - col1 * col0 FROM tab2 cor0 WHERE ( + col2 * col2 + - col1 * col2 ) = ( cor0.col0 )
----
query I rowsort
SELECT ALL col0 + - col1 * + col1 - + cor0.col2 FROM tab0 cor0
----
-7405
-8274
-9375
query I rowsort
SELECT ALL - col2 * - cor0.col2 * col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT col0 - col1 AS col1 FROM tab1 cor0
----
-23
54
67
query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT ( NULL ) < NULL
----
query I rowsort
SELECT col1 * - col1 + col0 * - col2 AS col2 FROM tab0
----
-15579
-8188
-9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 / tab0.col1 col2 FROM tab0 WHERE NOT ( - col2 ) NOT BETWEEN ( col1 ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7830
SELECT ALL tab1.col2 DIV col0 - col1 col2 FROM tab1
----
-10
-12
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL tab1.col2 / col0 - col1 col2 FROM tab1
----
-10
-12
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7831
SELECT ALL - col0 DIV + col1 col1 FROM tab2
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - col0 / + col1 col1 FROM tab2
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7832
SELECT ALL + col2 DIV tab1.col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL + col2 / tab1.col1 FROM tab1
----
2
5
7
query I rowsort
SELECT - col0 * + col1 - - col2 AS col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT col2 * col0 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col2 + + col2 )
----
query I rowsort
SELECT + col2 FROM tab0 WHERE NOT col0 <> col2 + col0
----
query I rowsort
SELECT - col1 + + col2 + - col1 FROM tab2
----
-35
-92
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7837
SELECT - - col0 DIV cor0.col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7837
SELECT - - col0 / cor0.col1 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT DISTINCT + col1 * - tab1.col0 * - col1 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-7839
SELECT col2 - + tab0.col2 DIV col0 FROM tab0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-7839
SELECT col2 - + tab0.col2 / col0 FROM tab0
----
1
32
82
query I rowsort
SELECT - col1 - - col0 AS col2 FROM tab0 WHERE ( col0 ) NOT IN ( col2 )
----
-2
-62
-62
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT col0 * - col1 + - col2 * + col0 FROM tab0
----
-15397
-2856
-3430
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * + ( col1 ) - + col0 col1 FROM tab1
----
13440
2025
6336
query I rowsort
SELECT ALL - col0 * col0 * col1 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL 33 * col2 * - 23 FROM tab2
----
-19734
-20493
-28842
query I rowsort
SELECT DISTINCT col0 * 52 + col2 FROM tab2 AS cor0
----
391
4082
4146
query I rowsort
SELECT col1 * - col1 * tab2.col2 AS col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT + + 28 * - 45 FROM tab1, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 022405d6d696fe4b742f3cb7209a7e56
query I rowsort
SELECT ALL - - col0 * - ( cor0.col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + cor0.col0 + - 79 * - ( col0 ) FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT ALL - col1 * ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + cor0.col1 * + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL + col2 * - 80 FROM tab0 AS cor0
----
-2640
-6560
-80
query I rowsort
SELECT col0 * - 4 FROM tab1 AS cor0
----
-12
-256
-320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NULL BETWEEN ( + col1 * - col0 ) AND + col0
----
query I rowsort
SELECT DISTINCT + tab1.col1 - - col2 FROM tab1 WHERE NOT NULL > ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7857
SELECT DISTINCT col0 DIV + tab0.col0 + col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT col0 / + tab0.col0 + col0 FROM tab0
----
25
36
90
query I rowsort
SELECT col2 + col1 * - col2 AS col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT tab2.col2 * + col2 AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT tab2.col0 * - col2 * col2 + col0 * - col1 AS col2 FROM tab2
----
-115419
-5320
-57330
query I rowsort
SELECT DISTINCT + col0 * col2 - + col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT ALL tab0.col1 + + col1 * - col0 AS col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - col2 * + col1 - - col2 FROM tab0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7864
SELECT ALL col1 DIV - col0 + + col0 FROM tab0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL col1 / - col0 + + col0 FROM tab0
----
21
33
88
query I rowsort
SELECT DISTINCT + col0 * - tab2.col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT - tab1.col1 * col1 AS col0 FROM tab1
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * - col2 * col0 col1 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT ALL col1 * + col0 + col1 FROM tab2 AS cor0
----
1360
248
4661
query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 IN ( - col0 + col1 * + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL + col1 * - col1 * - col0 + - col2 AS col0 FROM tab1
----
13424
1974
6343
query I rowsort
SELECT - tab2.col1 + col0 * - col1 FROM tab2
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-7873
SELECT DISTINCT - 49 DIV + col0 + col0 AS col2 FROM tab2 cor0
----
0
78
79
skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT - 49 / + col0 + col0 AS col2 FROM tab2 cor0
----
0
78
79
query I rowsort
SELECT 20 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 * + col1 col0 FROM tab2 AS cor0
----
-1357
-391
-713
onlyif mysql # use DIV operator for integer division
query I rowsort label-7876
SELECT cor0.col2 * + col1 + 8 DIV cor0.col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513
skipif mysql # not compatible
query I rowsort label-7876
SELECT cor0.col2 * + col1 + 8 / cor0.col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT - col2 + col1 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1423
709
733
query I rowsort
SELECT - cor0.col1 + ( 2 ) * + col1 AS col0 FROM tab0 cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7879
SELECT + col2 * + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-7879
SELECT + col2 * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col2 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7881
SELECT DISTINCT - col1 + CAST( + col0 AS SIGNED ) - col0 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT - col1 + CAST ( + col0 AS INTEGER ) - col0 FROM tab0 cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + cor0.col2 * - 22 col0 FROM tab2 AS cor0
----
-513
-563
-819
query I rowsort
SELECT ALL + cor0.col2 * + ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7884
SELECT + + col1 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7884
SELECT + + col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col0 ) + col2 * col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7886
SELECT + - CAST( + col2 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-164
-2
-66
skipif mysql # not compatible
query I rowsort label-7886
SELECT + - CAST ( + col2 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - + ( col0 ) + + col1 * - cor0.col0 AS col1 FROM tab1 cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT - col0 + + 65 * - col2 + 5 AS col1 FROM tab2
----
-1757
-1763
-2544
query I rowsort
SELECT - + 27 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-10
32
4
query I rowsort
SELECT col2 * + col1 * col1 + - 78 AS col0 FROM tab0
----
243990
678964
9331
query I rowsort
SELECT 95 * + cor2.col2 AS col0 FROM tab1, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 97e81acf4678c3ad884eedb7f25691ec
query I rowsort
SELECT DISTINCT col0 + + col2 + col1 FROM tab2
----
134
163
65
query I rowsort
SELECT + - col0 * cor0.col1 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL + 22 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab1
----
-66
query I rowsort
SELECT ALL + + 5 * col1 AS col1 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT - 56 * col0 FROM tab0 AS cor0
----
-1344
-1960
-4984
query I rowsort
SELECT DISTINCT - 55 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1430
-550
-715
query I rowsort
SELECT 68 * col2 FROM tab1
----
3672
3876
6528
query I rowsort
SELECT ALL col1 * col0 AS col0 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7901
SELECT ALL + 70 DIV + col2 AS col2 FROM tab0
----
0
2
70
skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL + 70 / + col2 AS col2 FROM tab0
----
0
2
70
query I rowsort
SELECT DISTINCT col0 * - tab1.col2 + col2 AS col1 FROM tab1
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 * col1 - - col0 * col1 * col2 col2 FROM tab1
----
100880
37120
4290
query I rowsort
SELECT col0 * + col2 - col1 AS col0 FROM tab2
----
158
1969
2985
query I rowsort
SELECT DISTINCT col0 + col2 + - tab2.col0 FROM tab2
----
26
27
38
query I rowsort
SELECT + col1 + - col2 * col1 + col1 * col0 AS col1 FROM tab1 AS cor0
----
-1300
-195
80
query I rowsort
SELECT ALL 65 AS col1 FROM tab1
----
65
65
65
query I rowsort
SELECT DISTINCT + - col0 + + col1 * cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
22752
271440
6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-7909
SELECT ( - col2 ) DIV col0 AS col1 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-7909
SELECT ( - col2 ) / col0 AS col1 FROM tab2
----
-3
0
0
query I rowsort
SELECT - col2 - ( - col2 * + col1 ) AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - + col1 * col0 + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + col2 col1 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col1 col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7914
SELECT - 43 + + col0 DIV - col1 col0 FROM tab1 AS cor0
----
-43
-49
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7914
SELECT - 43 + + col0 / - col1 col0 FROM tab1 AS cor0
----
-43
-49
-49
query I rowsort
SELECT + ( col2 ) * col0 + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-514
3548
7511
onlyif mysql # use DIV operator for integer division
query I rowsort label-7916
SELECT DISTINCT ( col0 ) + col0 + col1 DIV col0 AS col1 FROM tab2
----
156
158
18
skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT ( col0 ) + col0 + col1 / col0 AS col1 FROM tab2
----
156
158
18
query I rowsort
SELECT col2 - tab1.col2 AS col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) * - col0 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - - ( - cor0.col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + - 5 - col1 FROM tab1 AS cor0
----
-15
-18
-31
query I rowsort
SELECT DISTINCT + 56 + col1 AS col0 FROM tab0 AS cor0
----
142
147
153
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + + tab1.col2 * 33 + - col2 col2 FROM tab1
----
1768
1864
3112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7923
SELECT + tab0.col2 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7923
SELECT + tab0.col2 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 28 + col1 AS col0 FROM tab0
----
114
119
125
query I rowsort
SELECT ALL 10 * col2 FROM tab2 cor0
----
260
270
380
query I rowsort
SELECT ALL 75 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf
query I rowsort
SELECT ALL + cor1.col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + cor0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT DISTINCT + 59 + col2 FROM tab2 AS cor0
----
85
86
97
query I rowsort
SELECT DISTINCT + col2 * col2 + col0 FROM tab0 AS cor0
----
1113
36
6813
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 4406ccc71f02ae9c1e947ffcd89b0db7
query I rowsort
SELECT DISTINCT - - 91 + col2 AS col2 FROM tab2 AS cor0
----
117
118
129
query I rowsort
SELECT ALL col1 * 60 + col1 AS col2 FROM tab2
----
1037
1891
3599
query I rowsort
SELECT + col0 - - ( col2 * col0 ) AS col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT col1 + + 24 * + 86 FROM tab1
----
2074
2077
2090
query I rowsort
SELECT + col0 * + 42 + col0 FROM tab2 AS cor0
----
301
3354
3397
query I rowsort
SELECT DISTINCT - col2 * 84 + col2 * col0 + ( + col0 * col1 ) AS col1 FROM tab1 AS cor0
----
-4296
-500
656
query I rowsort
SELECT DISTINCT + col0 * 15 AS col1 FROM tab2 AS cor0
----
105
1170
1185
query I rowsort
SELECT ALL + 79 * + 72 + col2 * ( cor0.col2 ) FROM tab0 AS cor0
----
12412
5689
6777
query I rowsort
SELECT + - cor0.col1 + + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - ( - 13 ) FROM tab2 AS cor0
----
13
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) * - col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - ( cor0.col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + col1 + - ( + col0 * col2 + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-165
-2047
-3064
query I rowsort
SELECT - 42 AS col2 FROM tab0 cor0
----
-42
-42
-42
query I rowsort
SELECT ALL - col0 + - col0 * col0 FROM tab0 AS cor0
----
-1260
-600
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7948
SELECT - CAST( - cor0.col0 AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-7948
SELECT - CAST ( - cor0.col0 AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT col1 * + col1 + - ( tab2.col2 * + col0 ) FROM tab2
----
-2713
1453
772
query I rowsort
SELECT + col2 * - tab1.col0 * + tab1.col1 + - col0 AS col0 FROM tab1
----
-36544
-4215
-99920
query I rowsort
SELECT DISTINCT - tab1.col1 + - ( + 76 + col2 ) AS col1 FROM tab1
----
-143
-156
-185
query I rowsort
SELECT DISTINCT col2 + - tab2.col0 * - col1 AS col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT - 32 FROM tab0, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT 41 + - col1 * col1 FROM tab2 AS cor0
----
-248
-3440
-920
onlyif mysql # use DIV operator for integer division
query I rowsort label-7955
SELECT DISTINCT col2 * 46 + + col0 * col1 * col2 - + col2 DIV + col0 AS col0 FROM tab1 cor0
----
104255
39102
6678
skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT col2 * 46 + + col0 * col1 * col2 - + col2 / + col0 AS col0 FROM tab1 cor0
----
104255
39102
6678
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7956
SELECT ALL + CAST( NULL AS SIGNED ) / 70 + + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL + CAST ( NULL AS INTEGER ) / 70 + + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 42 * ( - col2 ) AS col0 FROM tab0 cor0
----
1386
3444
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 24 ) * + col1 col2 FROM tab1 AS cor0
----
-240
-312
-624
query I rowsort
SELECT DISTINCT - + col0 * ( + col2 ) * + cor0.col2 + + 8 FROM tab0 AS cor0
----
-26128
-27
-598428
query I rowsort
SELECT + cor0.col2 - + 0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL + + 46 * col0 - cor0.col2 * - ( 3 ) FROM tab0 AS cor0
----
1203
1613
4340
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 10 ) col2 FROM tab1 AS cor0
----
-10
-10
-10
query I rowsort
SELECT DISTINCT + ( col1 ) + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + - col0 + - col2 AS col2 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT col1 * col1 + col2 * col1 FROM tab1 AS cor0
----
1417
2080
670
query I rowsort
SELECT DISTINCT tab2.col1 * 98 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
1666
3038
5782
query I rowsort
SELECT 59 * - tab1.col0 + tab1.col1 AS col2 FROM tab1
----
-151
-3766
-4707
query I rowsort
SELECT ALL - ( tab0.col0 ) * col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT col2 + + col2 * tab2.col0 FROM tab2
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * 47 + cor0.col0 col2 FROM tab1 AS cor0
----
-2535
-2615
-4432
query I rowsort
SELECT ALL cor0.col0 * + ( - col1 ) + - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7972
SELECT col2 + col2 - - cor0.col0 DIV cor0.col1 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-7972
SELECT col2 + col2 - - cor0.col0 / cor0.col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + col1 + + col0 * + cor0.col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * ( col2 ) FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-7975
SELECT + col1 DIV + col2 + 83 AS col1 FROM tab1 AS cor0
----
83
83
83
skipif mysql # not compatible
query I rowsort label-7975
SELECT + col1 / + col2 + 83 AS col1 FROM tab1 AS cor0
----
83
83
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7976
SELECT ALL - col0 DIV - cor0.col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL - col0 / - cor0.col0 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7977
SELECT - + col2 + CAST( + col0 AS SIGNED ) DIV - col0 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-7977
SELECT - + col2 + CAST ( + col0 AS INTEGER ) / - col0 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT ALL + col2 + + col0 * 74 * col1 + col0 * - 97 FROM tab1
----
41209
5535
69296
query I rowsort
SELECT - 17 * - col0 * + 71 + tab0.col2 AS col1 FROM tab0
----
107505
29001
42246
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 + col1 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL col2 + - col0 - col1 AS col2 FROM tab0
----
-131
-77
-98
query I rowsort
SELECT 56 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT DISTINCT ( - 28 ) AS col1 FROM tab2, tab0 cor0
----
-28
query I rowsort
SELECT ALL + tab1.col1 FROM tab1, tab2 AS cor0, tab2, tab0 cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 + + col2 + col0 col1 FROM tab0 cor0
----
-2781
-61
-7291
query I rowsort
SELECT DISTINCT + col1 - ( col1 ) FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7987
SELECT DISTINCT col2 * - CAST( + col2 AS SIGNED ) + col2 * - col1 FROM tab1 AS cor0
----
-10464
-3819
-4320
skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT col2 * - CAST ( + col2 AS INTEGER ) + col2 * - col1 FROM tab1 AS cor0
----
-10464
-3819
-4320
query I rowsort
SELECT + col1 + 73 FROM tab1 AS cor0
----
83
86
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 * + 54 col2 FROM tab0 AS cor0
----
-1749
-4346
-53
query I rowsort
SELECT DISTINCT col2 + col1 - + 68 FROM tab0 AS cor0
----
105
30
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 * col1 * col0 col2 FROM tab1
----
234
40960
83200
query I rowsort
SELECT col0 + ( col0 ) + + col1 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT ALL + cor0.col1 * ( col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT 63 * cor0.col1 AS col0 FROM tab2, tab0, tab1 cor0
----
1638
630
819
query I rowsort
SELECT col2 * - col2 * col2 AS col0 FROM tab0
----
-1
-35937
-551368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col1 FROM tab0
----
83
83
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7997
SELECT - col2 + - col2 DIV - col0 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-7997
SELECT - col2 + - col2 / - col0 FROM tab2 AS cor0
----
-24
-26
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7998
SELECT + - col0 DIV col2 AS col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-7998
SELECT + - col0 / col2 AS col2 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT - - col1 + - col2 + col0 FROM tab2 AS cor0
----
11
111
58
query I rowsort
SELECT col2 * + ( 75 ) FROM tab0 AS cor0
----
2475
6150
75
query I rowsort
SELECT col0 + col0 * 42 AS col0 FROM tab2 AS cor0
----
301
3354
3397
onlyif mysql # use DIV operator for integer division
query I rowsort label-8002
SELECT ALL - col0 DIV col0 AS col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL - col0 / col0 AS col1 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + cor0.col0 + col1 * col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + ( col0 ) * - col0 - col0 AS col2 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT + col2 + + 31 AS col1 FROM tab2 AS cor0
----
57
58
69
query I rowsort
SELECT DISTINCT + - 57 + + 95 FROM tab2 AS cor0
----
38
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( - 42 AS REAL ) FROM tab2 AS cor0
----
42
42
42
query I rowsort
SELECT - col1 + - col2 * col0 * + col1 FROM tab1 AS cor0
----
-36490
-4238
-99853
query I rowsort
SELECT - col0 * 45 - + cor0.col2 * col2 * 38 FROM tab2 AS cor0
----
-28017
-29198
-58427
query I rowsort
SELECT DISTINCT - 0 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - col1 * - col0 - - col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - 54 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-1667
-3108
-839
query I rowsort
SELECT ALL + 1 * + 65 AS col0 FROM tab1 AS cor0
----
65
65
65
query I rowsort
SELECT ALL 26 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT 33 * 53 FROM tab2 AS cor0
----
1749
1749
1749
query I rowsort
SELECT DISTINCT col2 * + col2 - + col1 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT - 0 + - ( col0 + col1 ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT col0 * 95 * - col0 AS col2 FROM tab1 AS cor0
----
-389120
-608000
-855
query I rowsort
SELECT DISTINCT ( - col2 * + col1 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - + cor0.col0 * + col2 - 91 FROM tab0 AS cor0
----
-126
-7389
-883
onlyif mysql # use DIV operator for integer division
query I rowsort label-8022
SELECT col0 DIV + col0 + - col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-8022
SELECT col0 / + col0 + - col0 FROM tab1 AS cor0
----
-2
-63
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8023
SELECT ( + col2 ) DIV - col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-8023
SELECT ( + col2 ) / - col0 AS col0 FROM tab1
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8024
SELECT - ( + 48 + + col0 ) DIV - tab1.col0 AS col1 FROM tab1
----
1
1
17
skipif mysql # not compatible
query I rowsort label-8024
SELECT - ( + 48 + + col0 ) / - tab1.col0 AS col1 FROM tab1
----
1
1
17
query I rowsort
SELECT DISTINCT - + 12 * cor0.col2 FROM tab1 AS cor0
----
-1152
-648
-684
query I rowsort
SELECT + col1 + + col0 + col2 AS col0 FROM tab0 AS cor0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - col1 col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8028
SELECT - ( cor0.col1 ) * ( col0 ) + col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8028
SELECT - ( cor0.col1 ) * ( col0 ) + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 * ( 85 ) col0 FROM tab0 AS cor0
----
241230
634270
8245
query I rowsort
SELECT DISTINCT + - 79 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-79
query I rowsort
SELECT + 40 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8032
SELECT DISTINCT CAST( col1 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + col0 + - col1 * col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT ( cor0.col0 * 59 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
413
4602
4661
query I rowsort
SELECT ALL - 46 * - 83 FROM tab1
----
3818
3818
3818
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8036
SELECT - CAST( col0 + + col0 AS SIGNED ) * CAST( col1 * tab2.col2 + + 33 AS SIGNED ) FROM tab2
----
-107282
-12180
-244452
skipif mysql # not compatible
query I rowsort label-8036
SELECT - CAST ( col0 + + col0 AS INTEGER ) * CAST ( col1 * tab2.col2 + + 33 AS INTEGER ) FROM tab2
----
-107282
-12180
-244452
query I rowsort
SELECT col2 * - col1 + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - cor1.col0 * - 12 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e86f9428bff87942ecc1cd313d1c9573
onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT - col1 + col2 DIV - 42 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8039
SELECT - col1 + col2 / - 42 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - - col1 * 5 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT ALL col2 * ( - col1 ) FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8043
SELECT ALL + col2 * + col0 DIV tab1.col0 AS col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL + col2 * + col0 / tab1.col0 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT + col1 * col1 * 14 FROM tab0 AS cor0
----
103544
115934
131726
query I rowsort
SELECT + - col2 * + 19 AS col0 FROM tab1 cor0
----
-1026
-1083
-1824
query I rowsort
SELECT DISTINCT col1 * + ( col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 52 + tab2.col1 - - col1 * col2 FROM tab2
----
1645
715
920
onlyif mysql # use DIV operator for integer division
query I rowsort label-8049
SELECT ( + col0 ) DIV col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-8049
SELECT ( + col0 ) / col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL - col0 * + 53 + col2 AS col2 FROM tab2
----
-344
-4108
-4149
query I rowsort
SELECT ALL + ( + col1 * col0 ) + col1 AS col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT col2 + - 40 AS col1 FROM tab0
----
-39
-7
42
query I rowsort
SELECT + - col1 - - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 + col2 * + col0 col2 FROM tab2 AS cor0
----
198
2037
3011
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col1 ) * + 90 + ( + col2 ) col2 FROM tab2 AS cor0
----
-1492
-2763
-5284
onlyif mysql # use DIV operator for integer division
query I rowsort label-8056
SELECT - col0 DIV - col0 + 30 col0 FROM tab1 cor0
----
31
31
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8056
SELECT - col0 / - col0 + 30 col0 FROM tab1 cor0
----
31
31
31
query I rowsort
SELECT ALL + cor0.col0 + + col1 * + ( col0 ) * col0 AS col0 FROM tab0 AS cor0
----
118860
49560
720900
query I rowsort
SELECT - 94 * cor0.col1 * + ( cor0.col0 ) FROM tab2 AS cor0
----
-126242
-20398
-432588
query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab2 cor0
----
-4
query I rowsort
SELECT - - col2 * cor0.col0 AS col2 FROM tab1 cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort
SELECT - 86 * col2 + CAST ( - col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
-2871
-7134
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8062
SELECT ALL - ( col2 ) * CAST( + col0 * + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL - ( col2 ) * CAST ( + col0 * + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-8063
SELECT DISTINCT + - col2 + + cor0.col1 * + col2 DIV col2 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT + - col2 + + cor0.col1 * + col2 / col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL - 57 * ( col2 ) FROM tab0
----
-1881
-4674
-57
query I rowsort
SELECT - 80 AS col2 FROM tab0 AS cor0
----
-80
-80
-80
query I rowsort
SELECT + col0 * + col0 + - 31 FROM tab0 cor0
----
1194
545
7890
query I rowsort
SELECT DISTINCT - col0 + col2 * ( + col0 + + col2 ) FROM tab1 cor0
----
16816
3075
6833
query I rowsort
SELECT DISTINCT + - 42 * col1 FROM tab2 AS cor0
----
-1302
-2478
-714
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8070
SELECT DISTINCT - 40 * col2 * 66 + + ( col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT - 40 * col2 * 66 + + ( col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 * - col0 + + ( col0 ) col1 FROM tab2
----
231
2574
2607
query I rowsort
SELECT + 92 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT cor2.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col2 * col0 col2 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT ALL ( col1 ) - + ( col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 + cor0.col1 * ( + col2 + + col0 ) AS col2 FROM tab2 AS cor0
----
1085
2006
6195
query I rowsort
SELECT ALL + 21 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT + + cor0.col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-8079
SELECT DISTINCT col1 DIV + col2 + col2 + col0 * + ( + cor0.col1 ) FROM tab0 AS cor0
----
2099
3493
8182
skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT col1 / + col2 + col2 + col0 * + ( + cor0.col1 ) FROM tab0 AS cor0
----
2099
3493
8182
query I rowsort
SELECT ALL col1 + ( - 96 ) + col1 AS col1 FROM tab1 AS cor0
----
-44
-70
-76
query I rowsort
SELECT ALL + - col1 * - col0 + col1 + + col1 FROM tab1 AS cor0
----
1066
130
660
query I rowsort
SELECT ALL + cor0.col1 * - tab2.col1 - 93 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to b6aa4b2e2b64e63492d4200b3a260c77
query I rowsort
SELECT col1 + + tab2.col2 + col1 AS col2 FROM tab2
----
144
72
89
query I rowsort
SELECT - col1 * col1 * - 26 FROM tab1
----
17576
2600
4394
query I rowsort
SELECT DISTINCT + col1 + - col1 * ( col0 ) + col0 FROM tab0
----
-1954
-3263
-7919
query I rowsort
SELECT - + cor0.col0 * - col1 * col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 + col2 col0 FROM tab0 AS cor0
----
128
177
96
query I rowsort
SELECT + col2 * ( cor0.col1 ) FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL + + 81 * - col1 AS col1 FROM tab0 AS cor0
----
-6966
-7371
-7857
query I rowsort
SELECT 23 + col1 FROM tab2 AS cor0
----
40
54
82
query I rowsort
SELECT DISTINCT cor0.col0 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 44 AS col0 FROM tab0 cor0
----
44
44
44
query I rowsort
SELECT ALL - col0 + + col0 * + cor0.col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL + col1 * col2 * + col2 + 21 FROM tab1 AS cor0
----
119829
32511
75837
query I rowsort
SELECT ALL 88 * + 33 + col2 AS col0 FROM tab2 AS cor0
----
2930
2931
2942
query I rowsort
SELECT 45 * col0 FROM tab1 AS cor0
----
135
2880
3600
query I rowsort
SELECT DISTINCT + ( + col1 ) * - col2 - - col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * 65 + - col2 col2 FROM tab1
----
-10584
-237177
-499296
query I rowsort
SELECT DISTINCT + ( 29 ) AS col2 FROM tab1 cor0
----
29
query I rowsort
SELECT col1 * 64 + - col1 FROM tab0 AS cor0
----
5418
5733
6111
query I rowsort
SELECT ALL - ( 6 ) AS col0 FROM tab2 AS cor0
----
-6
-6
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8102
SELECT + CAST( + col2 AS SIGNED ) - - col0 * CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8102
SELECT + CAST ( + col2 AS INTEGER ) - - col0 * CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 52 AS col0 FROM tab1 cor0
----
52
52
52
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 71 ) + + tab0.col0 + - col0 col1 FROM tab0
----
-71
-71
-71
query I rowsort
SELECT DISTINCT col2 * 44 + - col0 * - col0 + + tab0.col0 FROM tab0
----
11618
1304
2052
query I rowsort
SELECT + col0 * 85 AS col1 FROM tab2
----
595
6630
6715
onlyif mysql # use DIV operator for integer division
query I rowsort label-8108
SELECT - col2 DIV - col0 + col2 * col2 + col0 * col2 * - col1 AS col1 FROM tab1
----
-1278
-33231
-90623
skipif mysql # not compatible
query I rowsort label-8108
SELECT - col2 / - col0 + col2 * col2 + col0 * col2 * - col1 AS col1 FROM tab1
----
-1278
-33231
-90623
query I rowsort
SELECT DISTINCT - col0 + col1 * col1 FROM tab2
----
210
3403
954
query I rowsort
SELECT - + col1 * ( - 6 ) + col2 * + col2 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
1572
582
7188
onlyif mysql # use DIV operator for integer division
query I rowsort label-8111
SELECT - + 18 DIV 52 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8111
SELECT - + 18 / 52 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * - 38 FROM tab2 AS cor0
----
266
2964
3002
query I rowsort
SELECT DISTINCT + cor0.col2 + + 9 FROM tab0 AS cor0
----
10
42
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * + col1 col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
72
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT - 85 * - 71 AS col2 FROM tab0 AS cor0
----
6035
6035
6035
query I rowsort
SELECT + cor0.col2 + 89 AS col2 FROM tab0 cor0
----
122
171
90
query I rowsort
SELECT + - col2 + col1 - - col2 * col2 AS col2 FROM tab0 AS cor0
----
1142
6733
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8120
SELECT - col2 DIV 81 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8120
SELECT - col2 / 81 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT + ( - 38 ) + - col2 * 83 AS col2 FROM tab0 AS cor0
----
-121
-2777
-6844
query I rowsort
SELECT ALL - + col0 + col2 * ( - col0 * col0 ) FROM tab1 AS cor0
----
-233536
-489
-614480
query I rowsort
SELECT - 58 AS col2 FROM tab1 cor0
----
-58
-58
-58
query I rowsort
SELECT - ( col2 ) * 13 FROM tab2 AS cor0
----
-338
-351
-494
query I rowsort
SELECT ALL + 30 + col2 FROM tab0 AS cor0
----
112
31
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-8126
SELECT DISTINCT - - 67 DIV - col0 - - col2 AS col2 FROM tab1 AS cor0
----
32
56
96
skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT - - 67 / - col0 - - col2 AS col2 FROM tab1 AS cor0
----
32
56
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + col2 - - col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col2 + ( cor0.col0 ) - + cor0.col1 AS col1 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT ALL + col1 + ( 25 ) AS col2 FROM tab2 AS cor0
----
42
56
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8131
SELECT col1 + + CAST( NULL AS DECIMAL ) * + col1 - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8131
SELECT col1 + + CAST ( NULL AS REAL ) * + col1 - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 70 * - col1 + tab2.col2 * - ( col2 ) FROM tab2
----
-2634
-2899
-4806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8133
SELECT ALL + 91 DIV + tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 730b8a577fdba3362d4d98f720c132c4
skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL + 91 / + tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 730b8a577fdba3362d4d98f720c132c4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8134
SELECT ALL + + col1 DIV - col0 + + cor0.col0 * col2 DIV + col0 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL + + col1 / - col0 + + cor0.col0 * col2 / + col0 FROM tab1 AS cor0
----
46
57
96
query I rowsort
SELECT - - cor0.col0 + col1 * 22 FROM tab0 AS cor0
----
1916
2091
2169
query I rowsort
SELECT 76 * + col0 + col1 FROM tab1 AS cor0
----
254
4874
6093
query I rowsort
SELECT ALL + + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col2 * + col2 * - col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
onlyif mysql # use DIV operator for integer division
query I rowsort label-8140
SELECT ALL col0 * col2 + 37 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
36
7298
793
skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL col0 * col2 + 37 / cor0.col0 AS col0 FROM tab0 AS cor0
----
36
7298
793
query I rowsort
SELECT ALL ( - col0 * 85 ) AS col1 FROM tab0
----
-2040
-2975
-7565
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col0 FROM tab0
----
81
81
81
query I rowsort
SELECT + 76 AS col2 FROM tab2
----
76
76
76
query I rowsort
SELECT DISTINCT + col2 * col2 * + 97 FROM tab0
----
105633
652228
97
query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2, tab0, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT + col2 + col0 * - col2 * - col2 AS col0 FROM tab1 AS cor0
----
207993
737376
8802
query I rowsort
SELECT ALL - col2 * col1 + col0 + col2 FROM tab2 AS cor0
----
-1430
-529
-803
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8149
SELECT DISTINCT + col2 * - col1 - + col0 DIV - col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT + col2 * - col1 - + col0 / - col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8150
SELECT col0 * - cor0.col2 + - col2 DIV - col0 FROM tab2 AS cor0
----
-186
-2028
-3002
skipif mysql # not compatible
query I rowsort label-8150
SELECT col0 * - cor0.col2 + - col2 / - col0 FROM tab2 AS cor0
----
-186
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col2 col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col0 * tab2.col1 + - col2 AS col2 FROM tab2
----
1305
190
4576
query I rowsort
SELECT ALL col1 + col2 * col0 AS col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT col2 + - col2 * - col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + - col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - col0 - col2 * col1 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT + col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8158
SELECT DISTINCT - col1 DIV col2 + col2 + + col1 col0 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT - col1 / col2 + col2 + + col1 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + col1 * col1 - col1 FROM tab2 AS cor0
----
272
3422
930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col2 col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + col1 * + col0 * - col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-8162
SELECT ALL + col2 + col1 DIV col0 FROM tab0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + col2 + col1 / col0 FROM tab0
----
3
36
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8163
SELECT ALL + col0 DIV col2 + col0 * col1 * col0 + col2 * + col1 FROM tab0 AS cor0
----
118957
52374
728274
skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + col0 / col2 + col0 * col1 * col0 + col2 * + col1 FROM tab0 AS cor0
----
118957
52374
728274
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8165
SELECT ALL col2 + + col2 DIV col1 col1 FROM tab1
----
103
56
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL col2 + + col2 / col1 col1 FROM tab1
----
103
56
62
query I rowsort
SELECT ALL + + col0 + - col2 * col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL col1 - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL - col2 * + tab1.col2 - col1 FROM tab1
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT + col1 - + col1 * col1 * col2 AS col0 FROM tab0
----
-243982
-678951
-9312
query I rowsort
SELECT ALL + - col2 * - cor0.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 * - col1 * - col0 + - col1 + col2 col1 FROM tab2
----
106118
1515
358923
query I rowsort
SELECT + col2 + + col2 + + col1 AS col2 FROM tab1
----
124
134
205
query I rowsort
SELECT DISTINCT - col0 + tab2.col0 * tab2.col2 FROM tab2
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-8174
SELECT col2 * - col2 * + col2 + + col1 DIV col0 AS col0 FROM tab1
----
-157456
-185193
-884736
skipif mysql # not compatible
query I rowsort label-8174
SELECT col2 * - col2 * + col2 + + col1 / col0 AS col0 FROM tab1
----
-157456
-185193
-884736
query I rowsort
SELECT col0 * col2 * + col0 AS col2 FROM tab2
----
1323
158184
237158
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 + + col0 - col1 * col0 ) NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT - tab1.col2 + col0 + col0 * + tab1.col2 AS col0 FROM tab1
----
111
3655
7664
query I rowsort
SELECT + col1 * col2 * + col2 AS col0 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT col0 * - col1 - + col0 AS col2 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL col2 + - col1 - + col1 AS col0 FROM tab1
----
2
37
70
query I rowsort
SELECT 58 * col1 + - col2 + 4 AS col1 FROM tab1 AS cor0
----
1458
527
662
query I rowsort
SELECT col0 * col1 * - col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ALL + col1 * col2 + + col1 AS col1 FROM tab1
----
1261
1430
580
query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND col1
----
query I rowsort
SELECT col0 * - col0 * - 72 FROM tab2
----
3528
438048
449352
query I rowsort
SELECT DISTINCT 67 * 50 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
3350
query I rowsort
SELECT + 1 * col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + cor0.col1 * 57 FROM tab1, tab1 AS cor0
----
9 values hashing to 01570dd51dae9e8c5c1ab056a62f9bd0
query I rowsort
SELECT ALL + + col1 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + col2 + col2 * - col1 FROM tab2
----
-1508
-608
-810
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT col2 + + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 * col2 AND ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 col2 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT + tab1.col2 * + tab1.col0 + col0 AS col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL <= + col2 + + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8197
SELECT tab1.col1 DIV tab1.col0 AS col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8197
SELECT tab1.col1 / tab1.col0 AS col0 FROM tab1
----
0
0
8
query I rowsort
SELECT + col2 + col0 * + col0 AS col2 FROM tab0
----
1226
609
8003
query I rowsort
SELECT DISTINCT + col1 - tab1.col0 * col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT + 92 - col1 FROM tab1 AS cor0
----
66
79
82
query I rowsort
SELECT - - col2 - - cor0.col2 * - col0 AS col2 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL + + col1 * - cor0.col0 + 16 AS col1 FROM tab1 cor0
----
-1024
-62
-624
onlyif mysql # use DIV operator for integer division
query I rowsort label-8203
SELECT ( col1 + + 34 ) DIV tab0.col2 AS col2 FROM tab0
----
1
131
3
skipif mysql # not compatible
query I rowsort label-8203
SELECT ( col1 + + 34 ) / tab0.col2 AS col2 FROM tab0
----
1
131
3
query I rowsort
SELECT + 70 * - col2 AS col1 FROM tab2 AS cor0
----
-1820
-1890
-2660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + col0 * - col0 col2 FROM tab2
----
-18
-6025
-6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * 95 col0 FROM tab2
----
-2470
-2565
-3610
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8207
SELECT + + CAST( col1 AS SIGNED ) + cor0.col0 * col1 FROM tab0 cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort label-8207
SELECT + + CAST ( col1 AS INTEGER ) + cor0.col0 * col1 FROM tab0 cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-8208
SELECT ALL col1 DIV + 22 FROM tab0
----
3
4
4
skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL col1 / + 22 FROM tab0
----
3
4
4
query I rowsort
SELECT DISTINCT 10 FROM tab1, tab1 AS cor0, tab2 cor1
----
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-8210
SELECT ALL - col0 DIV - col2 col0 FROM tab1
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL - col0 / - col2 col0 FROM tab1
----
0
0
1
query I rowsort
SELECT - 92 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT ALL 22 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT - ( 8 ) FROM tab2
----
-8
-8
-8
query I rowsort
SELECT 90 AS col2 FROM tab0 cor0
----
90
90
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8215
SELECT CAST( col2 AS SIGNED ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-8215
SELECT CAST ( col2 AS INTEGER ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8216
SELECT ALL + + col2 * col1 DIV - cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL + + col2 * col1 / - cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + - 19 + col2 AS col1 FROM tab0 AS cor0
----
-18
14
63
query I rowsort
SELECT col1 * + 63 AS col1 FROM tab1
----
1638
630
819
onlyif mysql # use DIV operator for integer division
query I rowsort label-8219
SELECT ALL col1 * 80 DIV + col0 FROM tab0
----
221
286
81
skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL col1 * 80 / + col0 FROM tab0
----
221
286
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 * - 1 + - col2 + + col1 col2 FROM tab1
----
-112
-148
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 - + col1 * + col2 col0 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT + col1 * - col1 * col1 FROM tab2
----
-205379
-29791
-4913
query I rowsort
SELECT DISTINCT + col2 + ( col2 ) AS col1 FROM tab1
----
108
114
192
query I rowsort
SELECT + cor0.col2 + 81 FROM tab1 AS cor0
----
135
138
177
query I rowsort
SELECT col0 * + col1 + col0 * tab0.col1 AS col1 FROM tab0
----
16198
4128
6790
query I rowsort
SELECT - col2 + - 3 FROM tab0
----
-36
-4
-85
query I rowsort
SELECT - 49 + + col2 FROM tab2
----
-11
-22
-23
query I rowsort
SELECT + + 58 * col0 * col2 AS col0 FROM tab2 AS cor0
----
10962
117624
174116
query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col0 + col2 * - cor0.col1 + - col2 AS col2 FROM tab2 cor0
----
-675
2318
468
query I rowsort
SELECT - col2 * - col2 * + col0 AS col2 FROM tab0 cor0
----
26136
35
598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * col2 * - col0 col2 FROM tab1 AS cor0
----
122880
2592
58368
query I rowsort
SELECT ALL + + col0 * col0 * cor0.col1 FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT ALL + + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + ( col1 ) + - cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT + col2 + - 64 AS col0 FROM tab2 cor0
----
-26
-37
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8236
SELECT DISTINCT col1 DIV 49 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT col1 / 49 AS col1 FROM tab1
----
0
query I rowsort
SELECT col0 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL ( - col1 ) + + cor0.col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + 66 + 90 AS col1 FROM tab0 AS cor0
----
24
24
24
query I rowsort
SELECT DISTINCT col1 * + col0 * col2 + col2 FROM tab0 cor0
----
3396
664200
68145
query I rowsort
SELECT + cor0.col2 + + col2 * col0 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT col2 * - ( col0 ) AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - 65 * + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3295716af7d52eec30d656ffdb147305
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8244
SELECT - col1 * CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-8244
SELECT - col1 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col1 + ( - 38 ) + + col1 AS col1 FROM tab2 AS cor0
----
-4
24
80
query I rowsort
SELECT DISTINCT + col0 - + 73 AS col2 FROM tab0 AS cor0
----
-38
-49
16
query I rowsort
SELECT + col0 * col2 - col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL - - col0 + - ( col0 ) FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col0 ) + + col0 * + col1 col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-8250
SELECT ALL + col0 + + 13 DIV - cor0.col0 FROM tab2 AS cor0
----
6
78
79
skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL + col0 + + 13 / - cor0.col0 FROM tab2 AS cor0
----
6
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8251
SELECT + col2 DIV - 19 AS col2 FROM tab0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-8251
SELECT + col2 / - 19 AS col2 FROM tab0
----
-1
-4
0
query I rowsort
SELECT ALL + ( + ( col2 ) ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col1 * col0 + col0 + ( - col1 + - col2 ) FROM tab2 AS cor0
----
-1319
-268
-4609
query I rowsort
SELECT ALL - + 62 * - col2 - - col0 AS col0 FROM tab2 AS cor0
----
1681
1690
2435
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8255
SELECT + col2 + - col0 * CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-4039
-6304
45
skipif mysql # not compatible
query I rowsort label-8255
SELECT + col2 + - col0 * CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-4039
-6304
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - + cor0.col0 col1 FROM tab1 AS cor0
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col1 FROM tab1 cor0
----
-23
query I rowsort
SELECT DISTINCT 29 + + 42 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
71
query I rowsort
SELECT ALL + - 68 AS col2 FROM tab1 AS cor0
----
-68
-68
-68
query I rowsort
SELECT + + 44 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2376
-2508
-4224
query I rowsort
SELECT 52 * col0 + 30 AS col0 FROM tab1
----
186
3358
4190
query I rowsort
SELECT DISTINCT cor0.col1 + col0 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
1149
158
707
query I rowsort
SELECT ( - col1 ) * - 89 + - col1 FROM tab2
----
1496
2728
5192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8264
SELECT + col0 - + col0 * - CAST( + col2 AS SIGNED ) FROM tab0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-8264
SELECT + col0 - + col0 * - CAST ( + col2 AS INTEGER ) FROM tab0
----
70
7387
816
query I rowsort
SELECT - col0 + col2 * - 88 FROM tab1
----
-4755
-5080
-8528
query I rowsort
SELECT - cor0.col0 * - 91 * col1 FROM tab1 AS cor0
----
58240
7098
94640
query I rowsort
SELECT - + col2 + - col2 * col0 FROM tab0 cor0
----
-36
-7380
-825
query I rowsort
SELECT + col2 * col2 * + col1 AS col1 FROM tab0 cor0
----
611884
93654
97
query I rowsort
SELECT ALL - + col0 * + 75 + - col2 AS col2 FROM tab2 AS cor0
----
-552
-5876
-5963
onlyif mysql # use DIV operator for integer division
query I rowsort label-8270
SELECT DISTINCT + cor0.col1 DIV - col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT + cor0.col1 / - col2 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8271
SELECT cor0.col1 DIV - 81 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-8271
SELECT cor0.col1 / - 81 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - col0 * + col2 + - ( - col0 ) AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT col1 * 2 AS col1 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT + col1 * col0 + col2 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT ALL + col2 * - col2 + cor0.col1 * col0 FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT ALL - col2 + 67 * ( + col2 ) * - 51 - col0 * col1 FROM tab2 AS cor0
----
-131227
-92503
-93470
onlyif mysql # use DIV operator for integer division
query I rowsort label-8277
SELECT ALL + + col1 DIV + col0 + col1 AS col2 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL + + col1 / + col0 + col1 AS col2 FROM tab0 AS cor0
----
89
92
99
query I rowsort
SELECT ALL col2 * - col1 * - 24 AS col1 FROM tab1
----
13680
29952
33696
query I rowsort
SELECT col0 * + col1 + - col1 * col1 FROM tab0
----
-182
-5332
-6014
query I rowsort
SELECT DISTINCT + 8 + - col2 FROM tab0
----
-25
-74
7
query I rowsort
SELECT DISTINCT col1 * col1 + col1 AS col1 FROM tab0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8282
SELECT + CAST( - 17 AS SIGNED ) * tab2.col0 + 29 AS col0 FROM tab2
----
-1297
-1314
-90
skipif mysql # not compatible
query I rowsort label-8282
SELECT + CAST ( - 17 AS INTEGER ) * tab2.col0 + 29 AS col0 FROM tab2
----
-1297
-1314
-90
query I rowsort
SELECT 78 + tab0.col1 AS col2 FROM tab0
----
164
169
175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * + cor0.col1 col1 FROM tab2 AS cor0
----
1479
2697
5133
query I rowsort
SELECT ALL - col0 + - col0 + - col1 * col1 AS col0 FROM tab0
----
-7444
-8459
-9479
onlyif mysql # use DIV operator for integer division
query I rowsort label-8286
SELECT ALL tab1.col2 DIV + col1 + col0 AS col0 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL tab1.col2 / + col1 + col0 AS col0 FROM tab1
----
5
69
87
query I rowsort
SELECT DISTINCT col1 + + 64 * + col0 AS col1 FROM tab1 AS cor0
----
218
4106
5133
onlyif mysql # use DIV operator for integer division
query I rowsort label-8288
SELECT DISTINCT - 13 DIV 19 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT - 13 / 19 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT 56 * + 61 AS col2 FROM tab2 AS cor0
----
3416
3416
3416
query I rowsort
SELECT DISTINCT - 12 * + col1 FROM tab0 AS cor0
----
-1032
-1092
-1164
onlyif mysql # use DIV operator for integer division
query I rowsort label-8291
SELECT DISTINCT - col1 + - tab1.col2 DIV - col0 + + col0 AS col0 FROM tab1
----
-5
54
68
skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT - col1 + - tab1.col2 / - col0 + + col0 AS col0 FROM tab1
----
-5
54
68
query I rowsort
SELECT DISTINCT col0 + tab2.col1 * - col1 AS col0 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - ( col2 * tab0.col0 ) + col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL + 50 + tab0.col0 * - col1 AS col0 FROM tab0
----
-2014
-3345
-8049
query I rowsort
SELECT - ( col2 ) * - col2 + - ( + 62 ) AS col0 FROM tab0
----
-61
1027
6662
query I rowsort
SELECT DISTINCT col0 + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL - 57 + col0 AS col0 FROM tab0 AS cor0
----
-22
-33
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8299
SELECT 9 * cor0.col0 * + CAST( - col0 AS SIGNED ) col1 FROM tab0 cor0
----
-11025
-5184
-71289
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8299
SELECT 9 * cor0.col0 * + CAST ( - col0 AS INTEGER ) col1 FROM tab0 cor0
----
-11025
-5184
-71289
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8300
SELECT ALL + col1 * col0 + CAST( NULL AS SIGNED ) / 97 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + col1 * col0 + CAST ( NULL AS INTEGER ) / 97 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + col1 * - 46 AS col0 FROM tab1 AS cor0
----
-1222
-470
-611
query I rowsort
SELECT ALL col1 * - col2 + - 61 AS col1 FROM tab2 AS cor0
----
-1595
-707
-898
query I rowsort
SELECT DISTINCT + 64 * - cor0.col0 FROM tab0 AS cor0
----
-1536
-2240
-5696
query I rowsort
SELECT ALL + 66 + col2 AS col2 FROM tab1 AS cor0
----
120
123
162
query I rowsort
SELECT 86 + + cor0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 21ba6badc2e2d538b9d76ba7685c7aa3
query I rowsort
SELECT ( - ( col2 ) ) AS col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - ( - 46 ) AS col0 FROM tab1 AS cor0
----
46
46
46
query I rowsort
SELECT + 73 FROM tab2 cor0
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8309
SELECT 50 DIV col2 FROM tab0 cor0
----
0
1
50
skipif mysql # not compatible
query I rowsort label-8309
SELECT 50 / col2 FROM tab0 cor0
----
0
1
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-8310
SELECT - + 59 + cor0.col2 DIV + ( - cor0.col1 ) FROM tab2 AS cor0
----
-59
-59
-61
skipif mysql # not compatible
query I rowsort label-8310
SELECT - + 59 + cor0.col2 / + ( - cor0.col1 ) FROM tab2 AS cor0
----
-59
-59
-61
query I rowsort
SELECT ALL 92 * col2 FROM tab1
----
4968
5244
8832
query I rowsort
SELECT ALL ( 89 * col0 + col0 ) AS col2 FROM tab2
----
630
7020
7110
onlyif mysql # use DIV operator for integer division
query I rowsort label-8313
SELECT + col1 + + 73 DIV col2 FROM tab1 AS cor0
----
11
13
27
skipif mysql # not compatible
query I rowsort label-8313
SELECT + col1 + + 73 / col2 FROM tab1 AS cor0
----
11
13
27
query I rowsort
SELECT + - col0 + - ( col1 ) FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - col1 + 78 AS col2 FROM tab0 AS cor0
----
-13
-19
-8
query I rowsort
SELECT DISTINCT - ( col0 ) + 89 * 93 + col1 * 7 * 73 FROM tab2
----
16885
24111
38348
query I rowsort
SELECT + tab1.col1 * col2 + + col1 + col2 AS col0 FROM tab1
----
1357
1484
637
query I rowsort
SELECT - cor0.col0 * cor0.col2 + ( cor0.col0 ) + cor0.col2 FROM tab2 AS cor0
----
-155
-1924
-2885
query I rowsort
SELECT 83 + + tab1.col0 AS col2 FROM tab1
----
147
163
86
query I rowsort
SELECT col1 * 28 FROM tab2
----
1652
476
868
query I rowsort
SELECT ALL col1 * + col2 + cor0.col2 * + col0 * 41 AS col0 FROM tab2 AS cor0
----
123728
84682
8586
onlyif mysql # use DIV operator for integer division
query I rowsort label-8322
SELECT DISTINCT cor0.col1 + col0 DIV + col1 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT cor0.col1 + col0 / + col1 FROM tab2 AS cor0
----
21
31
60
query I rowsort
SELECT - - col2 + - col2 * cor0.col1 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT + 13 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT ALL 60 AS col2 FROM tab1 cor0
----
60
60
60
query I rowsort
SELECT DISTINCT + - 35 AS col0 FROM tab1 AS cor0
----
-35
query I rowsort
SELECT ALL - 45 * + col2 AS col1 FROM tab0 AS cor0
----
-1485
-3690
-45
query I rowsort
SELECT ALL - - 99 * cor0.col0 AS col0 FROM tab1 cor0
----
297
6336
7920
query I rowsort
SELECT + col0 * - cor0.col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL - ( 80 * col2 ) + col2 FROM tab1
----
-4266
-4503
-7584
query I rowsort
SELECT - 83 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1331
-1487
-653
query I rowsort
SELECT + cor0.col1 * + 16 AS col2 FROM tab1 cor0
----
160
208
416
query I rowsort
SELECT - col1 + 73 FROM tab0 AS cor0
----
-13
-18
-24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8334
SELECT 30 * - col2 / - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8334
SELECT 30 * - col2 / - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 + col0 * 16 AS col2 FROM tab0 AS cor0
----
1342
351
559
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 - + col2 * - col1 * tab1.col1 col0 FROM tab1
----
16247
36527
5723
query I rowsort
SELECT cor0.col1 * col2 + 48 FROM tab1 AS cor0
----
1296
1452
618
onlyif mysql # use DIV operator for integer division
query I rowsort label-8338
SELECT col2 * ( 12 + + col1 ) DIV col0 AS col1 FROM tab2
----
13
165
23
skipif mysql # not compatible
query I rowsort label-8338
SELECT col2 * ( 12 + + col1 ) / col0 AS col1 FROM tab2
----
13
165
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8339
SELECT + - col0 + CAST( NULL AS SIGNED ) * - col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8339
SELECT + - col0 + CAST ( NULL AS INTEGER ) * - col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 79 + col1 FROM tab2
----
110
138
96
query I rowsort
SELECT + + 70 + - col1 AS col1 FROM tab2 cor0
----
11
39
53
query I rowsort
SELECT ALL + col2 * col0 - col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-8343
SELECT ALL + - 66 DIV col0 - col2 AS col1 FROM tab2 AS cor0
----
-26
-36
-38
skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL + - 66 / col0 - col2 AS col1 FROM tab2 AS cor0
----
-26
-36
-38
query I rowsort
SELECT ALL ( + 62 ) * col0 FROM tab0
----
1488
2170
5518
query I rowsort
SELECT 57 + col0 FROM tab1
----
121
137
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8346
SELECT + CAST( + col2 AS SIGNED ) + - col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8346
SELECT + CAST ( + col2 AS INTEGER ) + - col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8347
SELECT - 68 DIV col2 col0 FROM tab0
----
-2
-68
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8347
SELECT - 68 / col2 col0 FROM tab0
----
-2
-68
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8348
SELECT ALL + col2 + + col0 DIV - col1 FROM tab2
----
25
27
34
skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL + col2 + + col0 / - col1 FROM tab2
----
25
27
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8349
SELECT tab1.col2 DIV + 44 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c08e3956186780709ba0eab5eede7b9c
skipif mysql # not compatible
query I rowsort label-8349
SELECT tab1.col2 / + 44 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c08e3956186780709ba0eab5eede7b9c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 88 col2 FROM tab1 AS cor0
----
88
88
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-8351
SELECT + - cor0.col2 + col2 DIV col1 FROM tab1 AS cor0
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-8351
SELECT + - cor0.col2 + col2 / col1 FROM tab1 AS cor0
----
-52
-52
-89
query I rowsort
SELECT ALL col0 * + cor0.col1 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab0 AS cor0
----
94
query I rowsort
SELECT ALL - - 58 AS col2 FROM tab1 AS cor0
----
58
58
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-8355
SELECT ALL - col2 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - col2 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * + col0 * cor0.col2 + col0 FROM tab1 AS cor0
----
208000
737360
8751
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8357
SELECT ALL col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * - col2 + 68 + col0 FROM tab0 cor0
----
-2746
-7305
6
query I rowsort
SELECT + tab0.col0 + tab0.col2 * ( col1 ) AS col2 FROM tab0
----
132
2862
7551
query I rowsort
SELECT col1 + ( + 5 ) FROM tab0 AS cor0
----
102
91
96
query I rowsort
SELECT ALL + - col2 * + 46 + col0 AS col0 FROM tab0 AS cor0
----
-11
-1494
-3683
query I rowsort
SELECT DISTINCT + 17 * - col0 FROM tab1 AS cor0
----
-1088
-1360
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-8363
SELECT ( - col1 ) DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8363
SELECT ( - col1 ) / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col1 + + ( - col0 ) * + col0 AS col1 FROM tab2 cor0
----
-18
-6025
-6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-8365
SELECT ALL - 20 DIV col1 col2 FROM tab2 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL - 20 / col1 col2 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT + - ( ( col2 ) ) + + ( + 48 ) * col1 FROM tab1 cor0
----
1194
423
528
query I rowsort
SELECT ALL col2 * + col2 * col0 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8368
SELECT CAST( col0 AS SIGNED ) * col1 + + 55 AS col1 FROM tab1 cor0
----
1095
133
695
skipif mysql # not compatible
query I rowsort label-8368
SELECT CAST ( col0 AS INTEGER ) * col1 + + 55 AS col1 FROM tab1 cor0
----
1095
133
695
query I rowsort
SELECT ALL + col0 * 95 AS col0 FROM tab2 AS cor0
----
665
7410
7505
onlyif mysql # use DIV operator for integer division
query I rowsort label-8370
SELECT DISTINCT - - col2 DIV + col1 + col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT - - col2 / + col1 + col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - - col2 + + col1 * col1 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8372
SELECT ALL + CAST( NULL AS DECIMAL ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + CAST ( NULL AS REAL ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 88 * + col1 FROM tab0 AS cor0
----
7568
8008
8536
query I rowsort
SELECT DISTINCT + - col2 + + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + 27 + 85 * col2 * + 9 FROM tab2 AS cor0
----
19917
20682
29097
query I rowsort
SELECT ( + 61 ) + cor0.col1 * - 41 FROM tab0 AS cor0
----
-3465
-3670
-3916
query I rowsort
SELECT ( + col1 ) + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT - ( + 63 ) FROM tab0 AS cor0
----
-63
-63
-63
query I rowsort
SELECT - - 30 AS col1 FROM tab1 AS cor0
----
30
30
30
skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( col1 AS REAL ) + col1 / + 97 FROM tab0 AS cor0
----
-86
-91
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8381
SELECT - + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8381
SELECT - + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - 17 + + col2 FROM tab0 AS cor0
----
-16
16
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8383
SELECT - col1 + col1 DIV col1 FROM tab1 cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-8383
SELECT - col1 + col1 / col1 FROM tab1 cor0
----
-12
-25
-9
query I rowsort
SELECT cor1.col2 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT ALL 65 AS col2 FROM tab2
----
65
65
65
query I rowsort
SELECT - 13 + + col1 * + col0 FROM tab0
----
2051
3382
8086
query I rowsort
SELECT ALL + cor0.col0 * - 25 FROM tab0 cor0
----
-2225
-600
-875
query I rowsort
SELECT - col0 * - col0 - col0 * col2 FROM tab2 AS cor0
----
-140
3239
4056
query I rowsort
SELECT ALL + 58 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT DISTINCT cor0.col0 - + col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8391
SELECT ALL - col2 * col2 DIV 84 FROM tab2 AS cor0
----
-17
-8
-8
skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL - col2 * col2 / 84 FROM tab2 AS cor0
----
-17
-8
-8
query I rowsort
SELECT ALL + col0 + ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * + ( + col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - + col2 * col2 + 18 FROM tab1 AS cor0
----
-2898
-3231
-9198
query I rowsort
SELECT - 26 * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e91e7cc659dc8af061ec8eafb33dfa4c
query I rowsort
SELECT - col2 * 87 FROM tab2 AS cor0
----
-2262
-2349
-3306
query I rowsort
SELECT DISTINCT + 45 FROM tab1, tab1 AS cor0
----
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8398
SELECT + CAST( NULL AS SIGNED ) * 57 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8398
SELECT + CAST ( NULL AS INTEGER ) * 57 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab0.col1 + 47 * col0 FROM tab0
----
1214
1742
4274
query I rowsort
SELECT - tab0.col1 + col1 + + col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + + tab2.col1 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-8402
SELECT DISTINCT - col0 DIV - tab1.col1 col2 FROM tab1
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT - col0 / - tab1.col1 col2 FROM tab1
----
0
6
query I rowsort
SELECT ALL - cor0.col2 * + ( + 63 ) - - col1 FROM tab1 AS cor0
----
-3376
-3581
-6035
query I rowsort
SELECT - - col0 + - 97 AS col1 FROM tab0 AS cor0
----
-62
-73
-8
query I rowsort
SELECT ALL + cor0.col0 * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT - col2 - 77 AS col2 FROM tab2
----
-103
-104
-115
query I rowsort
SELECT - col0 + + col0 * + col2 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT + cor0.col1 * col2 + 40 * + col1 FROM tab2 AS cor0
----
1326
2077
3894
query I rowsort
SELECT DISTINCT + tab0.col1 AS col2 FROM tab0, tab1 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col2 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8411
SELECT - 98 * - col0 DIV col0 FROM tab2
----
98
98
98
skipif mysql # not compatible
query I rowsort label-8411
SELECT - 98 * - col0 / col0 FROM tab2
----
98
98
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 * - col0 col1 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT DISTINCT + 91 * col1 DIV + col1 FROM tab1
----
91
skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT + 91 * col1 / + col1 FROM tab1
----
91
query I rowsort
SELECT col1 - cor0.col1 * - col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( - col0 AS REAL ) - - col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col0 * - col0 + col2 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-8417
SELECT - 56 DIV col1 AS col0 FROM tab2
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-8417
SELECT - 56 / col1 AS col0 FROM tab2
----
-1
-3
0
query I rowsort
SELECT + 73 * - tab1.col2 AS col2 FROM tab1
----
-3942
-4161
-7008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + + col2 col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + col1 * col0 * col1 + + cor0.col0 - col1 FROM tab2 AS cor0
----
22893
271537
6703
query I rowsort
SELECT + col0 - + cor0.col2 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT 32 * col0 * - col1 + col2 FROM tab2
----
-147238
-42938
-6917
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8423
SELECT + col1 + col0 * CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8423
SELECT + col1 + col0 * CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 + + col1 * - col1 FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - + 76 + - col2 * col1 AS col2 FROM tab1 cor0
----
-1324
-1480
-646
query I rowsort
SELECT ALL - ( cor0.col2 ) + + col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT - 26 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
0
1
12
query I rowsort
SELECT ALL col2 + + 34 * ( - cor0.col0 * + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-123975
-261024
-5454
query I rowsort
SELECT DISTINCT col1 * col1 + - 81 * - col1 AS col0 FROM tab1 AS cor0
----
1222
2782
910
query I rowsort
SELECT DISTINCT - + col1 + - col1 * 26 * + col0 AS col2 FROM tab2 AS cor0
----
-119711
-34935
-5673
query I rowsort
SELECT ALL - - col2 + - 60 * - col1 AS col2 FROM tab0 cor0
----
5193
5542
5821
query I rowsort
SELECT - + col1 * ( + 12 ) FROM tab1 AS cor0
----
-120
-156
-312
query I rowsort
SELECT DISTINCT col0 * 10 AS col1 FROM tab0 AS cor0
----
240
350
890
query I rowsort
SELECT col1 * + col2 * - 80 + - col1 FROM tab0 AS cor0
----
-227126
-597051
-7857
query I rowsort
SELECT ALL col1 * 50 FROM tab1 AS cor0
----
1300
500
650
query I rowsort
SELECT + col0 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 * col2 + col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1512
-2679
-7968
query I rowsort
SELECT ALL - col0 * tab0.col1 + tab0.col2 * + tab0.col2 FROM tab0
----
-1375
-3394
-975
query I rowsort
SELECT ( - col2 * - col1 ) + + col2 AS col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL col0 * + col1 - col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT ALL - - col2 * col0 + - col1 FROM tab0 cor0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 42 * cor0.col2 col0 FROM tab1 AS cor0
----
2294
2404
4045
query I rowsort
SELECT DISTINCT - - 67 + - col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1467
-579
-770
query I rowsort
SELECT + cor0.col0 * 76 AS col0 FROM tab0 AS cor0
----
1824
2660
6764
onlyif mysql # use DIV operator for integer division
query I rowsort label-8447
SELECT ALL + - col0 DIV - cor0.col2 - col1 FROM tab0 AS cor0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + - col0 / - cor0.col2 - col1 FROM tab0 AS cor0
----
-62
-86
-90
query I rowsort
SELECT - cor0.col2 + col0 * + col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL + col0 * - col0 * 31 AS col2 FROM tab2
----
-1519
-188604
-193471
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8450
SELECT - col1 * 77 * col0 + CAST( col2 + col0 * - col0 AS SIGNED ) FROM tab0
----
-159471
-262639
-631462
skipif mysql # not compatible
query I rowsort label-8450
SELECT - col1 * 77 * col0 + CAST ( col2 + col0 * - col0 AS INTEGER ) FROM tab0
----
-159471
-262639
-631462
query I rowsort
SELECT 10 * col1 AS col2 FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT ALL + col0 * col1 - 12 AS col2 FROM tab0 AS cor0
----
2052
3383
8087
query I rowsort
SELECT DISTINCT - col0 + - col2 * cor0.col1 + col1 * col1 FROM tab2 AS cor0
----
-436
117
1869
query I rowsort
SELECT ALL + col1 + 19 AS col2 FROM tab2 AS cor0
----
36
50
78
query I rowsort
SELECT DISTINCT col0 * ( - col1 ) - + col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL + col1 * 48 AS col0 FROM tab2 AS cor0
----
1488
2832
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8457
SELECT DISTINCT - col0 + - col1 * 24 DIV cor0.col1 FROM tab0 cor0
----
-113
-48
-59
skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT - col0 + - col1 * 24 / cor0.col1 FROM tab0 cor0
----
-113
-48
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8458
SELECT ALL col2 DIV - 90 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL col2 / - 90 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8459
SELECT DISTINCT + col0 + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT + col0 + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - - col0 * col2 * - 61 AS col1 FROM tab0 AS cor0
----
-2135
-445178
-48312
onlyif mysql # use DIV operator for integer division
query I rowsort label-8461
SELECT DISTINCT tab2.col2 + tab2.col0 DIV col1 AS col0 FROM tab2
----
27
42
skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT tab2.col2 + tab2.col0 / col1 AS col0 FROM tab2
----
27
42
query I rowsort
SELECT DISTINCT - col2 + - col2 * 5 + + col0 AS col2 FROM tab2
----
-149
-155
-78
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - 84 * - col1 AS col1 FROM tab2
----
1428
2604
4956
query I rowsort
SELECT - tab2.col1 * - col2 + + ( - col2 ) * + col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * - 77 col1 FROM tab0 AS cor0
----
44352
609917
94325
query I rowsort
SELECT - col1 + ( 15 ) FROM tab1 AS cor0
----
-11
2
5
query I rowsort
SELECT col0 + col1 * - 70 FROM tab2
----
-1111
-2163
-4052
query I rowsort
SELECT ( - tab1.col1 + col0 ) FROM tab1
----
-23
54
67
query I rowsort
SELECT col0 * 49 + + col2 * col2 FROM tab2
----
1072
4498
5315
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * CAST ( col2 + col2 AS REAL ) AS col1 FROM tab0
----
-13448
-2
-2178
query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - col0 * cor0.col2 * - 54 AS col1 FROM tab2 AS cor0
----
10206
109512
162108
query I rowsort
SELECT DISTINCT - col1 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + col2 * - ( col2 ) AS col2 FROM tab2 cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + 89 * col1 AS col2 FROM tab2
----
1513
2759
5251
query I rowsort
SELECT ALL + + 47 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT - + 90 FROM tab0, tab2, tab1 cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618
query I rowsort
SELECT + cor0.col2 + - cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT col0 * col0 * col0 + ( col0 ) AS col1 FROM tab0
----
13848
42910
705058
query I rowsort
SELECT + col2 + + col1 + - 55 FROM tab1
----
12
25
54
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col2 + ( col2 ) FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ( cor0.col1 ) * + col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - - 7 AS col2 FROM tab0 AS cor0
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8487
SELECT ALL 47 DIV col0 col1 FROM tab1
----
0
0
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL 47 / col0 col1 FROM tab1
----
0
0
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-8488
SELECT - + 17 DIV col2 - - ( col1 ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8488
SELECT - + 17 / col2 - - ( col1 ) FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8489
SELECT DISTINCT + col1 DIV col0 + - 20 AS col2 FROM tab0 AS cor0
----
-17
-18
-19
skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT + col1 / col0 + - 20 AS col2 FROM tab0 AS cor0
----
-17
-18
-19
onlyif mysql # use DIV operator for integer division
query I rowsort label-8490
SELECT ALL 0 DIV + col1 + cor0.col0 - col1 * cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960
skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL 0 / + col1 + cor0.col0 - col1 * cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - + col1 + - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8492
SELECT + + col0 * - col0 + + 76 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1149
-574
-7921
skipif mysql # not compatible
query I rowsort label-8492
SELECT + + col0 * - col0 + + 76 / + col2 AS col0 FROM tab0 AS cor0
----
-1149
-574
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-8493
SELECT - + cor0.col2 DIV + ( - col1 + col2 ) AS col0 FROM tab0 AS cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-8493
SELECT - + cor0.col2 / + ( - col1 + col2 ) AS col0 FROM tab0 AS cor0
----
0
0
9
query I rowsort
SELECT - - col1 + 98 AS col0 FROM tab2 AS cor0
----
115
129
157
query I rowsort
SELECT col2 + + ( - 5 ) AS col1 FROM tab0 AS cor0
----
-4
28
77
query I rowsort
SELECT - cor0.col1 + + col2 * 89 AS col1 FROM tab1 cor0
----
4780
5063
8531
query I rowsort
SELECT 97 * col1 AS col0 FROM tab0
----
8342
8827
9409
query I rowsort
SELECT DISTINCT + 75 + - 32 * col0 + cor0.col0 FROM tab2 AS cor0
----
-142
-2343
-2374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8499
SELECT ALL + - CAST( NULL AS DECIMAL ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + - CAST ( NULL AS REAL ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 87 + + col1 AS col1 FROM tab0 cor0
----
173
178
184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8501
SELECT ALL - CAST( col0 AS SIGNED ) + - col0 + col1 AS col1 FROM tab2 AS cor0
----
-141
-97
17
skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL - CAST ( col0 AS INTEGER ) + - col0 + col1 AS col1 FROM tab2 AS cor0
----
-141
-97
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-8502
SELECT ALL + col2 DIV - 24 AS col0 FROM tab1
----
-2
-2
-4
skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL + col2 / - 24 AS col0 FROM tab1
----
-2
-2
-4
query I rowsort
SELECT 21 + ( cor0.col0 ) FROM tab1 AS cor0
----
101
24
85
query I rowsort
SELECT DISTINCT - 73 + - 87 AS col0 FROM tab1, tab1 cor0, tab2 cor1, tab2 AS cor2
----
-160
query I rowsort
SELECT DISTINCT + - 81 AS col2 FROM tab2 AS cor0
----
-81
query I rowsort
SELECT ALL - col1 + cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 86 - col0 col0 FROM tab0 AS cor0
----
52
79
95
query I rowsort
SELECT cor0.col0 + - col1 AS col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT + + col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 21 + - col2 - + col0 FROM tab1 AS cor0
----
-142
-197
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8511
SELECT + col2 * + col2 * CAST( NULL AS SIGNED ) + col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8511
SELECT + col2 * + col2 * CAST ( NULL AS INTEGER ) + col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + cor0.col1 ) * - col2 + col2 - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - 39 + + col2 FROM tab0
----
-38
-6
43
query I rowsort
SELECT tab0.col0 * - ( col1 ) AS col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8515
SELECT DISTINCT CAST( col0 AS SIGNED ) * col0 AS col2 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT cor0.col2 * cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6ed0b6feb543f25f03c87c0bfe584717
query I rowsort
SELECT ALL + col2 * + col2 * col1 + - col0 AS col1 FROM tab0
----
611795
62
93630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * - col2 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL 66 * col0 AS col0 FROM tab0 cor0
----
1584
2310
5874
query I rowsort
SELECT ALL 2 * col2 FROM tab2
----
52
54
76
query I rowsort
SELECT + - 0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - tab0.col1 * - cor0.col0 AS col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 2e5239e07239fc5e8b7ad998a3c285e1
query I rowsort
SELECT ALL - 35 + - col1 * col1 FROM tab1 AS cor0
----
-135
-204
-711
query I rowsort
SELECT + 77 AS col0 FROM tab0 AS cor0
----
77
77
77
query I rowsort
SELECT ALL - 34 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col1 FROM tab2, tab1, tab1 AS cor0
----
83
query I rowsort
SELECT + col1 * + 78 FROM tab1 AS cor0
----
1014
2028
780
query I rowsort
SELECT + - col2 * + ( col2 ) - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8529
SELECT - + col2 + - CAST( NULL AS DECIMAL ) * - col1 * col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8529
SELECT - + col2 + - CAST ( NULL AS REAL ) * - col1 * col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT col1 DIV + 68 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8530
SELECT col1 / + 68 FROM tab1
----
0
0
0
query I rowsort
SELECT - + col0 * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8532
SELECT + col1 * CAST( - ( - col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-8532
SELECT + col1 * CAST ( - ( - col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8533
SELECT - col0 DIV cor0.col0 - col2 * col2 col2 FROM tab1 AS cor0
----
-2917
-3250
-9217
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8533
SELECT - col0 / cor0.col0 - col2 * col2 col2 FROM tab1 AS cor0
----
-2917
-3250
-9217
query I rowsort
SELECT col2 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL - col2 * - 65 * - col2 FROM tab2
----
-43940
-47385
-93860
query I rowsort
SELECT - col1 - + col2 * + col2 FROM tab0
----
-1175
-6815
-98
query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
81
query I rowsort
SELECT + - col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + 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-8540
SELECT - CAST( NULL AS DECIMAL ) / + col0 + - col0 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8540
SELECT - CAST ( NULL AS REAL ) / + col0 + - col0 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 58 AS col1 FROM tab0 AS cor0
----
-58
-58
-58
query I rowsort
SELECT ALL - col0 + + cor0.col2 * col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT + 89 + col1 * - col1 FROM tab1 AS cor0
----
-11
-587
-80
query I rowsort
SELECT + + col1 - + col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - 20 * - col0 FROM tab0 cor0
----
1780
480
700
query I rowsort
SELECT - col2 * col2 + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + 13 - col0 * 60 AS col0 FROM tab1 AS cor0
----
-113
-3770
-4691
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8548
SELECT + CAST( col0 AS SIGNED ) + col0 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-8548
SELECT + CAST ( col0 AS INTEGER ) + col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - - col1 col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-8550
SELECT DISTINCT + - cor0.col2 DIV + ( col2 ) + cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
1247
1403
569
skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT + - cor0.col2 / + ( col2 ) + cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
1247
1403
569
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * col1 - col2 col1 FROM tab1 AS cor0
----
-1047
-1383
-2628
query I rowsort
SELECT ALL - col2 * 74 FROM tab0 cor0
----
-2442
-6068
-74
query I rowsort
SELECT + + col1 * col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT + + col1 * - col2 + + 83 * col2 AS col2 FROM tab0 AS cor0
----
-14
-656
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col1 * - 7 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to bc64b3faa3f559fb28d4e3c024f671b5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 col1 FROM tab2 AS cor0
----
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8557
SELECT ALL + + ( col2 ) + - ( - col0 ) * - col0 DIV + col0 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL + + ( col2 ) + - ( - col0 ) * - col0 / + col0 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort
SELECT - ( col1 + - col2 * CAST ( col2 AS REAL ) ) FROM tab0
----
-96
1003
6633
query I rowsort
SELECT + col2 * col0 + ( + 82 ) AS col1 FROM tab2 AS cor0
----
2110
271
3084
onlyif mysql # use DIV operator for integer division
query I rowsort label-8560
SELECT ALL - + col1 DIV col2 - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL - + col1 / col2 - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col0 + col0 * col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - + col1 * + ( col1 ) + col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL + cor0.col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col1 * col1 col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - tab1.col0 + + 72 FROM tab1, tab0 AS cor0
----
-8
69
8
query I rowsort
SELECT ALL + 23 FROM tab2 cor0
----
23
23
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-8567
SELECT ALL - 99 DIV 27 FROM tab2, tab2 cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to f84ad243dff1ce0c39462086a2b7429c
skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL - 99 / 27 FROM tab2, tab2 cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to f84ad243dff1ce0c39462086a2b7429c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8568
SELECT DISTINCT - col2 + + col2 DIV tab0.col2 AS col0 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT - col2 + + col2 / tab0.col2 AS col0 FROM tab0
----
-32
-81
0
query I rowsort
SELECT + cor0.col2 * - 23 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6161d0cfe35a71c4c518b5f5525d5efc
onlyif mysql # use DIV operator for integer division
query I rowsort label-8570
SELECT ALL 4 DIV + col0 col2 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL 4 / + col0 col2 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8571
SELECT - col0 + col2 DIV col1 AS col1 FROM tab1 cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-8571
SELECT - col0 + col2 / col1 AS col1 FROM tab1 cor0
----
-1
-59
-73
query I rowsort
SELECT ALL + cor0.col1 * + cor0.col0 + + 20 FROM tab1 AS cor0
----
1060
660
98
query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + - col2 + - ( + col2 ) * - col2 AS col2 FROM tab1 cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-8575
SELECT - col0 DIV 34 AS col1 FROM tab2 AS cor0
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-8575
SELECT - col0 / 34 AS col1 FROM tab2 AS cor0
----
-2
-2
0
query I rowsort
SELECT DISTINCT col0 + 72 AS col2 FROM tab1 AS cor0
----
136
152
75
query I rowsort
SELECT - - col0 + + 29 AS col2 FROM tab2 AS cor0
----
107
108
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8578
SELECT ALL - - col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL - - col2 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * - 16 FROM tab2 AS cor0
----
-272
-496
-944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8580
SELECT DISTINCT - CAST( 60 AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-60
skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT - CAST ( 60 AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-60
query I rowsort
SELECT DISTINCT - ( + col1 ) + - 23 FROM tab2
----
-40
-54
-82
query I rowsort
SELECT DISTINCT + col0 + + col2 * - 51 FROM tab2
----
-1248
-1370
-1859
onlyif mysql # use DIV operator for integer division
query I rowsort label-8583
SELECT + + col2 DIV + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8583
SELECT + + col2 / + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT ALL col1 + tab1.col2 * - 2 FROM tab1
----
-104
-179
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * + col1 col1 FROM tab2 AS cor0
----
1462
2666
5074
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8586
SELECT ALL - 44 * - col2 + + col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL - 44 * - col2 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( cor0.col0 ) * - col0 + col1 col2 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT - 42 + + col1 AS col2 FROM tab1 AS cor0
----
-16
-29
-32
query I rowsort
SELECT ALL - - 94 + col1 * + col0 FROM tab2 AS cor0
----
1437
311
4696
query I rowsort
SELECT - cor0.col2 + + 39 AS col2 FROM tab0 AS cor0
----
-43
38
6
query I rowsort
SELECT DISTINCT + 83 AS col2 FROM tab0 AS cor0
----
83
query I rowsort
SELECT + col2 * ( col0 ) * - col0 - - col1 FROM tab2
----
-1292
-158125
-237141
query I rowsort
SELECT ALL - 13 + cor0.col2 * - col1 * - 41 + - cor0.col2 AS col2 FROM tab2 cor0
----
26435
34277
62855
query I rowsort
SELECT ALL - 8 * 39 + col1 + + col0 FROM tab0 AS cor0
----
-132
-180
-202
query I rowsort
SELECT DISTINCT col2 * col0 - col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT + + col0 + - 65 AS col0 FROM tab0 AS cor0
----
-30
-41
24
query I rowsort
SELECT ALL + 61 + + col2 FROM tab2 cor0
----
87
88
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8598
SELECT - col0 + + col1 DIV 42 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8598
SELECT - col0 + + col1 / 42 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col0 + - col0 + - col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT col2 - col2 * - ( - col1 ) * - col2 FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT + col0 * + cor0.col2 * col1 - cor0.col1 AS col2 FROM tab0 AS cor0
----
3298
664027
68026
query I rowsort
SELECT col0 + col2 * - col2 * + col1 AS col1 FROM tab0 cor0
----
-611795
-62
-93630
query I rowsort
SELECT ALL - col2 * col2 * col1 AS col0 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab2, tab1, tab0 AS cor0, tab0
----
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( ( cor0.col0 ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - col0 + - 98 col2 FROM tab0 AS cor0
----
-98
query I rowsort
SELECT ALL - col2 * - col0 - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT cor0.col2 * - col2 * col2 - - 80 * col2 FROM tab0 cor0
----
-33297
-544808
79
query I rowsort
SELECT 27 * col2 FROM tab2
----
1026
702
729
query I rowsort
SELECT ALL ( - col1 + + ( - tab1.col2 ) ) FROM tab1
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + cor0.col0 AS REAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
skipif mysql # not compatible
query I rowsort
SELECT ALL - - col0 * + CAST ( col0 AS REAL ) * + col2 AS col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT + - col2 * 50 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1683
-4182
-51
query I rowsort
SELECT ALL + col0 * - col1 * col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT col2 * + 24 * - col1 AS col0 FROM tab0
----
-179088
-2328
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8617
SELECT + CAST( NULL AS SIGNED ) * - col2 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8617
SELECT + CAST ( NULL AS INTEGER ) * - col2 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + - 51 * + col2 FROM tab0 AS cor0
----
-1597
-4091
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-8619
SELECT DISTINCT col0 + + 30 DIV col0 - 7 AS col1 FROM tab0 AS cor0
----
18
28
82
skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT col0 + + 30 / col0 - 7 AS col1 FROM tab0 AS cor0
----
18
28
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) + cor0.col2 col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + 39 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab2, tab1 AS cor0
----
-91
query I rowsort
SELECT + ( 82 ) + col1 * ( - col1 * + cor0.col0 + 80 ) FROM tab2 AS cor0
----
-21389
-266716
-4165
query I rowsort
SELECT DISTINCT + - 10 * col0 * - col0 AS col1 FROM tab0 AS cor0
----
12250
5760
79210
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8625
SELECT + CAST( 93 AS SIGNED ) col2 FROM tab0 AS cor0
----
93
93
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8625
SELECT + CAST ( 93 AS INTEGER ) col2 FROM tab0 AS cor0
----
93
93
93
query I rowsort
SELECT cor0.col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT col2 + 66 - ( tab1.col2 ) FROM tab1
----
66
66
66
query I rowsort
SELECT DISTINCT - tab0.col2 * ( + col2 ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT - tab1.col0 + + 2 FROM tab1
----
-1
-62
-78
query I rowsort
SELECT DISTINCT - + col2 * + 2 + ( col1 ) FROM tab1 AS cor0
----
-104
-179
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 81 col2 FROM tab1 cor0
----
145
161
84
query I rowsort
SELECT DISTINCT + + col2 + 33 * col1 AS col0 FROM tab0 AS cor0
----
2871
3085
3202
query I rowsort
SELECT DISTINCT + col1 * col2 + + col1 + col1 FROM tab2 AS cor0
----
1652
680
899
query I rowsort
SELECT + col2 * + 82 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT DISTINCT + + 91 + cor0.col2 AS col0 FROM tab2 AS cor0
----
117
118
129
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + + col2 * ( - col2 ) / col0 AS col0 FROM tab2 AS cor0
----
-1
-73
51
query I rowsort
SELECT - ( - 85 ) AS col2 FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT ALL - col1 * 79 FROM tab2
----
-1343
-2449
-4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 * cor0.col1 col2 FROM tab0 cor0
----
1978
2093
2231
query I rowsort
SELECT DISTINCT + 86 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
86
query I rowsort
SELECT DISTINCT col0 + col0 * col1 AS col2 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT tab1.col2 * col1 + + col0 AS col0 FROM tab1
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + - col0 * + col2 col0 FROM tab2 AS cor0
----
-140
3239
4056
query I rowsort
SELECT DISTINCT + col1 * - col1 - col1 AS col2 FROM tab0
----
-7482
-8372
-9506
query I rowsort
SELECT - 31 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT ALL - - 86 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT DISTINCT + col0 - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + 21 + - 15 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT ALL + col2 * + 79 AS col0 FROM tab0 AS cor0
----
2607
6478
79
query I rowsort
SELECT ALL + - cor0.col2 * ( - col0 ) FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col0 * - 2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL 65 + - col1 AS col2 FROM tab0
----
-21
-26
-32
query I rowsort
SELECT ALL - ( + col1 ) + + col1 * - col0 FROM tab0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-8654
SELECT DISTINCT + col2 * col2 + col0 DIV 42 FROM tab2
----
1445
677
729
skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT + col2 * col2 + col0 / 42 FROM tab2
----
1445
677
729
query I rowsort
SELECT 13 - col0 FROM tab1
----
-51
-67
10
query I rowsort
SELECT ALL 26 * tab2.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6f5a03b9c34a9ecd8304e587952e31a6
query I rowsort
SELECT + tab0.col2 * 21 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to de28110a6888259783c448ca40ca2460
onlyif mysql # use DIV operator for integer division
query I rowsort label-8658
SELECT + col1 * - 77 * + col1 - + col1 DIV ( - col2 ) FROM tab0
----
-569490
-637636
-724396
skipif mysql # not compatible
query I rowsort label-8658
SELECT + col1 * - 77 * + col1 - + col1 / ( - col2 ) FROM tab0
----
-569490
-637636
-724396
query I rowsort
SELECT - col2 + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL col1 - 66 AS col2 FROM tab2 AS cor0
----
-35
-49
-7
query I rowsort
SELECT - cor0.col2 * + 53 AS col0 FROM tab1 AS cor0
----
-2862
-3021
-5088
query I rowsort
SELECT ALL + col1 * + 7 AS col0 FROM tab0 AS cor0
----
602
637
679
query I rowsort
SELECT ALL col0 * + col2 + - col1 AS col2 FROM tab2
----
158
1969
2985
query I rowsort
SELECT DISTINCT cor2.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
10
13
26
query I rowsort
SELECT DISTINCT 77 + 13 AS col0 FROM tab1
----
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8666
SELECT DISTINCT col2 + col2 * col1 + CAST( col2 AS SIGNED ) FROM tab2
----
1586
722
891
skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT col2 + col2 * col1 + CAST ( col2 AS INTEGER ) FROM tab2
----
1586
722
891
query I rowsort
SELECT DISTINCT col0 + + col1 + col0 AS col2 FROM tab0
----
134
167
269
query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL < ( NULL )
----
query I rowsort
SELECT col1 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL - col1 * + col2 + - cor0.col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL 36 * col2 FROM tab2 cor0
----
1368
936
972
query I rowsort
SELECT + - 28 * col1 * ( - 23 ) AS col0 FROM tab2 AS cor0
----
10948
19964
37996
query I rowsort
SELECT + + 75 FROM tab0 cor0
----
75
75
75
query I rowsort
SELECT + - col0 * + col0 + col2 + - col2 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT 77 + + col1 FROM tab1 AS cor0
----
103
87
90
query I rowsort
SELECT ALL 18 * tab1.col2 AS col2 FROM tab1
----
1026
1728
972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col1 col2 FROM tab0 cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col0 col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - - cor0.col2 * + col2 * 18 AS col1 FROM tab2 cor0
----
12168
13122
25992
query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * + col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - ( + col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - - 67 FROM tab2 AS cor0
----
67
67
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 + tab2.col2 + - col1 col2 FROM tab2
----
185
1995
3023
query I rowsort
SELECT ALL col0 + col1 * - ( col1 ) - - col1 * + 77 FROM tab1
----
1329
734
912
query I rowsort
SELECT DISTINCT col1 + + ( + 94 ) * col2 FROM tab0 AS cor0
----
191
3188
7799
query I rowsort
SELECT ALL cor0.col2 * + ( + col0 ) + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + col0 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL col1 + - 26 AS col1 FROM tab1
----
-13
-16
0
query I rowsort
SELECT + col1 * col1 - col0 FROM tab1 AS cor0
----
36
673
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col0 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT ALL + + col0 * + 34 AS col1 FROM tab2 AS cor0
----
238
2652
2686
query I rowsort
SELECT 72 + - 13 * - col0 - 62 * + 71 AS col1 FROM tab1 AS cor0
----
-3290
-3498
-4291
query I rowsort
SELECT + - col2 + + ( - col2 ) + 30 AS col2 FROM tab1 cor0
----
-162
-78
-84
query I rowsort
SELECT ALL - tab1.col0 + - tab1.col2 - - 97 FROM tab1
----
-24
-79
40
query I rowsort
SELECT - ( 51 ) + + col2 * + 63 + col0 AS col1 FROM tab1 AS cor0
----
3354
3604
6077
query I rowsort
SELECT ALL + col0 * col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
343
474552
493039
onlyif mysql # use DIV operator for integer division
query I rowsort label-8697
SELECT DISTINCT - col0 DIV 48 AS col1 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT - col0 / 48 AS col1 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT + - 86 + col2 + + col1 AS col0 FROM tab2 AS cor0
----
-1
-28
-31
query I rowsort
SELECT col0 + col2 - + col2 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8700
SELECT - col2 + + cor0.col0 DIV 18 FROM tab1 AS cor0
----
-54
-54
-92
skipif mysql # not compatible
query I rowsort label-8700
SELECT - col2 + + cor0.col0 / 18 FROM tab1 AS cor0
----
-54
-54
-92
query I rowsort
SELECT ALL + col1 + - col2 * + 73 AS col0 FROM tab1 AS cor0
----
-3916
-4151
-6995
query I rowsort
SELECT - 67 * cor0.col0 FROM tab1 AS cor0
----
-201
-4288
-5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8703
SELECT - - cor1.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-8703
SELECT - - cor1.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8704
SELECT ALL + + col1 * cor0.col1 * col0 + + cor0.col1 DIV col1 FROM tab1 AS cor0
----
13521
2029
6401
skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL + + col1 * cor0.col1 * col0 + + cor0.col1 / col1 FROM tab1 AS cor0
----
13521
2029
6401
query I rowsort
SELECT DISTINCT - 30 AS col2 FROM tab2 AS cor0
----
-30
query I rowsort
SELECT DISTINCT col0 * cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL + 6 * col1 + 1 FROM tab0 AS cor0
----
517
547
583
query I rowsort
SELECT DISTINCT - 84 + + col1 FROM tab1 AS cor0
----
-58
-71
-74
query I rowsort
SELECT ALL + + col2 * cor0.col1 AS col0 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8710
SELECT DISTINCT - + 7 DIV cor0.col1 + 46 FROM tab0 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT - + 7 / cor0.col1 + 46 FROM tab0 AS cor0
----
46
query I rowsort
SELECT ALL ( + col2 ) * - col2 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT col0 * + col0 + - ( + col2 ) FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT - + col2 * col1 + + 58 * col2 FROM tab1 AS cor0
----
1728
2736
4320
query I rowsort
SELECT ALL cor0.col1 + ( - 79 ) * col1 AS col0 FROM tab1 AS cor0
----
-1014
-2028
-780
query I rowsort
SELECT ALL + col2 * + 63 FROM tab0 cor0
----
2079
5166
63
query I rowsort
SELECT cor1.col1 + 23 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to bcb0e54a3422a51ea2cecc8e4e47ecf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8717
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) + col2 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) + col2 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * ( 33 ) col0 FROM tab0 AS cor0
----
2838
3003
3201
query I rowsort
SELECT DISTINCT - col0 * 36 FROM tab0 AS cor0
----
-1260
-3204
-864
query I rowsort
SELECT DISTINCT - col2 + ( 75 ) * col1 + col1 AS col1 FROM tab2 AS cor0
----
1254
2329
4458
query I rowsort
SELECT ALL - + col2 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 20 * cor0.col2 * + ( + col0 ) col2 FROM tab0 AS cor0
----
145878
15807
699
query I rowsort
SELECT DISTINCT + 27 FROM tab2, tab1 AS cor0
----
27
query I rowsort
SELECT - 82 * + col1 + + col1 AS col0 FROM tab0 AS cor0
----
-6966
-7371
-7857
query I rowsort
SELECT + ( col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + - cor0.col1 + 53 FROM tab1, tab1 AS cor0
----
9 values hashing to 8fdba8c209413a05cd0bcb315fa1cba5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * 77 col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to d6e448522ecb536c607dc3379f0890cb
query I rowsort
SELECT DISTINCT 1 * tab0.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
1
33
82
query I rowsort
SELECT - col1 * - col1 * - col1 AS col2 FROM tab2 AS cor0
----
-205379
-29791
-4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * col2 + col2 col2 FROM tab1 AS cor0
----
3240
3420
5760
query I rowsort
SELECT ALL - 22 + - col0 * - col2 AS col2 FROM tab2 cor0
----
167
2006
2980
query I rowsort
SELECT - - cor0.col2 * col0 + - col1 * col2 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT + 39 * - col0 AS col1 FROM tab1 cor0
----
-117
-2496
-3120
query I rowsort
SELECT col2 * col2 * + 42 AS col0 FROM tab2 AS cor0
----
28392
30618
60648
query I rowsort
SELECT - ( - 26 ) FROM tab2
----
26
26
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8736
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
NULL
query I rowsort
SELECT DISTINCT - ( - 77 ) FROM tab1, tab2 AS cor0
----
77
query I rowsort
SELECT col0 - ( - col2 ) AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT + col0 + + ( - col2 ) * + col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT cor0.col2 + 38 AS col2 FROM tab0, tab2 AS cor0
----
64
65
76
query I rowsort
SELECT + col2 * - col0 + col0 AS col0 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - col2 * col1 + col2 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - 82 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT - + 20 * col1 AS col2 FROM tab1 cor0
----
-200
-260
-520
query I rowsort
SELECT - + ( + 91 ) FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT ALL + col0 * col1 + col0 * - 60 * + 16 AS col2 FROM tab0 AS cor0
----
-20976
-30205
-77341
query I rowsort
SELECT ALL + ( - col2 ) * + col2 + - cor0.col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8749
SELECT - CAST( col1 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-8749
SELECT - CAST ( col1 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL ( col0 ) * cor0.col1 + 46 AS col0 FROM tab0 AS cor0
----
2110
3441
8145
query I rowsort
SELECT ALL + + ( 18 ) AS col2 FROM tab0 AS cor0
----
18
18
18
query I rowsort
SELECT DISTINCT ( 18 ) FROM tab0 AS cor0
----
18
query I rowsort
SELECT col1 + col1 + tab1.col2 * col1 AS col2 FROM tab1
----
1274
1456
590
query I rowsort
SELECT - 74 + + col0 AS col1 FROM tab0 AS cor0
----
-39
-50
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8755
SELECT + CAST( NULL AS SIGNED ) + + 78 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8755
SELECT + CAST ( NULL AS INTEGER ) + + 78 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * 90 + col0 FROM tab0 AS cor0
----
125
2994
7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + col1 col0 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT + col2 * 68 * tab0.col2 + + col0 AS col1 FROM tab0
----
103
457321
74076
query I rowsort
SELECT DISTINCT 93 * + col0 AS col2 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT ALL col0 * - cor0.col1 + 69 * ( cor0.col0 * col2 ) FROM tab0 AS cor0
----
-980
495463
52584
query I rowsort
SELECT + 88 * + col1 FROM tab1 AS cor0
----
1144
2288
880
query I rowsort
SELECT tab2.col0 - + col1 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT - col0 * + 10 FROM tab0 AS cor0
----
-240
-350
-890
query I rowsort
SELECT + 64 + col0 FROM tab0
----
153
88
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8765
SELECT col2 DIV col1 + - col1 * ( + col2 ) FROM tab2
----
-1534
-644
-837
skipif mysql # not compatible
query I rowsort label-8765
SELECT col2 / col1 + - col1 * ( + col2 ) FROM tab2
----
-1534
-644
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - tab0.col1 * tab0.col0 ) col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 57 + - col1 FROM tab2
----
-2
26
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 50 col2 FROM tab2 cor0
----
-28
-29
43
query I rowsort
SELECT - col0 * + col0 - col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT + - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL cor0.col0 * col1 - + col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT + col1 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT col1 * - ( 74 ) FROM tab2 AS cor0
----
-1258
-2294
-4366
query I rowsort
SELECT ALL - col1 + - 34 FROM tab1 AS cor0
----
-44
-47
-60
query I rowsort
SELECT 50 * - col2 + 74 FROM tab2
----
-1226
-1276
-1826
query I rowsort
SELECT ALL col0 + 82 AS col1 FROM tab1
----
146
162
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8777
SELECT - col2 + - CAST( - 14 AS SIGNED ) + - tab1.col1 * 82 AS col0 FROM tab1
----
-1148
-2172
-863
skipif mysql # not compatible
query I rowsort label-8777
SELECT - col2 + - CAST ( - 14 AS INTEGER ) + - tab1.col1 * 82 AS col0 FROM tab1
----
-1148
-2172
-863
onlyif mysql # use DIV operator for integer division
query I rowsort label-8778
SELECT - col1 * + ( 11 ) + + tab0.col0 - ( col0 ) DIV - col1 AS col2 FROM tab0
----
-1032
-912
-922
skipif mysql # not compatible
query I rowsort label-8778
SELECT - col1 * + ( 11 ) + + tab0.col0 - ( col0 ) / - col1 AS col2 FROM tab0
----
-1032
-912
-922
query I rowsort
SELECT DISTINCT + + col2 + 83 * + col1 AS col1 FROM tab2 cor0
----
1449
2600
4923
query I rowsort
SELECT col0 * cor0.col0 + - 62 * - cor0.col0 AS col2 FROM tab1 cor0
----
11360
195
8064
query I rowsort
SELECT cor0.col2 * - col0 * 71 AS col1 FROM tab0 AS cor0
----
-2485
-518158
-56232
query I rowsort
SELECT ALL - - 81 - col1 AS col0 FROM tab2 AS cor0
----
22
50
64
query I rowsort
SELECT ALL - col1 - cor0.col0 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8784
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8784
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 32 + 98 FROM tab1
----
130
130
130
query I rowsort
SELECT DISTINCT - col1 + col0 * col2 AS col0 FROM tab0
----
-62
706
7207
query I rowsort
SELECT 59 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT DISTINCT 82 + col0 * + 75 FROM tab2 AS cor0
----
5932
6007
607
query I rowsort
SELECT DISTINCT - col1 + col2 * - col2 - 2 AS col0 FROM tab0 AS cor0
----
-100
-1177
-6817
query I rowsort
SELECT tab2.col1 + ( + 47 * col1 ) FROM tab2
----
1488
2832
816
query I rowsort
SELECT + col2 + ( + col1 ) AS col0 FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 - + col2 col0 FROM tab0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8793
SELECT DISTINCT + col2 * 81 DIV - tab0.col0 AS col2 FROM tab0
----
-111
-2
-74
skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT + col2 * 81 / - tab0.col0 AS col2 FROM tab0
----
-111
-2
-74
query I rowsort
SELECT ALL - col2 * ( + col1 + col0 ) * + ( + col2 ) AS col0 FROM tab0 cor0
----
-119790
-1210320
-132
query I rowsort
SELECT DISTINCT + col0 + + col2 * - col2 + + col0 FROM tab1
----
-2910
-3121
-9056
query I rowsort
SELECT col1 + 89 * col2 FROM tab0
----
186
3023
7389
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 * + col2 + col0 col0 FROM tab1 AS cor0
----
208000
737360
8751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 - - col1 * col2 col0 FROM tab1 cor0
----
1140
2496
2808
query I rowsort
SELECT DISTINCT + 73 AS col1 FROM tab2
----
73
query I rowsort
SELECT DISTINCT - col2 + + ( col0 ) * col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT ALL - - col1 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + col0 + 87 AS col0 FROM tab1 AS cor0
----
151
167
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 - + col0 * col0 col2 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL + col2 * + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab0 AS cor0
----
61
query I rowsort
SELECT - ( + 80 ) + - col0 AS col1 FROM tab2 AS cor0
----
-158
-159
-87
query I rowsort
SELECT cor0.col2 + - col2 * + col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT + + 25 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
2183
2357
2426
query I rowsort
SELECT DISTINCT ( + 43 ) + + col1 FROM tab1 AS cor0
----
53
56
69
query I rowsort
SELECT ( + cor0.col2 ) * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + - col0 * + col2 - col2 FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL - col1 * col0 + cor0.col1 * + 9 AS col1 FROM tab0 AS cor0
----
-1290
-2522
-7280
onlyif mysql # use DIV operator for integer division
query I rowsort label-8813
SELECT - 77 * - col1 + - col2 DIV - col1 FROM tab0 AS cor0
----
6622
7007
7469
skipif mysql # not compatible
query I rowsort label-8813
SELECT - 77 * - col1 + - col2 / - col1 FROM tab0 AS cor0
----
6622
7007
7469
query I rowsort
SELECT - 55 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT - + 77 * col0 * col0 FROM tab2 AS cor0
----
-3773
-468468
-480557
query I rowsort
SELECT - + col1 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL ( - 6 ) AS col0 FROM tab2 AS cor0
----
-6
-6
-6
query I rowsort
SELECT ( + col1 ) * + col2 * 87 FROM tab1 AS cor0
----
108576
122148
49590
query I rowsort
SELECT + ( col1 ) * 30 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT - + col0 + col0 * + 69 FROM tab2 AS cor0
----
476
5304
5372
query I rowsort
SELECT - + 51 * - col2 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT - col2 * col2 * ( ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT + col1 + - col2 * 23 AS col1 FROM tab1 AS cor0
----
-1216
-1301
-2195
query I rowsort
SELECT DISTINCT - - col1 + ( col0 ) AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + ( - tab1.col1 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8826
SELECT ALL col0 DIV - 47 AS col2 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL col0 / - 47 AS col2 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT col0 - + col2 AS col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT col1 * - 2 + 60 * + col0 AS col2 FROM tab1 AS cor0
----
128
3820
4774
query I rowsort
SELECT + col2 * + col1 - + 45 FROM tab1 AS cor0
----
1203
1359
525
query I rowsort
SELECT col0 * ( col0 ) AS col1 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT col2 + - col1 + + col0 * col2 AS col0 FROM tab1
----
190
3695
7763
query I rowsort
SELECT 15 * + col0 FROM tab0 AS cor0
----
1335
360
525
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8833
SELECT ALL col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 * ( col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + - col0 + - 94 - col0 FROM tab1 AS cor0
----
-100
-222
-254
query I rowsort
SELECT ALL + col0 + ( col2 ) * col0 AS col2 FROM tab0 cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8837
SELECT ALL + col2 + - CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + col2 + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + + col1 * + 22 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
1978
2093
2231
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8839
SELECT ALL - + col1 + CAST( + ( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL - + col1 + CAST ( + ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * 55 AS col2 FROM tab0
----
-1320
-1925
-4895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 + col0 col0 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT + col1 + col0 + - col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1247
-179
-4465
query I rowsort
SELECT - - 51 * + col0 AS col2 FROM tab2 AS cor0
----
357
3978
4029
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 + col1 * col1 col2 FROM tab0 AS cor0
----
7450
8335
9463
query I rowsort
SELECT DISTINCT + 31 * + 25 AS col2 FROM tab1
----
775
query I rowsort
SELECT tab2.col2 + 25 + col1 FROM tab2
----
110
80
83
query I rowsort
SELECT - + 33 + col1 * col0 + cor0.col2 AS col1 FROM tab2 cor0
----
1348
211
4595
query I rowsort
SELECT ALL col2 * col1 + + ( col2 ) + - col2 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + ( - col0 ) + col1 + col2 FROM tab0
----
63
84
95
query I rowsort
SELECT DISTINCT col0 * col0 + + col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT col1 * - col2 + col0 - + 85 * col1 FROM tab1 AS cor0
----
-1356
-2273
-3611
query I rowsort
SELECT ALL - ( - cor0.col2 ) + col1 * + col1 + col2 FROM tab0 cor0
----
7462
8445
9411
query I rowsort
SELECT DISTINCT 66 * - col1 AS col0 FROM tab1 cor0
----
-1716
-660
-858
query I rowsort
SELECT ALL + + ( - col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - 51 + cor0.col1 * ( + 97 + + col1 ) * ( + col0 ) FROM tab1 AS cor0
----
114349
68429
9543
query I rowsort
SELECT ALL - - 16 + col1 FROM tab1 AS cor0
----
26
29
42
query I rowsort
SELECT DISTINCT ( - col1 ) + ( col2 ) * col2 FROM tab2 cor0
----
1427
617
698
query I rowsort
SELECT col2 + + cor0.col0 + + col0 AS col1 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT ALL - ( + col2 ) * + col2 + - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT + col2 + + 53 AS col2 FROM tab0 AS cor0
----
135
54
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( - col2 ) * col0 col1 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8862
SELECT ALL CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8863
SELECT - - cor0.col0 DIV 80 col1 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8863
SELECT - - cor0.col0 / 80 col1 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8864
SELECT DISTINCT + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL - col1 * 27 + col0 AS col2 FROM tab0 AS cor0
----
-2298
-2368
-2584
query I rowsort
SELECT ALL 71 + - 31 FROM tab1 cor0
----
40
40
40
query I rowsort
SELECT cor1.col1 * 16 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to bce0f206ef103b98ec2bbe691323ebf5
query I rowsort
SELECT ALL + cor0.col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 * col1 + + col1 AS col0 FROM tab1 AS cor0
----
-13507
-2002
-6390
query I rowsort
SELECT DISTINCT + 45 + 72 AS col2 FROM tab0 AS cor0
----
117
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8871
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-8871
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8872
SELECT ALL - cor1.col2 DIV + 74 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL - cor1.col2 / + 74 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
query I rowsort
SELECT DISTINCT 64 * col1 FROM tab0
----
5504
5824
6208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * col0 col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT + ( col1 ) + col0 * ( - col1 ) * col1 FROM tab2
----
-22814
-271459
-6696
query I rowsort
SELECT ( + 91 ) AS col0 FROM tab1
----
91
91
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-8877
SELECT DISTINCT + col1 DIV col1 AS col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT + col1 / col1 AS col0 FROM tab1
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8878
SELECT ALL 68 * - col0 + - CAST( NULL AS SIGNED ) * - 18 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL 68 * - col0 + - CAST ( NULL AS INTEGER ) * - 18 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 92 * - col2 FROM tab1 AS cor0
----
-4968
-5244
-8832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 95 + col1 col1 FROM tab2 AS cor0
----
-36
-64
-78
query I rowsort
SELECT + + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT tab2.col0 + 93 * + col2 * - tab2.col2 FROM tab2
----
-134213
-62790
-67790
query I rowsort
SELECT DISTINCT ( - 48 ) FROM tab1
----
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-8884
SELECT - tab0.col2 DIV + tab0.col0 + col0 * - col1 FROM tab0
----
-2065
-3395
-8099
skipif mysql # not compatible
query I rowsort label-8884
SELECT - tab0.col2 / + tab0.col0 + col0 * - col1 FROM tab0
----
-2065
-3395
-8099
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 FROM tab1, tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8886
SELECT DISTINCT col0 * col1 DIV - col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT col0 * col1 / - col1 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8887
SELECT col0 DIV col2 + - col2 AS col0 FROM tab1
----
-54
-56
-96
skipif mysql # not compatible
query I rowsort label-8887
SELECT col0 / col2 + - col2 AS col0 FROM tab1
----
-54
-56
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col0 FROM tab1
----
109
67
80
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - col0 OR NULL < ( NULL )
----
query I rowsort
SELECT col2 + col1 * col2 AS col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL - col2 * col0 + - col0 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL - col0 * col0 + col2 + + col0 FROM tab0 AS cor0
----
-1189
-519
-7750
query I rowsort
SELECT DISTINCT col2 * - col1 - - col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + + cor0.col0 - - col2 * col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT tab0.col0 * col1 - col0 * + col1 FROM tab0
----
0
query I rowsort
SELECT col2 * + col0 - - cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - - col0 * col2 + col0 * col1 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab0 AS cor0
----
82
query I rowsort
SELECT col1 + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-100
-3
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8900
SELECT DISTINCT - col2 + - col0 + - col1 DIV col2 AS col2 FROM tab0
----
-133
-172
-59
skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT - col2 + - col0 + - col1 / col2 AS col2 FROM tab0
----
-133
-172
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 57 ) - col2 col0 FROM tab1
----
-111
-114
-153
query I rowsort
SELECT 19 + col2 AS col0 FROM tab0
----
101
20
52
query I rowsort
SELECT col1 + col2 * + tab1.col1 + + col1 FROM tab1
----
1274
1456
590
query I rowsort
SELECT ALL 92 - + col2 AS col1 FROM tab0
----
10
59
91
query I rowsort
SELECT - 37 * + col1 * + col2 AS col0 FROM tab1
----
-21090
-46176
-51948
onlyif mysql # use DIV operator for integer division
query I rowsort label-8906
SELECT ALL col2 + + col0 DIV col1 AS col1 FROM tab1
----
102
54
63
skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL col2 + + col0 / col1 AS col1 FROM tab1
----
102
54
63
query I rowsort
SELECT ALL + + 56 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-40
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * - col1 col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT - 83 * col1 + col2 AS col2 FROM tab2 AS cor0
----
-1373
-2546
-4871
query I rowsort
SELECT DISTINCT 32 + col1 * cor0.col1 FROM tab1 cor0
----
132
201
708
query I rowsort
SELECT ( col0 ) + - cor0.col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT col0 * col0 * col1 AS col2 FROM tab0
----
118825
49536
720811
query III rowsort
SELECT * FROM tab0 WHERE NULL >= ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8915
SELECT - col2 + col1 DIV + col0 AS col2 FROM tab1
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-8915
SELECT - col2 + col1 / + col0 AS col2 FROM tab1
----
-46
-57
-96
query I rowsort
SELECT col0 + - col1 + col1 * + col0 FROM tab2
----
1405
193
4621
query I rowsort
SELECT tab2.col0 * - col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 + + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col2 col0 FROM tab2 WHERE NOT col0 + - col0 * col1 BETWEEN col1 AND NULL
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8919
SELECT + col0 DIV + col0 + + tab1.col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8919
SELECT + col0 / + col0 + + tab1.col2 FROM tab1
----
55
58
97
query I rowsort
SELECT DISTINCT - col0 - + col0 AS col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT DISTINCT + col2 - col1 * tab2.col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT + col1 * + col0 + - col1 AS col0 FROM tab1
----
1027
52
630
query I rowsort
SELECT - col1 + tab2.col2 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT - col0 * + col0 FROM tab2 WHERE ( NULL ) >= col1
----
query I rowsort
SELECT ALL tab2.col2 * + col2 * - col0 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT col2 + - col0 * tab2.col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT - col0 * - col0 - + col1 FROM tab0
----
1128
490
7830
query I rowsort
SELECT ALL col1 + + col1 AS col1 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE + col0 + - col0 IN ( col2 * - col1 )
----
query I rowsort
SELECT DISTINCT + col1 * col2 + + col0 FROM tab1 WHERE NOT NULL NOT IN ( - col2 + - col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE NULL < ( + col0 )
----
query I rowsort
SELECT col2 * + col1 - - col1 AS col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL col0 + col2 * - col1 AS col2 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT ALL + col1 * col0 * + col0 AS col2 FROM tab1
----
234
40960
83200
query I rowsort
SELECT DISTINCT col2 + + col2 - + col1 * tab2.col0 AS col0 FROM tab2
----
-1267
-163
-4550
query I rowsort
SELECT ALL col0 * tab2.col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL - + col1 * + col1 + + col2 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT ALL + cor0.col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - + col0 + col2 * - col2 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT cor0.col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col1 + col0 AS col1 FROM tab2 cor0
----
-210
-3403
-954
onlyif mysql # use DIV operator for integer division
query I rowsort label-8942
SELECT ALL + + cor0.col2 * - col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL + + cor0.col2 * - col1 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + col1 * tab1.col0 + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT tab0.col0 + col0 * col2 AS col2 FROM tab0
----
70
7387
816
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0 WHERE NULL = NULL
----
query I rowsort
SELECT ALL + 41 * col1 AS col1 FROM tab1 AS cor0
----
1066
410
533
query I rowsort
SELECT DISTINCT col0 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-8948
SELECT ALL + 40 + - col1 * col0 DIV 45 col1 FROM tab1 cor0
----
17
26
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL + 40 + - col1 * col0 / 45 col1 FROM tab1 cor0
----
17
26
39
query I rowsort
SELECT + - col1 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * - col2 col2 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT 12 - - col2 FROM tab1 AS cor0
----
108
66
69
query I rowsort
SELECT DISTINCT 74 * cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
2002
2005
2891
onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT ALL col1 + cor0.col1 DIV cor0.col0 AS col1 FROM tab1 cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL col1 + cor0.col1 / cor0.col0 AS col1 FROM tab1 cor0
----
10
13
34
query I rowsort
SELECT ALL ( 12 ) FROM tab2
----
12
12
12
query I rowsort
SELECT 40 * col2 + + col0 * + col1 FROM tab2 cor0
----
1297
2863
5642
query I rowsort
SELECT DISTINCT 65 + col1 * col1 AS col0 FROM tab1 AS cor0
----
165
234
741
query I rowsort
SELECT - 50 + - col0 AS col2 FROM tab1 AS cor0
----
-114
-130
-53
query I rowsort
SELECT DISTINCT 52 * col2 * col2 + 92 FROM tab2
----
35244
38000
75180
query I rowsort
SELECT - cor1.col2 FROM tab1, tab0 cor0 CROSS JOIN tab2, tab1 cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc
query I rowsort
SELECT DISTINCT - - col0 + col2 - + ( col2 * col0 ) AS col2 FROM tab1 AS cor0
----
-105
-3527
-7504
query I rowsort
SELECT col1 * ( - cor0.col2 ) AS col2 FROM tab0 cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( col1 AS REAL ) * + col0 - - col1 * col2 AS col1 FROM tab2
----
1061
2068
6214
query I rowsort
SELECT 10 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT + + col2 * + 54 FROM tab0 AS cor0
----
1782
4428
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col1 FROM tab1, tab2 cor0
----
30
query I rowsort
SELECT tab0.col2 + + tab0.col1 FROM tab0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8968
SELECT - CAST( NULL AS SIGNED ) + col0 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-8968
SELECT - CAST ( NULL AS INTEGER ) + col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + - 93 FROM tab0 AS cor0
----
-11
-60
-92
query I rowsort
SELECT DISTINCT + col2 * + col0 * col2 AS col1 FROM tab1 cor0
----
207936
737280
8748
query I rowsort
SELECT + 43 * - 57 * - col2 - col0 AS col2 FROM tab0 AS cor0
----
200893
2416
80859
query I rowsort
SELECT DISTINCT col1 - - 42 * - col0 FROM tab2 AS cor0
----
-263
-3217
-3301
query I rowsort
SELECT - 13 * col1 - col0 FROM tab2 AS cor0
----
-300
-410
-845
query I rowsort
SELECT DISTINCT col0 - col0 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8975
SELECT CAST( NULL AS DECIMAL ) + + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8975
SELECT CAST ( NULL AS REAL ) + + col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8976
SELECT + 56 DIV 16 FROM tab2
----
3
3
3
skipif mysql # not compatible
query I rowsort label-8976
SELECT + 56 / 16 FROM tab2
----
3
3
3
query I rowsort
SELECT 60 * col1 FROM tab0
----
5160
5460
5820
query I rowsort
SELECT ALL - ( + col0 ) * + col2 + tab0.col2 AS col1 FROM tab0
----
-34
-7216
-759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8979
SELECT + CAST( NULL AS SIGNED ) + 73 * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8979
SELECT + CAST ( NULL AS INTEGER ) + 73 * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 27 * - 78 FROM tab2 AS cor0
----
-2106
query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - + 37 FROM tab1 cor0
----
-37
-37
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - 24 col1 FROM tab0 AS cor0
----
-2064
-2184
-2328
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8985
SELECT 23 + - col1 DIV col0 AS col1 FROM tab2
----
19
23
23
skipif mysql # not compatible
query I rowsort label-8985
SELECT 23 + - col1 / col0 AS col1 FROM tab2
----
19
23
23
query I rowsort
SELECT ( - col0 ) * tab2.col1 + - col1 * col0 * tab2.col2 FROM tab2
----
-124254
-52377
-6076
query I rowsort
SELECT col0 - tab2.col0 * - col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT 5 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col0 col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + 35 * + col1 + cor0.col0 + - 98 * - col0 AS col1 FROM tab2 AS cor0
----
1778
8416
9787
query I rowsort
SELECT DISTINCT - 88 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-88
query I rowsort
SELECT DISTINCT - 40 * col1 * col1 AS col1 FROM tab0 AS cor0
----
-295840
-331240
-376360
query I rowsort
SELECT ALL 38 + col1 + - col1 FROM tab1 AS cor0
----
38
38
38
query I rowsort
SELECT + col1 * + 70 AS col2 FROM tab0 AS cor0
----
6020
6370
6790
query I rowsort
SELECT ALL - cor0.col0 + 22 FROM tab2 cor0
----
-56
-57
15
query I rowsort
SELECT DISTINCT + col2 * 90 AS col0 FROM tab1 AS cor0
----
4860
5130
8640
query I rowsort
SELECT + col2 + + 6 * - col1 FROM tab0 AS cor0
----
-464
-483
-581
query I rowsort
SELECT DISTINCT - + col2 * - ( col1 ) * col0 FROM tab2 cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + - 0 * cor0.col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col2 + - 16 * + col1 * - col2 + col2 FROM tab0 AS cor0
----
119556
1554
45474
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col2 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col1 + - ( ( col2 ) ) AS col2 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( + col1 ) col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9005
SELECT ALL - 63 * - col1 DIV col1 + + col2 FROM tab2
----
101
89
90
skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL - 63 * - col1 / col1 + + col2 FROM tab2
----
101
89
90
query I rowsort
SELECT 4 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
onlyif mysql # use DIV operator for integer division
query I rowsort label-9007
SELECT ALL - 33 DIV 59 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL - 33 / 59 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - col0 + - tab1.col2 + ( col2 ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + ( + col2 ) + ( 14 ) * cor0.col1 FROM tab2 AS cor0
----
276
461
852
onlyif mysql # use DIV operator for integer division
query I rowsort label-9010
SELECT - col1 + - col0 DIV + col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-9010
SELECT - col1 + - col0 / + col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT col2 * - col2 + 54 AS col1 FROM tab1 AS cor0
----
-2862
-3195
-9162
query I rowsort
SELECT DISTINCT col1 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL cor0.col2 * + ( 59 ) FROM tab2, tab0 cor0
----
9 values hashing to 030973826e326df3e93a125fc6619469
onlyif mysql # use DIV operator for integer division
query I rowsort label-9014
SELECT DISTINCT + + col0 * col2 + + col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
170
3648
7680
skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT + + col0 * col2 + + col1 / + col0 AS col0 FROM tab1 AS cor0
----
170
3648
7680
query I rowsort
SELECT 10 AS col2 FROM tab2, tab1, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to bf75e71325a06683558cf93fd725ad16
query I rowsort
SELECT DISTINCT + col2 + - col1 * 83 AS col1 FROM tab0 cor0
----
-7105
-7471
-8050
query I rowsort
SELECT + - col0 + - 57 FROM tab0 AS cor0
----
-146
-81
-92
query I rowsort
SELECT ALL cor0.col1 + cor0.col0 * ( 44 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1cbf26dd4c7a6298db28416a64d709ff
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 + - col1 + col2 col2 FROM tab2 cor0
----
-18
11
36
query I rowsort
SELECT DISTINCT - - ( - col0 ) * + cor0.col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL + + 3 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT + 25 AS col1 FROM tab0
----
25
25
25
query I rowsort
SELECT DISTINCT + cor0.col0 + + 81 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
105
116
170
query I rowsort
SELECT DISTINCT + 47 * col0 AS col0 FROM tab2 AS cor0
----
329
3666
3713
query I rowsort
SELECT - + 97 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-3201
-7954
-97
query I rowsort
SELECT ( 36 ) AS col2 FROM tab0 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT - - 87 + + col0 FROM tab1 cor0
----
151
167
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9028
SELECT DISTINCT - ( + 73 ) DIV cor0.col0 + 19 AS col0 FROM tab2 AS cor0
----
19
9
skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - ( + 73 ) / cor0.col0 + 19 AS col0 FROM tab2 AS cor0
----
19
9
query I rowsort
SELECT - 39 + + col2 AS col0 FROM tab2 AS cor0
----
-1
-12
-13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + + ( col2 ) * col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 + col2 * 10 FROM tab0 AS cor0
----
-87
244
729
query I rowsort
SELECT ALL + 93 * cor0.col2 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT 47 + + cor0.col1 - - ( + col0 ) * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-659
-7160
109
query I rowsort
SELECT - 99 FROM tab1, tab0 cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7
query I rowsort
SELECT DISTINCT - tab1.col0 + tab1.col2 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL + col1 + + 71 * tab2.col0 + - col2 FROM tab2
----
501
5571
5588
query I rowsort
SELECT + col1 * col1 + + col2 - - col2 FROM tab1 AS cor0
----
214
361
784
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
26
27
38
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 cor2
----
3645 values hashing to ed0ce6de90f51f6f9035da5f66a6f197
query I rowsort
SELECT + 57 * col1 AS col2 FROM tab2
----
1767
3363
969
query I rowsort
SELECT DISTINCT + 85 AS col0 FROM tab1, tab0, tab0 cor0
----
85
query I rowsort
SELECT ALL - + col2 * + cor0.col1 + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT ALL - cor0.col0 * + col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + col2 + - col0 * col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT - col0 + - ( + col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL + cor0.col0 * - 30 + - 59 + + col2 AS col2 FROM tab1 AS cor0
----
-1922
-2363
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab2.col1 ) col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL - 50 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT col2 * 33 AS col2 FROM tab2 AS cor0
----
1254
858
891
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to ced36882687f040e969c817b62d2e456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col0 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT ( + col1 ) * - cor0.col1 * 82 FROM tab2 AS cor0
----
-23698
-285442
-78802
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9054
SELECT CAST( - 13 AS SIGNED ) * cor0.col2 col1 FROM tab1 cor0
----
-1248
-702
-741
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9054
SELECT CAST ( - 13 AS INTEGER ) * cor0.col2 col1 FROM tab1 cor0
----
-1248
-702
-741
query I rowsort
SELECT - col0 - - ( - tab1.col1 ) FROM tab1
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col1 FROM tab0, tab1 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT + col1 + 31 * col2 * - col2 AS col2 FROM tab1
----
-100709
-285683
-90370
query I rowsort
SELECT col1 * + col1 + cor0.col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-9059
SELECT - + col0 DIV col2 + cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
-23
53
67
skipif mysql # not compatible
query I rowsort label-9059
SELECT - + col0 / col2 + cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
-23
53
67
query I rowsort
SELECT 24 + 45 FROM tab1 AS cor0
----
69
69
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9061
SELECT ALL - CAST( + ( col0 ) AS SIGNED ) + + col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL - CAST ( + ( col0 ) AS INTEGER ) + + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + ( col0 ) + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - + col0 * 48 - + cor0.col0 FROM tab1 AS cor0
----
-147
-3136
-3920
onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT - ( 35 ) DIV col1 - - col2 FROM tab2 AS cor0
----
26
26
36
skipif mysql # not compatible
query I rowsort label-9064
SELECT - ( 35 ) / col1 - - col2 FROM tab2 AS cor0
----
26
26
36
query I rowsort
SELECT ALL - col0 + 55 * col1 * col0 FROM tab2 cor0
----
11928
253032
73786
query I rowsort
SELECT col1 - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col0 * + 35 * - col0 AS col0 FROM tab0
----
-20160
-277235
-42875
query I rowsort
SELECT - ( 25 ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9069
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
query I rowsort
SELECT ALL col1 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
7310
8190
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-9071
SELECT - + 54 DIV + 1 - col2 * - ( col1 ) * - col1 AS col1 FROM tab1 AS cor0
----
-16278
-36558
-5754
skipif mysql # not compatible
query I rowsort label-9071
SELECT - + 54 / + 1 - col2 * - ( col1 ) * - col1 AS col1 FROM tab1 AS cor0
----
-16278
-36558
-5754
onlyif mysql # use DIV operator for integer division
query I rowsort label-9072
SELECT - cor0.col0 * + col0 + col1 DIV + col1 FROM tab0 AS cor0
----
-1224
-575
-7920
skipif mysql # not compatible
query I rowsort label-9072
SELECT - cor0.col0 * + col0 + col1 / + col1 FROM tab0 AS cor0
----
-1224
-575
-7920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9073
SELECT ALL CAST( NULL AS SIGNED ) + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 18 * + col2 AS col2 FROM tab0 AS cor0
----
1476
18
594
query I rowsort
SELECT + col2 * - cor0.col2 - - col2 FROM tab1 cor0
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-9076
SELECT DISTINCT + 82 DIV + 47 AS col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT + 82 / + 47 AS col2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT col0 * - col2 + col1 + + 77 FROM tab0 AS cor0
----
-629
-7130
139
query I rowsort
SELECT 90 * + col2 AS col0 FROM tab0 AS cor0
----
2970
7380
90
query I rowsort
SELECT - 44 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9080
SELECT col1 * cor0.col1 + - cor0.col0 DIV col0 FROM tab2 AS cor0
----
288
3480
960
skipif mysql # not compatible
query I rowsort label-9080
SELECT col1 * cor0.col1 + - cor0.col0 / col0 FROM tab2 AS cor0
----
288
3480
960
query I rowsort
SELECT ALL col2 * - col0 + ( + col2 ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col1 FROM tab2 AS cor0
----
-44
-44
-44
query I rowsort
SELECT ALL - - 66 * col0 + col1 AS col2 FROM tab2 AS cor0
----
493
5207
5231
query I rowsort
SELECT DISTINCT + + 44 FROM tab2 AS cor0
----
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-9085
SELECT - ( - col0 ) DIV col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9085
SELECT - ( - col0 ) / col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL + 60 + col2 + - col0 AS col2 FROM tab0 cor0
----
26
53
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9087
SELECT ALL - col1 + 36 DIV - 23 AS col1 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - col1 + 36 / - 23 AS col1 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT - col0 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT + cor0.col2 + + 35 FROM tab0 cor0
----
117
36
68
query I rowsort
SELECT ALL + + col1 + 39 FROM tab1 AS cor0
----
49
52
65
query I rowsort
SELECT DISTINCT col2 * - 66 + col2 FROM tab2 AS cor0
----
-1690
-1755
-2470
query I rowsort
SELECT ALL + + col2 * - 21 + - col1 FROM tab2 AS cor0
----
-598
-605
-815
query I rowsort
SELECT ALL + col2 + col1 * + col1 * + col2 FROM tab1 AS cor0
----
16320
36558
5757
query I rowsort
SELECT DISTINCT + col0 - 65 AS col1 FROM tab0 AS cor0
----
-30
-41
24
query I rowsort
SELECT DISTINCT col2 * 6 FROM tab0 AS cor0
----
198
492
6
query I rowsort
SELECT DISTINCT + cor0.col1 * - 16 AS col2 FROM tab2 AS cor0
----
-272
-496
-944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9097
SELECT ALL - col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9098
SELECT - ( col0 ) * + CAST( col0 AS SIGNED ) + col0 FROM tab2
----
-42
-6006
-6162
skipif mysql # not compatible
query I rowsort label-9098
SELECT - ( col0 ) * + CAST ( col0 AS INTEGER ) + col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT + ( + col2 ) + + col2 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT col0 + col1 * + col1 AS col2 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT DISTINCT + + col1 + + col2 * + 56 AS col2 FROM tab2 AS cor0
----
1515
1543
2145
query I rowsort
SELECT ALL + col2 + - col2 * col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - - col2 * - 36 * 94 FROM tab0 AS cor0
----
-111672
-277488
-3384
query I rowsort
SELECT DISTINCT col2 * col0 * + 6 FROM tab1
----
21888
46080
972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
query I rowsort
SELECT ALL - 64 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT col2 + - ( 34 ) FROM tab0
----
-1
-33
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-9109
SELECT DISTINCT col1 - tab2.col2 DIV col0 FROM tab2
----
17
28
59
skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT col1 - tab2.col2 / col0 FROM tab2
----
17
28
59
query I rowsort
SELECT ALL + - col1 + col2 * 41 * col2 AS col1 FROM tab1 AS cor0
----
119530
133199
377843
query I rowsort
SELECT ALL + + cor0.col2 + col2 * 89 FROM tab2 cor0
----
2340
2430
3420
query I rowsort
SELECT DISTINCT 16 FROM tab2, tab0 cor0, tab0 AS cor1
----
16
query I rowsort
SELECT ALL - + cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + ( + cor0.col1 ) + 29 + col1 AS col1 FROM tab2 AS cor0
----
147
63
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9115
SELECT DISTINCT - cor0.col2 * CAST( NULL AS SIGNED ) col2 FROM tab2, tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT - cor0.col2 * CAST ( NULL AS INTEGER ) col2 FROM tab2, tab0 AS cor0
----
NULL
query I rowsort
SELECT - tab0.col2 * + 25 - tab1.col1 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to e8fbe496558e175f5a9eba1165cbf96b
query I rowsort
SELECT DISTINCT + 43 AS col1 FROM tab1 AS cor0
----
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col0 FROM tab1, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT 21 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT DISTINCT + col2 + - col0 * + col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT col0 + - col0 * + ( col1 ) * col2 + + col0 AS col1 FROM tab1
----
-36352
-4206
-99680
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 col2 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + cor0.col0 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8
query I rowsort
SELECT - col1 * - 83 AS col2 FROM tab1
----
1079
2158
830
query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab2, tab0 AS cor0
----
-44
query I rowsort
SELECT ALL tab2.col2 + - cor0.col1 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 5ba9183f97d06cb5c1340d457f55f1e3
query I rowsort
SELECT DISTINCT 62 * + col1 FROM tab0
----
5332
5642
6014
query I rowsort
SELECT ( col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + ( ( - col2 ) ) * col1 * - 92 FROM tab0 AS cor0
----
261096
686504
8924
query I rowsort
SELECT ALL + 75 * 82 - col1 AS col0 FROM tab1 AS cor0
----
6124
6137
6140
query I rowsort
SELECT DISTINCT - - cor0.col0 * col1 FROM tab1 cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9133
SELECT DISTINCT - ( col1 ) * + CAST( + 30 * - col2 AS SIGNED ) FROM tab0
----
223860
2910
85140
skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT - ( col1 ) * + CAST ( + 30 * - col2 AS INTEGER ) FROM tab0
----
223860
2910
85140
onlyif mysql # use DIV operator for integer division
query I rowsort label-9134
SELECT 19 DIV - col1 + col0 * col0 FROM tab2
----
49
6084
6240
skipif mysql # not compatible
query I rowsort label-9134
SELECT 19 / - col1 + col0 * col0 FROM tab2
----
49
6084
6240
query I rowsort
SELECT ALL - 15 + col1 * col1 * ( - col2 ) FROM tab0 cor0
----
-244083
-679057
-9424
query I rowsort
SELECT - 21 * col1 FROM tab0 AS cor0
----
-1806
-1911
-2037
query I rowsort
SELECT DISTINCT + ( 72 ) AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
72
query I rowsort
SELECT + col0 * + cor0.col0 * - col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col0 - + CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + + col0 + - 82 * col0 AS col1 FROM tab2 cor0
----
-567
-6318
-6399
query I rowsort
SELECT ALL + - col1 * + col0 * - col2 + col1 * + col1 FROM tab1 cor0
----
100009
36580
4888
query I rowsort
SELECT DISTINCT + col1 * 85 + col2 * + col2 - - col1 * + col1 AS col0 FROM tab0 AS cor0
----
15795
17655
22740
onlyif mysql # use DIV operator for integer division
query I rowsort label-9143
SELECT DISTINCT - - cor0.col1 * - col0 DIV + col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT - - cor0.col1 * - col0 / + col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT cor0.col2 + cor0.col2 * 3 AS col1 FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT - col1 * - 67 AS col1 FROM tab1 AS cor0
----
1742
670
871
query I rowsort
SELECT ALL col2 * ( - col1 ) + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT 54 * + col0 * 96 + 17 AS col1 FROM tab0
----
124433
181457
461393
query I rowsort
SELECT - - col2 * + 83 FROM tab1 AS cor0
----
4482
4731
7968
query I rowsort
SELECT + col1 * ( col2 * - col2 ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + col0 * 63 AS col2 FROM tab2 AS cor0
----
441
4914
4977
query I rowsort
SELECT - ( 48 ) FROM tab2 AS cor0
----
-48
-48
-48
query I rowsort
SELECT - - 46 + - ( + col2 ) * + 4 AS col2 FROM tab2 cor0
----
-106
-58
-62
query I rowsort
SELECT + 69 * 12 AS col0 FROM tab0 AS cor0
----
828
828
828
query I rowsort
SELECT ALL + 66 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 * - cor0.col2 col1 FROM tab0 AS cor0
----
1066
13
429
query I rowsort
SELECT - col0 * col0 + 3 FROM tab1 AS cor0
----
-4093
-6
-6397
query I rowsort
SELECT col2 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT 89 * col2 FROM tab0 cor0
----
2937
7298
89
query I rowsort
SELECT - + col0 + col1 AS col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT - col0 + 5 * col1 * - 50 FROM tab1
----
-2564
-3330
-6503
onlyif mysql # use DIV operator for integer division
query I rowsort label-9161
SELECT ALL - col1 DIV 75 + col1 AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL - col1 / 75 + col1 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT - col1 * 6 * 82 + + col0 AS col1 FROM tab0 AS cor0
----
-42288
-44683
-47689
query I rowsort
SELECT + 37 AS col2 FROM tab1
----
37
37
37
query I rowsort
SELECT ALL - - col2 + col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + 61 - col0 FROM tab1 AS cor0
----
-19
-3
58
query I rowsort
SELECT ( 27 ) AS col0 FROM tab1
----
27
27
27
query I rowsort
SELECT ALL - + 20 FROM tab1 AS cor0
----
-20
-20
-20
onlyif mysql # use DIV operator for integer division
query I rowsort label-9168
SELECT ALL + 83 DIV col1 AS col0 FROM tab1
----
3
6
8
skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + 83 / col1 AS col0 FROM tab1
----
3
6
8
query I rowsort
SELECT ALL 13 * col2 * col1 AS col1 FROM tab0
----
1261
36894
97006
query I rowsort
SELECT DISTINCT + 23 * col0 AS col2 FROM tab1
----
1472
1840
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9171
SELECT + + col0 + cor0.col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9171
SELECT + + col0 + cor0.col0 / - col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + 87 * 28 FROM tab1, tab2, tab2 AS cor0
----
2436
onlyif mysql # use DIV operator for integer division
query I rowsort label-9173
SELECT ( 13 * col2 ) + col1 * 36 DIV col2 FROM tab1
----
1252
719
747
skipif mysql # not compatible
query I rowsort label-9173
SELECT ( 13 * col2 ) + col1 * 36 / col2 FROM tab1
----
1252
719
747
query I rowsort
SELECT ( + col1 + - col0 ) * tab1.col1 AS col2 FROM tab1
----
-540
-871
598
query I rowsort
SELECT - + 76 * + col0 + - 76 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-12160
-456
-9728
query I rowsort
SELECT DISTINCT - 9 * tab2.col0 * 5 AS col0 FROM tab2
----
-315
-3510
-3555
query I rowsort
SELECT DISTINCT 12 * - 68 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-816
query I rowsort
SELECT DISTINCT cor0.col0 * col2 + - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + col0 * col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
262144
27
512000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 + col2 col1 FROM tab0 AS cor0
----
127
176
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9181
SELECT ALL col0 DIV + col0 + + ( + 35 ) FROM tab0 AS cor0
----
36
36
36
skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL col0 / + col0 + + ( + 35 ) FROM tab0 AS cor0
----
36
36
36
query I rowsort
SELECT ALL + + col2 - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col2 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT ALL - - 1 * col0 + - 66 AS col0 FROM tab1 cor0
----
-2
-63
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL 88 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
onlyif mysql # use DIV operator for integer division
query I rowsort label-9187
SELECT + col2 * col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
11
23
84
skipif mysql # not compatible
query I rowsort label-9187
SELECT + col2 * col2 / + col1 AS col1 FROM tab2 AS cor0
----
11
23
84
query I rowsort
SELECT ALL 82 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
onlyif mysql # use DIV operator for integer division
query I rowsort label-9189
SELECT - col0 DIV + 50 AS col0 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9189
SELECT - col0 / + 50 AS col0 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT col0 + 49 FROM tab1 AS cor0
----
113
129
52
query I rowsort
SELECT cor0.col2 * 38 AS col1 FROM tab0 AS cor0
----
1254
3116
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9192
SELECT + cor0.col0 * CAST( NULL AS SIGNED ) + col1 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9192
SELECT + cor0.col0 * CAST ( NULL AS INTEGER ) + col1 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 81 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 cor2
----
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * col1 col1 FROM tab0 AS cor0
----
-7826
-8281
-8827
query I rowsort
SELECT ( 12 ) * col0 FROM tab1 AS cor0
----
36
768
960
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT cor0.col0 FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + 7 + + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1350
224
4609
onlyif mysql # use DIV operator for integer division
query I rowsort label-9199
SELECT DISTINCT - - 91 * - col0 + col0 DIV + ( 11 ) AS col1 FROM tab2 AS cor0
----
-637
-7091
-7182
skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT - - 91 * - col0 + col0 / + ( 11 ) AS col1 FROM tab2 AS cor0
----
-637
-7091
-7182
onlyif mysql # use DIV operator for integer division
query I rowsort label-9200
SELECT + 0 DIV 75 + col2 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
skipif mysql # not compatible
query I rowsort label-9200
SELECT + 0 / 75 + col2 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-9201
SELECT ( - ( - col2 ) ) DIV + col0 + col1 * - col0 FROM tab1 AS cor0
----
-1039
-60
-640
skipif mysql # not compatible
query I rowsort label-9201
SELECT ( - ( - col2 ) ) / + col0 + col1 * - col0 FROM tab1 AS cor0
----
-1039
-60
-640
query I rowsort
SELECT DISTINCT - + 42 FROM tab0 AS cor0
----
-42
query I rowsort
SELECT - - 98 * col1 + + col2 AS col0 FROM tab2 cor0
----
1704
3065
5808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 col2 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + ( + 76 ) AS col2 FROM tab0 AS cor0
----
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9206
SELECT DISTINCT + - 0 + ( col1 ) DIV col1 FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT + - 0 + ( col1 ) / col1 FROM tab1 cor0
----
1
query I rowsort
SELECT ALL - 81 * - 17 + - col1 AS col1 FROM tab2 AS cor0
----
1318
1346
1360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col0 FROM tab1 AS cor0
----
6
6
6
query I rowsort
SELECT ALL - - col0 + + ( col0 ) FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - - 9 + col0 FROM tab1 cor0
----
12
73
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9211
SELECT ALL - CAST( + col0 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL - CAST ( + col0 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + ( ( - cor0.col2 ) ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col0 * - col0 + + col0 col1 FROM tab2 AS cor0
----
-336
-474474
-492960
query I rowsort
SELECT - + 99 + + col1 AS col1 FROM tab2 cor0
----
-40
-68
-82
query I rowsort
SELECT ALL - col0 + + 60 FROM tab0 AS cor0
----
-29
25
36
query I rowsort
SELECT DISTINCT + + col0 + + col2 * col1 AS col2 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT col0 * - 51 FROM tab2 AS cor0
----
-357
-3978
-4029
query I rowsort
SELECT col2 + - col1 * + col0 + col2 * col0 AS col0 FROM tab2 AS cor0
----
-1
-2548
1697
query I rowsort
SELECT col1 - tab1.col0 * - col2 AS col0 FROM tab1
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-9220
SELECT DISTINCT 97 + + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
96
skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT 97 + + col2 / - col2 AS col0 FROM tab0 AS cor0
----
96
query I rowsort
SELECT - 83 + col0 FROM tab0 AS cor0
----
-48
-59
6
query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 * col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL + + col2 * + col1 + + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-9224
SELECT DISTINCT + 31 * + col1 + - 17 DIV ( col2 + 24 ) AS col1 FROM tab0 AS cor0
----
2666
2821
3007
skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT + 31 * + col1 + - 17 / ( col2 + 24 ) AS col1 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT ALL + - col2 * - col2 * cor0.col0 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT + - col1 - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9227
SELECT ALL - col2 * ( - 61 ) - + col2 * + CAST( - col1 * col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
22080
39798
9177
skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL - col2 * ( - 61 ) - + col2 * + CAST ( - col1 * col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
22080
39798
9177
query I rowsort
SELECT ALL + col0 + + col1 * + col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL + col0 * col0 * col1 - col1 FROM tab1
----
208
40950
83187
query I rowsort
SELECT ALL col1 * + col0 - ( - tab2.col2 * col0 ) FROM tab2
----
406
4345
6630
onlyif mysql # use DIV operator for integer division
query I rowsort label-9231
SELECT col0 DIV ( - col0 ) - col2 FROM tab2
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-9231
SELECT col0 / ( - col0 ) - col2 FROM tab2
----
-27
-28
-39
query I rowsort
SELECT + + cor0.col1 - + ( 79 ) AS col2 FROM tab0 AS cor0
----
12
18
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9233
SELECT DISTINCT + col2 DIV + col1 - - col2 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT + col2 / + col1 - - col2 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT + cor0.col0 * 81 FROM tab2 AS cor0
----
567
6318
6399
query I rowsort
SELECT ALL + col1 + col2 * cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT col2 - ( cor0.col1 ) * col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT tab0.col1 + ( + 25 * col0 ) FROM tab0
----
2316
686
972
onlyif mysql # use DIV operator for integer division
query I rowsort label-9238
SELECT col0 DIV + ( + col0 ) + col1 + col2 FROM tab2
----
56
59
86
skipif mysql # not compatible
query I rowsort label-9238
SELECT col0 / + ( + col0 ) + col1 + col2 FROM tab2
----
56
59
86
query I rowsort
SELECT ALL + col2 + + col2 * col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT 15 * - cor0.col2 FROM tab1 AS cor0
----
-1440
-810
-855
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * - col1 col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - + 40 + - col1 * - col2 FROM tab1 AS cor0
----
1208
1364
530
query I rowsort
SELECT ALL + + col2 * cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT 54 * + col0 + + col2 * cor0.col1 * - col0 AS col1 FROM tab2 cor0
----
-115440
-46768
-5481
query I rowsort
SELECT - tab1.col1 + + tab1.col1 * tab1.col1 * - col2 FROM tab1
----
-16237
-36530
-5710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col0 FROM tab1
----
70
70
70
query I rowsort
SELECT + + 59 * - 0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + tab2.col1 * + col0 * + 61 + - col1 * - col0 FROM tab2
----
13454
285324
83266
onlyif mysql # use DIV operator for integer division
query I rowsort label-9249
SELECT - col2 + col1 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-9249
SELECT - col2 + col1 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-23
-26
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + + tab2.col2 + + col1 col1 FROM tab2
----
144
72
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9251
SELECT ALL CAST( - col0 + col2 AS SIGNED ) DIV col1 AS col0 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL CAST ( - col0 + col2 AS INTEGER ) / col1 AS col0 FROM tab1
----
0
1
1
query I rowsort
SELECT ALL - 42 * + tab2.col2 FROM tab2
----
-1092
-1134
-1596
query I rowsort
SELECT 34 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT - ( ( + col2 ) ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - ( - col2 ) * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 + col1 * - col2 - - col0 ) IN ( tab2.col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT ALL - col1 * col2 DIV tab1.col1 + + col0 AS col2 FROM tab1
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - col1 * col2 / tab1.col1 + + col0 AS col2 FROM tab1
----
-16
-51
7
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > + col2
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= NULL
----
query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 )
----
query I rowsort
SELECT DISTINCT + tab0.col0 * - col1 * col0 AS col2 FROM tab0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * col2 col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - col2 * + col1 * col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT col2 * + col2 * - col1 AS col0 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT ALL tab1.col0 * + tab1.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 02081120b66025475df9f31f465bcbe4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9268
SELECT - col2 DIV + col1 AS col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9268
SELECT - col2 / + col1 AS col1 FROM tab2
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * + tab1.col2 col2 FROM tab1
----
233472
486
614400
query I rowsort
SELECT - col0 * col0 + + col1 * cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
-3986
-6218
693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + cor0.col0 - col1 col0 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT - col2 + col0 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7387
8288
9443
query I rowsort
SELECT col1 + col1 * col0 * - cor0.col1 FROM tab1 AS cor0
----
-13507
-2002
-6390
query I rowsort
SELECT - + cor0.col0 * col0 * - cor0.col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + + col0 - - col0 AS col2 FROM tab1 cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9276
SELECT DISTINCT - cor0.col0 DIV col0 AS col1 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT - cor0.col0 / col0 AS col1 FROM tab0 cor0
----
-1
query I rowsort
SELECT DISTINCT + cor0.col0 * - 17 * + col2 FROM tab0 AS cor0
----
-124066
-13464
-595
query I rowsort
SELECT DISTINCT col2 + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + col0 * + col2 + + col0 + col2 AS col0 FROM tab2 AS cor0
----
2132
223
3119
query I rowsort
SELECT ALL + col2 * - 60 + + cor0.col2 * + col0 * 25 AS col0 FROM tab0 AS cor0
----
177530
17820
815
query I rowsort
SELECT ALL + col1 + - 95 * + 72 FROM tab1 AS cor0
----
-6814
-6827
-6830
query I rowsort
SELECT ALL + tab0.col2 + + col0 * 92 FROM tab0
----
2241
3221
8270
query I rowsort
SELECT col1 + - ( col1 + col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col0 * cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - + col1 * - 61 + + 31 AS col1 FROM tab2 AS cor0
----
1068
1922
3630
query I rowsort
SELECT DISTINCT - col0 + col0 * - cor0.col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT - + ( 37 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-37
query I rowsort
SELECT ALL - col2 + col1 * col2 AS col1 FROM tab0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - col1 + + col0 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL + 4 FROM tab2, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col1 col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + 56 * col0 AS col1 FROM tab0 cor0
----
1344
1960
4984
query I rowsort
SELECT ALL + col2 + ( + col2 ) AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + + col2 * + col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT 71 DIV tab1.col0 AS col0 FROM tab1
----
0
1
23
skipif mysql # not compatible
query I rowsort label-9295
SELECT 71 / tab1.col0 AS col0 FROM tab1
----
0
1
23
query I rowsort
SELECT + - 62 - col0 AS col0 FROM tab0 cor0
----
-151
-86
-97
query I rowsort
SELECT col0 * + cor0.col0 * col1 + 61 AS col0 FROM tab1 cor0
----
295
41021
83261
query I rowsort
SELECT DISTINCT - col0 + + col0 * - ( col0 * col1 ) AS col0 FROM tab0 AS cor0
----
-118860
-49560
-720900
onlyif mysql # use DIV operator for integer division
query I rowsort label-9299
SELECT ALL - col0 DIV col1 - + 82 FROM tab1 AS cor0
----
-82
-88
-88
skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL - col0 / col1 - + 82 FROM tab1 AS cor0
----
-82
-88
-88
query I rowsort
SELECT - 2 + col0 + ( + col0 * col0 ) FROM tab1 cor0
----
10
4158
6478
query I rowsort
SELECT + ( - col0 ) * + cor0.col2 + 65 FROM tab0 AS cor0
----
-7233
-727
30
query I rowsort
SELECT DISTINCT - - col1 * col0 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT 73 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT DISTINCT + 15 FROM tab1, tab2, tab2 AS cor0
----
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-9305
SELECT 61 DIV + col1 AS col0 FROM tab2
----
1
1
3
skipif mysql # not compatible
query I rowsort label-9305
SELECT 61 / + col1 AS col0 FROM tab2
----
1
1
3
query I rowsort
SELECT DISTINCT - 84 + + tab1.col2 FROM tab1
----
-27
-30
12
query I rowsort
SELECT 29 + - col1 FROM tab2
----
-2
-30
12
query I rowsort
SELECT DISTINCT - col1 + - tab2.col2 * col1 AS col0 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT - + 82 FROM tab1 AS cor0
----
-82
query I rowsort
SELECT ALL + col1 * + col0 * col2 + col1 AS col2 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT ALL - col2 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT - col2 * - col0 * 51 FROM tab1 AS cor0
----
186048
391680
8262
query I rowsort
SELECT ALL + col1 + + col1 + + ( col0 ) AS col1 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT DISTINCT - 10 + col1 FROM tab0 AS cor0
----
76
81
87
query I rowsort
SELECT + col0 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT - + col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL 17 + col0 * + col1 AS col2 FROM tab2
----
1360
234
4619
onlyif mysql # use DIV operator for integer division
query I rowsort label-9318
SELECT col0 DIV col0 + - tab0.col1 + col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9318
SELECT col0 / col0 + - tab0.col1 + col1 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL 76 - - tab1.col0 * - 59 * + col1 AS col1 FROM tab1
----
-37684
-4526
-61284
query I rowsort
SELECT + col2 * tab0.col0 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + col2 + + col1 * + ( + 6 ) + col2 * col2 AS col1 FROM tab1
----
3126
3366
9390
query I rowsort
SELECT ALL - 77 + + col0 AS col0 FROM tab1 AS cor0
----
-13
-74
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9323
SELECT - - col1 DIV + col1 - - cor0.col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-9323
SELECT - - col1 / + col1 - - cor0.col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT 17 + col0 AS col2 FROM tab0
----
106
41
52
query I rowsort
SELECT DISTINCT col0 * - 99 FROM tab0 AS cor0
----
-2376
-3465
-8811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col2 * cor0.col1 * col1 col0 FROM tab1 AS cor0
----
16144
36501
5636
onlyif mysql # use DIV operator for integer division
query I rowsort label-9327
SELECT + - col1 * - CAST( + col1 AS SIGNED ) + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
287
3481
961
skipif mysql # not compatible
query I rowsort label-9327
SELECT + - col1 * - CAST ( + col1 AS INTEGER ) + col2 / - col1 AS col1 FROM tab2 AS cor0
----
287
3481
961
query I rowsort
SELECT + col1 * ( ( col1 ) ) + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-2603
-5952
912
query I rowsort
SELECT ALL cor0.col0 + + col2 AS col0 FROM tab1 cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col2 col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - col1 + col1 * 27 * + col2 AS col0 FROM tab1 AS cor0
----
15380
33683
37882
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + + col1 col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + col2 + cor0.col0 * + col0 + col2 FROM tab1 AS cor0
----
117
4210
6592
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + col1 col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + col2 + 79 * + col1 * - col1 + + col1 AS col0 FROM tab0 AS cor0
----
-584165
-654026
-743213
query I rowsort
SELECT DISTINCT + col2 + - col1 + - cor0.col2 AS col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT cor0.col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + 98 col2 FROM tab1 AS cor0
----
198
267
774
query I rowsort
SELECT DISTINCT - col0 + 11 AS col0 FROM tab2 cor0
----
-67
-68
4
query I rowsort
SELECT col0 + + 79 AS col2 FROM tab0
----
103
114
168
query I rowsort
SELECT DISTINCT - 98 * 88 + col2 AS col0 FROM tab1 AS cor0
----
-8528
-8567
-8570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col1 + + col1 col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT col1 * col0 + col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT - col1 + 75 AS col0 FROM tab1
----
49
62
65
query I rowsort
SELECT DISTINCT - 44 * 62 * col0 AS col1 FROM tab1 AS cor0
----
-174592
-218240
-8184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 75 ) + + col1 col0 FROM tab1 AS cor0
----
-49
-62
-65
query I rowsort
SELECT ALL - - col2 * + 83 AS col0 FROM tab2 AS cor0
----
2158
2241
3154
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9348
SELECT CAST( NULL AS SIGNED ) / + 49 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9348
SELECT CAST ( NULL AS INTEGER ) / + 49 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - ( - col0 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - col0 * 10 FROM tab2 AS cor0
----
-70
-780
-790
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( 72 AS REAL ) * col2 * + col0 FROM tab1 cor0
----
-11664
-262656
-552960
query I rowsort
SELECT DISTINCT + - 8 * - col0 AS col0 FROM tab0 AS cor0
----
192
280
712
query I rowsort
SELECT DISTINCT + + 69 * + col0 AS col2 FROM tab0 cor0
----
1656
2415
6141
query I rowsort
SELECT DISTINCT + col0 * - 67 AS col1 FROM tab1 AS cor0
----
-201
-4288
-5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9355
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + col2 * ( col1 ) FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT DISTINCT + ( - 82 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-82
skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT + ( - 82 ) / + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-82
query I rowsort
SELECT - - col0 * - ( + col0 + ( + 8 ) ) FROM tab1 AS cor0
----
-33
-4608
-7040
query I rowsort
SELECT ALL - - 5 FROM tab0 cor0
----
5
5
5
query I rowsort
SELECT + 14 * + col0 * col0 + ( col0 ) * + col0 * col2 AS col1 FROM tab2 AS cor0
----
2009
243360
324532
query I rowsort
SELECT - col2 + - ( - cor0.col1 ) * - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT 91 * col2 AS col0 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT - col0 + - col2 * + col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT cor0.col0 * col1 * col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL - ( 13 ) FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT ALL + + 35 AS col0 FROM tab0 cor0
----
35
35
35
query I rowsort
SELECT DISTINCT - 52 * + col2 AS col1 FROM tab0 AS cor0
----
-1716
-4264
-52
query I rowsort
SELECT DISTINCT + col0 * + 66 AS col2 FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT ( + col0 ) * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - + col0 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT + col2 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + 94 * cor0.col2 FROM tab1 AS cor0
----
5076
5358
9024
query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c
query I rowsort
SELECT + ( col0 ) + 37 * col0 * col0 FROM tab1 cor0
----
151616
236880
336
query I rowsort
SELECT DISTINCT - col2 + col1 * 67 FROM tab1 AS cor0
----
1688
613
775
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * + CAST ( col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + col1 * col1 - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT + col2 * + ( 20 ) * col0 + - 11 * col2 FROM tab0 AS cor0
----
145058
15477
689
query I rowsort
SELECT + cor0.col1 * + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
query I rowsort
SELECT ALL + col2 + + 49 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1248
-1296
-1824
query I rowsort
SELECT ( col2 ) + col1 * 7 + col2 AS col1 FROM tab2
----
195
271
465
query I rowsort
SELECT + col0 * - col2 * + col1 + cor0.col2 FROM tab2 cor0
----
-119626
-50996
-5832
query I rowsort
SELECT DISTINCT - ( - 18 ) FROM tab2, tab0 AS cor0
----
18
query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT tab0.col1 * col1 + - col0 FROM tab0
----
7372
8192
9374
query I rowsort
SELECT ALL - tab1.col2 * + col2 * + col0 + col0 * + col0 AS col0 FROM tab1
----
-203840
-730880
-8739
query I rowsort
SELECT - col1 * - 13 FROM tab2
----
221
403
767
query I rowsort
SELECT + col1 + + 55 AS col2 FROM tab0 AS cor0
----
141
146
152
query I rowsort
SELECT - + col0 * - col1 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col0 FROM tab0
----
53
9
96
query I rowsort
SELECT col1 * col0 + - col2 * + ( + col2 ) FROM tab2 AS cor0
----
-101
-512
3926
query I rowsort
SELECT + + tab2.col1 * 81 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 72bd1d4351f346aaead4090d0c931d81
query I rowsort
SELECT col0 * - ( 5 ) FROM tab0
----
-120
-175
-445
query I rowsort
SELECT DISTINCT + col2 + - 55 AS col0 FROM tab2 AS cor0
----
-17
-28
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-9396
SELECT DISTINCT col0 DIV - ( - col0 ) FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT col0 / - ( - col0 ) FROM tab1
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9397
SELECT DISTINCT CAST( NULL AS SIGNED ) + 25 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 25 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
NULL
query I rowsort
SELECT 91 * + col0 + - cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-654
3088
637
query I rowsort
SELECT tab0.col2 * - 15 AS col2 FROM tab0
----
-1230
-15
-495
onlyif mysql # use DIV operator for integer division
query I rowsort label-9400
SELECT ALL 76 DIV col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL 76 / col1 AS col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * ( col1 + col1 ) * - col0 col0 FROM tab2
----
-126242
-20398
-432588
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9402
SELECT CAST( + ( col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9402
SELECT CAST ( + ( col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL 84 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab1, tab2, tab0 AS cor0, tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col0 FROM tab0 AS cor0
----
23
23
23
query I rowsort
SELECT - col1 * - col0 * col1 FROM tab2 cor0
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab0
----
55
query I rowsort
SELECT - 96 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
onlyif mysql # use DIV operator for integer division
query I rowsort label-9410
SELECT + cor0.col2 + - 52 DIV + col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9410
SELECT + cor0.col2 + - 52 / + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col1 * 82 + + col1 AS col0 FROM tab1 AS cor0
----
1079
2158
830
query I rowsort
SELECT - col2 + - col2 * col2 + tab1.col0 AS col2 FROM tab1
----
-2967
-3242
-9232
query I rowsort
SELECT + col0 * 94 * col0 FROM tab2 AS cor0
----
4606
571896
586654
query I rowsort
SELECT col1 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + col2 * col1 - + col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT + col0 * col1 * col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-9417
SELECT + - col2 DIV col0 + col1 * col1 FROM tab1 AS cor0
----
100
168
658
skipif mysql # not compatible
query I rowsort label-9417
SELECT + - col2 / col0 + col1 * col1 FROM tab1 AS cor0
----
100
168
658
query I rowsort
SELECT + 53 * col2 AS col0 FROM tab1 AS cor0
----
2862
3021
5088
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 + + col0 col0 FROM tab2
----
26
97
98
query I rowsort
SELECT DISTINCT - 42 FROM tab0, tab2, tab0 AS cor0
----
-42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + - col1 col1 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT 62 * col1 AS col1 FROM tab0 AS cor0
----
5332
5642
6014
query I rowsort
SELECT DISTINCT + 49 AS col1 FROM tab0 AS cor0
----
49
query I rowsort
SELECT 1 * tab2.col1 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL - col0 * + 68 FROM tab1 AS cor0
----
-204
-4352
-5440
onlyif mysql # use DIV operator for integer division
query I rowsort label-9426
SELECT + - col1 + + cor0.col0 DIV - col2 FROM tab1 AS cor0
----
-11
-13
-26
skipif mysql # not compatible
query I rowsort label-9426
SELECT + - col1 + + cor0.col0 / - col2 FROM tab1 AS cor0
----
-11
-13
-26
query I rowsort
SELECT - col1 * - 14 + col2 + col2 FROM tab0 AS cor0
----
1270
1360
1438
query I rowsort
SELECT ALL col0 * col1 + + 92 FROM tab1
----
1132
170
732
query I rowsort
SELECT + 12 * - col1 FROM tab0
----
-1032
-1092
-1164
onlyif mysql # use DIV operator for integer division
query I rowsort label-9430
SELECT ALL col0 + - col2 DIV 16 FROM tab0
----
22
35
84
skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL col0 + - col2 / 16 FROM tab0
----
22
35
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 + 36 col0 FROM tab0
----
132
45
89
query I rowsort
SELECT DISTINCT col2 + - col0 * - tab1.col0 * - col1 AS col2 FROM tab1
----
-180
-40903
-83104
onlyif mysql # use DIV operator for integer division
query I rowsort label-9433
SELECT ALL col0 DIV col1 - col1 AS col0 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL col0 / col1 - col1 AS col0 FROM tab0
----
-86
-91
-97
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 )
----
query I rowsort
SELECT col2 * tab2.col2 FROM tab2 WHERE NULL BETWEEN + col2 * + col0 AND col0
----
query I rowsort
SELECT ALL - col2 * col0 + + col2 AS col1 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT ( NULL ) >= NULL
----
query I rowsort
SELECT + col1 - col1 * col1 FROM tab2
----
-272
-3422
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 WHERE NOT NULL >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9440
SELECT DISTINCT + col0 + + tab0.col0 DIV + tab0.col1 AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT + col0 + + tab0.col0 / + tab0.col1 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT - col1 + - col1 * col2 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT ALL col1 + - col0 - + col1 AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - col2 * + col2 * col0 AS col0 FROM tab0
----
-26136
-35
-598436
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9446
SELECT col1 DIV col0 + col1 FROM tab1
----
10
13
34
skipif mysql # not compatible
query I rowsort label-9446
SELECT col1 / col0 + col1 FROM tab1
----
10
13
34
query I rowsort
SELECT ALL - tab2.col2 * col2 + col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT ALL + col1 * + col1 * - col2 + col2 * tab0.col1 FROM tab0
----
-241230
-671580
-9312
query I rowsort
SELECT DISTINCT + tab1.col1 * col2 + col2 FROM tab1
----
1344
1458
627
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN tab2.col2 AND NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) NOT IN ( col2 - - col2 * + tab2.col0 )
----
query I rowsort
SELECT ( - cor0.col0 ) + - 86 FROM tab0 AS cor0
----
-110
-121
-175
query I rowsort
SELECT + tab2.col0 * ( col1 ) + ( - tab2.col1 ) * - col2 * col0 FROM tab2
----
124254
52377
6076
query I rowsort
SELECT + col1 - + col0 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col1 * col0 + + col0 + - cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-1146
-1479
-2208
query I rowsort
SELECT DISTINCT - col2 * - col2 + + ( col1 ) FROM tab2 AS cor0
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col0 FROM tab2 AS cor0
----
-22
-22
-22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 + 29 col0 FROM tab1
----
32
32
32
query I rowsort
SELECT ( col0 ) + + col0 AS col2 FROM tab1
----
128
160
6
query I rowsort
SELECT + 34 * col1 AS col1 FROM tab0
----
2924
3094
3298
query I rowsort
SELECT + + 54 AS col2 FROM tab2 cor0
----
54
54
54
query I rowsort
SELECT ALL + - cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col0 * + col0 - cor0.col2 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT DISTINCT - col2 + col2 - 6 FROM tab0 AS cor0
----
-6
query I rowsort
SELECT ALL + - ( + col2 ) * 46 + ( col2 ) AS col2 FROM tab1 AS cor0
----
-2430
-2565
-4320
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 * 47 - col2 FROM tab2 AS cor0
----
309
3718
3754
query I rowsort
SELECT DISTINCT + col0 + ( - col1 ) + col0 * col0 AS col2 FROM tab2
----
25
6103
6303
query I rowsort
SELECT - col2 - col1 * - 18 FROM tab2
----
1036
268
531
query I rowsort
SELECT DISTINCT + + cor0.col0 + - 82 FROM tab1 AS cor0
----
-18
-2
-79
query I rowsort
SELECT ALL cor0.col0 * + 27 AS col0 FROM tab2 AS cor0
----
189
2106
2133
onlyif mysql # use DIV operator for integer division
query I rowsort label-9471
SELECT col0 DIV + cor0.col2 col2 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9471
SELECT col0 / + cor0.col2 col2 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9472
SELECT + col2 DIV - ( col1 ) + + col2 * col2 FROM tab1 AS cor0
----
2914
3244
9209
skipif mysql # not compatible
query I rowsort label-9472
SELECT + col2 / - ( col1 ) + + col2 * col2 FROM tab1 AS cor0
----
2914
3244
9209
query I rowsort
SELECT col1 * - 41 * 61 AS col0 FROM tab2 AS cor0
----
-147559
-42517
-77531
query I rowsort
SELECT ALL + + col0 * 3 - col1 AS col1 FROM tab1 cor0
----
-17
182
227
query I rowsort
SELECT DISTINCT col2 + - 0 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col2 * + 74 FROM tab1 AS cor0
----
3996
4218
7104
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc
query I rowsort
SELECT + 54 + 30 FROM tab2 AS cor0
----
84
84
84
query I rowsort
SELECT ALL 19 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # use DIV operator for integer division
query I rowsort label-9480
SELECT ALL + + col1 DIV + col0 - col1 * col1 FROM tab1 AS cor0
----
-100
-169
-668
skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL + + col1 / + col0 - col1 * col1 FROM tab1 AS cor0
----
-100
-169
-668
query I rowsort
SELECT DISTINCT + + 69 * 99 - - col0 FROM tab0 cor0
----
6855
6866
6920
query I rowsort
SELECT DISTINCT - tab0.col1 * tab0.col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT - - cor0.col1 * col2 + col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9484
SELECT col1 + - CAST( + cor0.col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9484
SELECT col1 + - CAST ( + cor0.col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 86 * + tab2.col2 + - ( 61 ) AS col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 8d5639b4e67cd3225059c39ff8de1ba2
query I rowsort
SELECT - 66 * + col0 * col0 FROM tab2
----
-3234
-401544
-411906
query I rowsort
SELECT - 1 FROM tab2, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( + col1 ) * col0 col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - - col2 + col1 * - 94 * col2 AS col2 FROM tab0 AS cor0
----
-266739
-701346
-9117
query I rowsort
SELECT + col2 * cor0.col0 + ( col2 + 72 ) FROM tab2 AS cor0
----
2126
288
3112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9491
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( + col0 ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( + col0 ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 68 + - col2 * - col0 * - col1 FROM tab2 AS cor0
----
-119584
-50966
-5791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 10 col2 FROM tab0 AS cor0
----
76
81
87
query I rowsort
SELECT ALL + col1 + ( + col0 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col2 + - 85 FROM tab1 AS cor0
----
-28
-31
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9496
SELECT ALL - - CAST( + cor0.col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL - - CAST ( + cor0.col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - col0 + col1 + - col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col2 - col1 * 67 FROM tab0 AS cor0
----
-5729
-6015
-6498
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9500
SELECT ALL - CAST( col2 * - col0 AS SIGNED ) + + col1 AS col1 FROM tab2
----
2087
220
3019
skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL - CAST ( col2 * - col0 AS INTEGER ) + + col1 AS col1 FROM tab2
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 6 col0 FROM tab2
----
-156
-162
-228
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT + + ( col1 ) + + 64 AS col0 FROM tab1 AS cor0
----
74
77
90
query I rowsort
SELECT 64 * col1 FROM tab2 AS cor0
----
1088
1984
3776
onlyif mysql # use DIV operator for integer division
query I rowsort label-9505
SELECT + 22 DIV + col1 col0 FROM tab1 cor0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9505
SELECT + 22 / + col1 col0 FROM tab1 cor0
----
0
1
2
query I rowsort
SELECT + - cor0.col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9507
SELECT - - col2 DIV - col1 col2 FROM tab1 cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9507
SELECT - - col2 / - col1 col2 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT ALL + - col1 + 74 FROM tab1 cor0
----
48
61
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9509
SELECT - col0 + col2 DIV + 52 + + col1 FROM tab0 AS cor0
----
3
62
62
skipif mysql # not compatible
query I rowsort label-9509
SELECT - col0 + col2 / + 52 + + col1 FROM tab0 AS cor0
----
3
62
62
query I rowsort
SELECT ALL + col1 * + tab0.col1 * - col0 AS col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT - 20 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-20
query I rowsort
SELECT ALL - - 23 AS col0 FROM tab0 AS cor0
----
23
23
23
query I rowsort
SELECT - ( col0 ) + - col1 * - cor0.col1 FROM tab1 AS cor0
----
36
673
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * tab1.col2 + ( + 42 ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 0066b5b889159d4f62344e918e30fd5c
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + 22 * + col0 AS col1 FROM tab1 AS cor0
----
1408
1760
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9517
SELECT col0 * + col1 * + col0 - CAST( 89 AS SIGNED ) FROM tab0
----
118736
49447
720722
skipif mysql # not compatible
query I rowsort label-9517
SELECT col0 * + col1 * + col0 - CAST ( 89 AS INTEGER ) FROM tab0
----
118736
49447
720722
query I rowsort
SELECT col2 * 50 - - col0 * tab2.col1 FROM tab2
----
1567
3243
5902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 62 col2 FROM tab1 AS cor0
----
-62
-62
-62
query I rowsort
SELECT DISTINCT - col1 * 80 AS col2 FROM tab2
----
-1360
-2480
-4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT 38 + ( col1 ) DIV - col1 col2 FROM tab1
----
37
37
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9521
SELECT 38 + ( col1 ) / - col1 col2 FROM tab1
----
37
37
37
query I rowsort
SELECT ALL - ( + ( - tab1.col2 ) ) * + 8 * - 65 FROM tab1, tab0 cor0
----
9 values hashing to d9f559a082a7907719300008cebedee0
query I rowsort
SELECT col0 - - ( - 61 + col1 ) * 87 FROM tab0
----
2199
2699
3167
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * 89 * + col0 col0 FROM tab2 AS cor0
----
-16821
-180492
-267178
query I rowsort
SELECT - col1 + - 55 * + col1 AS col2 FROM tab1 AS cor0
----
-1456
-560
-728
query I rowsort
SELECT ALL 98 AS col0 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT ALL - ( cor0.col1 ) - cor0.col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT 85 * 5 AS col2 FROM tab2 AS cor0
----
425
query I rowsort
SELECT - + ( + col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 * + 77 FROM tab2 AS cor0
----
1309
2387
4543
query I rowsort
SELECT ALL + 15 + col2 * col1 AS col2 FROM tab0 AS cor0
----
112
2853
7477
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 * - col0 col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT ALL + col0 * 29 + col0 * col2 AS col1 FROM tab0
----
1050
1488
9879
query I rowsort
SELECT ALL - 63 + - col1 AS col2 FROM tab0
----
-149
-154
-160
query I rowsort
SELECT + - col0 * + col1 - col2 * col2 * 77 FROM tab0 cor0
----
-3472
-525847
-85917
query I rowsort
SELECT DISTINCT + col0 + col2 - + col0 * col0 FROM tab2 cor0
----
-15
-5980
-6124
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9537
SELECT ALL + + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * cor0.col1 - + col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT + - col0 + 33 * col2 FROM tab1 AS cor0
----
1779
1817
3088
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - - col0 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + + col1 + - col2 * - 74 FROM tab2 AS cor0
----
1983
2029
2829
query I rowsort
SELECT ALL - cor0.col2 * 31 FROM tab1 AS cor0
----
-1674
-1767
-2976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( - col1 ) * + col1 col2 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL - col0 * 55 + - 29 FROM tab2 AS cor0
----
-414
-4319
-4374
query I rowsort
SELECT + + col2 + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + + col1 * col0 * 24 AS col0 FROM tab0 AS cor0
----
194376
49536
81480
query I rowsort
SELECT DISTINCT - col1 + ( col2 ) * col0 + + col2 AS col2 FROM tab1 AS cor0
----
190
3695
7763
query I rowsort
SELECT ALL + col1 + + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col0 * - 76 FROM tab1 AS cor0
----
228
4864
6080
onlyif mysql # use DIV operator for integer division
query I rowsort label-9551
SELECT ALL + tab1.col2 DIV - ( - ( + col0 ) * col0 ) AS col1 FROM tab1
----
0
0
6
skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL + tab1.col2 / - ( - ( + col0 ) * col0 ) AS col1 FROM tab1
----
0
0
6
query I rowsort
SELECT + col0 + + 96 FROM tab2
----
103
174
175
query I rowsort
SELECT - - col0 * + col1 * + col1 FROM tab2 AS cor0
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( cor0.col1 ) * ( - 28 ) col2 FROM tab1 AS cor0
----
290
377
754
query I rowsort
SELECT tab1.col1 + + col2 * col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT ALL 84 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + + col0 col2 FROM tab1 AS cor0
----
105
121
44
query I rowsort
SELECT ALL + col1 - + col2 * 42 FROM tab0 AS cor0
----
-1300
-3353
55
query I rowsort
SELECT + cor0.col0 + + cor0.col2 * 59 * - 96 AS col2 FROM tab2 AS cor0
----
-147186
-152921
-215153
query I rowsort
SELECT DISTINCT - 15 + + col1 FROM tab1 AS cor0
----
-2
-5
11
query I rowsort
SELECT + + 56 * - col0 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
-32170
-443485
-68503
onlyif mysql # use DIV operator for integer division
query I rowsort label-9562
SELECT DISTINCT + 15 + col0 DIV - ( + 78 + + col2 ) FROM tab1 AS cor0
----
15
skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT + 15 + col0 / - ( + 78 + + col2 ) FROM tab1 AS cor0
----
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-9563
SELECT DISTINCT + col1 DIV col0 + 34 AS col1 FROM tab0 AS cor0
----
35
36
37
skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT + col1 / col0 + 34 AS col1 FROM tab0 AS cor0
----
35
36
37
query I rowsort
SELECT DISTINCT col1 + + col0 * col0 + - 38 FROM tab1 AS cor0
----
-3
4068
6375
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col2 + ( - ( col1 ) ) col0 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT ALL ( col2 ) + col2 * 29 AS col2 FROM tab0
----
2460
30
990
query I rowsort
SELECT ALL col2 * 46 + + col2 * + col0 * + col1 AS col1 FROM tab1
----
104256
39102
6696
onlyif mysql # use DIV operator for integer division
query I rowsort label-9568
SELECT ALL + col1 + col2 DIV + tab1.col1 + tab1.col2 * 4 AS col2 FROM tab1
----
243
244
404
skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL + col1 + col2 / + tab1.col1 + tab1.col2 * 4 AS col2 FROM tab1
----
243
244
404
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 + 78 + col1 col1 FROM tab2
----
78
78
78
query I rowsort
SELECT + 83 * col0 FROM tab2
----
581
6474
6557
query I rowsort
SELECT DISTINCT col1 * + col2 + col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9572
SELECT - - 90 * col2 + + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9572
SELECT - - 90 * col2 + + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 + + col2 * ( - col1 ) FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT - ( col0 ) * + col1 + + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ( cor0.col2 ) + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - - col2 * + 12 FROM tab0 AS cor0
----
12
396
984
query I rowsort
SELECT ALL + tab0.col2 + 96 FROM tab0
----
129
178
97
query I rowsort
SELECT ALL - col0 * + 18 + + col2 AS col2 FROM tab2
----
-1378
-1384
-99
query I rowsort
SELECT col0 + - ( col0 ) + - col2 AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT col1 + - 0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + 52 FROM tab1, tab1 AS cor0
----
52
query I rowsort
SELECT DISTINCT - - col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col0 + + cor0.col2 col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT 47 - 79 * col0 FROM tab0 AS cor0
----
-1849
-2718
-6984
query I rowsort
SELECT - + col0 + + 40 FROM tab1 AS cor0
----
-24
-40
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-9586
SELECT ALL col2 DIV ( + col2 ) FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL col2 / ( + col2 ) FROM tab0
----
1
1
1
query I rowsort
SELECT ALL + col2 * - col1 + col2 * col2 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT 38 + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
69
97
query I rowsort
SELECT DISTINCT + 82 * + col1 FROM tab2 cor0
----
1394
2542
4838
query I rowsort
SELECT 11 * col0 AS col2 FROM tab1 cor0
----
33
704
880
query I rowsort
SELECT DISTINCT col2 * + col2 * col1 FROM tab1
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - cor0.col1 * - ( col0 + col1 ) col1 FROM tab0 AS cor0
----
12769
16291
9436
onlyif mysql # use DIV operator for integer division
query I rowsort label-9593
SELECT DISTINCT col2 DIV - ( - 9 ) col2 FROM tab1 AS cor0
----
10
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT col2 / - ( - 9 ) col2 FROM tab1 AS cor0
----
10
6
query I rowsort
SELECT ALL + col1 * 16 + col1 + - cor0.col1 FROM tab2 AS cor0
----
272
496
944
query I rowsort
SELECT - 11 FROM tab1, tab2 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - + ( 51 ) + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1
----
-20
-34
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9598
SELECT + col1 * col2 DIV cor0.col1 AS col0 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9598
SELECT + col1 * col2 / cor0.col1 AS col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - cor1.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
243 values hashing to 3e2b81ca10484cbfc66f186955e0e920
query I rowsort
SELECT + col1 * - ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9601
SELECT ALL + CAST( col1 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL + CAST ( col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9603
SELECT ALL + + 75 DIV - 54 - + col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL + + 75 / - 54 - + col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT ALL - + col0 + col0 - + col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * - col0 + - col2 col2 FROM tab1 cor0
----
-45
4039
6304
query I rowsort
SELECT + + 73 * col2 AS col1 FROM tab2 AS cor0
----
1898
1971
2774
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9607
SELECT DISTINCT cor0.col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT cor0.col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9608
SELECT ALL - - cor0.col2 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL - - cor0.col2 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 * ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + - col0 * ( col0 ) FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT - - col0 * 17 AS col0 FROM tab0 AS cor0
----
1513
408
595
onlyif mysql # use DIV operator for integer division
query I rowsort label-9612
SELECT + col1 DIV - 59 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9612
SELECT + col1 / - 59 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT col0 * + 15 FROM tab2 AS cor0
----
105
1170
1185
query I rowsort
SELECT DISTINCT 87 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
87
query I rowsort
SELECT ALL - ( col1 ) * - 80 FROM tab0
----
6880
7280
7760
query I rowsort
SELECT - 46 * + col1 FROM tab2
----
-1426
-2714
-782
query I rowsort
SELECT - - 36 * - tab1.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d8942faeec1e1c2595065f20aca1bcfb
query I rowsort
SELECT DISTINCT tab2.col2 * + col0 * + col1 FROM tab2
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9619
SELECT DISTINCT + + col1 - col2 * CAST( ( col1 ) AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
-3298
-664027
-68026
skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT + + col1 - col2 * CAST ( ( col1 ) AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT - + 46 AS col2 FROM tab0 cor0
----
-46
-46
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9621
SELECT ALL - - 64 * cor0.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - - 64 * cor0.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 60 + - col1 * - 96 AS col0 FROM tab0 AS cor0
----
8316
8796
9372
query I rowsort
SELECT - ( + col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - 19 AS col1 FROM tab2
----
-19
-19
-19
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col1 ) * - col0 + - col0 col0 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 FROM tab0 cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9628
SELECT ALL ( + col1 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL ( + col1 ) / + col0 AS col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + col0 + 19 FROM tab2
----
26
97
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9630
SELECT ALL tab1.col0 + 11 + col1 DIV tab1.col1 FROM tab1
----
15
76
92
skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL tab1.col0 + 11 + col1 / tab1.col1 FROM tab1
----
15
76
92
query I rowsort
SELECT col2 * + 91 FROM tab0
----
3003
7462
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9632
SELECT ALL + col1 DIV - 23 + - col0 FROM tab2
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL + col1 / - 23 + - col0 FROM tab2
----
-79
-8
-80
query I rowsort
SELECT ALL + tab0.col1 * tab0.col0 + 80 * col2 FROM tab0
----
14659
3475
4704
onlyif mysql # use DIV operator for integer division
query I rowsort label-9634
SELECT + col0 + - 84 DIV + cor0.col1 FROM tab2 AS cor0
----
5
75
77
skipif mysql # not compatible
query I rowsort label-9634
SELECT + col0 + - 84 / + cor0.col1 FROM tab2 AS cor0
----
5
75
77
query I rowsort
SELECT ALL col2 * 24 AS col1 FROM tab2 AS cor0
----
624
648
912
query I rowsort
SELECT col1 + - 56 FROM tab0 cor0
----
30
35
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-9637
SELECT ALL - col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL - col2 / - col0 AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + 69 + col1 * col2 FROM tab2 AS cor0
----
1603
715
906
query I rowsort
SELECT - 88 * - col0 AS col2 FROM tab1 AS cor0
----
264
5632
7040
query I rowsort
SELECT DISTINCT - col2 + + col0 * col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL - + col0 + - col1 - col1 FROM tab2 AS cor0
----
-113
-196
-69
query I rowsort
SELECT - col2 * - cor0.col1 + + col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9643
SELECT - 80 * col2 * col2 + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-115441
-54002
-58313
skipif mysql # not compatible
query I rowsort label-9643
SELECT - 80 * col2 * col2 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-115441
-54002
-58313
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9644
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + 44 * - cor0.col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT - + CAST ( NULL AS REAL ) + 44 * - cor0.col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9645
SELECT DISTINCT 11 + col2 DIV cor0.col1 FROM tab1 AS cor0
----
13
16
18
skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT 11 + col2 / cor0.col1 FROM tab1 AS cor0
----
13
16
18
query I rowsort
SELECT - 3 AS col0 FROM tab2 AS cor0
----
-3
-3
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9647
SELECT DISTINCT - cor0.col1 * cor0.col2 + col0 DIV + 79 - cor0.col1 FROM tab1 AS cor0
----
-1260
-1430
-580
skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT - cor0.col1 * cor0.col2 + col0 / + 79 - cor0.col1 FROM tab1 AS cor0
----
-1260
-1430
-580
query I rowsort
SELECT - + col2 * - cor0.col0 + + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL col2 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT col1 * - cor0.col2 * + cor0.col0 + + col1 * col2 * + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - ( + 38 ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-266
-2964
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9652
SELECT DISTINCT - 8 * - cor0.col0 + + col0 DIV col0 AS col0 FROM tab2 cor0
----
57
625
633
skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT - 8 * - cor0.col0 + + col0 / col0 AS col0 FROM tab2 cor0
----
57
625
633
query I rowsort
SELECT col2 * - 82 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-2191
-2245
-3133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9654
SELECT ALL - - CAST( NULL AS SIGNED ) * col1 * col2 + + col2 * + cor0.col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - - CAST ( NULL AS INTEGER ) * col1 * col2 + + col2 * + cor0.col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - ( - col0 ) - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + ( + col0 * tab2.col0 ) AS col0 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 88 col2 FROM tab0 AS cor0
----
-88
-88
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-9658
SELECT DISTINCT 47 DIV 44 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT 47 / 44 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL - 99 AS col2 FROM tab1 AS cor0
----
-99
-99
-99
query I rowsort
SELECT + 37 * col0 * col2 AS col0 FROM tab1 AS cor0
----
134976
284160
5994
query I rowsort
SELECT - col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9662
SELECT - cor0.col2 DIV + cor0.col1 + + 7 DIV - 15 AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9662
SELECT - cor0.col2 / + cor0.col1 + + 7 / - 15 AS col0 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT ALL - - ( - col0 ) + - col2 * 23 FROM tab2 AS cor0
----
-628
-676
-953
query I rowsort
SELECT - ( col2 ) + col2 * + col0 * + col0 FROM tab1 cor0
----
233415
432
614304
query I rowsort
SELECT DISTINCT - ( + col1 ) + cor0.col2 * 64 AS col0 FROM tab0 AS cor0
----
-33
2026
5157
query I rowsort
SELECT ( col2 ) * ( 17 ) FROM tab2 AS cor0
----
442
459
646
query I rowsort
SELECT 93 * - col0 AS col1 FROM tab0
----
-2232
-3255
-8277
query I rowsort
SELECT + ( + col1 + col0 ) * - tab2.col2 AS col0 FROM tab2
----
-1026
-3562
-3648
query I rowsort
SELECT ALL - 13 + - col2 FROM tab2
----
-39
-40
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-9670
SELECT ALL col2 + + col1 DIV col2 + ( col0 ) * col1 col2 FROM tab0
----
2099
3493
8182
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL col2 + + col1 / col2 + ( col0 ) * col1 col2 FROM tab0
----
2099
3493
8182
query I rowsort
SELECT DISTINCT + + col0 + - col2 + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-213
-3641
-7696
query I rowsort
SELECT ALL + cor0.col0 * 90 + + 1 FROM tab1 cor0
----
271
5761
7201
query I rowsort
SELECT + col2 * col1 - - col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + - col0 + 78 FROM tab0 AS cor0
----
-11
43
54
query I rowsort
SELECT DISTINCT - + col0 * cor0.col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9676
SELECT ALL + + col0 DIV + CAST( col0 * col2 + - col1 * + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL + + col0 / + CAST ( col0 * col2 + - col1 * + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + cor0.col0 * 23 AS col2 FROM tab1 AS cor0
----
1482
1853
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( col2 ) col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL + - col1 + cor0.col1 + + 7 FROM tab0 AS cor0
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9680
SELECT ALL + col0 DIV ( 86 ) + col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + col0 / ( 86 ) + col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 35 col0 FROM tab2 AS cor0
----
-1085
-2065
-595
query I rowsort
SELECT ALL - col1 + 3 * + col2 * + col1 FROM tab0 AS cor0
----
194
22295
8428
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - 40 - col2 AS col0 FROM tab0
----
-122
-41
-73
query I rowsort
SELECT - - col2 + - 91 AS col1 FROM tab1 cor0
----
-34
-37
5
query I rowsort
SELECT ALL cor0.col0 + 15 * col1 FROM tab1 AS cor0
----
214
275
393
query I rowsort
SELECT + + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT - 67 + + 35 FROM tab2, tab2 cor0
----
-32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9689
SELECT + col0 + - CAST( + 34 AS SIGNED ) + + col1 * + col0 FROM tab1
----
1086
47
670
skipif mysql # not compatible
query I rowsort label-9689
SELECT + col0 + - CAST ( + 34 AS INTEGER ) + + col1 * + col0 FROM tab1
----
1086
47
670
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9690
SELECT ALL + col0 * + CAST( NULL AS DECIMAL ) + - col1 + + col0 / col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL + col0 * + CAST ( NULL AS REAL ) + - col1 + + col0 / col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9691
SELECT tab1.col2 DIV + col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9691
SELECT tab1.col2 / + col1 FROM tab1
----
2
5
7
query I rowsort
SELECT ALL + 16 FROM tab0, tab2 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT ALL - col1 + - tab0.col0 + tab0.col1 AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + col1 + - tab2.col0 + col1 FROM tab2
----
-45
40
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9695
SELECT col1 * tab1.col0 DIV + tab1.col0 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9695
SELECT col1 * tab1.col0 / + tab1.col0 AS col0 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9696
SELECT ALL col1 DIV 47 FROM tab0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL col1 / 47 FROM tab0
----
1
1
2
query I rowsort
SELECT - + cor0.col0 + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT - - ( 71 ) * col0 AS col0 FROM tab0 cor0
----
1704
2485
6319
query I rowsort
SELECT ALL + ( + ( + col1 ) ) * - col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9700
SELECT CAST( NULL AS SIGNED ) * - 21 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9700
SELECT CAST ( NULL AS INTEGER ) * - 21 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 39 ) col2 FROM tab1 AS cor0
----
-39
-39
-39
query I rowsort
SELECT + + cor0.col1 * col0 - col0 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-9703
SELECT - - col1 DIV + col2 - col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9703
SELECT - - col1 / + col2 - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab2, tab0 AS cor0
----
59
query I rowsort
SELECT DISTINCT col0 * 19 FROM tab1 AS cor0
----
1216
1520
57
query I rowsort
SELECT - + col0 + + cor0.col0 + ( 42 * col2 ) AS col0 FROM tab2 cor0
----
1092
1134
1596
query I rowsort
SELECT - cor0.col1 * - col0 + col0 AS col2 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT tab0.col1 * + col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT tab0.col2 * + col1 AS col2 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 col2 FROM tab2, tab2 AS cor0
----
-15
query I rowsort
SELECT - 94 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT DISTINCT + - col0 + ( - col0 ) FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9713
SELECT ALL - - col1 DIV - cor0.col1 + - cor0.col0 FROM tab1 cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL - - col1 / - cor0.col1 + - cor0.col0 FROM tab1 cor0
----
-4
-65
-81
query I rowsort
SELECT DISTINCT + col0 * + ( - 26 ) + col1 FROM tab2 AS cor0
----
-151
-1969
-2037
query I rowsort
SELECT - + col2 + cor0.col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + - col1 * 34 + col0 * col2 AS col2 FROM tab1 AS cor0
----
-722
3308
7238
query I rowsort
SELECT ALL - + cor0.col0 + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col0 + - ( col1 ) + + col0 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - - col2 + + col0 * - col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT col2 * col1 * + col2 AS col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ALL + + col1 + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT cor1.col2 + - 35 * 68 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-2284
-2323
-2326
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT ALL + ( + col1 ) * - tab2.col2 AS col0 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9725
SELECT + 86 DIV cor0.col0 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4
skipif mysql # not compatible
query I rowsort label-9725
SELECT + 86 / cor0.col0 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9726
SELECT - CAST( NULL AS SIGNED ) + ( cor0.col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9726
SELECT - CAST ( NULL AS INTEGER ) + ( cor0.col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - col0 col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT col0 * 60 FROM tab2 AS cor0
----
420
4680
4740
query I rowsort
SELECT ALL tab1.col1 + col0 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT - - 10 FROM tab2, tab0, tab0 AS cor0
----
10
query I rowsort
SELECT 9 - col0 * + 88 * - col2 FROM tab0
----
3089
642233
69705
query I rowsort
SELECT ALL - col2 * - col2 + 59 FROM tab1
----
2975
3308
9275
query I rowsort
SELECT + + 14 + + col2 FROM tab0 AS cor0
----
15
47
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col1 + - 83 + 33 col0 FROM tab0 AS cor0
----
-2114
-3445
-8149
query I rowsort
SELECT ALL + col0 * col0 + 36 FROM tab2 AS cor0
----
6120
6277
85
query I rowsort
SELECT ALL + col0 + + col0 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL + col0 * col0 - - tab2.col1 FROM tab2
----
6143
6258
80
query I rowsort
SELECT DISTINCT + col2 + tab1.col1 * - tab1.col1 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT + col1 * - col2 + tab0.col1 FROM tab0
----
-2752
-7371
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * col0 BETWEEN NULL AND col2 + - col2
----
query I rowsort
SELECT ALL col0 * - col1 + + col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT col1 FROM tab2 WHERE col2 * col1 < NULL
----
query I rowsort
SELECT tab0.col2 + + col2 * col0 + - col1 * col0 AS col2 FROM tab0
----
-1239
-3359
-719
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + col2 * + cor0.col1 * - 10 FROM tab0 AS cor0
----
-28380
-74620
-970
query I rowsort
SELECT DISTINCT - + col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT tab0.col0 + - col1 * col0 AS col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL col1 + tab1.col0 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT - tab2.col2 * col1 AS col0 FROM tab2
----
-1534
-646
-837
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT col1 + col2 * + col2 * col0 AS col0 FROM tab2
----
114093
5134
52787
query I rowsort
SELECT DISTINCT col1 * + col2 * + col1 AS col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT - cor0.col1 + col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND - col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9755
SELECT ALL col0 DIV - col0 col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL col0 / - col0 col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col1 - + col0 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL - col0 + col0 - + col0 * col1 * - col1 AS col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL col1 + + col1 - + tab2.col1 AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT + tab2.col0 * col0 + - col2 - - col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL col1 * - tab2.col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9761
SELECT + tab1.col1 - tab1.col2 * - col0 DIV - col0 FROM tab1
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-9761
SELECT + tab1.col1 - tab1.col2 * - col0 / - col0 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col0 * - tab0.col0 AS col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + col0 * tab0.col0 * col0 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT + col1 * + col1 * cor0.col1 + col1 - - col2 FROM tab2 AS cor0
----
205464
29849
4968
query I rowsort
SELECT DISTINCT col0 * col2 * cor0.col0 + - col0 * + col0 FROM tab1 AS cor0
----
229376
477
608000
onlyif mysql # use DIV operator for integer division
query I rowsort label-9767
SELECT col0 DIV col2 + col0 AS col2 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-9767
SELECT col0 / col2 + col0 AS col2 FROM tab0
----
24
70
90
query I rowsort
SELECT ALL col2 * + col0 - + col2 * + col0 FROM tab0 WHERE NOT NULL NOT IN ( col0 / - tab0.col2 )
----
query I rowsort
SELECT ALL 89 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
onlyif mysql # use DIV operator for integer division
query I rowsort label-9770
SELECT - col1 * ( - col2 ) DIV - 45 + - col1 FROM tab0 AS cor0
----
-149
-256
-99
skipif mysql # not compatible
query I rowsort label-9770
SELECT - col1 * ( - col2 ) / - 45 + - col1 FROM tab0 AS cor0
----
-149
-256
-99
query I rowsort
SELECT + ( 37 ) + cor0.col0 FROM tab1 AS cor0
----
101
117
40
query I rowsort
SELECT 64 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
onlyif mysql # use DIV operator for integer division
query I rowsort label-9773
SELECT col2 + col0 + col1 DIV col0 FROM tab1
----
121
176
65
skipif mysql # not compatible
query I rowsort label-9773
SELECT col2 + col0 + col1 / col0 FROM tab1
----
121
176
65
query I rowsort
SELECT - ( col0 ) * - col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col1 * 86 * col1 FROM tab1 AS cor0
----
14534
58136
8600
onlyif mysql # use DIV operator for integer division
query I rowsort label-9776
SELECT + - col0 + - col1 DIV + col1 FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-9776
SELECT + - col0 + - col1 / + col1 FROM tab1 AS cor0
----
-4
-65
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9777
SELECT ALL + - CAST( col1 AS SIGNED ) + - col0 col1 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL + - CAST ( col1 AS INTEGER ) + - col0 col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT col1 + tab0.col1 * - col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT - col2 * - col0 * - col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL + - cor0.col0 * col2 + 34 FROM tab2 AS cor0
----
-155
-1994
-2968
onlyif mysql # use DIV operator for integer division
query I rowsort label-9781
SELECT ALL + - cor0.col0 - - col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-24
-70
-90
skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL + - cor0.col0 - - col0 / - col2 AS col2 FROM tab0 AS cor0
----
-24
-70
-90
query I rowsort
SELECT ALL + + col0 * + col2 * - col0 FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT col2 + - ( col0 ) * + col0 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9784
SELECT DISTINCT - + cor0.col0 * CAST( 53 AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0
----
-364
-4056
-4108
skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT - + cor0.col0 * CAST ( 53 AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0
----
-364
-4056
-4108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9785
SELECT DISTINCT - + col0 - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT - + col0 - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - - col0 + + 69 FROM tab0 AS cor0
----
104
158
93
query I rowsort
SELECT ALL col1 * cor0.col2 * col0 + - col1 - + col0 * ( - col2 + + col0 ) AS col2 FROM tab0 AS cor0
----
2108
663404
68242
query I rowsort
SELECT ALL col0 * + 97 - 6 FROM tab1 cor0
----
285
6202
7754
query I rowsort
SELECT ALL + ( + cor0.col2 ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + col1 * col1 * - 18 AS col2 FROM tab2 cor0
----
-17298
-5202
-62658
query I rowsort
SELECT DISTINCT ( + col2 ) * col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + col0 + - col2 * - ( ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + col1 col1 FROM tab2 AS cor0
----
106
134
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - + col2 * CAST ( - 34 AS REAL ) + col0 col0 FROM tab1 AS cor0
----
1839
2002
3344
query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 * col2 + col1 FROM tab1 cor0
----
1341
1433
644
query I rowsort
SELECT DISTINCT + col1 + 7 * 9 FROM tab2 AS cor0
----
122
80
94
query I rowsort
SELECT - col0 + + 33 + - 32 * col1 AS col0 FROM tab1 AS cor0
----
-351
-463
-802
query I rowsort
SELECT + - col2 - - col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT ALL + 3 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
onlyif mysql # use DIV operator for integer division
query I rowsort label-9801
SELECT cor0.col0 + col0 DIV col0 - - col2 AS col2 FROM tab1 AS cor0
----
122
177
58
skipif mysql # not compatible
query I rowsort label-9801
SELECT cor0.col0 + col0 / col0 - - col2 AS col2 FROM tab1 AS cor0
----
122
177
58
query I rowsort
SELECT + + col2 * + 89 + col2 * + cor0.col2 + col2 FROM tab2 AS cor0
----
3016
3159
4864
query I rowsort
SELECT col2 + 57 FROM tab1 AS cor0
----
111
114
153
query I rowsort
SELECT col2 + 61 FROM tab1 AS cor0
----
115
118
157
query I rowsort
SELECT - + col0 + + col1 - - col0 * col2 FROM tab2 AS cor0
----
2009
213
2940
query I rowsort
SELECT - col1 + col2 AS col2 FROM tab1 cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9807
SELECT + CAST( NULL AS SIGNED ) * + ( + cor0.col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9807
SELECT + CAST ( NULL AS INTEGER ) * + ( + cor0.col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * tab2.col2 * - col2 AS col2 FROM tab2
----
-22599
-24548
-39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9809
SELECT ALL - CAST( col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + + 84 + + 30 AS col0 FROM tab1 AS cor0
----
114
114
114
query I rowsort
SELECT + + cor0.col0 + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - ( 2 ) + + col2 FROM tab1 AS cor0
----
52
55
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9813
SELECT - CAST( + col2 AS SIGNED ) * cor0.col0 + 36 AS col2 FROM tab1 AS cor0
----
-126
-3612
-7644
skipif mysql # not compatible
query I rowsort label-9813
SELECT - CAST ( + col2 AS INTEGER ) * cor0.col0 + 36 AS col2 FROM tab1 AS cor0
----
-126
-3612
-7644
query I rowsort
SELECT - col2 * ( col1 * col1 ) FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT + ( + col0 ) + + col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9816
SELECT - 70 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9816
SELECT - 70 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 35 + + ( col0 + col2 ) FROM tab1 AS cor0
----
156
211
92
query I rowsort
SELECT DISTINCT - ( + 23 ) + col1 * + 69 * col0 AS col0 FROM tab0
----
142393
234232
558808
onlyif mysql # use DIV operator for integer division
query I rowsort label-9819
SELECT 78 DIV - col2 + - col2 FROM tab1 cor0
----
-55
-58
-96
skipif mysql # not compatible
query I rowsort label-9819
SELECT 78 / - col2 + - col2 FROM tab1 cor0
----
-55
-58
-96
query I rowsort
SELECT DISTINCT - + col2 * 40 AS col2 FROM tab0 AS cor0
----
-1320
-3280
-40
query I rowsort
SELECT - col0 + 25 FROM tab0
----
-10
-64
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 51 * + 72 + col0 * + col0 col1 FROM tab1
----
-3609
2824
481
query I rowsort
SELECT col2 + col1 - col1 AS col2 FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9824
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) - col2 * + col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) - col2 * + col1 FROM tab0
----
NULL
query I rowsort
SELECT ALL col2 - + col2 * col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT ALL 29 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT + cor0.col0 * cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d2e5241c58e367013a1a203910e000c0
query I rowsort
SELECT - col1 + col2 - col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 94 + - 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-123
query I rowsort
SELECT - col2 * - col0 + + col1 * tab0.col0 + - col0 * - col1 AS col0 FROM tab0
----
23496
4920
6825
query I rowsort
SELECT ALL - col2 * col0 + - 20 FROM tab0 AS cor0
----
-55
-7318
-812
query I rowsort
SELECT DISTINCT - 36 * col2 FROM tab1 AS cor0
----
-1944
-2052
-3456
query I rowsort
SELECT - col2 + cor0.col2 + + col2 * col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL - col1 * + col2 * ( - col0 + + col2 ) AS col2 FROM tab1 AS cor0
----
-19968
-71604
3990
query I rowsort
SELECT ALL ( col0 ) - cor0.col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 * + col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT 52 + - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1482
-594
-785
query I rowsort
SELECT - col1 + ( + col1 * - col2 ) AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT - col1 * - 25 FROM tab2 AS cor0
----
1475
425
775
query I rowsort
SELECT - col2 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col2 * col2 + + col1 * col1 FROM tab1 AS cor0
----
-2240
-3149
-9047
query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT cor0.col2 + + 71 * 66 + cor0.col2 AS col2 FROM tab0 AS cor0
----
4688
4752
4850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9844
SELECT - col2 + CAST( NULL AS SIGNED ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9844
SELECT - col2 + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + cor0.col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + + col0 + + ( col0 + cor0.col0 ) * - cor0.col2 * col0 FROM tab2 AS cor0
----
-2639
-316290
-474237
query I rowsort
SELECT + + ( + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT 11 * col0 + col2 FROM tab1 AS cor0
----
761
87
976
query I rowsort
SELECT DISTINCT 66 + - col2 AS col0 FROM tab1 AS cor0
----
-30
12
9
query I rowsort
SELECT ALL + + ( 8 ) AS col0 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab2, tab2 AS cor0
----
33
query I rowsort
SELECT ALL + - col2 * + 96 * col2 AS col1 FROM tab2 AS cor0
----
-138624
-64896
-69984
onlyif mysql # use DIV operator for integer division
query I rowsort label-9853
SELECT 60 DIV col0 FROM tab2
----
0
0
8
skipif mysql # not compatible
query I rowsort label-9853
SELECT 60 / col0 FROM tab2
----
0
0
8
query I rowsort
SELECT - - 3 - col1 * cor0.col0 * + 15 FROM tab2 AS cor0
----
-20142
-3252
-69027
query I rowsort
SELECT ALL - col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + ( + col0 ) - + 68 FROM tab0 AS cor0
----
-33
-44
21
query I rowsort
SELECT DISTINCT + + col0 * col1 + - 29 * - 83 AS col0 FROM tab2 AS cor0
----
2624
3750
7009
query I rowsort
SELECT col1 * col0 + - col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT ALL ( - col1 ) * - col2 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col1 + - col0 * + col2 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT col0 * - 12 AS col2 FROM tab1
----
-36
-768
-960
query I rowsort
SELECT ALL 76 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT ALL cor0.col2 * + col0 + 11 * cor0.col2 + + col1 FROM tab1 AS cor0
----
4285
782
8749
query I rowsort
SELECT - 92 * - col1 FROM tab0 cor0
----
7912
8372
8924
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) FROM tab1
----
3
64
80
query I rowsort
SELECT 42 * - cor1.col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 81508ab2785c9c0026adcfb19cd34af8
query I rowsort
SELECT ALL ( - 83 ) * col2 * - 2 FROM tab0
----
13612
166
5478
onlyif mysql # use DIV operator for integer division
query I rowsort label-9868
SELECT ALL 92 + tab2.col0 DIV - 24 AS col2 FROM tab2
----
89
89
92
skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL 92 + tab2.col0 / - 24 AS col2 FROM tab2
----
89
89
92
query I rowsort
SELECT col1 * col2 + ( col1 ) FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL - + col2 + col2 * + 61 * col2 FROM tab1 AS cor0
----
177822
198132
562080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 + col0 col1 FROM tab2 AS cor0
----
164
165
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9872
SELECT DISTINCT + col2 DIV col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT + col2 / col1 AS col1 FROM tab0
----
0
query I rowsort
SELECT ALL col0 + - ( col2 + col0 ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - col2 * 29 * ( - col0 * - col1 ) + col0 AS col1 FROM tab2
----
-1479907
-169904
-3469830
query I rowsort
SELECT + col0 + col0 * + col0 FROM tab2
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-9876
SELECT DISTINCT + col0 DIV CAST( - col2 AS SIGNED ) + cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3360
8098
skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT + col0 / CAST ( - col2 AS INTEGER ) + cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3360
8098
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * ( 4 ) col1 FROM tab1 AS cor0
----
12
256
320
query I rowsort
SELECT ALL col0 * + ( - 95 ) FROM tab1
----
-285
-6080
-7600
query I rowsort
SELECT DISTINCT - - col2 - 91 FROM tab2 AS cor0
----
-53
-64
-65
query I rowsort
SELECT - - ( - cor0.col2 ) + + col2 * - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT - col2 * - 41 * + col1 AS col2 FROM tab2 AS cor0
----
26486
34317
62894
query I rowsort
SELECT DISTINCT - - col0 * 16 + col1 * col0 AS col2 FROM tab0 AS cor0
----
2448
3955
9523
query I rowsort
SELECT ALL + 55 AS col0 FROM tab1
----
55
55
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9884
SELECT ALL + 78 DIV + 48 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL + 78 / + 48 AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9885
SELECT DISTINCT + + col1 DIV cor0.col1 + + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT + + col1 / cor0.col1 + + col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT - col0 + 42 * + col2 FROM tab1 AS cor0
----
2265
2330
3952
query I rowsort
SELECT DISTINCT ( 59 ) AS col1 FROM tab0 AS cor0
----
59
query I rowsort
SELECT - 52 * - ( + col1 ) AS col0 FROM tab0 AS cor0
----
4472
4732
5044
query I rowsort
SELECT DISTINCT col0 + col2 + col0 AS col2 FROM tab1 AS cor0
----
185
256
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9890
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col1 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
22831
271518
6727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9892
SELECT ( + ( + col1 ) ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9892
SELECT ( + ( + col1 ) ) * CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 24 * - 20 FROM tab2 AS cor0
----
-480
-480
-480
query I rowsort
SELECT - - col2 * 12 AS col2 FROM tab2 AS cor0
----
312
324
456
query I rowsort
SELECT ALL col1 * - col2 * col1 + col0 AS col0 FROM tab0 AS cor0
----
-244044
-678953
-9374
query I rowsort
SELECT ALL - col0 * col0 + + col2 AS col1 FROM tab2 cor0
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
24
35
89
query I rowsort
SELECT - col0 + - col2 + col1 * col2 FROM tab2 AS cor0
----
1430
529
803
query I rowsort
SELECT 98 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT - + 10 * 66 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3f6b6214a88ff036f83f4f6f7ac1f492
query I rowsort
SELECT ALL - col0 + + 93 AS col2 FROM tab2
----
14
15
86
query I rowsort
SELECT ALL + col0 * col0 + col2 AS col2 FROM tab2
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * ( + 54 ) col2 FROM tab2
----
378
4212
4266
query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 AS col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to f8894e3f33962cda5901e1c2ce65d5b0
query I rowsort
SELECT - cor0.col0 + col0 * + col2 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT 35 * - cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f73b85f2c8774819f32f53aca466f97e
query I rowsort
SELECT ALL + col2 + 50 FROM tab0
----
132
51
83
query I rowsort
SELECT ALL col2 + ( 67 * - col1 + - col2 ) FROM tab2
----
-1139
-2077
-3953
query I rowsort
SELECT ALL ( - col2 * col2 ) AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1408
-1410
-698
query I rowsort
SELECT col0 * + col0 - - ( + col0 + col1 ) AS col2 FROM tab2 AS cor0
----
6221
6337
87
query I rowsort
SELECT + ( + tab2.col0 ) * 13 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 5f7729099a7a1ec77ed9570d8cdd3d45
query I rowsort
SELECT DISTINCT - 62 * col2 * + col1 AS col0 FROM tab2
----
-40052
-51894
-95108
query I rowsort
SELECT + col1 * + cor0.col2 - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-4550
-5595
788
query I rowsort
SELECT - 39 + + col1 FROM tab1 AS cor0
----
-13
-26
-29
query I rowsort
SELECT 45 * + col2 - ( + col1 ) FROM tab1 AS cor0
----
2404
2555
4307
query I rowsort
SELECT - 73 - col1 FROM tab0 AS cor0
----
-159
-164
-170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col1 col1 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT col0 - - col0 AS col1 FROM tab0
----
178
48
70
query I rowsort
SELECT - tab1.col1 * + col2 - - tab1.col0 * - col2 * + col0 AS col0 FROM tab1
----
-1890
-234042
-615648
query I rowsort
SELECT - col0 * + col0 + + ( 35 ) + + col1 AS col0 FROM tab0
----
-1093
-455
-7795
query I rowsort
SELECT ALL - col2 * cor0.col0 * - 57 - - col0 AS col2 FROM tab0 AS cor0
----
2030
416075
45168
query I rowsort
SELECT ALL - 10 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9924
SELECT DISTINCT + 32 - col2 DIV col1 FROM tab1 AS cor0
----
25
27
30
skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT + 32 - col2 / col1 FROM tab1 AS cor0
----
25
27
30
query I rowsort
SELECT DISTINCT col2 * 80 + 7 FROM tab0 cor0
----
2647
6567
87
query I rowsort
SELECT col2 * + ( - col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT + + col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - col1 + - col0 * + 34 + + col1 * cor0.col2 * col0 FROM tab1 AS cor0
----
34294
4084
97107
query I rowsort
SELECT + cor0.col0 * + 87 + + col1 AS col0 FROM tab0 AS cor0
----
2174
3142
7834
query I rowsort
SELECT DISTINCT + + col2 * ( 8 ) AS col1 FROM tab2 AS cor0
----
208
216
304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 83 * - cor0.col2 + col0 col2 FROM tab2 AS cor0
----
127400
53697
69478
query I rowsort
SELECT - col1 + - ( - 9 ) AS col1 FROM tab2 cor0
----
-22
-50
-8
query I rowsort
SELECT - col2 + 61 * - 43 AS col2 FROM tab1 AS cor0
----
-2677
-2680
-2719
onlyif mysql # use DIV operator for integer division
query I rowsort label-9934
SELECT ALL - col2 + + col2 + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL - col2 + + col2 + col0 / col1 AS col2 FROM tab2 AS cor0
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9935
SELECT DISTINCT + col1 - - ( col1 ) * col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
2
62
skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT + col1 - - ( col1 ) * col0 / - col1 AS col0 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT + col2 + - 68 AS col2 FROM tab1 AS cor0
----
-11
-14
28
query I rowsort
SELECT ALL + col1 * - 23 FROM tab1 AS cor0
----
-230
-299
-598
query I rowsort
SELECT DISTINCT + col1 + col1 * col1 AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT 60 * col0 FROM tab0
----
1440
2100
5340
onlyif mysql # use DIV operator for integer division
query I rowsort label-9940
SELECT ( col2 + 1 ) DIV 12 FROM tab0
----
0
2
6
skipif mysql # not compatible
query I rowsort label-9940
SELECT ( col2 + 1 ) / 12 FROM tab0
----
0
2
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9941
SELECT - col2 DIV 66 - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-90
skipif mysql # not compatible
query I rowsort label-9941
SELECT - col2 / 66 - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-90
query I rowsort
SELECT ALL + col0 * + col1 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-9943
SELECT - - col2 + col1 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9943
SELECT - - col2 + col1 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + 5 col2 FROM tab0 cor0
----
165
410
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + col2 * - ( col0 ) + col1 * col0 col0 FROM tab0 AS cor0
----
-16944
-641423
2170
onlyif mysql # use DIV operator for integer division
query I rowsort label-9946
SELECT col0 * col2 DIV - col1 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1398
206
658
skipif mysql # not compatible
query I rowsort label-9946
SELECT col0 * col2 / - col1 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1398
206
658
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 * + col2 col0 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - - col2 + - 41 FROM tab2 AS cor0
----
-14
-15
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9949
SELECT + + CAST( NULL AS DECIMAL ) + + 15 * - col1 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9949
SELECT + + CAST ( NULL AS REAL ) + + 15 * - col1 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 85 * - 20 FROM tab0 AS cor0
----
-1700
-1700
-1700
query I rowsort
SELECT - ( col1 ) + - cor0.col2 * 85 FROM tab2 AS cor0
----
-2269
-2326
-3247
query I rowsort
SELECT DISTINCT - - 92 + - col0 * + col2 AS col1 FROM tab0 cor0
----
-700
-7206
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col2 + - col2 col2 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT - - 41 FROM tab2 AS cor0
----
41
41
41
query I rowsort
SELECT ALL col1 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL + - col0 * + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 67 * + 67 AS col2 FROM tab0 AS cor0
----
4489
4489
4489
query I rowsort
SELECT DISTINCT - 41 + + 84 * - col1 AS col2 FROM tab2 AS cor0
----
-1469
-2645
-4997
query I rowsort
SELECT ALL - 42 * + 82 FROM tab2 AS cor0
----
-3444
-3444
-3444
onlyif mysql # use DIV operator for integer division
query I rowsort label-9960
SELECT DISTINCT + 35 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + 35 / - col0 AS col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT ALL + 1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT - - 84 * + col1 AS col1 FROM tab1 AS cor0
----
1092
2184
840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + col1 * 23 col0 FROM tab0 AS cor0
----
1945
2011
2230
query I rowsort
SELECT 85 + 99 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c59da973957e88f33a1dd3cfd0019fab
query I rowsort
SELECT ALL + + 22 FROM tab0 cor0
----
22
22
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9966
SELECT ALL + CAST( - 64 AS SIGNED ) * + col0 FROM tab0
----
-1536
-2240
-5696
skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL + CAST ( - 64 AS INTEGER ) * + col0 FROM tab0
----
-1536
-2240
-5696
query I rowsort
SELECT + tab1.col1 + + 61 AS col2 FROM tab1
----
71
74
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9968
SELECT - CAST( NULL AS SIGNED ) + - col2 + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9968
SELECT - CAST ( NULL AS INTEGER ) + - col2 + col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9969
SELECT 16 DIV col2 col2 FROM tab0
----
0
0
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9969
SELECT 16 / col2 col2 FROM tab0
----
0
0
16
query I rowsort
SELECT DISTINCT + + ( - ( + cor0.col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * col2 col0 FROM tab2 cor0
----
2366
2457
3458
query I rowsort
SELECT ALL - 92 AS col0 FROM tab1 cor0
----
-92
-92
-92
query I rowsort
SELECT DISTINCT - + col0 + - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT - + ( - col1 ) * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + ( - col0 ) * col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + - col0 * - col1 + + col2 + col0 FROM tab2 cor0
----
1460
251
4706
query I rowsort
SELECT + - ( - col1 ) * col2 - 69 AS col0 FROM tab1 cor0
----
1179
1335
501
query I rowsort
SELECT + cor0.col0 * - cor0.col1 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT ( col0 ) * - col0 * - col1 + 21 AS col2 FROM tab0 cor0
----
118846
49557
720832
query I rowsort
SELECT DISTINCT - - cor0.col0 * + ( - col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 46 * col2 + 89 * - col2 FROM tab2
----
-1118
-1161
-1634
onlyif mysql # use DIV operator for integer division
query I rowsort label-9982
SELECT DISTINCT - - col2 DIV - cor0.col2 + + col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1249
-1405
-571
skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT - - col2 / - cor0.col2 + + col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1249
-1405
-571
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - col0 col1 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - + col0 + + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + - col0 * + col2 - + ( - col2 ) * col2 AS col2 FROM tab0 cor0
----
-34
-574
297
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
43
622
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 + cor0.col1 * - col0 col1 FROM tab0 AS cor0
----
-1987
-3318
-8022
query I rowsort
SELECT ALL - col2 * + cor0.col1 + - col2 + - col2 FROM tab1 AS cor0
----
-1440
-1512
-684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9989
SELECT DISTINCT + - col1 + + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT + - col1 + + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + + cor0.col0 + col2 + ( + col0 ) FROM tab0 AS cor0
----
260
71
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9992
SELECT DISTINCT + col0 + + CAST( NULL AS DECIMAL ) * - cor0.col2 * + col2 AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT + col0 + + CAST ( NULL AS REAL ) * - cor0.col2 * + col2 AS col1 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9993
SELECT DISTINCT - - cor0.col1 + cor0.col1 DIV col0 AS col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT - - cor0.col1 + cor0.col1 / col0 AS col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT ALL - + col2 + ( - 94 ) * col1 AS col1 FROM tab1 AS cor0
----
-1318
-2498
-997
query I rowsort
SELECT ALL - - col2 + + 2 AS col0 FROM tab1 AS cor0
----
56
59
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + col1 * - col2 col1 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT + - col0 * - col2 + col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-9998
SELECT + col1 DIV col2 + - 78 * col1 FROM tab1 AS cor0
----
-1014
-2028
-780
skipif mysql # not compatible
query I rowsort label-9998
SELECT + col1 / col2 + - 78 * col1 FROM tab1 AS cor0
----
-1014
-2028
-780
query I rowsort
SELECT - cor0.col0 * + ( col1 ) + col0 * col1 AS col0 FROM tab1 AS cor0
----
0
0
0