hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
query I rowsort
SELECT ( - col2 ) * col1 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1
SELECT ALL CAST( col2 AS SIGNED ) * + col2 * + col0 AS col2 FROM tab0 AS cor0
----
26136
35
598436
skipif mysql # not compatible
query I rowsort label-1
SELECT ALL CAST ( col2 AS INTEGER ) * + col2 * + col0 AS col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT - + 94 * col2 AS col2 FROM tab1 AS cor0
----
-5076
-5358
-9024
query I rowsort
SELECT - ( + 43 ) FROM tab0 AS cor0
----
-43
-43
-43
onlyif mysql # use DIV operator for integer division
query I rowsort label-4
SELECT ALL 57 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4
SELECT ALL 57 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5
SELECT + ( + col1 + col1 ) DIV ( - col0 ) FROM tab2
----
-1
-8
0
skipif mysql # not compatible
query I rowsort label-5
SELECT + ( + col1 + col1 ) / ( - col0 ) FROM tab2
----
-1
-8
0
query I rowsort
SELECT ALL + col1 * col1 + col2 FROM tab1 cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-7
SELECT - + 0 DIV - 2 - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7
SELECT - + 0 / - 2 - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col0 * + 43 + - col0 * ( 16 ) FROM tab1 AS cor0
----
1728
2160
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col0 FROM tab0 cor0
----
9
query I rowsort
SELECT ALL - cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - 91 * 87 * + col0 FROM tab2 cor0
----
-55419
-617526
-625443
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - cor0.col0 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - - 85 * + col0 * col2 AS col2 FROM tab2 AS cor0
----
16065
172380
255170
query I rowsort
SELECT DISTINCT - col2 + + col1 * + col2 * + col0 FROM tab0 cor0
----
3394
664036
68079
query I rowsort
SELECT 85 + - col1 * col1 FROM tab1 AS cor0
----
-15
-591
-84
query I rowsort
SELECT ALL col2 + cor0.col0 * + col1 * ( - 39 * + col2 ) AS col1 FROM tab0 AS cor0
----
-132404
-25900520
-2656335
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( col0 ) col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - + 62 AS col2 FROM tab0 cor0
----
-62
-62
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-19
SELECT ALL CAST( NULL AS SIGNED ) - 0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-19
SELECT ALL CAST ( NULL AS INTEGER ) - 0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col0 + - col1 + - ( + col2 ) * 90 * 26 AS col0 FROM tab0 AS cor0
----
-199892
-3662
-77882
query I rowsort
SELECT - - col0 + col0 * col1 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-22
SELECT CAST( NULL AS SIGNED ) * 72 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-22
SELECT CAST ( NULL AS INTEGER ) * 72 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-23
SELECT + + col1 * + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-23
SELECT + + col1 * + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-24
SELECT + col0 DIV ( - 96 ) FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-24
SELECT + col0 / ( - 96 ) FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + - 26 FROM tab2 AS cor0
----
-104
-105
-33
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-27
SELECT DISTINCT + col0 DIV + col1 col2 FROM tab2 cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT + col0 / + col1 col2 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT col0 * ( - col1 + col0 ) AS col0 FROM tab1 AS cor0
----
-69
3456
5360
query I rowsort
SELECT ALL - cor0.col2 + + 38 FROM tab2 AS cor0
----
0
11
12
query I rowsort
SELECT + col0 * col2 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT + tab2.col2 * + col1 AS col2 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col2 FROM tab2
----
-28
-28
-28
query I rowsort
SELECT col0 + col2 * - 43 AS col1 FROM tab0 AS cor0
----
-1395
-3437
-8
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 42ae2eaa7bed53d316a0590d597db470
query I rowsort
SELECT ( 3 ) AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab0, tab1, tab0 cor0
----
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-37
SELECT DISTINCT + tab2.col2 * col1 DIV + 45 AS col2 FROM tab2
----
14
18
34
skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT + tab2.col2 * col1 / + 45 AS col2 FROM tab2
----
14
18
34
query I rowsort
SELECT DISTINCT + cor0.col0 + - ( ( col2 ) ) * col1 AS col1 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL + col2 + + 82 FROM tab2 AS cor0
----
108
109
120
onlyif mysql # use DIV operator for integer division
query I rowsort label-40
SELECT DISTINCT - col2 * - 94 + col2 DIV + col2 FROM tab0 AS cor0
----
3103
7709
95
skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT - col2 * - 94 + col2 / + col2 FROM tab0 AS cor0
----
3103
7709
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-41
SELECT ALL - col0 DIV + 75 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-41
SELECT ALL - col0 / + 75 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-42
SELECT col2 - + col2 DIV - 59 AS col1 FROM tab0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-42
SELECT col2 - + col2 / - 59 AS col1 FROM tab0
----
1
33
83
query I rowsort
SELECT + tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-44
SELECT DISTINCT - col1 * col1 DIV col1 AS col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT - col1 * col1 / col1 AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT tab1.col0 + ( + 48 ) + tab1.col0 * - col0 AS col2 FROM tab1
----
-3984
-6272
42
query I rowsort
SELECT + col0 + + 49 - tab1.col1 AS col1 FROM tab1
----
103
116
26
query I rowsort
SELECT ALL + col1 + - col1 - col2 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + ( - cor0.col0 ) * - cor0.col2 col0 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-49
SELECT DISTINCT - col0 DIV - 36 col1 FROM tab1 cor0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT - col0 / - 36 col1 FROM tab1 cor0
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-50
SELECT col2 DIV cor0.col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-50
SELECT col2 / cor0.col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL col1 * col1 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1690
1733
4157
query I rowsort
SELECT - col2 + cor0.col0 * + col0 * + col0 FROM tab1 AS cor0
----
-27
262087
511904
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-53
SELECT col0 * - CAST( NULL AS SIGNED ) - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-53
SELECT col0 * - CAST ( NULL AS INTEGER ) - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-54
SELECT + + col1 * 4 + + col0 * col0 DIV - col1 AS col2 FROM tab1 cor0
----
-369
-440
104
skipif mysql # not compatible
query I rowsort label-54
SELECT + + col1 * 4 + + col0 * col0 / - col1 AS col2 FROM tab1 cor0
----
-369
-440
104
query I rowsort
SELECT col1 * 63 + col2 * col1 FROM tab0 AS cor0
----
13195
6208
8256
query I rowsort
SELECT - ( col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + + col0 + - 53 AS col0 FROM tab1 AS cor0
----
-50
11
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * ( 76 ) col0 FROM tab1, tab0 AS cor0
----
6536
6916
7372
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-59
SELECT + cor0.col1 + col0 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-59
SELECT + cor0.col1 + col0 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 91 + col1 + + col2 FROM tab1 AS cor0
----
158
171
200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-61
SELECT CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-61
SELECT CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col0 * - col0 * 3 FROM tab0 AS cor0
----
-1728
-23763
-3675
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 58 col0 FROM tab0 AS cor0
----
58
58
58
query I rowsort
SELECT DISTINCT + 50 - - col2 FROM tab2 AS cor0
----
76
77
88
query I rowsort
SELECT ALL + 62 AS col2 FROM tab0 AS cor0
----
62
62
62
query I rowsort
SELECT ALL col1 * - col0 + + 21 AS col1 FROM tab0 AS cor0
----
-2043
-3374
-8078
query I rowsort
SELECT DISTINCT + 52 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
52
query I rowsort
SELECT DISTINCT + + col0 * col0 + 52 * - 43 AS col0 FROM tab0 AS cor0
----
-1011
-1660
5685
onlyif mysql # use DIV operator for integer division
query I rowsort label-69
SELECT ALL + ( + col1 ) DIV 88 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-69
SELECT ALL + ( + col1 ) / 88 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab2 cor0
----
67
query I rowsort
SELECT ALL + col0 + + col2 * 67 * col1 FROM tab1 AS cor0
----
38254
83696
94071
query I rowsort
SELECT ALL - 55 + col2 FROM tab2 AS cor0
----
-17
-28
-29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-73
SELECT DISTINCT + col0 * col2 + CAST( NULL AS SIGNED ) * col0 - - col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT + col0 * col2 + CAST ( NULL AS INTEGER ) * col0 - - col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 51 FROM tab0 cor0
----
51
51
51
query I rowsort
SELECT DISTINCT + 71 * - col2 + - cor0.col1 FROM tab0 AS cor0
----
-168
-2429
-5913
onlyif mysql # use DIV operator for integer division
query I rowsort label-76
SELECT DISTINCT - col2 * - col2 - 63 DIV + col0 FROM tab2 AS cor0
----
1444
676
720
skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT - col2 * - col2 - 63 / + col0 FROM tab2 AS cor0
----
1444
676
720
query I rowsort
SELECT ALL cor0.col2 + + col1 FROM tab2 cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-78
SELECT ALL col2 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-78
SELECT ALL col2 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-79
SELECT DISTINCT + col0 DIV 45 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT + col0 / 45 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL + col0 * 24 - col2 FROM tab1 AS cor0
----
1479
18
1824
query I rowsort
SELECT DISTINCT - col2 + 34 - + col1 AS col0 FROM tab0 AS cor0
----
-139
-64
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * - col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - 84 + cor0.col1 * col2 FROM tab1 cor0
----
1164
1320
486
query I rowsort
SELECT ( + 39 ) * col1 FROM tab2 AS cor0
----
1209
2301
663
query I rowsort
SELECT ALL + col1 * - 33 + col0 FROM tab0 cor0
----
-2814
-2914
-3166
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 85 * + cor0.col0 col0 FROM tab1 AS cor0
----
201
5383
6704
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 76 col2 FROM tab0 AS cor0
----
2508
6232
76
query I rowsort
SELECT - cor0.col0 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT - + cor0.col1 * 70 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1836
-3007
-5664
query I rowsort
SELECT ALL + + col2 * - 35 FROM tab2 cor0
----
-1330
-910
-945
query I rowsort
SELECT - 19 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-93
SELECT + + 14 DIV - col1 + col2 DIV - col0 + + col0 * + col1 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
36479
4194
99838
skipif mysql # not compatible
query I rowsort label-93
SELECT + + 14 / - col1 + col2 / - col0 + + col0 * + col1 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
36479
4194
99838
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT ALL - 9 * tab1.col2 + + col2 FROM tab1
----
-432
-456
-768
query I rowsort
SELECT ALL + 74 * + col0 FROM tab2 AS cor0
----
518
5772
5846
onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT ALL - col2 DIV - col1 AS col2 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - col2 / - col1 AS col2 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT tab2.col0 * + col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - tab0.col1 + - col2 + col2 AS col2 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-100
SELECT + tab2.col0 * ( - col2 ) * - ( - 25 ) + col2 + 45 DIV 9 AS col1 FROM tab2
----
-4693
-50669
-75007
skipif mysql # not compatible
query I rowsort label-100
SELECT + tab2.col0 * ( - col2 ) * - ( - 25 ) + col2 + 45 / 9 AS col1 FROM tab2
----
-4693
-50669
-75007
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 + - 96 col2 FROM tab2
----
-167
-167
-167
query I rowsort
SELECT col1 + - 43 AS col2 FROM tab1
----
-17
-30
-33
query I rowsort
SELECT DISTINCT - ( col1 ) + - col2 AS col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT col2 * + 33 AS col0 FROM tab0 AS cor0
----
1089
2706
33
query I rowsort
SELECT DISTINCT + col1 - + ( col1 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT - - cor0.col2 * + 44 AS col0 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT - + col1 - 18 FROM tab0 AS cor0
----
-104
-109
-115
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 28 col0 FROM tab1 AS cor0
----
-280
-364
-728
query I rowsort
SELECT col1 * + 69 + ( cor0.col2 ) * 48 FROM tab1 AS cor0
----
3426
4386
5505
query I rowsort
SELECT ALL col0 * ( col2 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 * - 56 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT DISTINCT - col0 + 97 FROM tab1 AS cor0
----
17
33
94
query I rowsort
SELECT - col1 * col0 - - 77 FROM tab2 AS cor0
----
-1266
-140
-4525
query I rowsort
SELECT - 27 FROM tab0, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT + col0 + - tab1.col1 + col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL + + 0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT 69 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT + col0 * + col0 + + cor0.col1 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-119
SELECT col0 * col1 + + tab1.col1 DIV - col2 + 47 FROM tab1
----
1087
125
687
skipif mysql # not compatible
query I rowsort label-119
SELECT col0 * col1 + + tab1.col1 / - col2 + 47 FROM tab1
----
1087
125
687
query I rowsort
SELECT ALL + 66 FROM tab0, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT + 99 * col0 FROM tab2 AS cor0
----
693
7722
7821
query I rowsort
SELECT DISTINCT + col0 * 30 * + 14 FROM tab1 AS cor0
----
1260
26880
33600
query I rowsort
SELECT cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-55
query I rowsort
SELECT DISTINCT + col0 + 12 + 64 AS col0 FROM tab0
----
100
111
165
query I rowsort
SELECT 87 + + tab2.col2 FROM tab2
----
113
114
125
query I rowsort
SELECT DISTINCT - - 42 * + col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1519
2057
7080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col2 ) col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 36 + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1004
42
604
query I rowsort
SELECT + col2 + - 96 AS col2 FROM tab0
----
-14
-63
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab1.col0 col0 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + 33 + col0 FROM tab2 AS cor0
----
111
112
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col0 FROM tab2 cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - cor0.col0 + col1 col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL - 38 * col0 AS col1 FROM tab1 AS cor0
----
-114
-2432
-3040
query I rowsort
SELECT DISTINCT - col2 * + col1 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + tab1.col0 + 29 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f7ec0a15261bc91e76365477e4c3822d
query I rowsort
SELECT - 9 FROM tab1
----
-9
-9
-9
query I rowsort
SELECT ALL 97 AS col1 FROM tab2
----
97
97
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col2 FROM tab0
----
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-142
SELECT ALL + 6 + - cor0.col1 DIV ( col1 ) FROM tab2 AS cor0
----
5
5
5
skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + 6 + - cor0.col1 / ( col1 ) FROM tab2 AS cor0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT - cor0.col1 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-145
SELECT + - col0 DIV 34 AS col1 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-145
SELECT + - col0 / 34 AS col1 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT + - cor0.col1 + 2 FROM tab2 AS cor0
----
-15
-29
-57
query I rowsort
SELECT ALL - + col0 + 10 * - col2 FROM tab2 AS cor0
----
-277
-338
-459
query I rowsort
SELECT DISTINCT col1 - 31 FROM tab0 AS cor0
----
55
60
66
query I rowsort
SELECT DISTINCT + - 75 - - col0 * col2 AS col0 FROM tab0 cor0
----
-40
717
7223
query I rowsort
SELECT + ( - col1 ) * col0 FROM tab1
----
-1040
-640
-78
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
query I rowsort
SELECT col1 * 6 + col1 AS col0 FROM tab1 cor0
----
182
70
91
query I rowsort
SELECT + + 28 * col2 AS col0 FROM tab2 AS cor0
----
1064
728
756
query I rowsort
SELECT - ( - col0 ) * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + - col1 + 72 * + col0 FROM tab1 AS cor0
----
190
4598
5747
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-156
SELECT ALL - CAST( 11 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-33
-704
-880
skipif mysql # not compatible
query I rowsort label-156
SELECT ALL - CAST ( 11 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-33
-704
-880
query I rowsort
SELECT - col0 * - ( - col1 ) + ( - ( + col0 ) * 82 + + col2 ) FROM tab2 AS cor0
----
-10972
-764
-7783
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + col0 * + 93 + col1 * + col0 FROM tab1 AS cor0
----
17696
3273
9841
query I rowsort
SELECT ALL - - 85 * col2 FROM tab2 AS cor0
----
2210
2295
3230
query I rowsort
SELECT ALL + col2 * - 73 - cor0.col0 FROM tab2 AS cor0
----
-1976
-1978
-2853
query I rowsort
SELECT + - ( col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - col1 * - 64 AS col2 FROM tab2 AS cor0
----
1088
1984
3776
onlyif mysql # use DIV operator for integer division
query I rowsort label-163
SELECT + col0 DIV col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
293
3482
961
skipif mysql # not compatible
query I rowsort label-163
SELECT + col0 / col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
293
3482
961
query I rowsort
SELECT DISTINCT + col2 + - 61 FROM tab1 AS cor0
----
-4
-7
35
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b
query I rowsort
SELECT + col0 * + col0 + col2 * + col0 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT + 73 AS col0 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT col1 * - cor0.col1 * - col1 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT DISTINCT + 20 * cor0.col1 AS col1 FROM tab1 AS cor0
----
200
260
520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col0 col1 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT + - col0 + col2 * - col2 FROM tab1 cor0
----
-2919
-3313
-9296
query I rowsort
SELECT + 53 FROM tab1 cor0
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-173
SELECT - - col2 DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-173
SELECT - - col2 / - col1 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-174
SELECT - 87 DIV col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-174
SELECT - 87 / col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL tab1.col1 * tab1.col2 FROM tab1
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-176
SELECT + CAST( + ( + col0 ) AS SIGNED ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-176
SELECT + CAST ( + ( + col0 ) AS INTEGER ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT 3 + col0 FROM tab0
----
27
38
92
query I rowsort
SELECT - + col0 * col1 * - col1 + - cor0.col0 FROM tab0 AS cor0
----
177480
329280
736920
query I rowsort
SELECT col2 + col1 * col0 AS col0 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 66 * + col1 + + 17 * col2 col2 FROM tab0 AS cor0
----
-4612
-5115
-6385
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-182
SELECT col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-182
SELECT col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT tab0.col2 * - col0 - - tab0.col0 * col0 AS col2 FROM tab0
----
-216
1190
623
query I rowsort
SELECT + - col0 + + 6 FROM tab2 AS cor0
----
-1
-72
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-185
SELECT DISTINCT col0 + + col0 DIV ( - col2 ) FROM tab1
----
3
63
80
skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT col0 + + col0 / ( - col2 ) FROM tab1
----
3
63
80
query I rowsort
SELECT DISTINCT col0 + col2 * 67 FROM tab0 AS cor0
----
102
2235
5583
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( - 29 ) + col1 * + col1 col0 FROM tab1 AS cor0
----
-190
-208
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-188
SELECT - col1 * ( col1 + cor0.col0 ) DIV - CAST( + 79 AS SIGNED ) FROM tab0 AS cor0
----
119
162
207
skipif mysql # not compatible
query I rowsort label-188
SELECT - col1 * ( col1 + cor0.col0 ) / - CAST ( + 79 AS INTEGER ) FROM tab0 AS cor0
----
119
162
207
onlyif mysql # use DIV operator for integer division
query I rowsort label-189
SELECT + col1 + + col2 DIV - 14 FROM tab2 AS cor0
----
15
30
58
skipif mysql # not compatible
query I rowsort label-189
SELECT + col1 + + col2 / - 14 FROM tab2 AS cor0
----
15
30
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-190
SELECT col2 + col2 DIV - col2 AS col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-190
SELECT col2 + col2 / - col2 AS col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( col1 AS REAL ) * col0 * - tab0.col2 AS col1 FROM tab0
----
-3360
-664029
-68088
onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT ALL + col0 + 77 DIV + col1 FROM tab2 AS cor0
----
79
83
9
skipif mysql # not compatible
query I rowsort label-192
SELECT ALL + col0 + 77 / + col1 FROM tab2 AS cor0
----
79
83
9
query I rowsort
SELECT DISTINCT - cor0.col0 * - 28 AS col0 FROM tab2 AS cor0
----
196
2184
2212
query I rowsort
SELECT DISTINCT + col0 * + 81 * - cor0.col1 - col1 FROM tab0 AS cor0
----
-167270
-275092
-656110
query I rowsort
SELECT DISTINCT + col1 * - col0 + - col0 * - col2 AS col0 FROM tab2 cor0
----
-2574
-28
1659
query I rowsort
SELECT DISTINCT - col0 * 62 FROM tab2 AS cor0
----
-434
-4836
-4898
query I rowsort
SELECT + cor0.col1 * - col1 + - col0 AS col0 FROM tab1 cor0
----
-164
-249
-679
onlyif mysql # use DIV operator for integer division
query I rowsort label-198
SELECT - + col1 - + 6 DIV col2 FROM tab0 AS cor0
----
-103
-86
-91
skipif mysql # not compatible
query I rowsort label-198
SELECT - + col1 - + 6 / col2 FROM tab0 AS cor0
----
-103
-86
-91
query I rowsort
SELECT ALL - 6 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252
query I rowsort
SELECT ALL + 89 + + col2 AS col0 FROM tab2 AS cor0
----
115
116
127
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-201
SELECT ALL CAST( NULL AS DECIMAL ) * - col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-201
SELECT ALL CAST ( NULL AS REAL ) * - col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT ALL - 85 DIV col1 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - 85 / col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + ( col0 ) + col2 * col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + col0 + + ( + col0 * col1 ) FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT - - ( - 22 ) * + cor0.col2 FROM tab0 cor0
----
-1804
-22
-726
query I rowsort
SELECT 95 + col1 AS col0 FROM tab0 AS cor0
----
181
186
192
query I rowsort
SELECT ALL ( col0 ) + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT - cor0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-210
SELECT + 3 * + ( - col0 ) + CAST( cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-175
-220
10
skipif mysql # not compatible
query I rowsort label-210
SELECT + 3 * + ( - col0 ) + CAST ( cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-175
-220
10
query I rowsort
SELECT DISTINCT col1 + col1 * - col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL col1 + - col0 + col1 AS col2 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT + ( col1 ) * 16 - + cor0.col2 FROM tab1 cor0
----
103
112
362
query I rowsort
SELECT ALL col0 * - col0 + tab2.col1 FROM tab2
----
-18
-6025
-6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT ALL + 44 * col1 - ( col0 + - col2 ) AS col2 FROM tab2 AS cor0
----
1384
2544
707
query I rowsort
SELECT DISTINCT + + 32 AS col1 FROM tab1 AS cor0
----
32
query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col2 + + ( - col2 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + + col1 + ( + 78 ) AS col1 FROM tab2 AS cor0
----
109
137
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 37 col1 FROM tab0 cor0
----
-1295
-3293
-888
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-222
SELECT ALL + + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-222
SELECT ALL + + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-224
SELECT DISTINCT - col0 * cor0.col1 + col1 + cor0.col1 DIV - CAST( 11 AS SIGNED ) FROM tab2 AS cor0
----
-1327
-188
-4548
skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT - col0 * cor0.col1 + col1 + cor0.col1 / - CAST ( 11 AS INTEGER ) FROM tab2 AS cor0
----
-1327
-188
-4548
query I rowsort
SELECT ALL col0 + + 50 AS col0 FROM tab2 AS cor0
----
128
129
57
query I rowsort
SELECT ALL + col0 + 64 * + col1 FROM tab2 AS cor0
----
1167
1991
3854
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 + col1 col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab1, tab0, tab2 AS cor0
----
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-229
SELECT - col0 + col1 DIV col0 AS col2 FROM tab0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-229
SELECT - col0 + col1 / col0 AS col2 FROM tab0
----
-21
-33
-88
query I rowsort
SELECT DISTINCT - - 92 + + col1 * + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-177412
-329223
-736917
query I rowsort
SELECT DISTINCT - + 21 + + col0 AS col2 FROM tab0 AS cor0
----
14
3
68
query I rowsort
SELECT 12 * col2 + - col2 AS col0 FROM tab2 AS cor0
----
286
297
418
onlyif mysql # use DIV operator for integer division
query I rowsort label-233
SELECT ALL + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + col2 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * cor0.col2 col0 FROM tab1 cor0
----
-2862
-3192
-9120
query I rowsort
SELECT + col0 - + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + + ( col0 + + col2 ) FROM tab1 cor0
----
111
163
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * ( col1 * col2 ) + + 11 * - ( col0 * ( col2 ) + + cor0.col1 ) col0 FROM tab0 AS cor0
----
-10861
-253726
-760321
query I rowsort
SELECT - + col2 * col0 - col1 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL col2 + ( - 1 ) AS col1 FROM tab1 cor0
----
53
56
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-240
SELECT ALL CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-240
SELECT ALL CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT cor1.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col0 col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT col2 * - col2 * - col2 FROM tab0
----
1
35937
551368
query I rowsort
SELECT + ( + ( col0 ) ) * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-245
SELECT - col1 + + col0 DIV + col1 AS col0 FROM tab1
----
-26
-4
-7
skipif mysql # not compatible
query I rowsort label-245
SELECT - col1 + + col0 / + col1 AS col0 FROM tab1
----
-26
-4
-7
query I rowsort
SELECT DISTINCT col0 + cor0.col2 + + col2 AS col1 FROM tab1 cor0
----
111
178
272
onlyif mysql # use DIV operator for integer division
query I rowsort label-247
SELECT - col0 * + col0 + + col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1225
-577
-7921
skipif mysql # not compatible
query I rowsort label-247
SELECT - col0 * + col0 + + col2 / - col0 AS col2 FROM tab0 AS cor0
----
-1225
-577
-7921
query I rowsort
SELECT + - cor0.col1 + 50 FROM tab2 AS cor0
----
-9
19
33
query I rowsort
SELECT + cor0.col0 * tab1.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 8d0df4d65adbb98f9e0075a02971add2
query I rowsort
SELECT DISTINCT - 71 * col0 * tab2.col2 FROM tab2
----
-13419
-143988
-213142
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col0 FROM tab1
----
-9
query I rowsort
SELECT DISTINCT 75 * + 37 AS col2 FROM tab2
----
2775
onlyif mysql # use DIV operator for integer division
query I rowsort label-253
SELECT tab1.col0 DIV - ( - tab1.col1 ) FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 2204787d80a2bf9d7b4b51f4221c4a60
skipif mysql # not compatible
query I rowsort label-253
SELECT tab1.col0 / - ( - tab1.col1 ) FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 2204787d80a2bf9d7b4b51f4221c4a60
query I rowsort
SELECT 69 * + col1 + col0 * col0 * + col1 AS col2 FROM tab0
----
125518
55470
727090
query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
66
query I rowsort
SELECT - 93 FROM tab0, tab2 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT DISTINCT 71 * col2 AS col1 FROM tab2 cor0
----
1846
1917
2698
query I rowsort
SELECT ALL - 65 * cor1.col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 64acb1f302f5ec832bd599a1ec1b169c
onlyif mysql # use DIV operator for integer division
query I rowsort label-259
SELECT ALL 50 DIV 50 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
skipif mysql # not compatible
query I rowsort label-259
SELECT ALL 50 / 50 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT DISTINCT tab2.col0 * 35 AS col0 FROM tab2, tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT ALL - cor1.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT - 88 + col0 FROM tab2 AS cor0
----
-10
-81
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col0 FROM tab0
----
34
34
34
query I rowsort
SELECT - tab1.col2 * 8 * col1 FROM tab1
----
-11232
-4560
-9984
query I rowsort
SELECT DISTINCT + col0 + 78 * - col2 AS col2 FROM tab1
----
-4209
-4382
-7408
query I rowsort
SELECT - ( - 68 ) AS col1 FROM tab1 AS cor0
----
68
68
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-267
SELECT 69 DIV - cor0.col2 + col1 FROM tab1 AS cor0
----
13
25
9
skipif mysql # not compatible
query I rowsort label-267
SELECT 69 / - cor0.col2 + col1 FROM tab1 AS cor0
----
13
25
9
query I rowsort
SELECT - + 73 - col0 AS col1 FROM tab0 cor0
----
-108
-162
-97
query I rowsort
SELECT col2 + 10 FROM tab0 AS cor0
----
11
43
92
query I rowsort
SELECT + 47 + + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 1ea78ec4befe62254397cde19f57a80f
onlyif mysql # use DIV operator for integer division
query I rowsort label-271
SELECT - col2 DIV - ( col0 ) FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-271
SELECT - col2 / - ( col0 ) FROM tab2
----
0
0
3
query I rowsort
SELECT ALL - tab2.col0 * cor0.col0 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 8b77563065d147fee936d54957ae5d28
query I rowsort
SELECT + ( 48 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-274
SELECT - tab1.col0 DIV + col1 AS col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-274
SELECT - tab1.col0 / + col1 AS col1 FROM tab1
----
-6
-6
0
query I rowsort
SELECT 49 * 48 FROM tab1
----
2352
2352
2352
query I rowsort
SELECT + + 48 * - cor0.col2 FROM tab2 AS cor0
----
-1248
-1296
-1824
onlyif mysql # use DIV operator for integer division
query I rowsort label-277
SELECT + cor0.col1 * col2 + + col2 * col1 + - col1 * - col1 DIV + col1 FROM tab2 AS cor0
----
1309
1705
3127
skipif mysql # not compatible
query I rowsort label-277
SELECT + cor0.col1 * col2 + + col2 * col1 + - col1 * - col1 / + col1 FROM tab2 AS cor0
----
1309
1705
3127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 * - col1 col1 FROM tab1 AS cor0
----
1235
2470
950
query I rowsort
SELECT - 9 + 66 * - col0 + ( - 66 + col2 ) * col0 * + 44 FROM tab1 AS cor0
----
-1791
-29577
100311
query I rowsort
SELECT + cor0.col2 * + 2 + col2 + - col0 FROM tab1 cor0
----
107
159
208
query I rowsort
SELECT - col0 - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-282
SELECT + - 90 + + col2 DIV - col1 + - cor0.col2 * 23 FROM tab1 AS cor0
----
-1334
-1406
-2305
skipif mysql # not compatible
query I rowsort label-282
SELECT + - 90 + + col2 / - col1 + - cor0.col2 * 23 FROM tab1 AS cor0
----
-1334
-1406
-2305
query I rowsort
SELECT ALL col0 * + col2 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT + col2 * col2 - col2 AS col2 FROM tab0
----
0
1056
6642
onlyif mysql # use DIV operator for integer division
query I rowsort label-285
SELECT + col0 + - col0 DIV col2 FROM tab1
----
3
63
80
skipif mysql # not compatible
query I rowsort label-285
SELECT + col0 + - col0 / col2 FROM tab1
----
3
63
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-286
SELECT ALL col1 DIV - tab2.col0 + + col0 FROM tab2
----
3
78
79
skipif mysql # not compatible
query I rowsort label-286
SELECT ALL col1 / - tab2.col0 + + col0 FROM tab2
----
3
78
79
query I rowsort
SELECT tab0.col1 + - col0 + col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2 * - col0
----
query I rowsort
SELECT ALL col1 * col2 - - col0 AS col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT col1 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= + col1 * - col2
----
query I rowsort
SELECT DISTINCT col1 * + col2 * + col2 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-292
SELECT DISTINCT col0 DIV + col1 + col0 * tab1.col1 * - tab1.col0 AS col1 FROM tab1
----
-234
-40954
-83194
skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT col0 / + col1 + col0 * tab1.col1 * - tab1.col0 AS col1 FROM tab1
----
-234
-40954
-83194
query I rowsort
SELECT DISTINCT col2 * tab2.col1 + col1 FROM tab2
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-294
SELECT ALL + col0 + col0 DIV - col0 AS col0 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-294
SELECT ALL + col0 + col0 / - col0 AS col0 FROM tab0
----
23
34
88
query I rowsort
SELECT ALL col0 + - col1 * col2 * - col0 AS col0 FROM tab1
----
36544
4215
99920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col2 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 WHERE NOT - col0 BETWEEN NULL AND col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-298
SELECT DISTINCT col2 * tab0.col2 - - col0 DIV - col0 AS col0 FROM tab0
----
0
1088
6723
skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT col2 * tab0.col2 - - col0 / - col0 AS col0 FROM tab0
----
0
1088
6723
query I rowsort
SELECT tab1.col0 * tab1.col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT col1 >= ( NULL )
----
query I rowsort
SELECT DISTINCT col1 * - col0 * tab2.col0 + col2 FROM tab2
----
-106059
-1492
-358930
query I rowsort
SELECT DISTINCT - col2 + - tab0.col0 AS col1 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL + tab2.col0 * + col0 + + col2 * - col0 FROM tab2
----
-140
3239
4056
query I rowsort
SELECT col1 - - col1 AS col2 FROM tab1 cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-305
SELECT DISTINCT col1 DIV + col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT col1 / + col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-31
-81
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-306
SELECT col0 DIV cor0.col0 - cor0.col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-306
SELECT col0 / cor0.col0 - cor0.col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT - + col0 + cor0.col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-308
SELECT tab2.col2 DIV + col1 AS col2 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-308
SELECT tab2.col2 / + col1 AS col2 FROM tab2
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-309
SELECT - col0 DIV + col1 AS col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-309
SELECT - col0 / + col1 AS col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT DISTINCT col1 * - col2 - col2 AS col1 FROM tab2 cor0
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-311
SELECT ALL + col1 + + col0 DIV - col1 col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-311
SELECT ALL + col1 + + col0 / - col1 col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col1 FROM tab0 WHERE ( col0 + col1 ) IN ( col2 + col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL = - cor0.col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-314
SELECT col0 + - tab0.col0 DIV tab0.col1 + - col1 FROM tab0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-314
SELECT col0 + - tab0.col0 / tab0.col1 + - col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - col1 * + col2 - col1 AS col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - + col2 + - ( - col0 ) * - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT + - col2 + 62 FROM tab1 AS cor0
----
-34
5
8
query I rowsort
SELECT ALL col2 + + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT col0 + ( + col2 ) AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - col1 + ( col1 ) FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col2 col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT col1 - 77 * 19 FROM tab2 AS cor0
----
-1404
-1432
-1446
query I rowsort
SELECT - + col2 - + col1 * col0 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT col0 * + ( - col0 * col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-233536
-489
-614480
query I rowsort
SELECT ALL + + col2 * - 47 AS col1 FROM tab2 AS cor0
----
-1222
-1269
-1786
query I rowsort
SELECT + - col1 * - col1 - + col2 * col2 FROM tab2 AS cor0
----
-1155
232
2805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + ( + cor0.col2 ) col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL tab2.col0 - + col0 AS col0 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + - ( tab2.col0 ) col2 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT tab0.col1 * 3 FROM tab0
----
258
273
291
query I rowsort
SELECT DISTINCT + col2 * - col1 * - col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + cor0.col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + - col2 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - col1 + 66 AS col2 FROM tab2
----
35
49
7
query I rowsort
SELECT DISTINCT + + cor0.col1 * 74 FROM tab1 AS cor0
----
1924
740
962
onlyif mysql # use DIV operator for integer division
query I rowsort label-336
SELECT DISTINCT col2 DIV col0 + - col1 FROM tab2
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT col2 / col0 + - col1 FROM tab2
----
-17
-28
-59
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - col0 * + col2 IN ( col2 * col2 * + col0 )
----
query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query III rowsort
SELECT * FROM tab2 WHERE NULL <= + col1
----
query I rowsort
SELECT - col2 * - col0 * col1 + + col1 - + col2 FROM tab0
----
3491
664127
68165
query I rowsort
SELECT ALL col2 + + col2 * col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL + col0 + col1 * col1 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT + col2 + - col1 * tab0.col0 AS col0 FROM tab0 WHERE NOT NULL < + col2
----
query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * col1 NOT IN ( col0 + - col2 + - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 + + col1 col2 FROM tab0
----
2
62
62
query I rowsort
SELECT + tab1.col0 * - col0 AS col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT - cor0.col0 * 6 FROM tab0, tab2 AS cor0
----
9 values hashing to 0a14a4a014d05c3add40443ff29b2715
onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT DISTINCT col2 DIV col1 + - col1 AS col1 FROM tab1 AS cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT col2 / col1 + - col1 AS col1 FROM tab1 AS cor0
----
-24
-5
-6
query I rowsort
SELECT ALL + col0 + + col0 + - col1 * col2 FROM tab1
----
-1088
-1398
-442
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 + - 78 col0 FROM tab2
----
1456
568
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-351
SELECT ALL col2 * + col0 + + ( - ( - col2 ) ) DIV 93 AS col0 FROM tab1 AS cor0
----
162
3648
7681
skipif mysql # not compatible
query I rowsort label-351
SELECT ALL col2 * + col0 + + ( - ( - col2 ) ) / 93 AS col0 FROM tab1 AS cor0
----
162
3648
7681
query I rowsort
SELECT ALL ( col1 ) + + 83 * - 38 FROM tab2 AS cor0
----
-3095
-3123
-3137
query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 90 * + col2 AS col1 FROM tab1 cor0
----
-4860
-5130
-8640
query I rowsort
SELECT ALL 88 * - col1 AS col0 FROM tab1 AS cor0
----
-1144
-2288
-880
query I rowsort
SELECT 15 + - 56 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT ALL - + 13 DIV - col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-357
SELECT ALL - + 13 / - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL tab1.col0 * 84 FROM tab1, tab2 AS cor0
----
9 values hashing to 743e9804e2d2b75c29f9d7eca3aa4fd7
query I rowsort
SELECT - - 66 + col1 FROM tab0 AS cor0
----
152
157
163
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2, tab1 cor2
----
3645 values hashing to 07504092eb64a26979c0bde05f7718cb
onlyif mysql # use DIV operator for integer division
query I rowsort label-361
SELECT ALL + col2 * col2 DIV - col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-361
SELECT ALL + col2 * col2 / - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + col1 * + cor0.col0 + - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + col2 * + 77 + col1 FROM tab1 AS cor0
----
4184
4399
7405
query I rowsort
SELECT DISTINCT - col0 + + col1 * + col1 AS col2 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT ALL + + col2 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT - + 44 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-132
-2816
-3520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-368
SELECT - CAST( NULL AS SIGNED ) / 62 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-368
SELECT - CAST ( NULL AS INTEGER ) / 62 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 97 + + col2 AS col0 FROM tab1 AS cor0
----
151
154
193
query I rowsort
SELECT + ( cor0.col0 ) * col2 + 13 * col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
81120
826
84135
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * + col2 * - col0 col2 FROM tab1 AS cor0
----
-12798
-288192
-606720
onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT - col1 DIV ( col0 ) FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-372
SELECT - col1 / ( col0 ) FROM tab0 AS cor0
----
-1
-2
-3
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
query I rowsort
SELECT DISTINCT + col1 * col0 + - tab0.col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT - + 3 + - cor0.col0 FROM tab2 AS cor0
----
-10
-81
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-376
SELECT DISTINCT + col2 DIV + col1 + col2 FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT + col2 / + col1 + col2 FROM tab2
----
26
27
40
query I rowsort
SELECT DISTINCT + col0 + col0 * col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT col1 * - col0 - cor0.col1 AS col0 FROM tab2 cor0
----
-1360
-248
-4661
query I rowsort
SELECT 31 - col2 FROM tab0 AS cor0
----
-2
-51
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 67 + col1 col0 FROM tab2 AS cor0
----
-36
-50
-8
query I rowsort
SELECT - + 46 AS col2 FROM tab1 cor0
----
-46
-46
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 + 8 * + cor0.col2 col0 FROM tab1 AS cor0
----
489
577
944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-383
SELECT ALL + 27 * col0 - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2312
562
848
skipif mysql # not compatible
query I rowsort label-383
SELECT ALL + 27 * col0 - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2312
562
848
query I rowsort
SELECT ALL - cor1.col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT - col2 * - col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + col0 + - 84 AS col2 FROM tab1 cor0
----
-20
-4
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-387
SELECT col1 DIV col1 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-387
SELECT col1 / col1 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + + col0 + 43 FROM tab0 AS cor0
----
132
67
78
query I rowsort
SELECT - col2 + - 95 FROM tab1 AS cor0
----
-149
-152
-191
query I rowsort
SELECT ALL + cor0.col2 * 40 + col0 AS col0 FROM tab0 AS cor0
----
1344
3369
75
query I rowsort
SELECT ALL + col0 * ( - 21 ) AS col2 FROM tab0 AS cor0
----
-1869
-504
-735
onlyif mysql # use DIV operator for integer division
query I rowsort label-392
SELECT ALL + col2 * + ( - cor0.col0 ) DIV col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-392
SELECT ALL + col2 * + ( - cor0.col0 ) / col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col0 + + 15 AS col2 FROM tab1 AS cor0
----
-49
-65
12
query I rowsort
SELECT ALL - col0 - - 28 FROM tab1 cor0
----
-36
-52
25
query I rowsort
SELECT DISTINCT + + col0 + 91 AS col1 FROM tab0 AS cor0
----
115
126
180
query I rowsort
SELECT DISTINCT - - col0 * - ( + cor0.col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL tab1.col0 + col0 * col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL - 90 + col2 AS col0 FROM tab0
----
-57
-8
-89
query I rowsort
SELECT DISTINCT - ( col2 ) + ( - tab1.col2 ) * - col0 FROM tab1
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT cor0.col2 * + 78 - - cor0.col0 DIV + col0 AS col0 FROM tab0 cor0
----
2575
6397
79
skipif mysql # not compatible
query I rowsort label-400
SELECT cor0.col2 * + 78 - - cor0.col0 / + col0 AS col0 FROM tab0 cor0
----
2575
6397
79
query I rowsort
SELECT col1 * + 29 - col1 FROM tab2
----
1652
476
868
skipif mysql # not compatible
query I rowsort
SELECT - col2 + CAST ( col0 AS REAL ) FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT ALL col2 * + 68 AS col0 FROM tab2 AS cor0
----
1768
1836
2584
query I rowsort
SELECT DISTINCT 2 + col0 * - col2 FROM tab0 AS cor0
----
-33
-7296
-790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-405
SELECT - CAST( col2 AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-405
SELECT - CAST ( col2 AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + 34 + + 79 * + col2 FROM tab2 AS cor0
----
2088
2167
3036
query I rowsort
SELECT + 88 + + col1 AS col0 FROM tab0 AS cor0
----
174
179
185
query I rowsort
SELECT ALL + + col1 + + ( col2 ) + - col0 AS col1 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT DISTINCT - + ( + col2 ) + cor0.col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT + col1 * - cor0.col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL col0 * - 60 FROM tab2
----
-420
-4680
-4740
query I rowsort
SELECT - 10 * 61 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a9b146497a08576800548f2b612da0d
query I rowsort
SELECT + + col0 * - col0 * + cor0.col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT + + ( col0 ) * + 52 FROM tab1 AS cor0
----
156
3328
4160
query I rowsort
SELECT - ( col0 ) + ( col1 ) * col1 AS col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT - - col1 * - col0 * col0 AS col1 FROM tab2 cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL tab2.col1 * 32 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 24c93d941c27f7f7031fafbf5778441d
query I rowsort
SELECT DISTINCT + 72 * col2 AS col2 FROM tab0
----
2376
5904
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-419
SELECT + col1 DIV cor0.col2 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-419
SELECT + col1 / cor0.col2 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + ( cor0.col2 ) * - 88 AS col2 FROM tab2 AS cor0
----
-2288
-2376
-3344
query I rowsort
SELECT + ( tab1.col0 ) + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL - ( col2 ) + col0 * - ( - col0 ) - col1 FROM tab2
----
-9
5999
6186
onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT + cor0.col1 DIV col1 + cor0.col2 FROM tab0 cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-423
SELECT + cor0.col1 / col1 + cor0.col2 FROM tab0 cor0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 59 ) - + col1 * ( 14 ) col2 FROM tab0 AS cor0
----
-1263
-1333
-1417
query I rowsort
SELECT col1 * + col1 + + col1 AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT col1 * col1 + col2 AS col2 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + ( - col0 ) * + 35 + - col2 * - col1 * - col2 FROM tab1 cor0
----
-122608
-34730
-75921
query I rowsort
SELECT ALL - + 18 AS col0 FROM tab1 AS cor0
----
-18
-18
-18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 col1 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-431
SELECT + col0 DIV cor0.col1 - - ( col1 + + col1 ) FROM tab1 AS cor0
----
26
32
52
skipif mysql # not compatible
query I rowsort label-431
SELECT + col0 / cor0.col1 - - ( col1 + + col1 ) FROM tab1 AS cor0
----
26
32
52
query I rowsort
SELECT + + 77 AS col2 FROM tab1 AS cor0
----
77
77
77
query I rowsort
SELECT ALL + + 87 AS col0 FROM tab1 AS cor0
----
87
87
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col1 FROM tab1 AS cor0
----
80
query I rowsort
SELECT DISTINCT + col1 + + col1 * col1 + 74 * + col2 AS col0 FROM tab0 cor0
----
14440
9580
9924
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT - cor0.col2 + + col0 * cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
119626
50996
5832
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to ca91d1f523a87017f672304548e91a77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * 24 - - cor0.col2 * + cor0.col0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to faf26deb3cb4b99df0599edadacf844f
query I rowsort
SELECT ALL + col2 * ( - col1 ) FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + - col0 + 95 * - 85 AS col2 FROM tab2 AS cor0
----
-8082
-8153
-8154
query I rowsort
SELECT DISTINCT + col0 * col0 + 89 FROM tab0 AS cor0
----
1314
665
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-443
SELECT - cor0.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-443
SELECT - cor0.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-444
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 - - col1 / 62 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 - - col1 / 62 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col1 - cor0.col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 70 * - col0 * cor0.col2 FROM tab2 AS cor0
----
-13230
-141960
-210140
query I rowsort
SELECT - ( col2 ) + + cor0.col0 * 6 FROM tab1 AS cor0
----
-36
327
384
query I rowsort
SELECT ALL 82 FROM tab1 AS cor0
----
82
82
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-449
SELECT ALL - CAST( col0 AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-449
SELECT ALL - CAST ( col0 AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ( + 92 ) * col0 FROM tab2 AS cor0
----
644
7176
7268
query I rowsort
SELECT ALL ( 46 ) * col0 AS col0 FROM tab0 AS cor0
----
1104
1610
4094
query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col2 + col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-453
SELECT ALL + CAST( + 91 AS SIGNED ) FROM tab1 AS cor0
----
91
91
91
skipif mysql # not compatible
query I rowsort label-453
SELECT ALL + CAST ( + 91 AS INTEGER ) FROM tab1 AS cor0
----
91
91
91
query I rowsort
SELECT ALL + col1 - + col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + 76 + - col1 FROM tab1 AS cor0
----
50
63
66
query I rowsort
SELECT DISTINCT - 25 + col1 AS col2 FROM tab2 AS cor0
----
-8
34
6
query I rowsort
SELECT + - 10 * - ( col2 ) FROM tab0 AS cor0
----
10
330
820
query I rowsort
SELECT ( - col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - ( - col0 ) * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col2 + - 75 * col0 FROM tab0 AS cor0
----
-1767
-2624
-6593
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + 93 + ( cor0.col0 ) * 91 * cor0.col0 FROM tab2 AS cor0
----
4552
553737
568024
query I rowsort
SELECT - col0 - + col1 AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT col2 + + ( 92 ) FROM tab2
----
118
119
130
query I rowsort
SELECT ALL 96 * - ( col2 ) - + col2 AS col2 FROM tab1 AS cor0
----
-5238
-5529
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-466
SELECT ALL - col1 * ( col0 ) DIV - 73 AS col2 FROM tab2 cor0
----
18
2
63
skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - col1 * ( col0 ) / - 73 AS col2 FROM tab2 cor0
----
18
2
63
query I rowsort
SELECT + 57 + - 60 AS col2 FROM tab2 AS cor0
----
-3
-3
-3
query I rowsort
SELECT ALL + - 22 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT col0 + - col0 + - tab0.col1 * - tab0.col0 * - col2 AS col2 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-470
SELECT - ( col0 ) + tab2.col0 DIV col1 col1 FROM tab2
----
-7
-75
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-470
SELECT - ( col0 ) + tab2.col0 / col1 col1 FROM tab2
----
-7
-75
-77
query I rowsort
SELECT - col1 * col1 * col1 AS col1 FROM tab2
----
-205379
-29791
-4913
query I rowsort
SELECT + + col2 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT + col2 + 15 * 2 AS col1 FROM tab0 AS cor0
----
112
31
63
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 cor1, tab2, tab0 AS cor2
----
3645 values hashing to e6082e644debd74dcf1042b918d79199
onlyif mysql # use DIV operator for integer division
query I rowsort label-475
SELECT ALL + col1 DIV - 12 + col1 AS col2 FROM tab1 cor0
----
10
12
24
skipif mysql # not compatible
query I rowsort label-475
SELECT ALL + col1 / - 12 + col1 AS col2 FROM tab1 cor0
----
10
12
24
query I rowsort
SELECT + 32 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT ALL 41 AS col1 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831
query I rowsort
SELECT + col2 * - ( 90 ) FROM tab2 AS cor0
----
-2340
-2430
-3420
query I rowsort
SELECT + col1 * 79 FROM tab1 AS cor0
----
1027
2054
790
query I rowsort
SELECT + col2 * 93 FROM tab1 cor0
----
5022
5301
8928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-481
SELECT - 57 + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-481
SELECT - 57 + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-482
SELECT col2 + col0 DIV cor0.col0 + col2 * col2 AS col2 FROM tab0 AS cor0
----
1123
3
6807
skipif mysql # not compatible
query I rowsort label-482
SELECT col2 + col0 / cor0.col0 + col2 * col2 AS col2 FROM tab0 AS cor0
----
1123
3
6807
query I rowsort
SELECT - + 69 + - col0 * 56 AS col0 FROM tab1 AS cor0
----
-237
-3653
-4549
query I rowsort
SELECT 40 + - col0 * 24 AS col1 FROM tab2 AS cor0
----
-128
-1832
-1856
query I rowsort
SELECT DISTINCT + tab1.col0 * + col2 + - col0 * ( col0 ) FROM tab1
----
-448
1280
153
query I rowsort
SELECT DISTINCT col0 + + 9 * + col0 + - col0 FROM tab0
----
216
315
801
query I rowsort
SELECT 54 * + col0 - col0 * cor0.col2 FROM tab0 AS cor0
----
-2492
1855
504
onlyif mysql # use DIV operator for integer division
query I rowsort label-488
SELECT + col2 DIV - col1 + - col1 * col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-488
SELECT + col2 / - col1 + - col1 * col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-489
SELECT - + col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-489
SELECT - + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 34 - + col2 AS col0 FROM tab1 AS cor0
----
-20
-23
-62
query I rowsort
SELECT DISTINCT - 32 * - col0 AS col0 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT 75 * + col1 FROM tab2
----
1275
2325
4425
onlyif mysql # use DIV operator for integer division
query I rowsort label-493
SELECT - 38 DIV + 85 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-493
SELECT - 38 / + 85 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-494
SELECT + col2 + CAST( col1 AS SIGNED ) * col0 col0 FROM tab0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-494
SELECT + col2 + CAST ( col1 AS INTEGER ) * col0 col0 FROM tab0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * + col0 col1 FROM tab2
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-496
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-497
SELECT CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-497
SELECT CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-498
SELECT col2 * + col1 + col0 DIV 49 FROM tab0 cor0
----
2838
7463
97
skipif mysql # not compatible
query I rowsort label-498
SELECT col2 * + col1 + col0 / 49 FROM tab0 cor0
----
2838
7463
97
query I rowsort
SELECT ALL - ( - col1 ) * + tab0.col2 + - col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col1 FROM tab1, tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col2 - + col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + ( - col1 ) + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + col0 * 27 FROM tab2 cor0
----
189
2106
2133
query I rowsort
SELECT DISTINCT - 34 * - col0 FROM tab0
----
1190
3026
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 - + col1 col1 FROM tab1 AS cor0
----
-104
-1053
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - tab1.col1 col1 FROM tab1
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-507
SELECT ALL 58 DIV - col0 + + tab2.col2 - tab2.col0 AS col2 FROM tab2
----
-41
-52
12
skipif mysql # not compatible
query I rowsort label-507
SELECT ALL 58 / - col0 + + tab2.col2 - tab2.col0 AS col2 FROM tab2
----
-41
-52
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-508
SELECT + + 38 DIV + cor0.col1 AS col2 FROM tab2 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-508
SELECT + + 38 / + cor0.col1 AS col2 FROM tab2 cor0
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-509
SELECT - - CAST( NULL AS DECIMAL ) col0 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-509
SELECT - - CAST ( NULL AS REAL ) col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * col2 col1 FROM tab0 AS cor0
----
1122
2788
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-511
SELECT + - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-511
SELECT + - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 43 + 71 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e2d56a39621064cf4b6c94794ecedaba
query I rowsort
SELECT DISTINCT - 63 FROM tab0, tab0 AS cor0
----
-63
query I rowsort
SELECT - cor0.col2 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + + ( col2 ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ( - col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT - ( ( + col1 ) ) + + col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-519
SELECT 94 + - col0 DIV + cor0.col0 FROM tab2 AS cor0
----
93
93
93
skipif mysql # not compatible
query I rowsort label-519
SELECT 94 + - col0 / + cor0.col0 FROM tab2 AS cor0
----
93
93
93
query I rowsort
SELECT ALL + col1 + cor0.col0 * col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + + 72 FROM tab2 AS cor0
----
72
72
72
query I rowsort
SELECT + col0 + - col2 AS col0 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-523
SELECT ALL - col1 + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - col1 + col1 / + col0 AS col2 FROM tab0 AS cor0
----
-83
-90
-95
query I rowsort
SELECT ALL - cor0.col0 * - 41 AS col1 FROM tab1 cor0
----
123
2624
3280
query I rowsort
SELECT ALL + - cor0.col1 * 74 AS col1 FROM tab1 AS cor0
----
-1924
-740
-962
onlyif mysql # use DIV operator for integer division
query I rowsort label-526
SELECT DISTINCT col1 - + 20 DIV - ( col1 * col1 ) AS col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT col1 - + 20 / - ( col1 * col1 ) AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - col1 + + col2 - - tab2.col1 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT + 91 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-529
SELECT DISTINCT - col0 - CAST( col2 * + col0 AS SIGNED ) AS col0 FROM tab2
----
-196
-2106
-3081
skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT - col0 - CAST ( col2 * + col0 AS INTEGER ) AS col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT + + col2 - + col0 AS col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT + col0 - - 99 AS col2 FROM tab2 cor0
----
106
177
178
query I rowsort
SELECT ALL - 81 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 * col2 col0 FROM tab0
----
-1065
-6635
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col2 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT ( + col2 ) + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - + 72 AS col1 FROM tab0 AS cor0
----
-72
-72
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 * col0 + col1 col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ( col2 ) * col0 * - ( + col1 ) + col2 * + col1 AS col0 FROM tab2
----
-118118
-5022
-50388
onlyif mysql # use DIV operator for integer division
query I rowsort label-539
SELECT DISTINCT + 34 DIV col2 + tab0.col2 FROM tab0
----
34
35
82
skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT + 34 / col2 + tab0.col2 FROM tab0
----
34
35
82
query I rowsort
SELECT ALL + 52 AS col1 FROM tab0
----
52
52
52
query I rowsort
SELECT ALL ( - 79 ) * - cor0.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0351101cf0b00edc13cdaa144db558f9
onlyif mysql # use DIV operator for integer division
query I rowsort label-542
SELECT - 53 DIV - 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-542
SELECT - 53 / - 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + ( col1 ) * + col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL 93 * + col0 * 31 AS col2 FROM tab0 cor0
----
100905
256587
69192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col1 FROM tab2 AS cor0
----
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-548
SELECT col2 + - col0 * CAST( col1 * + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-177471
-329314
-736927
skipif mysql # not compatible
query I rowsort label-548
SELECT col2 + - col0 * CAST ( col1 * + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-177471
-329314
-736927
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - + col1 * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT 43 + + col0 * - col1 * + col1 AS col2 FROM tab2
----
-22788
-271475
-6684
query I rowsort
SELECT ALL + 52 FROM tab1 cor0
----
52
52
52
query I rowsort
SELECT DISTINCT - 60 * col1 AS col2 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT ALL + col0 * tab1.col2 * col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT DISTINCT col2 + - col1 * - 95 FROM tab1 AS cor0
----
1007
1331
2524
query I rowsort
SELECT DISTINCT col0 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-557
SELECT DISTINCT col0 + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT col0 + col0 / col1 AS col1 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT ALL - col2 + col0 + + col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + col1 * 68 + + col0 * - col1 FROM tab0 AS cor0
----
-1911
3201
3784
query I rowsort
SELECT ALL + cor0.col0 + col2 * + col2 AS col0 FROM tab1 cor0
----
2919
3313
9296
query I rowsort
SELECT ALL + cor0.col1 + + 56 * - col0 AS col1 FROM tab2 AS cor0
----
-361
-4309
-4407
onlyif mysql # use DIV operator for integer division
query I rowsort label-562
SELECT DISTINCT + + col1 * - col0 + - ( cor0.col1 ) DIV + col0 FROM tab2 AS cor0
----
-1343
-221
-4602
skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT + + col1 * - col0 + - ( cor0.col1 ) / + col0 FROM tab2 AS cor0
----
-1343
-221
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 96 col2 FROM tab1 AS cor0
----
-288
-6144
-7680
query I rowsort
SELECT ALL tab1.col2 + 50 FROM tab1, tab0 AS cor0
----
9 values hashing to e81210d688baf329a7cda835a131ceae
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 16 col1 FROM tab1 AS cor0
----
160
208
416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-566
SELECT - col1 * - ( ( col0 ) ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-566
SELECT - col1 * - ( ( col0 ) ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - 11 * - 26 FROM tab0 AS cor0
----
-286
-286
-286
query I rowsort
SELECT - 23 + + col1 FROM tab0 AS cor0
----
63
68
74
query I rowsort
SELECT + 73 * 67 FROM tab1 AS cor0
----
4891
4891
4891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 * - ( col0 ) col1 FROM tab0 AS cor0
----
1560
2275
5785
onlyif mysql # use DIV operator for integer division
query I rowsort label-572
SELECT DISTINCT ( cor0.col1 ) * col2 DIV ( col0 ) AS col2 FROM tab0 AS cor0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT ( cor0.col1 ) * col2 / ( col0 ) AS col2 FROM tab0 AS cor0
----
118
2
83
query I rowsort
SELECT ALL col0 * 94 AS col2 FROM tab0 cor0
----
2256
3290
8366
query I rowsort
SELECT ALL - col2 + 16 * col2 AS col1 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT + + cor0.col2 + 71 AS col2 FROM tab1 AS cor0
----
125
128
167
query I rowsort
SELECT - + col1 * col0 + + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT + ( col0 ) * - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT DISTINCT 64 + cor0.col0 AS col2 FROM tab2 AS cor0
----
142
143
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-579
SELECT DISTINCT col2 + + 37 DIV + col0 FROM tab0 cor0
----
2
34
82
skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT col2 + + 37 / + col0 FROM tab0 cor0
----
2
34
82
query I rowsort
SELECT - - ( - 59 ) - + cor0.col0 * col1 * col1 FROM tab2 AS cor0
----
-22890
-271577
-6786
query I rowsort
SELECT 25 * 79 AS col0 FROM tab1 AS cor0
----
1975
1975
1975
onlyif mysql # use DIV operator for integer division
query I rowsort label-582
SELECT ALL col0 * ( - col2 ) + - col2 - col2 DIV - col1 FROM tab0 AS cor0
----
-36
-7380
-825
skipif mysql # not compatible
query I rowsort label-582
SELECT ALL col0 * ( - col2 ) + - col2 - col2 / - col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL 35 + + 92 FROM tab1 AS cor0
----
127
127
127
query I rowsort
SELECT DISTINCT + ( col1 ) - col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-585
SELECT - + CAST( NULL AS SIGNED ) * cor0.col2 - - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-585
SELECT - + CAST ( NULL AS INTEGER ) * cor0.col2 - - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * col1 - - col0 FROM tab1
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-587
SELECT ALL ( + 27 ) DIV col1 FROM tab1 cor0
----
1
2
2
skipif mysql # not compatible
query I rowsort label-587
SELECT ALL ( + 27 ) / col1 FROM tab1 cor0
----
1
2
2
query I rowsort
SELECT ALL + col2 - col1 * col1 * + 48 AS col1 FROM tab0 AS cor0
----
-354975
-397406
-451631
query I rowsort
SELECT DISTINCT + + 98 + col1 * - col2 FROM tab0 AS cor0
----
-2740
-7364
1
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL 4 + + col1 AS col2 FROM tab1 AS cor0
----
14
17
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
onlyif mysql # use DIV operator for integer division
query I rowsort label-593
SELECT ALL - 6 DIV col0 + col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-593
SELECT ALL - 6 / col0 + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT ( - col1 ) + col0 + + col0 FROM tab1 AS cor0
----
-20
118
147
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-595
SELECT DISTINCT + CAST( 31 * col0 AS SIGNED ) + - col2 AS col0 FROM tab0
----
1084
2677
711
skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + CAST ( 31 * col0 AS INTEGER ) + - col2 AS col0 FROM tab0
----
1084
2677
711
query I rowsort
SELECT ALL + col0 * + ( col0 ) + + cor0.col1 FROM tab0 cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - cor0.col0 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * + 15 AS col0 FROM tab1
----
150
195
390
query I rowsort
SELECT - cor0.col2 * 76 AS col2 FROM tab1 AS cor0
----
-4104
-4332
-7296
query I rowsort
SELECT - - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + - ( col1 ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + 43 AS col2 FROM tab0 AS cor0
----
43
43
43
query I rowsort
SELECT ALL tab0.col1 + - ( col1 ) FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * + tab0.col1 + 85 FROM tab0
----
182
2923
7547
query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT col1 + + col0 * col2 * - col1 AS col0 FROM tab0 cor0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL - 41 AS col2 FROM tab1
----
-41
-41
-41
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT ALL 7 * + col0 FROM tab2
----
49
546
553
query I rowsort
SELECT DISTINCT - 28 + - col2 AS col2 FROM tab0 AS cor0
----
-110
-29
-61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 * - 19 col0 FROM tab2 AS cor0
----
12844
13851
27436
query I rowsort
SELECT DISTINCT - 97 AS col2 FROM tab0
----
-97
query I rowsort
SELECT ALL - 8 AS col1 FROM tab0
----
-8
-8
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-614
SELECT + + col0 * cor0.col1 DIV col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-614
SELECT + + col0 * cor0.col1 / col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-615
SELECT ALL - col1 DIV col1 + col0 * col1 FROM tab1 cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-615
SELECT ALL - col1 / col1 + col0 * col1 FROM tab1 cor0
----
1039
639
77
query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT tab2.col1 * 57 FROM tab2
----
1767
3363
969
query I rowsort
SELECT col0 * 57 FROM tab1
----
171
3648
4560
query I rowsort
SELECT ALL - ( - col0 ) AS col1 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-620
SELECT - col2 DIV col1 + - col0 * col2 FROM tab1 AS cor0
----
-164
-3653
-7687
skipif mysql # not compatible
query I rowsort label-620
SELECT - col2 / col1 + - col0 * col2 FROM tab1 AS cor0
----
-164
-3653
-7687
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-621
SELECT CAST( NULL AS SIGNED ) * 11 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-621
SELECT CAST ( NULL AS INTEGER ) * 11 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-622
SELECT ALL 89 * 67 DIV - col2 FROM tab0
----
-180
-5963
-72
skipif mysql # not compatible
query I rowsort label-622
SELECT ALL 89 * 67 / - col2 FROM tab0
----
-180
-5963
-72
query I rowsort
SELECT tab2.col1 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-624
SELECT DISTINCT - ( + col2 ) + - col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT - ( + col2 ) + - col2 / - col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT col2 * - col2 - + col2 AS col2 FROM tab2
----
-1482
-702
-756
query I rowsort
SELECT + col1 + + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - + 34 + - col1 FROM tab1 AS cor0
----
-44
-47
-60
query I rowsort
SELECT DISTINCT - 93 FROM tab0
----
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-629
SELECT - col1 + - col2 * col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-101
-54
-70
skipif mysql # not compatible
query I rowsort label-629
SELECT - col1 + - col2 * col2 / col1 AS col1 FROM tab2 AS cor0
----
-101
-54
-70
query I rowsort
SELECT col1 * col1 * col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT - + 21 + col1 AS col1 FROM tab0 AS cor0
----
65
70
76
query I rowsort
SELECT ALL col2 * - 81 FROM tab2
----
-2106
-2187
-3078
query I rowsort
SELECT DISTINCT + col1 - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL 22 + col1 FROM tab0 AS cor0
----
108
113
119
query I rowsort
SELECT DISTINCT ( - 11 ) * - col0 + col2 - col0 AS col1 FROM tab2 AS cor0
----
806
828
97
query I rowsort
SELECT 22 AS col2 FROM tab0 AS cor0
----
22
22
22
query I rowsort
SELECT ALL cor0.col1 * - 97 + - col2 * 6 * col0 FROM tab2 cor0
----
-17891
-19661
-4141
query I rowsort
SELECT ALL - col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + cor0.col0 + - col1 * - 88 AS col0 FROM tab0 AS cor0
----
7592
8097
8571
query I rowsort
SELECT DISTINCT 60 * col0 * 4 FROM tab0 AS cor0
----
21360
5760
8400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT ( - 41 ) FROM tab0
----
-41
-41
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-643
SELECT DISTINCT - + col2 * col1 DIV cor0.col1 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT - + col2 * col1 / cor0.col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - 74 * col0 + ( col1 ) AS col0 FROM tab0 cor0
----
-1690
-2493
-6495
query I rowsort
SELECT ALL - col0 * col2 + - 50 AS col0 FROM tab1 AS cor0
----
-212
-3698
-7730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 * + col2 col2 FROM tab1 AS cor0
----
5292
5586
9408
query I rowsort
SELECT ALL - ( - col0 ) * - col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-648
SELECT col2 * - 34 + - col0 DIV col0 FROM tab1
----
-1837
-1939
-3265
skipif mysql # not compatible
query I rowsort label-648
SELECT col2 * - 34 + - col0 / col0 FROM tab1
----
-1837
-1939
-3265
query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab2
----
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 * col0 ) - + tab2.col0 col1 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT + - col0 + col0 + + 11 FROM tab2 AS cor0
----
11
11
11
query I rowsort
SELECT ALL - col2 * 4 AS col2 FROM tab1 AS cor0
----
-216
-228
-384
query I rowsort
SELECT - + col1 + - ( + col2 ) + cor0.col0 FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT cor0.col0 * - ( - cor0.col2 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT col2 + col0 * + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-316
-474526
-493001
query I rowsort
SELECT ALL col0 * - cor0.col0 * col0 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT - col0 * + 53 + - 80 AS col0 FROM tab2 AS cor0
----
-4214
-4267
-451
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-658
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL + col1 * - tab2.col2 * + col0 + + col2 - col0 AS col0 FROM tab2
----
-119704
-51075
-5839
query I rowsort
SELECT - + 98 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
query I rowsort
SELECT ALL + 50 AS col2 FROM tab2
----
50
50
50
query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab2, tab0 AS cor0
----
29
query I rowsort
SELECT - - cor0.col0 + col0 + col1 * col1 FROM tab2 AS cor0
----
3637
447
975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col2 * 63 col2 FROM tab0 AS cor0
----
2046
5084
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - cor0.col0 + col0 col2 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT + 7 AS col0 FROM tab2, tab2 AS cor0
----
7
query I rowsort
SELECT DISTINCT + col0 + + 29 FROM tab2
----
107
108
36
query I rowsort
SELECT col2 * + 19 + col1 * - col1 FROM tab0
----
-6723
-6769
-9390
query I rowsort
SELECT - - ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-672
SELECT - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-672
SELECT - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-673
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-674
SELECT col2 DIV + ( - col1 ) AS col2 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-674
SELECT col2 / + ( - col1 ) AS col2 FROM tab1
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 + col1 * tab0.col0 col0 FROM tab0
----
2126
3457
8101
query I rowsort
SELECT col1 * + col2 + 3 FROM tab1
----
1251
1407
573
query I rowsort
SELECT - col2 + col2 + + col2 * col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + col2 * + 71 FROM tab2 AS cor0
----
1846
1917
2698
query I rowsort
SELECT ALL - - 39 AS col2 FROM tab2 cor0
----
39
39
39
query I rowsort
SELECT + cor0.col1 * + col1 + cor0.col0 + col2 FROM tab2 AS cor0
----
3585
406
995
query I rowsort
SELECT ALL col2 * - 16 FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT DISTINCT - 0 * col1 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + col1 + - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - - cor0.col1 + + col1 + col0 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT DISTINCT col1 + + 75 AS col1 FROM tab0 cor0
----
161
166
172
query I rowsort
SELECT - + 51 + col0 FROM tab1 AS cor0
----
-48
13
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-687
SELECT ALL + CAST( ( - col2 ) AS SIGNED ) * 77 FROM tab2 AS cor0
----
-2002
-2079
-2926
skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + CAST ( ( - col2 ) AS INTEGER ) * 77 FROM tab2 AS cor0
----
-2002
-2079
-2926
query I rowsort
SELECT DISTINCT + + ( 82 ) AS col0 FROM tab2 AS cor0
----
82
query I rowsort
SELECT - col1 * + 11 AS col2 FROM tab2 AS cor0
----
-187
-341
-649
query I rowsort
SELECT ALL + + ( - 12 ) AS col0 FROM tab2 cor0
----
-12
-12
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-691
SELECT col0 + + col2 DIV + col1 col0 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-691
SELECT col0 + + col2 / + col1 col0 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL + 56 * + col1 - - col0 * - col1 FROM tab0 AS cor0
----
-3003
2037
2752
query I rowsort
SELECT ALL - - 76 * - col1 + + col2 FROM tab2 AS cor0
----
-1254
-2329
-4458
query I rowsort
SELECT DISTINCT col2 * - col1 + col2 AS col2 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - - cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-697
SELECT ALL - col0 * CAST( col2 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif mysql # not compatible
query I rowsort label-697
SELECT ALL - col0 * CAST ( col2 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + col0 + - 47 AS col0 FROM tab1 AS cor0
----
-44
17
33
query I rowsort
SELECT ALL - - 6 FROM tab2, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT DISTINCT 91 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
91
query I rowsort
SELECT ALL + + col1 + 62 AS col2 FROM tab2 AS cor0
----
121
79
93
query I rowsort
SELECT ALL tab1.col2 - tab1.col1 * col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT col0 * col2 - tab2.col1 AS col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT 51 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT DISTINCT + col1 * - 34 AS col2 FROM tab1 cor0
----
-340
-442
-884
query I rowsort
SELECT - + col1 + 16 * - col2 AS col1 FROM tab1 AS cor0
----
-1549
-890
-922
query I rowsort
SELECT DISTINCT + + 95 * + col1 * 72 AS col0 FROM tab2 AS cor0
----
116280
212040
403560
query I rowsort
SELECT + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col1 + + col0 - - 38 AS col2 FROM tab1
----
112
131
67
query I rowsort
SELECT col0 * + 32 FROM tab0 AS cor0
----
1120
2848
768
query I rowsort
SELECT - col0 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab0
----
-70
query I rowsort
SELECT ALL + 3 * + ( - col2 ) - - ( + cor0.col2 ) * col1 FROM tab1 AS cor0
----
1242
399
960
query I rowsort
SELECT - 4 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT - 12 + + cor0.col0 FROM tab1 AS cor0
----
-9
52
68
query I rowsort
SELECT - 82 + col1 * + col0 FROM tab0 AS cor0
----
1982
3313
8017
query I rowsort
SELECT DISTINCT - ( 47 ) + cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
142
1981
2955
query I rowsort
SELECT ALL ( - col2 ) * + col1 + + ( + col0 ) * col2 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT DISTINCT + col1 * + 15 FROM tab2 AS cor0
----
255
465
885
query I rowsort
SELECT ALL + 25 + cor0.col1 FROM tab2 AS cor0
----
42
56
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-721
SELECT + CAST( NULL AS SIGNED ) / 40 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-721
SELECT + CAST ( NULL AS INTEGER ) / 40 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + 2 AS col1 FROM tab2 AS cor0
----
28
29
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-723
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 * + col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - + col1 * col1 + - ( 20 ) + col1 AS col2 FROM tab0 AS cor0
----
-7330
-8210
-9332
query I rowsort
SELECT + cor0.col0 * + col2 + + col2 * + col2 AS col2 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT DISTINCT + col1 * col2 + col2 * 91 AS col1 FROM tab1 AS cor0
----
5757
6318
9984
query I rowsort
SELECT ALL - cor0.col2 * + col0 * col0 - + ( - col1 ) FROM tab1 AS cor0
----
-233462
-460
-614387
query I rowsort
SELECT DISTINCT col0 * - col1 + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT 65 + cor0.col2 FROM tab1 AS cor0
----
119
122
161
query I rowsort
SELECT ALL - col0 - 8 AS col2 FROM tab1 AS cor0
----
-11
-72
-88
query I rowsort
SELECT ALL col0 + + 54 AS col2 FROM tab2 AS cor0
----
132
133
61
query I rowsort
SELECT DISTINCT + col2 * + col0 + 4 AS col2 FROM tab1 AS cor0
----
166
3652
7684
query I rowsort
SELECT cor0.col1 * + col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT 0 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT - col1 * 50 * + col0 + col1 - 92 FROM tab2 AS cor0
----
-10911
-230133
-67225
query I rowsort
SELECT ALL 67 AS col0 FROM tab1 AS cor0
----
67
67
67
query I rowsort
SELECT + col1 * cor0.col0 + col2 * col0 AS col1 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT DISTINCT + ( + 6 ) * + col2 AS col0 FROM tab0 AS cor0
----
198
492
6
query I rowsort
SELECT ALL + - 59 * col1 AS col0 FROM tab0 AS cor0
----
-5074
-5369
-5723
query I rowsort
SELECT + cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 23 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to d3b0357ceadb3a70da7f1649b1ef2a30
query I rowsort
SELECT + ( cor0.col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col1 * col1 - - col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1352
200
338
query I rowsort
SELECT DISTINCT 32 + col1 AS col2 FROM tab2
----
49
63
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-746
SELECT ALL col2 * - col1 * + col0 + - col0 DIV + 26 FROM tab0
----
-3396
-664121
-68112
skipif mysql # not compatible
query I rowsort label-746
SELECT ALL col2 * - col1 * + col0 + - col0 / + 26 FROM tab0
----
-3396
-664121
-68112
query I rowsort
SELECT col0 + 96 FROM tab2
----
103
174
175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-748
SELECT cor0.col1 * + CAST( NULL AS DECIMAL ) / 11 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-748
SELECT cor0.col1 * + CAST ( NULL AS REAL ) / 11 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - cor0.col1 + col0 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT col2 + col0 + col1 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT DISTINCT - col2 + col1 * col2 AS col2 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT ALL - ( - col1 ) * col2 + - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-753
SELECT - 18 DIV ( col2 ) AS col0 FROM tab0 AS cor0
----
-18
0
0
skipif mysql # not compatible
query I rowsort label-753
SELECT - 18 / ( col2 ) AS col0 FROM tab0 AS cor0
----
-18
0
0
query I rowsort
SELECT ALL - + 94 AS col0 FROM tab0 AS cor0
----
-94
-94
-94
query I rowsort
SELECT ALL ( col1 ) + col2 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col2 FROM tab1, tab2 cor0
----
39
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + - ( 65 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
query I rowsort
SELECT DISTINCT col0 + - col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL ( + col1 ) + - 54 AS col1 FROM tab2
----
-23
-37
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + tab1.col1 col0 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - 31 FROM tab0, tab0 cor0, tab2 AS cor1
----
-31
query I rowsort
SELECT + cor0.col1 * + cor0.col2 - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL + 10 + - cor0.col2 FROM tab2 AS cor0
----
-16
-17
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-765
SELECT DISTINCT + cor0.col2 DIV - cor0.col1 + col1 * - cor0.col1 AS col0 FROM tab1 cor0
----
-105
-176
-678
skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT + cor0.col2 / - cor0.col1 + col1 * - cor0.col1 AS col0 FROM tab1 cor0
----
-105
-176
-678
query I rowsort
SELECT DISTINCT - - col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + col1 + ( 10 * + cor0.col1 + col2 ) FROM tab2 cor0
----
225
368
675
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-768
SELECT ALL + col2 + - CAST( 67 AS SIGNED ) + col0 * - col1 FROM tab2 AS cor0
----
-1372
-257
-4643
skipif mysql # not compatible
query I rowsort label-768
SELECT ALL + col2 + - CAST ( 67 AS INTEGER ) + col0 * - col1 FROM tab2 AS cor0
----
-1372
-257
-4643
query I rowsort
SELECT + - col0 - ( + col2 ) * col0 FROM tab2 AS cor0
----
-196
-2106
-3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-770
SELECT ALL + col1 * CAST( col2 AS SIGNED ) * + col0 FROM tab2 cor0
----
119652
51034
5859
skipif mysql # not compatible
query I rowsort label-770
SELECT ALL + col1 * CAST ( col2 AS INTEGER ) * + col0 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT - col0 * 5 + col0 FROM tab0 AS cor0
----
-140
-356
-96
query I rowsort
SELECT ALL - col2 * 57 FROM tab0 AS cor0
----
-1881
-4674
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + 41 * - col1 col0 FROM tab1 AS cor0
----
-1092
-420
-546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-774
SELECT - + col0 + + CAST( NULL AS SIGNED ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-774
SELECT - + col0 + + CAST ( NULL AS INTEGER ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col2 + 54 * - 73 AS col1 FROM tab2 cor0
----
-3968
-3969
-3980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + - 37 col2 FROM tab2 AS cor0
----
-1380
-254
-4639
query I rowsort
SELECT ALL - ( + col2 ) * col1 - 68 AS col0 FROM tab2
----
-1602
-714
-905
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT - col2 * tab2.col1 DIV ( - tab2.col0 ) AS col1 FROM tab2
----
119
19
8
skipif mysql # not compatible
query I rowsort label-779
SELECT - col2 * tab2.col1 / ( - tab2.col0 ) AS col1 FROM tab2
----
119
19
8
query I rowsort
SELECT DISTINCT 79 FROM tab2, tab1, tab1 cor0
----
79
query I rowsort
SELECT - cor0.col2 + + ( col1 ) FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col2 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col2 + 64 * - col0 AS col1 FROM tab0 cor0
----
-1569
-2241
-5778
query I rowsort
SELECT + col0 + - ( - cor0.col0 ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col0 + ( + ( + tab0.col2 ) ) + 99 * - col1 AS col2 FROM tab0
----
-8457
-8838
-9567
query I rowsort
SELECT + 96 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT 89 * cor0.col1 + - col2 FROM tab1 AS cor0
----
1061
2260
833
query I rowsort
SELECT - 93 + + col2 FROM tab2 AS cor0
----
-55
-66
-67
query I rowsort
SELECT - col1 * - tab1.col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL 62 * 37 FROM tab2, tab2 AS cor0
----
9 values hashing to 3ae89d063e4e33d05061d46002d61026
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-791
SELECT CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-791
SELECT CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-792
SELECT - ( col2 ) + + col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-792
SELECT - ( col2 ) + + col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-793
SELECT DISTINCT col0 DIV - 20 AS col1 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT col0 / - 20 AS col1 FROM tab2
----
-3
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-794
SELECT DISTINCT + cor0.col2 DIV - col0 FROM tab0 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT + cor0.col2 / - col0 FROM tab0 cor0
----
-1
0
query I rowsort
SELECT cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + - cor0.col2 + col1 * + 60 * + 56 FROM tab1 cor0
----
33543
43584
87306
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-797
SELECT ALL + CAST( + col0 AS SIGNED ) FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-797
SELECT ALL + CAST ( + col0 AS INTEGER ) FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT + 54 FROM tab1, tab2, tab1 AS cor0
----
54
query I rowsort
SELECT ( + col2 ) + col1 * - col1 * ( tab1.col2 ) FROM tab1
----
-16128
-36450
-5643
query I rowsort
SELECT - ( 29 * - col0 ) AS col0 FROM tab0
----
1015
2581
696
query I rowsort
SELECT DISTINCT ( + 26 + tab1.col2 ) * col1 AS col0 FROM tab1
----
1586
2080
830
query I rowsort
SELECT + col0 + + 54 FROM tab1
----
118
134
57
query I rowsort
SELECT 81 * col2 AS col1 FROM tab1
----
4374
4617
7776
query I rowsort
SELECT DISTINCT 92 * + col2 * col0 AS col0 FROM tab1
----
14904
335616
706560
onlyif mysql # use DIV operator for integer division
query I rowsort label-805
SELECT ALL + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + col0 / + col0 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 AS col0 FROM tab0 cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col2 col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + + 23 AS col1 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT ALL - 30 + - col0 FROM tab2 cor0
----
-108
-109
-37
query I rowsort
SELECT + 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT DISTINCT + ( col2 ) * col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL - col1 - + col0 * 67 * 63 AS col0 FROM tab2 AS cor0
----
-29578
-329297
-333476
query I rowsort
SELECT DISTINCT + - col1 + col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - cor0.col1 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT cor0.col0 * cor0.col0 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT - col0 DIV cor0.col2 col0 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-817
SELECT - col0 / cor0.col2 col0 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL 68 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-819
SELECT DISTINCT tab1.col1 * CAST( col2 AS SIGNED ) FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT tab1.col1 * CAST ( col2 AS INTEGER ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT + ( 6 ) FROM tab0
----
6
6
6
query I rowsort
SELECT + ( ( col0 ) ) * ( + col2 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - - 72 AS col1 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT + 67 * col2 AS col0 FROM tab0 AS cor0
----
2211
5494
67
query I rowsort
SELECT - cor0.col2 * - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 24458b87d784ecaf9184f99bd12fb51a
query I rowsort
SELECT tab0.col2 + + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT - col1 * + col1 + - col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col1 + col2 + + 0 AS col0 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + col0 * + col1 * col2 col1 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT + col0 * col2 + col0 * cor0.col0 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT + cor0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
onlyif mysql # use DIV operator for integer division
query I rowsort label-832
SELECT + col2 DIV 18 AS col2 FROM tab2 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-832
SELECT + col2 / 18 AS col2 FROM tab2 AS cor0
----
1
1
2
query I rowsort
SELECT - col2 + + cor0.col2 * + col1 + - col1 AS col0 FROM tab0 AS cor0
----
-1
2719
7289
query I rowsort
SELECT - cor0.col0 * col2 + - 74 AS col1 FROM tab1 AS cor0
----
-236
-3722
-7754
query I rowsort
SELECT DISTINCT - col1 * tab2.col0 * + col0 - col1 * + col2 AS col0 FROM tab2
----
-106743
-2356
-360490
onlyif mysql # use DIV operator for integer division
query I rowsort label-836
SELECT - col2 - col2 DIV col2 AS col0 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-836
SELECT - col2 - col2 / col2 AS col0 FROM tab1
----
-55
-58
-97
query I rowsort
SELECT ALL - 94 FROM tab0, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT col0 * col2 + col1 * col0 AS col2 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT + col0 * col1 - col2 * col2 * col2 AS col2 FROM tab2 AS cor0
----
-12974
-19466
-53529
onlyif mysql # use DIV operator for integer division
query I rowsort label-840
SELECT col1 * cor0.col2 + - col2 DIV col0 FROM tab0 AS cor0
----
2837
7462
97
skipif mysql # not compatible
query I rowsort label-840
SELECT col1 * cor0.col2 + - col2 / col0 FROM tab0 AS cor0
----
2837
7462
97
query I rowsort
SELECT + - ( 98 ) + + col1 AS col2 FROM tab0 AS cor0
----
-1
-12
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-842
SELECT ALL 42 + + cor0.col2 DIV col2 AS col2 FROM tab0 cor0
----
43
43
43
skipif mysql # not compatible
query I rowsort label-842
SELECT ALL 42 + + cor0.col2 / col2 AS col2 FROM tab0 cor0
----
43
43
43
query I rowsort
SELECT + + 59 AS col1 FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT + + col0 * + ( col1 ) AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT 27 * 2 FROM tab2 AS cor0
----
54
query I rowsort
SELECT - - ( col0 ) * 83 FROM tab0 AS cor0
----
1992
2905
7387
query I rowsort
SELECT 47 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col2 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col2 - + col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL 31 * - col2 * ( - 27 ) AS col0 FROM tab0
----
27621
68634
837
query I rowsort
SELECT DISTINCT cor0.col1 * + ( col0 ) + col0 AS col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT - - col2 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( - 42 ) + col0 col0 FROM tab2 AS cor0
----
-1295
-2400
-635
query I rowsort
SELECT DISTINCT + col2 + + 97 FROM tab1 AS cor0
----
151
154
193
query I rowsort
SELECT - col2 + col1 * - ( col2 ) FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-856
SELECT cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-856
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 52 col0 FROM tab1
----
52
52
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-858
SELECT col2 DIV - tab1.col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-858
SELECT col2 / - tab1.col0 AS col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT + 20 * - tab2.col2 * + col0 AS col1 FROM tab2
----
-3780
-40560
-60040
query I rowsort
SELECT ALL + 15 * - cor0.col0 * - 83 FROM tab0 AS cor0
----
110805
29880
43575
query I rowsort
SELECT ALL + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT 76 DIV - col2 FROM tab0
----
-2
-76
0
skipif mysql # not compatible
query I rowsort label-862
SELECT 76 / - col2 FROM tab0
----
-2
-76
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 + + col0 * - 20 col2 FROM tab1
----
-1152
-1440
-54
query I rowsort
SELECT 46 + col2 * - col1 + - col1 AS col2 FROM tab2
----
-1547
-617
-822
query I rowsort
SELECT + col2 * + col1 + + ( + 52 ) FROM tab2
----
1586
698
889
query I rowsort
SELECT DISTINCT - col1 * + col0 + + col0 * col2 FROM tab0
----
-1272
-3360
-801
query I rowsort
SELECT ALL - - col2 * - col2 + + col0 * col2 * col1 AS col1 FROM tab0 AS cor0
----
3394
657394
67023
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab2, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT 94 * col2 * tab1.col2 + col0 * col1 FROM tab1
----
274182
306046
867344
query I rowsort
SELECT DISTINCT + tab2.col0 + col2 * 73 FROM tab2
----
1976
1978
2853
query I rowsort
SELECT DISTINCT - + col1 * cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - 36 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to aea3eb70e9270b660d4c81f39b11409b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-873
SELECT - 73 * + col1 + CAST( - col1 AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
-6278
-6643
-7081
skipif mysql # not compatible
query I rowsort label-873
SELECT - 73 * + col1 + CAST ( - col1 AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
-6278
-6643
-7081
query I rowsort
SELECT ALL - col0 * + col1 + - ( + col1 ) * col1 FROM tab0 cor0
----
-12804
-16380
-9460
query I rowsort
SELECT ALL 86 + col1 AS col2 FROM tab1 AS cor0
----
112
96
99
query I rowsort
SELECT ALL + - col0 * col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + col1 * tab2.col0 + - 25 AS col1 FROM tab2
----
1318
192
4577
query I rowsort
SELECT + col0 * ( col2 ) - col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT + col2 - - col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL + + col1 + + col2 + cor0.col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT + - cor0.col0 * 71 FROM tab1 AS cor0
----
-213
-4544
-5680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-883
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + col1 * col2 FROM tab2 AS cor0
----
1508
608
810
skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + col1 * col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - ( + col2 ) - col0 * - cor0.col0 * + 87 FROM tab1 AS cor0
----
356295
556704
729
query I rowsort
SELECT ALL ( 46 ) * - col0 * col1 FROM tab2 AS cor0
----
-211692
-61778
-9982
query I rowsort
SELECT 77 - col0 AS col1 FROM tab2 AS cor0
----
-1
-2
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-887
SELECT ALL + col0 DIV - 27 FROM tab0 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-887
SELECT ALL + col0 / - 27 FROM tab0 AS cor0
----
-1
-3
0
query I rowsort
SELECT DISTINCT + + ( col0 ) + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 * col2 + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT col0 + + 79 * col2 * ( col0 ) AS col2 FROM tab2 AS cor0
----
14938
160290
237237
query I rowsort
SELECT + col2 + + 10 * - col1 AS col2 FROM tab2 AS cor0
----
-132
-283
-564
query I rowsort
SELECT + col2 + col2 + col0 * col1 FROM tab2 AS cor0
----
1419
271
4654
query I rowsort
SELECT - col2 * ( col0 ) - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL + cor0.col0 * - 83 FROM tab1 AS cor0
----
-249
-5312
-6640
query I rowsort
SELECT DISTINCT 32 + - col2 AS col2 FROM tab0 AS cor0
----
-1
-50
31
query I rowsort
SELECT DISTINCT - - ( - col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - - col2 * - cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL ( + col1 ) * - cor0.col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT 26 + col0 AS col2 FROM tab2 AS cor0
----
104
105
33
query I rowsort
SELECT ALL + + 38 AS col0 FROM tab1 AS cor0
----
38
38
38
query I rowsort
SELECT DISTINCT + - 17 * col1 FROM tab2 AS cor0
----
-1003
-289
-527
query I rowsort
SELECT ALL - 63 + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-225
-3711
-7743
query I rowsort
SELECT 47 * - cor0.col1 FROM tab1 AS cor0
----
-1222
-470
-611
query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 + - col2 * + col1 FROM tab1 cor0
----
-10464
-3819
-4320
query I rowsort
SELECT ALL cor0.col2 * + 63 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 260b2326b3cf7963bcb0a4ea7ac28b1f
query I rowsort
SELECT - - 3 AS col1 FROM tab1 AS cor0
----
3
3
3
query I rowsort
SELECT ALL 5 + cor0.col2 AS col1 FROM tab1 AS cor0
----
101
59
62
query I rowsort
SELECT DISTINCT - col1 * - col1 + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT - - ( col2 ) * + col2 + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - 17 AS col1 FROM tab1 AS cor0
----
-17
-17
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-911
SELECT col1 * col0 - 53 DIV - col0 FROM tab2 AS cor0
----
1343
224
4602
skipif mysql # not compatible
query I rowsort label-911
SELECT col1 * col0 - 53 / - col0 FROM tab2 AS cor0
----
1343
224
4602
query I rowsort
SELECT - + col1 * col2 + - 73 FROM tab1 cor0
----
-1321
-1477
-643
query I rowsort
SELECT + - col2 * + cor0.col2 - - 76 * 78 AS col0 FROM tab1 AS cor0
----
-3288
2679
3012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 18 * - cor0.col1 + 86 * col1 FROM tab1 AS cor0
----
1768
680
884
query I rowsort
SELECT ALL 82 - tab2.col0 FROM tab2
----
3
4
75
query I rowsort
SELECT ALL 48 AS col0 FROM tab1
----
48
48
48
query I rowsort
SELECT ALL + ( - 91 ) AS col0 FROM tab1
----
-91
-91
-91
query I rowsort
SELECT col1 + + 75 + col2 FROM tab1 cor0
----
142
155
184
query I rowsort
SELECT DISTINCT col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL col0 * ( + col2 ) FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-923
SELECT col2 DIV col0 + 85 + col2 AS col1 FROM tab1 cor0
----
142
157
182
skipif mysql # not compatible
query I rowsort label-923
SELECT col2 / col0 + 85 + col2 AS col1 FROM tab1 cor0
----
142
157
182
query I rowsort
SELECT DISTINCT + - col2 + - 39 * ( - col1 ) FROM tab0 AS cor0
----
3321
3467
3782
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col2 * - 44 FROM tab1 cor0
----
2376
2508
4224
onlyif mysql # use DIV operator for integer division
query I rowsort label-927
SELECT + + cor0.col0 + cor0.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-927
SELECT + + cor0.col0 + cor0.col2 / + col2 col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL - 29 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 - ( col2 ) * col2 col1 FROM tab2
----
-1566
-2090
-2210
query I rowsort
SELECT - + col2 + ( - col2 ) * - col2 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-931
SELECT ALL - col2 DIV ( col2 * col2 + cor0.col1 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-931
SELECT ALL - col2 / ( col2 * col2 + cor0.col1 ) FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-932
SELECT DISTINCT + col2 + col1 * col0 DIV col1 FROM tab1 cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT + col2 + col1 * col0 / col1 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + + col0 - - col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + cor0.col2 * - col2 + col1 - cor0.col0 FROM tab0 AS cor0
----
-1027
-6722
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-935
SELECT CAST( NULL AS SIGNED ) - + 43 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-935
SELECT CAST ( NULL AS INTEGER ) - + 43 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col0 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT - tab0.col1 * + col1 AS col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT col0 * - 92 FROM tab2 AS cor0
----
-644
-7176
-7268
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-939
SELECT DISTINCT + + col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT + + col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT - - col2 + + 5 AS col2 FROM tab0 AS cor0
----
38
6
87
query I rowsort
SELECT ALL - col2 + 19 * col1 AS col0 FROM tab0 AS cor0
----
1601
1647
1842
query I rowsort
SELECT + - col1 + ( col2 ) AS col2 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-943
SELECT ALL col2 + - col0 DIV col0 AS col0 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-943
SELECT ALL col2 + - col0 / col0 AS col0 FROM tab0 AS cor0
----
0
32
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-944
SELECT CAST( + 4 AS SIGNED ) col1 FROM tab2 AS cor0
----
4
4
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-944
SELECT CAST ( + 4 AS INTEGER ) col1 FROM tab2 AS cor0
----
4
4
4
query I rowsort
SELECT - cor0.col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL col0 * 53 AS col2 FROM tab2
----
371
4134
4187
query I rowsort
SELECT - col1 + - 53 * - col0 * col2 AS col2 FROM tab2
----
107425
159089
9986
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-948
SELECT - CAST( + col0 AS SIGNED ) * - col1 col0 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-948
SELECT - CAST ( + col0 AS INTEGER ) * - col1 col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + ( ( col1 ) ) * col1 + + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL 25 * - col0 FROM tab1 AS cor0
----
-1600
-2000
-75
query I rowsort
SELECT - col1 - 22 AS col0 FROM tab1 AS cor0
----
-32
-35
-48
query I rowsort
SELECT + 21 - 79 FROM tab2 AS cor0
----
-58
-58
-58
query I rowsort
SELECT ALL 1 * col0 FROM tab2
----
7
78
79
query I rowsort
SELECT - cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-955
SELECT ALL ( 28 ) * tab0.col2 DIV - col0 FROM tab0
----
-25
-38
0
skipif mysql # not compatible
query I rowsort label-955
SELECT ALL ( 28 ) * tab0.col2 / - col0 FROM tab0
----
-25
-38
0
query I rowsort
SELECT - + 34 * - cor0.col2 FROM tab1 AS cor0
----
1836
1938
3264
query I rowsort
SELECT + col2 * + col2 * col1 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
194
619346
96492
query I rowsort
SELECT ALL + + 39 + col2 AS col0 FROM tab1 AS cor0
----
135
93
96
query I rowsort
SELECT + - cor0.col0 * + col2 - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col2 ) * + col0 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + 86 * - col2 + tab1.col1 FROM tab1
----
-4618
-4892
-8243
query I rowsort
SELECT col2 + 41 * col0 FROM tab1
----
177
2681
3376
query I rowsort
SELECT ALL - col0 * tab0.col1 * - col1 AS col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT 52 FROM tab2
----
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col2 FROM tab0
----
-89
-89
-89
query I rowsort
SELECT - col2 + + col0 * tab1.col0 FROM tab1
----
-45
4039
6304
query I rowsort
SELECT - + cor0.col0 * - col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL + - 6 * + col1 * col1 + col2 FROM tab2 AS cor0
----
-1696
-20860
-5739
query I rowsort
SELECT ALL - col2 + col0 * col1 - - cor0.col0 FROM tab0 cor0
----
2055
3429
8106
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 + col1 * col1 col0 FROM tab1 AS cor0
----
181
250
757
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-972
SELECT + + 23 + - cor0.col1 DIV - cor0.col0 - + col1 FROM tab1 AS cor0
----
10
13
5
skipif mysql # not compatible
query I rowsort label-972
SELECT + + 23 + - cor0.col1 / - cor0.col0 - + col1 FROM tab1 AS cor0
----
10
13
5
query I rowsort
SELECT col0 + + col1 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - + col0 * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col2 * 54 * - cor0.col2 col0 FROM tab0 AS cor0
----
19
363007
58782
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-976
SELECT + cor0.col0 + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-976
SELECT + cor0.col0 + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * ( 31 ) + col1 FROM tab0 cor0
----
1182
2850
830
query I rowsort
SELECT col2 * + col2 * tab1.col1 + + col1 * + col1 FROM tab1
----
119977
32590
76492
query I rowsort
SELECT - + cor0.col1 * + col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-980
SELECT - col2 DIV + 21 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-980
SELECT - col2 / + 21 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 WHERE NOT NULL <> ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-982
SELECT + cor0.col0 + col2 DIV + col1 col2 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-982
SELECT + cor0.col0 + col2 / + col1 col2 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT DISTINCT + - 86 + + col1 AS col0 FROM tab2 AS cor0
----
-27
-55
-69
query I rowsort
SELECT ( col2 ) + - col2 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + - 20 FROM tab1 AS cor0
----
-20
-20
-20
query I rowsort
SELECT DISTINCT - col1 * - ( 51 ) AS col2 FROM tab2 AS cor0
----
1581
3009
867
query I rowsort
SELECT ALL col1 + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * - 7 - 80 FROM tab1 AS cor0
----
-150
-171
-262
query I rowsort
SELECT DISTINCT col2 * 23 AS col0 FROM tab2 AS cor0
----
598
621
874
query I rowsort
SELECT ALL - col2 * + col1 - cor0.col1 AS col2 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT col1 * 78 FROM tab1 AS cor0
----
1014
2028
780
query I rowsort
SELECT DISTINCT - col2 + col0 * - col2 * col1 + 53 * 99 AS col0 FROM tab1 AS cor0
----
-31290
-94689
981
query I rowsort
SELECT ALL cor0.col1 * - col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - col0 - 56 AS col2 FROM tab2 AS cor0
----
-134
-135
-63
query I rowsort
SELECT - cor0.col0 + cor0.col2 * + col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT - col1 + ( col1 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col0 + ( - ( col1 ) ) * col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 * + cor0.col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT - - col1 * - col1 + + cor0.col0 FROM tab1 cor0
----
-36
-673
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1001
SELECT + ( 88 ) + + cor0.col2 DIV col1 FROM tab2 AS cor0
----
88
88
90
skipif mysql # not compatible
query I rowsort label-1001
SELECT + ( 88 ) + + cor0.col2 / col1 FROM tab2 AS cor0
----
88
88
90
query I rowsort
SELECT col2 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - col2 + + 79 AS col1 FROM tab0
----
-3
46
78
query I rowsort
SELECT + col1 * - 26 FROM tab1
----
-260
-338
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + col2 + col0 col1 FROM tab0
----
253
37
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1006
SELECT - + col2 * col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1006
SELECT - + col2 * col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 85 + col2 * col2 FROM tab0 AS cor0
----
1174
6809
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL 85 * col2 FROM tab2
----
2210
2295
3230
query I rowsort
SELECT DISTINCT - 64 AS col2 FROM tab1
----
-64
query I rowsort
SELECT - col0 + + tab2.col1 * + col2 AS col2 FROM tab2
----
1456
567
830
query I rowsort
SELECT ( - col2 ) + - ( col0 ) AS col2 FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1013
SELECT col2 DIV col1 + - col1 AS col0 FROM tab2
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-1013
SELECT col2 / col1 + - col1 AS col0 FROM tab2
----
-15
-31
-59
query I rowsort
SELECT + col0 + + col2 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + 30 AS col1 FROM tab2, tab1, tab0 AS cor0
----
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT ALL - + col1 DIV - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL - + col1 / - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT col0 + 86 AS col1 FROM tab2 AS cor0
----
164
165
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1018
SELECT ALL col0 * - cor0.col2 + + CAST( + cor0.col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL col0 * - cor0.col2 + + CAST ( + cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT 3 + col2 * + 65 FROM tab1 AS cor0
----
3513
3708
6243
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1020
SELECT - ( - col2 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1020
SELECT - ( - col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 61 AS col2 FROM tab0 AS cor0
----
-61
-61
-61
query I rowsort
SELECT col2 * + cor0.col0 + + 62 FROM tab2 AS cor0
----
2090
251
3064
query I rowsort
SELECT - 80 * cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1fcf6129aa5585b44cae00d80bd7a5c5
query I rowsort
SELECT + 86 + 39 FROM tab0, tab0 cor0
----
9 values hashing to 2973878398e469d83385e7e06bd5af99
query I rowsort
SELECT ALL - col0 * - 44 * - col0 FROM tab2
----
-2156
-267696
-274604
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + 95 FROM tab2, tab1, tab0 AS cor0
----
95
query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab0, tab1, tab2 AS cor0, tab0 AS cor1
----
86
91
97
query I rowsort
SELECT 50 + 52 + - col0 FROM tab0
----
13
67
78
query I rowsort
SELECT - ( - col1 ) + - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + 42 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT col1 + + col1 * - col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT ALL + + col0 * + col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + ( 72 ) + cor0.col2 + ( 34 ) AS col0 FROM tab2 AS cor0
----
132
133
144
query I rowsort
SELECT ALL + - 26 + col0 FROM tab0 AS cor0
----
-2
63
9
query I rowsort
SELECT col2 * + 4 - col0 FROM tab2 AS cor0
----
101
26
73
query I rowsort
SELECT ALL - 50 * + col2 + 47 FROM tab0 AS cor0
----
-1603
-3
-4053
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col1 FROM tab0 AS cor0
----
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-1039
SELECT ( + cor0.col2 ) DIV ( + col1 * + col0 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1039
SELECT ( + cor0.col2 ) / ( + col1 * + col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col2 * + col0 * + col2 + - col0 FROM tab1 AS cor0
----
-208000
-737360
-8751
query I rowsort
SELECT ALL 23 * + col2 + cor0.col2 * col0 FROM tab0 AS cor0
----
1551
58
9184
onlyif mysql # use DIV operator for integer division
query I rowsort label-1043
SELECT ALL - col2 + col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - col2 + col0 / col2 AS col0 FROM tab0 AS cor0
----
-33
-81
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + cor0.col1 * 8 col2 FROM tab1 cor0
----
117
234
90
query I rowsort
SELECT + - col1 + col1 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + 80 + tab0.col2 * - 73 * col0 FROM tab0
----
-2474
-532592
-57703
query I rowsort
SELECT ALL - 64 + col2 FROM tab0
----
-31
-63
18
query I rowsort
SELECT 25 * col2 + + ( col0 ) * col0 AS col1 FROM tab0 AS cor0
----
1250
1401
9971
query I rowsort
SELECT col0 * - col1 + 53 FROM tab1 AS cor0
----
-25
-587
-987
onlyif mysql # use DIV operator for integer division
query I rowsort label-1050
SELECT + col0 DIV - col2 AS col0 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1050
SELECT + col0 / - col2 AS col0 FROM tab0
----
-1
-35
0
query I rowsort
SELECT - col1 * 68 * col2 AS col0 FROM tab2
----
-104312
-43928
-56916
onlyif mysql # use DIV operator for integer division
query I rowsort label-1052
SELECT + tab0.col2 DIV tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1052
SELECT + tab0.col2 / tab0.col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1053
SELECT - col2 DIV - 10 AS col2 FROM tab2
----
2
2
3
skipif mysql # not compatible
query I rowsort label-1053
SELECT - col2 / - 10 AS col2 FROM tab2
----
2
2
3
query I rowsort
SELECT - ( + col0 ) - - col1 AS col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT + col0 - + col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1056
SELECT + - col0 * + col1 + CAST( 80 AS SIGNED ) FROM tab0 AS cor0
----
-1984
-3315
-8019
skipif mysql # not compatible
query I rowsort label-1056
SELECT + - col0 * + col1 + CAST ( 80 AS INTEGER ) FROM tab0 AS cor0
----
-1984
-3315
-8019
query I rowsort
SELECT + col0 * - cor0.col2 + + 27 FROM tab2 AS cor0
----
-162
-2001
-2975
query I rowsort
SELECT - 67 * col1 FROM tab1 cor0
----
-1742
-670
-871
query I rowsort
SELECT - 37 * + cor0.col0 + 3 + - ( + cor0.col2 + 45 ) * + col1 * col0 AS col1 FROM tab0 AS cor0
----
-1031863
-157462
-161877
query I rowsort
SELECT ( + ( col0 ) ) * tab2.col2 * - 94 AS col2 FROM tab2
----
-17766
-190632
-282188
onlyif mysql # use DIV operator for integer division
query I rowsort label-1061
SELECT ALL + col1 DIV - 98 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL + col1 / - 98 FROM tab0
----
0
0
0
query I rowsort
SELECT 26 + col2 AS col2 FROM tab0 AS cor0
----
108
27
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1063
SELECT DISTINCT col1 + + 14 DIV - col1 FROM tab1
----
12
26
9
skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT col1 + + 14 / - col1 FROM tab1
----
12
26
9
query I rowsort
SELECT DISTINCT + col0 + - col1 * col1 FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL col0 * + col2 - col0 AS col0 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT ALL + col2 + 54 AS col2 FROM tab1 AS cor0
----
108
111
150
query I rowsort
SELECT tab1.col2 + col2 * tab1.col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - - cor0.col1 + ( - 36 ) AS col0 FROM tab0 cor0
----
50
55
61
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + cor0.col1 AS REAL ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT cor0.col0 * cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 458b4c13e6825f9686b15a38663930f4
query I rowsort
SELECT - cor0.col0 * ( + col2 ) AS col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1072
SELECT CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1072
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 86 AS col0 FROM tab1 AS cor0
----
86
86
86
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col2 AS REAL ) * + col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ( - col1 ) * + cor0.col2 + col1 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT - 71 * + 1 FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT - + 64 * col1 AS col0 FROM tab1 cor0
----
-1664
-640
-832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 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 ALL + + 13 * 48 col0 FROM tab1 AS cor0
----
624
624
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT ALL col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL col2 / - col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT - cor1.col1 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab1, tab1 AS cor0
----
89
query I rowsort
SELECT + cor0.col2 * - 46 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT - - ( - col0 ) + + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT 29 AS col1 FROM tab1 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT - 10 * + ( col1 + - ( - col2 ) ) AS col0 FROM tab2
----
-550
-580
-850
query I rowsort
SELECT + col0 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + - ( - 94 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT 61 + + col1 FROM tab2 AS cor0
----
120
78
92
query I rowsort
SELECT col0 * col1 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - 47 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-47
query I rowsort
SELECT + col1 + - ( 51 ) AS col0 FROM tab0
----
35
40
46
query I rowsort
SELECT ALL - col2 + + col1 AS col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT col2 + ( + col0 * col2 ) AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT - col2 * + 73 + + col2 AS col2 FROM tab0 AS cor0
----
-2376
-5904
-72
query I rowsort
SELECT + cor0.col1 * - ( col2 * col0 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - tab1.col1 * - col1 + col0 AS col2 FROM tab1
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-1100
SELECT DISTINCT cor0.col1 + + col0 DIV - col2 FROM tab0 AS cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT cor0.col1 + + col0 / - col2 FROM tab0 AS cor0
----
62
86
90
query I rowsort
SELECT ALL + + cor0.col1 * cor0.col2 - - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-3068
-697
620
query I rowsort
SELECT ALL - cor0.col2 * col1 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + col0 * cor0.col1 + col1 FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col0 + col0 * col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT ALL + col1 * + col2 * + col2 + col1 - cor0.col1 AS col2 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1107
SELECT - col1 DIV + col0 col1 FROM tab2 cor0
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1107
SELECT - col1 / + col0 col1 FROM tab2 cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT ALL col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL col0 / col0 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col1 * col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 col1 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT col1 * cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - - cor0.col1 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT + col0 + cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT DISTINCT + col2 * col0 * col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-1118
SELECT ALL col1 + col1 DIV col1 + col1 FROM tab1 AS cor0
----
21
27
53
skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL col1 + col1 / col1 + col1 FROM tab1 AS cor0
----
21
27
53
query I rowsort
SELECT DISTINCT 9 - + col2 FROM tab2
----
-17
-18
-29
query I rowsort
SELECT DISTINCT - col0 * + col2 * col1 + - col1 * col2 FROM tab2 AS cor0
----
-121186
-51680
-6696
query I rowsort
SELECT ALL tab2.col2 * + col2 + col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT cor0.col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - - col0 + - cor0.col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + col0 + - col2 * tab0.col2 AS col0 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT col0 + col0 + col1 * col1 AS col0 FROM tab2
----
3637
447
975
query I rowsort
SELECT col1 * col1 * - col0 AS col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT - col1 + + col1 * tab0.col0 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT ALL tab0.col2 * col0 + col0 AS col1 FROM tab0
----
70
7387
816
query I rowsort
SELECT DISTINCT col0 + col2 * col1 * col0 FROM tab0
----
3430
664207
68136
onlyif mysql # use DIV operator for integer division
query I rowsort label-1130
SELECT col1 + col1 DIV col1 + ( - col0 ) DIV col2 col1 FROM tab0 AS cor0
----
63
87
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1130
SELECT col1 + col1 / col1 + ( - col0 ) / col2 col1 FROM tab0 AS cor0
----
63
87
91
query I rowsort
SELECT + 22 * + col0 * 21 FROM tab1 AS cor0
----
1386
29568
36960
query I rowsort
SELECT col2 + col1 * - col0 AS col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT tab1.col0 / col1 FROM tab1 WHERE NOT NULL IN ( - tab1.col0 )
----
query I rowsort
SELECT ALL - col2 * + col0 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - col2 + - col2 * col0 + col1 FROM tab2
----
-185
-1995
-3023
query I rowsort
SELECT ALL col0 * col2 * col2 FROM tab1
----
207936
737280
8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL tab1.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - + 65 + cor0.col2 * 32 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 045532c42158709fa0d6089e48e43604
query I rowsort
SELECT ( - col2 + - col0 ) * col2 * col2 FROM tab1
----
-1622016
-166212
-393129
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 * col0 col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT col0 + col1 * + tab1.col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT - tab0.col0 + + col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 * cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-16320
-36558
-5757
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 * - 17 + + ( col1 ) FROM tab2 AS cor0
----
-10965
-14198
-26019
query I rowsort
SELECT cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL - col2 * + col0 * col1 AS col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT col2 + col1 * col0 + col1 FROM tab2
----
1398
275
4687
query I rowsort
SELECT tab1.col2 * col1 * col2 + - tab1.col0 + tab1.col0 AS col1 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + col2 + - col1 + col2 FROM tab1
----
104
179
82
query I rowsort
SELECT ALL col1 * tab2.col2 + col2 * - col0 * col1 + + col1 AS col0 FROM tab2
----
-118059
-4991
-50371
onlyif mysql # use DIV operator for integer division
query I rowsort label-1152
SELECT ALL tab0.col0 * col1 DIV col0 AS col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL tab0.col0 * col1 / col0 AS col2 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * - col0 + col2 * + col2 * col0 col1 FROM tab0
----
28200
3430
606535
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 * + col0 col0 FROM tab0
----
-13824
-42875
-704969
onlyif mysql # use DIV operator for integer division
query I rowsort label-1155
SELECT ALL - col0 DIV + tab1.col0 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL - col0 / + tab1.col0 AS col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT - col1 * col0 * - col0 AS col1 FROM tab0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-1157
SELECT DISTINCT col1 * col0 DIV col1 col1 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT col1 * col0 / col1 col1 FROM tab2
----
7
78
79
query III rowsort
SELECT * FROM tab0 WHERE NULL <> col2 + - col2
----
query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT col0 * - col0 = NULL
----
query I rowsort
SELECT ALL col1 + col1 * - tab0.col1 AS col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT + col0 * - cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT col1 * col1 - - col2 * col1 AS col2 FROM tab0
----
10234
15743
9506
query I rowsort
SELECT DISTINCT + col0 + - col1 + col1 * col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 * - col1 + col0 + col0 AND NULL
----
query I rowsort
SELECT ALL tab0.col0 * - col0 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND + col1
----
query I rowsort
SELECT ALL - tab1.col1 + col1 * tab1.col1 FROM tab1
----
156
650
90
query I rowsort
SELECT col1 * col1 - - col1 FROM tab2
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-1167
SELECT DISTINCT col2 DIV - col0 - + col1 AS col1 FROM tab0 WHERE + col2 NOT BETWEEN ( col0 * + col1 ) AND NULL
----
-87
-91
-97
skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT col2 / - col0 - + col1 AS col1 FROM tab0 WHERE + col2 NOT BETWEEN ( col0 * + col1 ) AND NULL
----
-87
-91
-97
query I rowsort
SELECT DISTINCT tab1.col1 + col1 * + col1 FROM tab1
----
110
182
702
query I rowsort
SELECT - tab2.col2 * + col2 AS col1 FROM tab2 WHERE NOT - col0 * col0 NOT BETWEEN NULL AND + col2 * tab2.col2 + - col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1170
SELECT + col0 DIV col1 + + col1 AS col0 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-1170
SELECT + col0 / col1 + + col1 AS col0 FROM tab2
----
21
31
60
query I rowsort
SELECT ALL col2 * + tab2.col2 + - col1 * - col0 + + tab2.col2 AS col1 FROM tab2 WHERE ( NULL ) NOT IN ( + col1 * col2 )
----
query I rowsort
SELECT DISTINCT col0 * - col0 + col0 + tab1.col2 AS col2 FROM tab1
----
-3975
-6224
48
query I rowsort
SELECT ALL col2 + col2 + col0 AS col1 FROM tab0
----
253
37
90
query I rowsort
SELECT ALL - tab0.col1 * - col0 + col2 AS col2 FROM tab0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-1175
SELECT DISTINCT col0 DIV col1 + col0 AS col2 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT col0 / col1 + col0 AS col2 FROM tab2
----
7
79
83
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 / + col1 AND NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 > col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1178
SELECT - tab0.col2 DIV + col2 + + col0 * - col0 col1 FROM tab0
----
-1226
-577
-7922
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1178
SELECT - tab0.col2 / + col2 + + col0 * - col0 col1 FROM tab0
----
-1226
-577
-7922
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( col2 )
----
query I rowsort
SELECT cor1.col2 AS col1 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT ( + cor0.col0 * cor0.col1 ) + 24 FROM tab0, tab2 AS cor0
----
9 values hashing to 97dacb5b5c4cd66fce1290d3c38208d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1182
SELECT - tab0.col1 * CAST( + 99 AS SIGNED ) + + col0 * 8 * col1 FROM tab0
----
17557
55783
7998
skipif mysql # not compatible
query I rowsort label-1182
SELECT - tab0.col1 * CAST ( + 99 AS INTEGER ) + + col0 * 8 * col1 FROM tab0
----
17557
55783
7998
onlyif mysql # use DIV operator for integer division
query I rowsort label-1183
SELECT + tab2.col0 DIV - ( col1 ) AS col2 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1183
SELECT + tab2.col0 / - ( col1 ) AS col2 FROM tab2
----
-1
-4
0
query I rowsort
SELECT - 67 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
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 ALL - tab2.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT - col1 * + col1 + - col2 AS col1 FROM tab2 cor0
----
-327
-3507
-988
query I rowsort
SELECT ALL - - 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT 33 + + tab2.col1 * + col2 AS col0 FROM tab2
----
1567
679
870
onlyif mysql # use DIV operator for integer division
query I rowsort label-1190
SELECT + ( col1 ) DIV - CAST( col2 AS SIGNED ) + cor0.col2 * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-132
-7299
-794
skipif mysql # not compatible
query I rowsort label-1190
SELECT + ( col1 ) / - CAST ( col2 AS INTEGER ) + cor0.col2 * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-132
-7299
-794
query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1192
SELECT ALL + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL + col0 / col2 AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + col2 * - col2 + + col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT + col1 + cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-1195
SELECT ALL col0 + col1 DIV + col1 AS col2 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL col0 + col1 / + col1 AS col2 FROM tab0
----
25
36
90
query I rowsort
SELECT col2 * - col0 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * - col1 - col0 col0 FROM tab0
----
-7420
-8370
-9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-1198
SELECT ALL - col1 DIV - 98 col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL - col1 / - 98 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * - col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col1 * - ( + col2 ) * - col1 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - 74 col0 FROM tab0 AS cor0
----
-107
-156
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-1202
SELECT + col0 DIV + 45 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1202
SELECT + col0 / + 45 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + col2 AS col2 FROM tab1 cor0
----
-24
-583
-944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1204
SELECT + cor0.col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1204
SELECT + cor0.col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col2 * - ( - col2 ) AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - col1 + 70 AS col1 FROM tab0 AS cor0
----
-16
-21
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-1207
SELECT ALL col2 DIV + 38 + + col0 FROM tab0 AS cor0
----
24
35
91
skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL col2 / + 38 + + col0 FROM tab0 AS cor0
----
24
35
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-1208
SELECT + cor0.col1 * col2 DIV col0 col1 FROM tab1 AS cor0
----
15
468
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1208
SELECT + cor0.col1 * col2 / col0 col1 FROM tab1 AS cor0
----
15
468
8
query I rowsort
SELECT DISTINCT + col1 + + 21 FROM tab0 AS cor0
----
107
112
118
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + col1 col1 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL col1 + col0 * + 85 AS col0 FROM tab0
----
2126
3072
7656
query I rowsort
SELECT ALL col0 + 9 * + col0 AS col2 FROM tab0 AS cor0
----
240
350
890
query I rowsort
SELECT ALL + + col1 * + col1 * cor0.col2 + + cor0.col0 FROM tab0 AS cor0
----
244092
679131
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-1214
SELECT + ( + 39 ) DIV col2 + + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1214
SELECT + ( + 39 ) / col2 + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + cor0.col0 * - 66 AS col0 FROM tab2 AS cor0
----
-462
-5148
-5214
onlyif mysql # use DIV operator for integer division
query I rowsort label-1216
SELECT ALL + + col0 + - cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL + + col0 + - cor0.col1 / col0 AS col2 FROM tab1 AS cor0
----
-5
64
80
query I rowsort
SELECT DISTINCT + 31 * cor0.col1 + + col2 * col1 - col0 FROM tab0 AS cor0
----
10194
3069
5480
query I rowsort
SELECT col0 * + 27 + cor0.col0 * - col0 FROM tab0 cor0
----
-280
-5518
72
query I rowsort
SELECT + 53 + col2 AS col0 FROM tab1 AS cor0
----
107
110
149
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1220
SELECT - CAST( + col1 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-1220
SELECT - CAST ( + col1 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col2 * - col2 + col2 FROM tab0 cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1222
SELECT 38 DIV + cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to eff82df49d5880477456e4901e030e04
skipif mysql # not compatible
query I rowsort label-1222
SELECT 38 / + cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to eff82df49d5880477456e4901e030e04
query I rowsort
SELECT + col1 * 76 AS col1 FROM tab2
----
1292
2356
4484
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 - + col2 col0 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL - 21 + - col2 AS col1 FROM tab2 AS cor0
----
-47
-48
-59
query I rowsort
SELECT DISTINCT + + cor0.col1 * + ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - 25 * col2 FROM tab1 AS cor0
----
-1350
-1425
-2400
query I rowsort
SELECT DISTINCT - ( 38 ) AS col2 FROM tab2 AS cor0
----
-38
query I rowsort
SELECT + - cor0.col1 + + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 22 * col2 - col0 AS col0 FROM tab0
----
-13
1715
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-1231
SELECT ALL col0 DIV - tab1.col1 + + col2 + - col2 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL col0 / - tab1.col1 + + col2 + - col2 FROM tab1
----
-6
-6
0
query I rowsort
SELECT 25 + col1 AS col1 FROM tab2 AS cor0
----
42
56
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1233
SELECT - col0 + - 46 DIV + col0 AS col2 FROM tab0
----
-25
-36
-89
skipif mysql # not compatible
query I rowsort label-1233
SELECT - col0 + - 46 / + col0 AS col2 FROM tab0
----
-25
-36
-89
query I rowsort
SELECT ALL col1 * 16 + + col0 AS col1 FROM tab0
----
1400
1545
1587
query I rowsort
SELECT - col2 * col1 * + ( col1 ) AS col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT ALL col1 * 37 * col1 AS col1 FROM tab1
----
25012
3700
6253
query I rowsort
SELECT col2 * + 97 FROM tab1
----
5238
5529
9312
query I rowsort
SELECT ALL ( 34 + col0 ) AS col2 FROM tab0
----
123
58
69
query I rowsort
SELECT DISTINCT + - 18 AS col2 FROM tab2 AS cor0
----
-18
query I rowsort
SELECT - - 40 + 31 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT DISTINCT col1 + col0 + col0 FROM tab1 AS cor0
----
138
173
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + col0 col1 FROM tab0 cor0
----
-10
-64
-75
query I rowsort
SELECT DISTINCT + ( - 90 ) + - col1 AS col0 FROM tab2 AS cor0
----
-107
-121
-149
query I rowsort
SELECT ALL - + 50 * cor0.col1 FROM tab0 cor0
----
-4300
-4550
-4850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1245
SELECT + cor0.col1 * ( col2 ) + CAST( col0 + col1 AS SIGNED ) FROM tab2 AS cor0
----
1671
742
875
skipif mysql # not compatible
query I rowsort label-1245
SELECT + cor0.col1 * ( col2 ) + CAST ( col0 + col1 AS INTEGER ) FROM tab2 AS cor0
----
1671
742
875
query I rowsort
SELECT 27 AS col1 FROM tab1 AS cor0
----
27
27
27
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col2 * ( col1 ) FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + 58 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT - 49 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
onlyif mysql # use DIV operator for integer division
query I rowsort label-1251
SELECT - tab1.col2 * + tab1.col1 + - col2 DIV tab1.col2 - tab1.col2 FROM tab1
----
-1345
-1459
-628
skipif mysql # not compatible
query I rowsort label-1251
SELECT - tab1.col2 * + tab1.col1 + - col2 / tab1.col2 - tab1.col2 FROM tab1
----
-1345
-1459
-628
query I rowsort
SELECT ALL + col2 * + col2 + - ( + col1 ) * col2 + + col2 FROM tab1 AS cor0
----
1566
2736
8064
query I rowsort
SELECT + col2 - + col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + - 45 * - col2 AS col0 FROM tab1 cor0
----
2430
2565
4320
query I rowsort
SELECT ALL - col2 * col0 + - ( 38 ) FROM tab0 AS cor0
----
-73
-7336
-830
query I rowsort
SELECT + col1 + col2 + 5 FROM tab1
----
114
72
85
query I rowsort
SELECT + 39 + + col0 AS col1 FROM tab1 cor0
----
103
119
42
query I rowsort
SELECT DISTINCT 44 * - cor0.col1 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT ALL 1 * - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL col2 + + cor0.col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT col0 * col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT - 58 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + ( col2 ) * + col2 col0 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT - - col1 * + 23 FROM tab2 cor0
----
1357
391
713
query I rowsort
SELECT ALL - col2 * + 10 FROM tab2 AS cor0
----
-260
-270
-380
query I rowsort
SELECT - + col1 - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + - col0 * ( - 21 ) + col1 * col2 FROM tab2 AS cor0
----
2305
3172
984
query I rowsort
SELECT ALL - + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1269
SELECT + - col2 * + CAST( - 19 AS SIGNED ) - col2 AS col0 FROM tab0 AS cor0
----
1476
18
594
skipif mysql # not compatible
query I rowsort label-1269
SELECT + - col2 * + CAST ( - 19 AS INTEGER ) - col2 AS col0 FROM tab0 AS cor0
----
1476
18
594
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1270
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1271
SELECT + col0 * + CAST( + col0 AS SIGNED ) DIV + col0 + cor0.col1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-1271
SELECT + col0 * + CAST ( + col0 AS INTEGER ) / + col0 + cor0.col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - + col2 + + cor0.col2 + ( col0 ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + col1 - col1 * cor0.col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + - col1 + + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col0 - col0 * - 78 AS col0 FROM tab2 cor0
----
553
6162
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT - cor0.col2 + + 57 DIV col0 AS col0 FROM tab0 AS cor0
----
-31
-82
0
skipif mysql # not compatible
query I rowsort label-1276
SELECT - cor0.col2 + + 57 / col0 AS col0 FROM tab0 AS cor0
----
-31
-82
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1277
SELECT CAST( - 77 AS SIGNED ) FROM tab0 AS cor0
----
-77
-77
-77
skipif mysql # not compatible
query I rowsort label-1277
SELECT CAST ( - 77 AS INTEGER ) FROM tab0 AS cor0
----
-77
-77
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-1278
SELECT ALL col2 * col2 DIV + 17 AS col2 FROM tab0
----
0
395
64
skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL col2 * col2 / + 17 AS col2 FROM tab0
----
0
395
64
query I rowsort
SELECT ALL + ( + tab0.col1 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - - col1 * col0 + ( - ( col0 ) ) FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL 78 + col1 * col2 FROM tab1 AS cor0
----
1326
1482
648
query I rowsort
SELECT + 96 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT - col0 * - col2 + col1 * + col0 AS col0 FROM tab0
----
15397
2856
3430
query I rowsort
SELECT ALL - - 76 + + col0 FROM tab1 AS cor0
----
140
156
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 + col0 col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT + 2 + col0 AS col0 FROM tab0 AS cor0
----
26
37
91
query I rowsort
SELECT + 58 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT + col1 + col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1289
SELECT - ( col1 ) + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1289
SELECT - ( col1 ) + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col1 + col1 * - col0 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1291
SELECT ALL CAST( + col0 AS SIGNED ) FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL CAST ( + col0 AS INTEGER ) FROM tab2
----
7
78
79
query I rowsort
SELECT ALL - 16 + col0 FROM tab2 AS cor0
----
-9
62
63
query I rowsort
SELECT DISTINCT - 17 * col2 AS col2 FROM tab2 AS cor0
----
-442
-459
-646
query I rowsort
SELECT tab1.col2 - - ( col1 ) AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + 68 + col1 AS col1 FROM tab1
----
78
81
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 * - col2 + col0 col2 FROM tab2
----
-182
-263
-301
query I rowsort
SELECT + col1 * 83 + 80 FROM tab1 AS cor0
----
1159
2238
910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1298
SELECT col2 / CAST( NULL AS SIGNED ) + - col2 * - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1298
SELECT col2 / CAST ( NULL AS INTEGER ) + - col2 * - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 10 * - col2 AS col2 FROM tab0
----
-10
-330
-820
query I rowsort
SELECT - 49 FROM tab1, tab2, tab2 cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89
query I rowsort
SELECT DISTINCT - col1 * col0 AS col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1302
SELECT - col0 DIV tab1.col1 AS col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-1302
SELECT - col0 / tab1.col1 AS col1 FROM tab1
----
-6
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1303
SELECT DISTINCT col2 DIV - col1 AS col0 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT col2 / - col1 AS col0 FROM tab2
----
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1304
SELECT 81 DIV col0 col1 FROM tab1
----
1
1
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1304
SELECT 81 / col0 col1 FROM tab1
----
1
1
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1305
SELECT col0 + + CAST( + 4 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-5
11
38
skipif mysql # not compatible
query I rowsort label-1305
SELECT col0 + + CAST ( + 4 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-5
11
38
query I rowsort
SELECT + col0 * col2 + + 70 FROM tab2 AS cor0
----
2098
259
3072
query I rowsort
SELECT + - cor0.col0 * - col1 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
48
query I rowsort
SELECT ALL col0 + col0 - col2 AS col0 FROM tab0
----
15
69
96
query I rowsort
SELECT col1 * col0 * - 29 AS col1 FROM tab1
----
-18560
-2262
-30160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT + cor0.col1 - + ( + col2 + cor0.col2 ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-15347
-298
-7286
query I rowsort
SELECT col0 * - 18 * col1 AS col2 FROM tab0 AS cor0
----
-145782
-37152
-61110
query I rowsort
SELECT ALL - 60 FROM tab0, tab0 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1316
SELECT - col2 DIV col1 + + col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-59
-74
21
skipif mysql # not compatible
query I rowsort label-1316
SELECT - col2 / col1 + + col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-59
-74
21
query I rowsort
SELECT - col1 + + cor0.col0 + + col0 * col1 FROM tab0 cor0
----
2002
3333
8097
query I rowsort
SELECT - ( - 9 ) + col2 FROM tab2 AS cor0
----
35
36
47
query I rowsort
SELECT DISTINCT - ( + col2 ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1320
SELECT - col1 DIV col2 + + col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-1320
SELECT - col1 / col2 + + col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + + cor0.col0 * + 18 AS col2 FROM tab0 AS cor0
----
1602
432
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-1322
SELECT DISTINCT 62 DIV - 56 AS col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT 62 / - 56 AS col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL - - 2 AS col0 FROM tab2 cor0
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL ( 24 ) + + col1 AS col0 FROM tab1 AS cor0
----
34
37
50
query I rowsort
SELECT col0 + - col0 * + col1 + ( - 57 * - cor0.col1 ) FROM tab0 cor0
----
-2823
2169
2862
query I rowsort
SELECT DISTINCT ( cor0.col2 ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + + col2 * 99 + + col2 AS col2 FROM tab2 AS cor0
----
2600
2700
3800
query I rowsort
SELECT - 42 * - 48 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 896c492ca649b9543d0f2ce199c7f55d
query I rowsort
SELECT ALL col1 * + col1 + - ( + 0 ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL cor0.col0 * - col1 * - col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1333
SELECT DISTINCT + - col0 * - cor0.col0 + + CAST( NULL AS SIGNED ) * 34 col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT + - col0 * - cor0.col0 + + CAST ( NULL AS INTEGER ) * 34 col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1334
SELECT ALL - - 93 DIV cor0.col1 + + ( - col1 * - col0 ) + 93 FROM tab0 AS cor0
----
2158
3488
8193
skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL - - 93 / cor0.col1 + + ( - col1 * - col0 ) + 93 FROM tab0 AS cor0
----
2158
3488
8193
query I rowsort
SELECT - ( - col1 ) * ( col0 ) + + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL - col0 * + 45 FROM tab1 cor0
----
-135
-2880
-3600
onlyif mysql # use DIV operator for integer division
query I rowsort label-1337
SELECT ALL col2 * cor0.col1 DIV + col1 col1 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL col2 * cor0.col1 / + col1 col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - + col0 + + 73 FROM tab0 AS cor0
----
-16
38
49
query I rowsort
SELECT DISTINCT - col0 + 35 * + col2 FROM tab1 AS cor0
----
1887
1931
3280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1341
SELECT DISTINCT - col1 * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT - col1 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - tab1.col1 + cor0.col1 + + tab1.col1 FROM tab1, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + 92 * col0 AS col0 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT + 22 + - col0 FROM tab1 AS cor0
----
-42
-58
19
onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT ALL cor0.col2 DIV col0 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL cor0.col2 / col0 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT - - col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + 39 - - cor0.col2 FROM tab2 AS cor0
----
65
66
77
query I rowsort
SELECT DISTINCT + 66 * + col2 + + ( + col2 * col0 ) AS col1 FROM tab0 AS cor0
----
101
12710
2970
query I rowsort
SELECT ALL + cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL cor0.col2 + col2 * - cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
-22572
-24510
-39858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 + - col0 col2 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-1352
SELECT DISTINCT 98 DIV - col0 + - tab1.col2 AS col2 FROM tab1
----
-58
-86
-97
skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT 98 / - col0 + - tab1.col2 AS col2 FROM tab1
----
-58
-86
-97
query I rowsort
SELECT ALL 15 + + col1 FROM tab2
----
32
46
74
query I rowsort
SELECT DISTINCT col2 * - tab1.col2 + tab1.col1 FROM tab1
----
-2890
-3239
-9203
query I rowsort
SELECT ALL col1 - + col1 * col2 FROM tab1
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-1356
SELECT - col2 DIV 69 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1356
SELECT - col2 / 69 AS col2 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1357
SELECT + CAST( NULL AS SIGNED ) / tab2.col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1357
SELECT + CAST ( NULL AS INTEGER ) / tab2.col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 - - col2 * + tab2.col2 AS col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT + + 98 AS col0 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 * col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL + + col0 * col0 + ( col1 * col2 ) FROM tab0 AS cor0
----
1322
15383
3414
onlyif mysql # use DIV operator for integer division
query I rowsort label-1362
SELECT ALL + 97 DIV + col1 + - col1 col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL + 97 / + col1 + - col1 col1 FROM tab0 AS cor0
----
-85
-90
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1363
SELECT - col1 - - cor0.col2 * + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1363
SELECT - col1 - - cor0.col2 * + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT DISTINCT + ( - col2 ) DIV ( - ( col0 ) ) FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT + ( - col2 ) / ( - ( col0 ) ) FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL + + 0 + + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1366
SELECT ALL - CAST( NULL AS SIGNED ) * 58 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL - CAST ( NULL AS INTEGER ) * 58 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 5d64bf87effa587b137e9591cd2c54bf
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
54
57
96
query I rowsort
SELECT ALL col2 * - cor0.col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT 52 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
onlyif mysql # use DIV operator for integer division
query I rowsort label-1371
SELECT ALL - col0 * - col0 + + col2 DIV + col1 AS col0 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - col0 * - col0 + + col2 / + col1 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL 56 + col0 AS col2 FROM tab1
----
120
136
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * col2 + - col1 col2 FROM tab0 AS cor0
----
-132
-7389
-878
onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT DISTINCT + 1 + + 85 DIV + col2 FROM tab1 AS cor0
----
1
2
skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT + 1 + + 85 / + col2 FROM tab1 AS cor0
----
1
2
query I rowsort
SELECT DISTINCT 17 * - 90 AS col1 FROM tab2 AS cor0
----
-1530
query I rowsort
SELECT - - col0 * 6 AS col2 FROM tab1 AS cor0
----
18
384
480
onlyif mysql # use DIV operator for integer division
query I rowsort label-1377
SELECT - 2 DIV col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1377
SELECT - 2 / col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 34 FROM tab2 cor0
----
34
query I rowsort
SELECT - ( - 65 + col1 ) AS col1 FROM tab0
----
-21
-26
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT - 45 DIV + tab0.col1 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1380
SELECT - 45 / + tab0.col1 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT ( + col2 ) * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - - 9 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT + + ( col1 ) * col2 * col1 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT ALL - ( + cor0.col0 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1386
SELECT CAST( + col1 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-1386
SELECT CAST ( + col1 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 + 96 FROM tab0 AS cor0
----
129
178
97
query I rowsort
SELECT 12 * col2 FROM tab0 AS cor0
----
12
396
984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1389
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - - ( 68 ) FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT ALL 80 * 15 + col2 FROM tab1 AS cor0
----
1254
1257
1296
query I rowsort
SELECT ALL - ( + ( col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) - - col1 * - ( col2 ) col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT - + col0 - + cor0.col0 * + col0 * col2 FROM tab1 AS cor0
----
-233536
-489
-614480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1395
SELECT + - col0 * cor0.col0 - CAST( NULL AS DECIMAL ) 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-1395
SELECT + - col0 * cor0.col0 - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 20 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
query I rowsort
SELECT ALL + 87 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 969f31ae779866644763e8a07f1ec501
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 9d746e15fdb5adcb43a7518cd9743eb3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - ( col2 ) col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * 14 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT DISTINCT + - col1 + col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT tab2.col1 + - col0 * + 1 AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL - + col1 + 25 AS col1 FROM tab0 AS cor0
----
-61
-66
-72
query I rowsort
SELECT DISTINCT col1 * 59 AS col2 FROM tab2 AS cor0
----
1003
1829
3481
query I rowsort
SELECT + col0 + col1 AS col1 FROM tab0 cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1406
SELECT ALL + CAST( NULL AS DECIMAL ) / 46 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + CAST ( NULL AS REAL ) / 46 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + - 80 * col2 FROM tab2 AS cor0
----
-2080
-2160
-3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1408
SELECT + CAST( NULL AS SIGNED ) + + ( col1 ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1408
SELECT + CAST ( NULL AS INTEGER ) + + ( col1 ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1409
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1410
SELECT DISTINCT col2 + - CAST( + col1 + col0 AS SIGNED ) AS col1 FROM tab0
----
-131
-77
-98
skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT col2 + - CAST ( + col1 + col0 AS INTEGER ) AS col1 FROM tab0
----
-131
-77
-98
query I rowsort
SELECT + col2 + 34 * 67 AS col1 FROM tab1 AS cor0
----
2332
2335
2374
query I rowsort
SELECT + col2 + col0 - cor0.col1 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT + - col2 + 24 * - col2 AS col0 FROM tab1 AS cor0
----
-1350
-1425
-2400
query I rowsort
SELECT col0 + + col0 * cor0.col1 + col0 * 46 AS col1 FROM tab2 AS cor0
----
5056
546
8268
query I rowsort
SELECT + + cor0.col2 + col1 * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT cor0.col2 * + 70 + + col2 AS col1 FROM tab1 cor0
----
3834
4047
6816
query I rowsort
SELECT DISTINCT 84 FROM tab1 cor0
----
84
query I rowsort
SELECT col0 + + 86 * col2 + + col0 AS col2 FROM tab2 cor0
----
2336
2392
3426
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 86 * - col1 col0 FROM tab2 cor0
----
-1462
-2666
-5074
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 * col1 col1 FROM tab1 AS cor0
----
-100
-130
-260
query I rowsort
SELECT DISTINCT + - ( + col1 ) * + cor0.col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 58 + col2 AS col2 FROM tab2 AS cor0
----
84
85
96
query I rowsort
SELECT 59 + + cor0.col0 FROM tab0 AS cor0
----
148
83
94
query I rowsort
SELECT ALL - 76 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT ALL tab2.col2 + tab2.col2 * + col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT DISTINCT - 2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-2
query I rowsort
SELECT ALL col0 - cor0.col2 AS col2 FROM tab0 cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 48 * col1 col0 FROM tab2 AS cor0
----
1515
2858
854
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * 45 col2 FROM tab0 AS cor0
----
1485
3690
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT + - cor0.col1 DIV 60 + - col2 * col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
skipif mysql # not compatible
query I rowsort label-1430
SELECT + - cor0.col1 / 60 + - col2 * col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - + col2 + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1432
SELECT + col1 DIV + tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1432
SELECT + col1 / + tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + col2 + col0 - + col0 * - tab0.col1 AS col1 FROM tab0
----
2121
3431
8270
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1434
SELECT tab2.col0 * + CAST( NULL AS SIGNED ) + 33 col1 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1434
SELECT tab2.col0 * + CAST ( NULL AS INTEGER ) + 33 col1 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-1435
SELECT DISTINCT - col0 * tab2.col0 * col0 - col2 DIV col0 FROM tab2
----
-346
-474552
-493039
skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT - col0 * tab2.col0 * col0 - col2 / col0 FROM tab2
----
-346
-474552
-493039
query I rowsort
SELECT DISTINCT + 50 FROM tab0, tab2, tab2 AS cor0
----
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1437
SELECT ALL - col2 - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - col2 - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1438
SELECT DISTINCT + col0 DIV col2 - - col1 AS col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT + col0 / col2 - - col1 AS col1 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT ALL - col0 + + 90 FROM tab1 cor0
----
10
26
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1440
SELECT + cor0.col1 * + CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1440
SELECT + cor0.col1 * + CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col1 + - 51 AS col0 FROM tab0 AS cor0
----
35
40
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1442
SELECT DISTINCT CAST( NULL AS SIGNED ) + 7 * cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 7 * cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT - tab2.col1 * 29 + - tab2.col1 FROM tab2
----
-1770
-510
-930
query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab2, tab1 AS cor0
----
74
query I rowsort
SELECT - col0 + - col1 * - col2 + col0 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col2 * + ( - col2 ) FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT - col1 * + col2 + ( + col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
-1026
-3562
-3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1448
SELECT ALL + + col0 + - 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-1448
SELECT ALL + + col0 + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col2 + ( col2 ) + cor0.col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col1 * - col2 - 33 AS col2 FROM tab0 AS cor0
----
2805
64
7429
onlyif mysql # use DIV operator for integer division
query I rowsort label-1451
SELECT ALL col0 DIV CAST( 63 AS SIGNED ) + + col1 FROM tab0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL col0 / CAST ( 63 AS INTEGER ) + + col1 FROM tab0
----
86
92
97
query I rowsort
SELECT ALL + col2 + + col2 * col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT 35 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 * + ( 2 ) col0 FROM tab2 AS cor0
----
-40
-55
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1455
SELECT ALL - 83 DIV + col1 - ( + col1 ) FROM tab2 AS cor0
----
-21
-33
-60
skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL - 83 / + col1 - ( + col1 ) FROM tab2 AS cor0
----
-21
-33
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 92 + col0 col1 FROM tab0 AS cor0
----
-3
-57
-68
query I rowsort
SELECT - 40 * cor0.col2 FROM tab2 AS cor0
----
-1040
-1080
-1520
query I rowsort
SELECT ALL - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col2 * - 0 FROM tab2
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1460
SELECT ALL CAST( col0 AS SIGNED ) * + col2 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL CAST ( col0 AS INTEGER ) * + col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT 9 * + col1 AS col2 FROM tab1
----
117
234
90
query I rowsort
SELECT ALL - cor1.col0 - 99 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 13eda1efcea3475a2f2a995c38837448
query I rowsort
SELECT DISTINCT - 56 + + col1 + col2 FROM tab0
----
117
42
63
query I rowsort
SELECT - cor0.col2 * 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6d59c936869313d0b2d0f28c10bf14a9
query I rowsort
SELECT ALL - 52 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT - + 40 + col1 AS col2 FROM tab1 AS cor0
----
-14
-27
-30
query I rowsort
SELECT ALL 47 AS col0 FROM tab2 AS cor0
----
47
47
47
query I rowsort
SELECT DISTINCT ( + col2 ) * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - + cor0.col1 * col1 col0 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL - - 82 * + col2 AS col1 FROM tab0 AS cor0
----
2706
6724
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + col2 col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1472
SELECT DISTINCT - 86 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-86
skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT - 86 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-86
query I rowsort
SELECT DISTINCT + - col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1474
SELECT + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1474
SELECT + col0 / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL > NULL
----
query I rowsort
SELECT - - cor0.col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT cor0.col1 DIV col2 col1 FROM tab0 cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1477
SELECT cor0.col1 / col2 col1 FROM tab0 cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col2 + - col0 col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 * + col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + - cor0.col2 - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT + col2 * + cor0.col0 + - col2 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-1482
SELECT - - cor0.col2 DIV col2 - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-1482
SELECT - - cor0.col2 / col2 - col1 / - col1 AS col0 FROM tab1 AS cor0
----
2
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1483
SELECT col2 DIV - col1 + + col0 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-1483
SELECT col2 / - col1 + + col0 FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT tab0.col2 * col0 + tab0.col2 * col0 * col0 AS col1 FROM tab0
----
1260
19800
656820
query I rowsort
SELECT - col0 * - tab2.col1 + tab2.col2 FROM tab2
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-1486
SELECT - col1 DIV + tab2.col1 col2 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1486
SELECT - col1 / + tab2.col1 col2 FROM tab2
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1487
SELECT + col1 DIV + col2 + + col1 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-1487
SELECT + col1 / + col2 + + col1 FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT DISTINCT col1 * cor0.col0 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-744
1054
1121
query I rowsort
SELECT DISTINCT + - 44 + - col1 FROM tab1 AS cor0
----
-54
-57
-70
query I rowsort
SELECT ALL - col1 - + col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - 90 + col0 * col0 AS col1 FROM tab0 cor0
----
1135
486
7831
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + cor0.col2 * - col1 + col1 * col2 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + + col1 + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - 24 + col0 AS col1 FROM tab0 AS cor0
----
0
11
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-1495
SELECT ALL + 10 DIV - cor0.col1 + col0 * + col2 + + col2 * + col1 FROM tab2 AS cor0
----
1026
3562
3648
skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL + 10 / - cor0.col1 + col0 * + col2 + + col2 * + col1 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT ALL + col1 * col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT - + 46 * col1 FROM tab1 AS cor0
----
-1196
-460
-598
query I rowsort
SELECT + col1 + + cor0.col2 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL col2 * col2 + col2 * + col1 FROM tab1
----
10464
3819
4320
query I rowsort
SELECT - ( + col1 * col2 ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + ( - col1 ) * - col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1502
SELECT ALL + + cor0.col2 DIV + col0 + cor0.col0 * col2 AS col0 FROM tab2 cor0
----
192
2028
3002
skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL + + cor0.col2 / + col0 + cor0.col0 * col2 AS col0 FROM tab2 cor0
----
192
2028
3002
query I rowsort
SELECT - col1 * col2 + + col1 + col2 AS col2 FROM tab2
----
-1449
-591
-779
query I rowsort
SELECT ALL - col1 + + col0 * col2 AS col1 FROM tab1
----
136
3638
7667
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( tab0.col2 )
----
query I rowsort
SELECT + col2 + col1 * tab1.col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL - col1 + tab2.col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT + col2 * - col2 - col2 FROM tab2
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT col1 - tab2.col2 * - col1 AS col0 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL col0 + + col2 * col1 AS col1 FROM tab0
----
132
2862
7551
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - col2 + + col2 + col1
----
query I rowsort
SELECT DISTINCT col1 - col1 * - col2 * col0 FROM tab2
----
119711
51051
5890
query I rowsort
SELECT ALL tab0.col0 + col2 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL tab0.col0 / - col1 AS col1 FROM tab0 WHERE NOT col2 NOT IN ( - col0 * col1 )
----
query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) IN ( - col1 )
----
query I rowsort
SELECT ALL + col0 * col2 + col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT NULL IN ( tab0.col0 )
----
query I rowsort
SELECT DISTINCT - col2 + - col0 FROM tab1 WHERE NULL NOT IN ( - col2 )
----
query I rowsort
SELECT + col1 + - col1 + - col1 AS col1 FROM tab0
----
-86
-91
-97
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col2 + col1 )
----
query I rowsort
SELECT - col2 + tab2.col0 * + tab2.col1 FROM tab2
----
1305
190
4576
query I rowsort
SELECT + col2 - + col2 * col0 FROM tab1
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * col0 col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col0 + + col2 + - col2 FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1525
SELECT - col0 * - col2 + - col2 DIV col1 + + col1 AS col0 FROM tab2
----
2087
220
3017
skipif mysql # not compatible
query I rowsort label-1525
SELECT - col0 * - col2 + - col2 / col1 + + col1 AS col0 FROM tab2
----
2087
220
3017
query I rowsort
SELECT ALL + col0 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT col2 * col1 * - col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT ALL - + cor0.col1 * + col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - col1 * col0 + + cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1530
SELECT DISTINCT - col2 DIV col1 AS col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1530
SELECT DISTINCT - col2 / col1 AS col1 FROM tab1
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT + col0 DIV - col2 AS col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1531
SELECT + col0 / - col2 AS col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE + col1 NOT IN ( col2 )
----
-7
-78
-79
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT col1 * col0 * + tab2.col2 AS col1 FROM tab2 WHERE NULL <= + col2
----
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1536
SELECT DISTINCT col1 + - col2 DIV + col1 FROM tab1
----
24
5
6
skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT col1 + - col2 / + col1 FROM tab1
----
24
5
6
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * col0 AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1538
SELECT col0 + + col0 DIV col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-1538
SELECT col0 + + col0 / col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT tab2.col2 * - col0 * col1 AS col2 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1540
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 5 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 5 FROM tab1
----
NULL
query I rowsort
SELECT - 54 + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to abad5f62338da79e092402448d295753
query I rowsort
SELECT col2 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT - + ( + 93 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1209
-2418
-930
query I rowsort
SELECT DISTINCT + tab0.col2 FROM tab0, tab2 cor0
----
1
33
82
query I rowsort
SELECT - - 28 * + col2 AS col1 FROM tab2 AS cor0
----
1064
728
756
query I rowsort
SELECT ALL + col2 * col2 + 62 FROM tab1
----
2978
3311
9278
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col2 FROM tab2 AS cor0
----
39
query I rowsort
SELECT col2 * col0 + col1 * 72 AS col1 FROM tab2 AS cor0
----
2421
4226
6276
query I rowsort
SELECT + col0 * col2 * + col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL - 94 + - tab2.col0 + - tab2.col2 FROM tab2, tab0 cor0
----
9 values hashing to f4af1c9be23f07d57bd714ac4cf36c25
onlyif mysql # use DIV operator for integer division
query I rowsort label-1551
SELECT ALL tab0.col1 DIV ( - col2 ) FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL tab0.col1 / ( - col2 ) FROM tab0
----
-1
-2
-97
query I rowsort
SELECT - + col1 + 6 * col1 FROM tab2 AS cor0
----
155
295
85
query I rowsort
SELECT ALL - ( - cor0.col2 ) + col2 AS col1 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1554
SELECT + CAST( col1 AS SIGNED ) * + col1 * col1 AS col1 FROM tab1 AS cor0
----
1000
17576
2197
skipif mysql # not compatible
query I rowsort label-1554
SELECT + CAST ( col1 AS INTEGER ) * + col1 * col1 AS col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT + + cor0.col0 + + 54 AS col1 FROM tab2 cor0
----
132
133
61
query I rowsort
SELECT ( 88 ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT ALL - ( - ( - col1 ) ) + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + ( + 79 ) * + col1 FROM tab0 AS cor0
----
6794
7189
7663
query I rowsort
SELECT DISTINCT col0 * - 17 * cor0.col1 + - 38 * col2 AS col1 FROM tab1 AS cor0
----
-13046
-21328
-3378
query I rowsort
SELECT 55 + + 72 FROM tab0
----
127
127
127
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1561
SELECT ALL + + CAST( NULL AS SIGNED ) + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL + + CAST ( NULL AS INTEGER ) + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 22 - + col0 FROM tab1 AS cor0
----
-42
-58
19
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - col2 * - col2 + col0 * - 55 - + col1 AS col2 FROM tab0 cor0
----
-2021
-317
1738
query I rowsort
SELECT DISTINCT + 29 * + col0 AS col0 FROM tab2 AS cor0
----
203
2262
2291
query I rowsort
SELECT ALL 17 AS col0 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT + tab1.col2 + 50 FROM tab1
----
104
107
146
query I rowsort
SELECT ALL - + 71 FROM tab1 cor0
----
-71
-71
-71
query I rowsort
SELECT - ( col1 ) + + ( - cor0.col2 ) FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + tab2.col1 * + tab2.col0 - col0 * - 16 * col1 FROM tab2
----
22831
3689
78234
query I rowsort
SELECT - 50 + col2 FROM tab0
----
-17
-49
32
query I rowsort
SELECT - 27 FROM tab0
----
-27
-27
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1573
SELECT CAST( 96 AS SIGNED ) AS col2 FROM tab1
----
96
96
96
skipif mysql # not compatible
query I rowsort label-1573
SELECT CAST ( 96 AS INTEGER ) AS col2 FROM tab1
----
96
96
96
query I rowsort
SELECT + 84 + col2 AS col2 FROM tab0
----
117
166
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1575
SELECT tab0.col1 DIV col2 - col0 * - 34 * - col1 AS col2 FROM tab0
----
-115333
-275365
-70174
skipif mysql # not compatible
query I rowsort label-1575
SELECT tab0.col1 / col2 - col0 * - 34 * - col1 AS col2 FROM tab0
----
-115333
-275365
-70174
query I rowsort
SELECT ALL + + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - col0 + 55 * 17 FROM tab2 AS cor0
----
856
857
928
query I rowsort
SELECT - + col1 * 28 + - col0 AS col0 FROM tab2 AS cor0
----
-1730
-555
-875
query I rowsort
SELECT DISTINCT + + cor0.col1 * 16 FROM tab1 AS cor0
----
160
208
416
query I rowsort
SELECT DISTINCT + + col2 * - ( cor0.col0 + + col2 ) * + col1 FROM tab2 AS cor0
----
-159536
-28458
-75582
query I rowsort
SELECT + + tab2.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1582
SELECT ALL - cor0.col1 + col1 DIV + 60 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - cor0.col1 + col1 / + 60 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + cor0.col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1584
SELECT DISTINCT + col2 DIV cor0.col1 - + cor0.col0 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT + col2 / cor0.col1 - + cor0.col0 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT ALL - + col1 + 84 AS col0 FROM tab2 AS cor0
----
25
53
67
query I rowsort
SELECT + col0 + + ( col2 ) * - cor0.col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - - col1 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - col1 * ( 98 ) + - col1 * + col2 FROM tab2 AS cor0
----
-2312
-3875
-7316
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col1 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 95 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT + col1 * + col1 - col0 AS col1 FROM tab2
----
210
3403
954
query I rowsort
SELECT - col1 * - col1 * 69 AS col0 FROM tab0
----
510324
571389
649221
onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT ALL - + col1 * col2 + 35 + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1499
-611
-806
skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL - + col1 * col2 + 35 + col1 / - col0 AS col0 FROM tab2 AS cor0
----
-1499
-611
-806
query I rowsort
SELECT DISTINCT col0 * col2 * + col1 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT + tab1.col1 + col0 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT col2 * tab1.col1 * + col1 FROM tab1
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col1 FROM tab1
----
85
85
85
query I rowsort
SELECT DISTINCT - col0 + + col1 * col1 * - cor0.col2 FROM tab1 AS cor0
----
-16304
-36507
-5764
query I rowsort
SELECT ALL + col2 * + ( 90 ) FROM tab0 cor0
----
2970
7380
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + - col2 + col1 * 36 FROM tab0 AS cor0
----
3063
3194
3491
query I rowsort
SELECT DISTINCT + cor0.col0 * ( 28 ) AS col1 FROM tab1 AS cor0
----
1792
2240
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1603
SELECT - cor0.col0 * CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1603
SELECT - cor0.col0 * CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col0 * - 46 * - cor0.col0 AS col1 FROM tab0 cor0
----
-26496
-364366
-56350
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1605
SELECT - col2 * CAST( + col0 * + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
skipif mysql # not compatible
query I rowsort label-1605
SELECT - col2 * CAST ( + col0 * + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT - + col2 * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
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 ALL col1 + + ( - col0 ) * - col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-1610
SELECT 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-1610
SELECT col0 / + col0 col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col1 + 64 AS col1 FROM tab0 AS cor0
----
-22
-27
-33
query I rowsort
SELECT ( - 73 ) + + col1 FROM tab1 AS cor0
----
-47
-60
-63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1613
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 27 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 27 AS col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 col1 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL + col2 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + col2 * - 26 AS col1 FROM tab0 AS cor0
----
-2132
-26
-858
query I rowsort
SELECT ALL - + col0 + + col0 * col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL 83 * - tab1.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 6a6e4b681f3ba7db664b034a6875f7e6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 col2 FROM tab0, tab2 AS cor0
----
86
91
97
query I rowsort
SELECT ALL ( + col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col1 + + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 * col2 - - col2 col2 FROM tab2 cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1624
SELECT DISTINCT + ( + col1 ) + col2 DIV ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT + ( + col1 ) + col2 / ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT ALL cor0.col1 * col1 + + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT 77 * cor0.col2 - + col2 FROM tab1 cor0
----
4104
4332
7296
query I rowsort
SELECT DISTINCT col0 * - col1 + col1 * col1 AS col1 FROM tab0 cor0
----
182
5332
6014
query I rowsort
SELECT DISTINCT + col0 + 38 FROM tab2 AS cor0
----
116
117
45
query I rowsort
SELECT ALL - 29 * + ( + col0 ) FROM tab1 AS cor0
----
-1856
-2320
-87
query I rowsort
SELECT + + col1 + 15 * col1 AS col0 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT ALL - - col1 * cor0.col0 + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT 86 + 86 FROM tab0
----
172
query I rowsort
SELECT DISTINCT col2 * + cor0.col2 + - col0 FROM tab1 AS cor0
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-1634
SELECT ALL + 21 DIV - 51 + + col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL + 21 / - 51 + + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - cor1.col1 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + + 41 + + col1 FROM tab1 AS cor0
----
51
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1637
SELECT ALL 90 + 40 DIV col0 + - 25 FROM tab1
----
65
65
78
skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL 90 + 40 / col0 + - 25 FROM tab1
----
65
65
78
query I rowsort
SELECT ALL - 19 + + 69 AS col1 FROM tab0
----
50
50
50
query I rowsort
SELECT ALL - ( cor0.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1640
SELECT - ( col1 ) + + col2 * - ( col2 ) DIV - col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-1640
SELECT - ( col1 ) + + col2 * - ( col2 ) / - col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - col2 + ( col0 ) * col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col2 FROM tab2 cor0
----
96
query I rowsort
SELECT ALL - + cor0.col0 * col0 + + col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT - + 77 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-77
query I rowsort
SELECT + 22 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT col0 - 83 * col0 FROM tab2 AS cor0
----
-574
-6396
-6478
query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT col1 * 89 AS col2 FROM tab0
----
7654
8099
8633
query I rowsort
SELECT col1 * 33 + + col0 FROM tab2
----
1030
2025
640
query I rowsort
SELECT ( - 40 ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1651
SELECT - ( 85 ) DIV + tab2.col1 FROM tab2
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-1651
SELECT - ( 85 ) / + tab2.col1 FROM tab2
----
-1
-2
-5
query I rowsort
SELECT DISTINCT ( - ( - col1 ) ) FROM tab2
----
17
31
59
query I rowsort
SELECT + col2 * 42 AS col0 FROM tab1
----
2268
2394
4032
query I rowsort
SELECT col0 + col0 * + col1 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT - + 47 - 81 * cor0.col2 FROM tab0 AS cor0
----
-128
-2720
-6689
query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT ( 50 ) * - col1 FROM tab2 AS cor0
----
-1550
-2950
-850
query I rowsort
SELECT 91 * col0 + + cor0.col1 - + col0 FROM tab2 cor0
----
661
7079
7127
query I rowsort
SELECT ALL cor0.col1 + cor0.col1 AS col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT DISTINCT - + col0 + 56 - + cor0.col0 AS col0 FROM tab1 AS cor0
----
-104
-72
50
query I rowsort
SELECT ALL col0 * + 98 AS col2 FROM tab1 AS cor0
----
294
6272
7840
onlyif mysql # use DIV operator for integer division
query I rowsort label-1662
SELECT DISTINCT + col2 DIV ( 32 ) + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1251
1405
571
skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT + col2 / ( 32 ) + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1251
1405
571
onlyif mysql # use DIV operator for integer division
query I rowsort label-1663
SELECT DISTINCT - cor0.col1 * - cor0.col2 + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT - cor0.col1 * - cor0.col2 + col2 / col2 AS col0 FROM tab0 AS cor0
----
2839
7463
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1664
SELECT ALL - - col2 * col2 * ( col2 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL - - col2 * col2 * ( col2 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 56 * col0 FROM tab0
----
1344
1960
4984
query I rowsort
SELECT 2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - ( 5 ) col0 FROM tab0 cor0
----
-29
-40
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT DISTINCT + col2 + + cor0.col2 * cor0.col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT + col2 + + cor0.col2 * cor0.col1 / - col2 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - col0 * - ( - col1 ) - - col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - + col2 + col1 * + col2 + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 * + 38 FROM tab1 AS cor0
----
2052
2166
3648
query I rowsort
SELECT DISTINCT + - ( cor1.col1 ) * 58 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1798
-3422
-986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 43 col1 FROM tab0
----
1032
1505
3827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * col2 * - ( + cor0.col2 ) + + col2 - 47 col2 FROM tab0 AS cor0
----
-45
35923
551403
query I rowsort
SELECT ALL + col2 * + col0 + ( 88 ) AS col2 FROM tab1 AS cor0
----
250
3736
7768
query I rowsort
SELECT + 21 FROM tab1, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT - - 47 AS col2 FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT ALL + cor0.col0 * + col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + col0 + - col0 + - 42 AS col2 FROM tab1 AS cor0
----
-42
-42
-42
query I rowsort
SELECT ALL col1 + + col1 * + col1 FROM tab2 cor0
----
306
3540
992
query I rowsort
SELECT - + col0 * col2 + cor0.col1 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL 87 + + col1 FROM tab0 AS cor0
----
173
178
184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + cor0.col0 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - col2 * + ( col1 ) + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT 8 FROM tab2, tab2 AS cor0
----
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1686
SELECT DISTINCT + - col1 * - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT + - col1 * - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1687
SELECT ALL - + cor0.col0 + - CAST( NULL AS SIGNED ) * ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL - + cor0.col0 + - CAST ( NULL AS INTEGER ) * ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + col2 AS col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - col1 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL col1 * - 94 * - 59 AS col1 FROM tab2 AS cor0
----
171926
327214
94282
query I rowsort
SELECT - col2 - 27 FROM tab2 cor0
----
-53
-54
-65
query I rowsort
SELECT ALL - col1 * col1 + tab0.col0 * tab0.col2 + col2 FROM tab0
----
-6571
-901
-9373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1693
SELECT - col2 - + ( + col1 ) * CAST( 13 AS SIGNED ) FROM tab2
----
-259
-430
-793
skipif mysql # not compatible
query I rowsort label-1693
SELECT - col2 - + ( + col1 ) * CAST ( 13 AS INTEGER ) FROM tab2
----
-259
-430
-793
query I rowsort
SELECT col2 + + col2 + col0 * col2 FROM tab2
----
2080
243
3078
query I rowsort
SELECT DISTINCT - col1 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL + col1 + col0 * cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - - col2 - cor0.col1 FROM tab1 cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1698
SELECT - - CAST( col1 AS SIGNED ) + col1 FROM tab0 AS cor0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-1698
SELECT - - CAST ( col1 AS INTEGER ) + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + ( col1 ) + 74 AS col1 FROM tab1 AS cor0
----
100
84
87
query I rowsort
SELECT ALL - col1 + col1 * 80 AS col2 FROM tab1 AS cor0
----
1027
2054
790
query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab0 cor0
----
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1702
SELECT + 16 + + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1702
SELECT + 16 + + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 + col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT DISTINCT - 8 * col0 FROM tab1 AS cor0
----
-24
-512
-640
query I rowsort
SELECT 10 + cor0.col2 FROM tab2 cor0
----
36
37
48
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1707
SELECT col2 DIV 73 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1707
SELECT col2 / 73 AS col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT + col2 - col0 DIV col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1708
SELECT + col2 - col0 / col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - 10 + ( - col0 ) * - ( 51 ) AS col1 FROM tab1
----
143
3254
4070
query I rowsort
SELECT DISTINCT - ( col2 ) - col2 FROM tab0
----
-164
-2
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1711
SELECT - CAST( NULL AS DECIMAL ) * tab0.col2 + - col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1711
SELECT - CAST ( NULL AS REAL ) * tab0.col2 + - col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 13 * - col1 - + col2 FROM tab1
----
-187
-265
-392
query I rowsort
SELECT - 68 AS col0 FROM tab0, tab2, tab0 AS cor0, tab0 cor1
----
81 values hashing to 3a5c3d9872a8a4148ab98ed0ab0a6c62
query I rowsort
SELECT + + cor0.col2 * - col1 + + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1715
SELECT + col2 * + CAST( col1 AS SIGNED ) FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-1715
SELECT + col2 * + CAST ( col1 AS INTEGER ) FROM tab0
----
2838
7462
97
query I rowsort
SELECT - col2 * - col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + col0 * 46 FROM tab2
----
322
3588
3634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1718
SELECT 32 DIV - tab2.col1 FROM tab2, tab2 cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
skipif mysql # not compatible
query I rowsort label-1718
SELECT 32 / - tab2.col1 FROM tab2, tab2 cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
query I rowsort
SELECT DISTINCT - col0 + 4 AS col2 FROM tab2
----
-3
-74
-75
query I rowsort
SELECT - ( + tab2.col1 ) AS col1 FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1721
SELECT DISTINCT 92 DIV col1 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT 92 / col1 FROM tab0
----
0
1
query I rowsort
SELECT + 82 AS col2 FROM tab1
----
82
82
82
query I rowsort
SELECT ALL + cor0.col0 + 65 AS col1 FROM tab1 AS cor0
----
129
145
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * + cor0.col1 col2 FROM tab2, tab1 cor0
----
9 values hashing to 78f73cc3df4091f36a0c49a0e073121b
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + 59 + col1 + + 91 FROM tab1
----
160
163
176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - ( col2 + col1 ) col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + 70 - - col2 * col2 FROM tab2
----
1514
746
799
query I rowsort
SELECT DISTINCT ( + tab2.col0 ) * + 94 + 44 FROM tab2
----
702
7376
7470
query I rowsort
SELECT DISTINCT - + 1 + + col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1443
675
728
query I rowsort
SELECT ALL 98 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT - + col0 * + col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT ALL tab2.col0 + + col0 DIV + col1 AS col1 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL tab2.col0 + + col0 / + col1 AS col1 FROM tab2
----
7
79
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT + col2 * 13 DIV + col1 + cor0.col2 FROM tab0 AS cor0
----
1
37
93
skipif mysql # not compatible
query I rowsort label-1735
SELECT + col2 * 13 / + col1 + cor0.col2 FROM tab0 AS cor0
----
1
37
93
query I rowsort
SELECT ALL col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col2 * col0 + + 55 * + col2 FROM tab1 AS cor0
----
-2400
-513
2808
query I rowsort
SELECT ALL + - cor0.col2 - + col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - col0 * 65 AS col2 FROM tab1 AS cor0
----
-195
-4160
-5200
query I rowsort
SELECT + col1 * + 66 + col0 FROM tab0 AS cor0
----
5700
6095
6437
query I rowsort
SELECT - col1 * - col0 - col0 AS col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - col0 * ( col0 + + col1 ) AS col0 FROM tab0 AS cor0
----
-16020
-2640
-4620
query I rowsort
SELECT ALL - col0 + + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col2 * + col1 col2 FROM tab0 AS cor0
----
-194
-2924
-7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 67 * - col2 col0 FROM tab1 AS cor0
----
3592
3809
6419
query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab0, tab2 AS cor0
----
74
query I rowsort
SELECT ALL - col1 * - 64 FROM tab2
----
1088
1984
3776
query I rowsort
SELECT + - col0 + - cor0.col1 * - col0 FROM tab2 AS cor0
----
1264
210
4524
skipif mysql # not compatible
query I rowsort
SELECT col1 / CAST ( + col1 AS REAL ) + - col1 * col0 AS col2 FROM tab2
----
-1342
-216
-4601
query I rowsort
SELECT 12 - + col2 * - cor0.col1 FROM tab0 AS cor0
----
109
2850
7474
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1751
SELECT + - CAST( NULL AS SIGNED ) * - col1 + col0 / 4 + + 13 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1751
SELECT + - CAST ( NULL AS INTEGER ) * - col1 + col0 / 4 + + 13 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 95 + + col1 * col1 + ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
7268
8104
9313
query I rowsort
SELECT 34 AS col2 FROM tab1 cor0
----
34
34
34
query I rowsort
SELECT ALL - + col1 * 29 AS col0 FROM tab1 AS cor0
----
-290
-377
-754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1755
SELECT - CAST( + col2 AS SIGNED ) * + col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409
skipif mysql # not compatible
query I rowsort label-1755
SELECT - CAST ( + col2 AS INTEGER ) * + col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT + 0 + col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT 3 DIV - col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1757
SELECT 3 / - col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1758
SELECT col2 * col1 + col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1758
SELECT col2 * col1 + col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1759
SELECT - + col0 * CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1759
SELECT - + col0 * CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1760
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT + ( ( + col0 ) ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + ( cor0.col0 ) * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + 19 + - col0 FROM tab2 AS cor0
----
-59
-60
12
query I rowsort
SELECT DISTINCT col1 * - col2 - col0 * col0 FROM tab1 AS cor0
----
-1413
-4666
-7648
query I rowsort
SELECT DISTINCT - - col2 * - col0 + col2 AS col0 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT + 88 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
7592
8097
8571
query I rowsort
SELECT ALL + + ( col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1769
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + ( 7 ) FROM tab2 AS cor0
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1771
SELECT + + col1 DIV + 83 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1771
SELECT + + col1 / + 83 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - - cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ( col1 ) + + tab2.col0 * 20 FROM tab2
----
1597
1619
171
query I rowsort
SELECT ALL - col0 + ( col2 ) AS col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT col1 * + 26 + - 85 FROM tab1 AS cor0
----
175
253
591
query I rowsort
SELECT DISTINCT - + cor0.col2 * - col2 + - col2 FROM tab0 cor0
----
0
1056
6642
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1777
SELECT ALL col1 * CAST( col1 AS SIGNED ) + - col0 FROM tab0 cor0
----
7372
8192
9374
skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL col1 * CAST ( col1 AS INTEGER ) + - col0 FROM tab0 cor0
----
7372
8192
9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1778
SELECT + col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1778
SELECT + col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 16 * col2 FROM tab0
----
1312
16
528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1780
SELECT + CAST( 44 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
skipif mysql # not compatible
query I rowsort label-1780
SELECT + CAST ( 44 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT - + col0 + 7 FROM tab0 cor0
----
-17
-28
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 79 col1 FROM tab2
----
553
6162
6241
query I rowsort
SELECT DISTINCT + tab0.col1 * + ( - col2 ) + - col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT + - 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-91
query I rowsort
SELECT DISTINCT - 40 + - 87 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1171
-2302
-910
query I rowsort
SELECT ALL + 50 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
12
23
24
query I rowsort
SELECT DISTINCT col0 + 18 FROM tab0 AS cor0
----
107
42
53
query I rowsort
SELECT ALL - cor0.col1 * 91 * + col0 + col0 FROM tab2 AS cor0
----
-122134
-19740
-418704
onlyif mysql # use DIV operator for integer division
query I rowsort label-1789
SELECT DISTINCT - col0 + 69 + 12 DIV + col2 AS col1 FROM tab1
----
-11
5
66
skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT - col0 + 69 + 12 / + col2 AS col1 FROM tab1
----
-11
5
66
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1791
SELECT col0 + - CAST( NULL AS SIGNED ) + 71 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1791
SELECT col0 + - CAST ( NULL AS INTEGER ) + 71 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab0.col1 + 13 + col0 FROM tab0
----
123
145
193
onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT ALL ( cor0.col2 ) DIV col1 - col1 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL ( cor0.col2 ) / col1 - col1 FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1794
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 37 / - col1 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 37 / - col1 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT ALL col0 * + col1 + col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT + ( + col0 ) + col1 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL col2 * 83 + col2 FROM tab2 AS cor0
----
2184
2268
3192
query I rowsort
SELECT ALL cor0.col1 * 9 FROM tab0 AS cor0
----
774
819
873
query I rowsort
SELECT DISTINCT 70 * ( - cor0.col2 ) + - col0 AS col2 FROM tab0 AS cor0
----
-105
-2334
-5829
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1800
SELECT DISTINCT - CAST( col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 AS REAL ) * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - - 64 + col1 * col2 AS col0 FROM tab0 AS cor0
----
161
2902
7526
query I rowsort
SELECT ( - col2 ) * + col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 10 * tab0.col0 AS col0 FROM tab0
----
240
350
890
query I rowsort
SELECT + + tab0.col1 AS col0 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + ( + col1 ) + col1 AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT - col2 + + col2 * + col0 AS col0 FROM tab2
----
162
2002
2964
query I rowsort
SELECT + col2 - - col1 * + col1 AS col1 FROM tab2
----
327
3507
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-1809
SELECT col2 DIV tab2.col0 - 62 AS col1 FROM tab2
----
-59
-62
-62
skipif mysql # not compatible
query I rowsort label-1809
SELECT col2 / tab2.col0 - 62 AS col1 FROM tab2
----
-59
-62
-62
query I rowsort
SELECT + col0 + - col2 * ( ( + cor0.col0 ) ) FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-1811
SELECT DISTINCT + col0 DIV tab1.col2 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT + col0 / tab1.col2 FROM tab1
----
0
1
query I rowsort
SELECT ALL - - col0 * 97 * col0 FROM tab1 AS cor0
----
397312
620800
873
query I rowsort
SELECT col1 * - col2 + col2 * col1 * col1 AS col2 FROM tab1 AS cor0
----
14976
35100
5130
query I rowsort
SELECT + cor0.col1 * ( 73 ) - col2 AS col0 FROM tab0 AS cor0
----
6245
6561
7080
query I rowsort
SELECT ALL col1 * - ( + cor0.col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1816
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
query I rowsort
SELECT + - cor0.col0 - - 12 * - 65 AS col2 FROM tab1 AS cor0
----
-783
-844
-860
query I rowsort
SELECT - col1 * - col2 * - ( - col1 ) + col1 AS col0 FROM tab2
----
10999
25978
90565
query I rowsort
SELECT + cor0.col0 * ( + col2 ) AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col0 + 16 * cor0.col0 AS col0 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT + cor0.col2 + + col1 * col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT ALL col2 * - 81 FROM tab1 AS cor0
----
-4374
-4617
-7776
query I rowsort
SELECT - col0 - ( cor0.col0 * col2 ) AS col0 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-1824
SELECT ALL + col0 DIV 23 AS col1 FROM tab0 AS cor0
----
1
1
3
skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + col0 / 23 AS col1 FROM tab0 AS cor0
----
1
1
3
query I rowsort
SELECT ALL + col2 + + 73 AS col0 FROM tab1 AS cor0
----
127
130
169
query I rowsort
SELECT col1 + + col1 - cor0.col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1827
SELECT ALL - - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL - - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 * 2 FROM tab2 AS cor0
----
-52
-54
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + 30 col1 FROM tab2 AS cor0
----
1373
247
4632
query I rowsort
SELECT ALL - col2 + + col1 * - 65 AS col2 FROM tab2 AS cor0
----
-1143
-2042
-3861
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1831
SELECT ALL + - ( col2 ) + - CAST( - 2 AS SIGNED ) FROM tab1 AS cor0
----
-52
-55
-94
skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL + - ( col2 ) + - CAST ( - 2 AS INTEGER ) FROM tab1 AS cor0
----
-52
-55
-94
query I rowsort
SELECT ALL col1 * + col0 + 90 + ( tab0.col0 ) FROM tab0
----
2178
3520
8278
query I rowsort
SELECT - - cor0.col0 * + 65 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
13884
3624
5670
onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT DISTINCT + col0 * + col2 DIV col2 + - 59 + + col0 AS col1 FROM tab1
----
-53
101
69
skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT + col0 * + col2 / col2 + - 59 + + col0 AS col1 FROM tab1
----
-53
101
69
query I rowsort
SELECT + tab0.col1 * - col1 AS col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT - 4 + tab1.col1 AS col1 FROM tab1
----
22
6
9
query I rowsort
SELECT + + col0 * col0 AS col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ALL ( + 98 ) FROM tab1, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # use DIV operator for integer division
query I rowsort label-1839
SELECT tab1.col2 * + col0 + ( col2 ) DIV col2 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-1839
SELECT tab1.col2 * + col0 + ( col2 ) / col2 FROM tab1
----
163
3649
7681
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1840
SELECT - col0 * CAST( NULL AS SIGNED ) * col1 + + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1840
SELECT - col0 * CAST ( NULL AS INTEGER ) * col1 + + col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1841
SELECT ALL + col0 * + col2 + - cor0.col0 DIV + 3 FROM tab1 AS cor0
----
161
3627
7654
skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL + col0 * + col2 + - cor0.col0 / + 3 FROM tab1 AS cor0
----
161
3627
7654
query I rowsort
SELECT 95 AS col0 FROM tab0 AS cor0
----
95
95
95
query I rowsort
SELECT DISTINCT + col1 * - col1 + col0 * + col1 FROM tab0 AS cor0
----
-182
-5332
-6014
query I rowsort
SELECT DISTINCT col1 * tab2.col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT 61 FROM tab1, tab2 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
onlyif mysql # use DIV operator for integer division
query I rowsort label-1846
SELECT tab2.col0 DIV cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e35dfb512cae688e84c3eed33a5f1b74
skipif mysql # not compatible
query I rowsort label-1846
SELECT tab2.col0 / cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e35dfb512cae688e84c3eed33a5f1b74
query I rowsort
SELECT col2 * - 26 + col2 AS col1 FROM tab0
----
-2050
-25
-825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1848
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col1 + + col0 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 + + col0 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT - - ( - ( cor0.col1 ) ) + - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT - 57 * col0 AS col0 FROM tab1 AS cor0
----
-171
-3648
-4560
query I rowsort
SELECT DISTINCT + col1 * 60 AS col0 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT DISTINCT - ( - 85 ) * + col2 AS col0 FROM tab0 cor0
----
2805
6970
85
query I rowsort
SELECT ALL 42 + ( - col1 ) * col0 FROM tab1 AS cor0
----
-36
-598
-998
query I rowsort
SELECT - + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1855
SELECT ALL CAST( ( - col0 ) AS SIGNED ) * col0 + 13 FROM tab1 AS cor0
----
-4083
-6387
4
skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL CAST ( ( - col0 ) AS INTEGER ) * col0 + 13 FROM tab1 AS cor0
----
-4083
-6387
4
query I rowsort
SELECT ALL ( - 69 ) * - col1 FROM tab1 AS cor0
----
1794
690
897
query I rowsort
SELECT DISTINCT + ( 18 ) * col2 - col1 AS col0 FROM tab1 AS cor0
----
1016
1715
946
query I rowsort
SELECT DISTINCT + col0 * - col0 * - col2 + col1 FROM tab0 cor0
----
1322
19094
649613
query I rowsort
SELECT ALL - col1 - - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + 26 * col2 AS col1 FROM tab1 cor0
----
1404
1482
2496
query I rowsort
SELECT + ( + col0 ) + col0 FROM tab2
----
14
156
158
query I rowsort
SELECT 88 + col0 * - col1 AS col1 FROM tab2 cor0
----
-1255
-129
-4514
query I rowsort
SELECT DISTINCT + - col0 + col0 * ( + col2 ) AS col2 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT ALL - 64 * col1 * - col2 FROM tab2
----
41344
53568
98176
query I rowsort
SELECT DISTINCT + 66 * + 82 FROM tab2 cor0
----
5412
query I rowsort
SELECT ALL col2 * col1 * col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL - 77 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT DISTINCT + 73 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
73
query I rowsort
SELECT - + 17 + col1 AS col1 FROM tab2 cor0
----
0
14
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-1870
SELECT - col2 DIV - cor0.col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1870
SELECT - col2 / - cor0.col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT + cor0.col2 + col1 * + 42 FROM tab0 AS cor0
----
3645
3904
4075
query I rowsort
SELECT - + 31 FROM tab0 AS cor0
----
-31
-31
-31
query I rowsort
SELECT DISTINCT + col1 + + ( cor0.col1 ) FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT + cor0.col0 + ( col2 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + + col0 * col2 + col1 * - col2 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT - col1 * - 15 * + col0 + + cor0.col2 * - 12 AS col0 FROM tab0 cor0
----
120501
30564
50913
query I rowsort
SELECT DISTINCT - + cor0.col2 + - 93 AS col1 FROM tab1 AS cor0
----
-147
-150
-189
query I rowsort
SELECT cor0.col2 + - 73 * col1 + + col1 * - col0 FROM tab2 AS cor0
----
-2453
-2546
-8883
query I rowsort
SELECT ALL 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-1880
SELECT - col2 * ( col1 * - col0 ) + - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1880
SELECT - col2 * ( col1 * - col0 ) + - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + 9 FROM tab2 AS cor0
----
16
87
88
query I rowsort
SELECT col2 + + col1 * + col2 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 88 * cor0.col1 col2 FROM tab1 AS cor0
----
-1144
-2288
-880
query I rowsort
SELECT - 19 * + col1 FROM tab0 AS cor0
----
-1634
-1729
-1843
onlyif mysql # use DIV operator for integer division
query I rowsort label-1885
SELECT col2 + - 22 + 82 DIV + col0 AS col1 FROM tab1
----
36
59
75
skipif mysql # not compatible
query I rowsort label-1885
SELECT col2 + - 22 + 82 / + col0 AS col1 FROM tab1
----
36
59
75
query I rowsort
SELECT - col2 * + ( - col1 + tab1.col1 ) FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 - ( + col2 ) FROM tab2
----
-104
-117
-34
query I rowsort
SELECT - col2 + - ( col1 ) * col2 * 38 FROM tab2 AS cor0
----
-24586
-31833
-58318
query I rowsort
SELECT col2 - ( - ( - cor0.col1 ) ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + col2 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + 23 + col1 * col1 + 98 AS col1 FROM tab2 AS cor0
----
1082
3602
410
query I rowsort
SELECT + col1 + + 27 FROM tab1 AS cor0
----
37
40
53
query I rowsort
SELECT ALL col2 + + ( - col2 ) - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ( - col2 ) + col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - + 4 * 54 AS col0 FROM tab0 AS cor0
----
-216
-216
-216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col0 FROM tab1 AS cor0
----
11
11
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 57 ) col1 FROM tab1 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT 39 + - ( col1 ) * - col0 FROM tab0 AS cor0
----
2103
3434
8138
query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab0 AS cor0
----
98
query I rowsort
SELECT - col0 + col2 + col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - - col1 * col0 - + cor0.col0 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT ALL 39 * cor0.col0 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT 26 AS col2 FROM tab0 AS cor0
----
26
26
26
query I rowsort
SELECT DISTINCT 50 * - cor0.col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
query I rowsort
SELECT ALL ( 87 ) * + col1 * - 92 FROM tab2 AS cor0
----
-136068
-248124
-472236
query I rowsort
SELECT - 18 AS col1 FROM tab1 AS cor0
----
-18
-18
-18
query I rowsort
SELECT + + 32 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT - 42 * + col1 + col0 * col2 FROM tab2 AS cor0
----
-1113
-450
2288
query I rowsort
SELECT ALL col0 + + col2 * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + col2 + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT col1 + - col2 * ( + col2 ) FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT + col1 + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - col0 + + col0 * - ( - 34 ) AS col2 FROM tab1 AS cor0
----
2112
2640
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-1914
SELECT - ( - col0 ) DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1914
SELECT - ( - col0 ) / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 78 * + cor0.col0 + - col2 * 89 FROM tab1 AS cor0
----
-10065
-14784
-5040
query I rowsort
SELECT ALL + col1 * ( 52 ) AS col2 FROM tab0 AS cor0
----
4472
4732
5044
onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT col1 DIV col1 + 8 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1917
SELECT col1 / col1 + 8 / cor0.col1 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 62 * + col2 AS col0 FROM tab1
----
3348
3534
5952
query I rowsort
SELECT col2 + col2 * - ( - col0 ) * + col1 - + tab0.col1 AS col1 FROM tab0
----
3299
664109
68059
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1920
SELECT - col2 * - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1920
SELECT - col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 24 * col2 * col2 FROM tab1
----
221184
69984
77976
query I rowsort
SELECT + - col1 * + ( ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1923
SELECT ALL + col0 * 79 DIV col1 FROM tab0 AS cor0
----
22
28
77
skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL + col0 * 79 / col1 FROM tab0 AS cor0
----
22
28
77
query I rowsort
SELECT - col2 * + ( + col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + + cor0.col0 + col0 FROM tab2 cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1926
SELECT DISTINCT - col0 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT - col0 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col0 * ( 35 ) AS col1 FROM tab0 AS cor0
----
1225
3115
840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 + col0 * - col0 col0 FROM tab0 cor0
----
-1191
-585
-7914
query I rowsort
SELECT DISTINCT + col1 * + ( 60 ) AS col2 FROM tab2 AS cor0
----
1020
1860
3540
query I rowsort
SELECT DISTINCT cor0.col0 * 31 FROM tab1 AS cor0
----
1984
2480
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + col0 * 22 col0 FROM tab0 AS cor0
----
1876
495
769
query I rowsort
SELECT - col1 + + 66 * col2 * - col1 FROM tab2 AS cor0
----
-101303
-42653
-55273
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1933
SELECT + col0 - col0 * CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1933
SELECT + col0 - col0 * CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1934
SELECT col1 * - col0 + + CAST( + col1 * + col2 AS SIGNED ) AS col0 FROM tab1
----
-70
1326
208
skipif mysql # not compatible
query I rowsort label-1934
SELECT col1 * - col0 + + CAST ( + col1 * + col2 AS INTEGER ) AS col0 FROM tab1
----
-70
1326
208
query I rowsort
SELECT ALL - col2 * - ( + col1 + col0 ) AS col1 FROM tab0 AS cor0
----
132
14760
3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-1936
SELECT DISTINCT cor0.col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT cor0.col1 / + col1 AS col2 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL - 14 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT - - cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT ALL - col1 + - ( + tab0.col2 ) DIV - col0 + 60 AS col0 FROM tab0
----
-25
-31
-37
skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL - col1 + - ( + tab0.col2 ) / - col0 + 60 AS col0 FROM tab0
----
-25
-31
-37
query I rowsort
SELECT 76 + + 76 FROM tab2 AS cor0
----
152
152
152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( 32 ) col1 FROM tab2
----
-5
-6
6
query I rowsort
SELECT 59 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
onlyif mysql # use DIV operator for integer division
query I rowsort label-1943
SELECT col1 DIV 27 AS col2 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1943
SELECT col1 / 27 AS col2 FROM tab2
----
0
1
2
query I rowsort
SELECT ALL 89 * + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 739ae7782ec73e3aaf8ca0253994ea8e
query I rowsort
SELECT tab2.col1 * - col2 * - col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT 9 * col0 + - ( col1 ) * col2 AS col0 FROM tab1 AS cor0
----
-1377
-528
6
query I rowsort
SELECT - 25 * col0 FROM tab1 AS cor0
----
-1600
-2000
-75
query I rowsort
SELECT ALL 7 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT ALL - 81 DIV col1 + col1 * + cor0.col0 FROM tab2 AS cor0
----
1339
215
4601
skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL - 81 / col1 + col1 * + cor0.col0 FROM tab2 AS cor0
----
1339
215
4601
query I rowsort
SELECT ALL + cor1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4
query I rowsort
SELECT ALL - col1 * col2 - - 35 AS col1 FROM tab1 AS cor0
----
-1213
-1369
-535
query I rowsort
SELECT DISTINCT + + ( col0 ) - 93 * - col0 FROM tab2 AS cor0
----
658
7332
7426
query I rowsort
SELECT - 35 AS col0 FROM tab1 AS cor0
----
-35
-35
-35
query I rowsort
SELECT + 73 FROM tab1
----
73
73
73
query I rowsort
SELECT 79 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT DISTINCT + + 0 + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT 96 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
8289
8818
9313
query I rowsort
SELECT col0 * + 82 * col1 AS col1 FROM tab2 AS cor0
----
110126
17794
377364
query I rowsort
SELECT - ( 24 ) * col0 AS col0 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT cor0.col2 * + ( col1 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 * ( + col1 + 19 ) AS col0 FROM tab1
----
1170
290
416
query I rowsort
SELECT ALL - col2 * 13 FROM tab0 AS cor0
----
-1066
-13
-429
query I rowsort
SELECT DISTINCT + 20 + 70 FROM tab0 AS cor0
----
90
query I rowsort
SELECT 97 * 54 AS col1 FROM tab2 AS cor0
----
5238
5238
5238
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1965
SELECT - CAST( NULL AS SIGNED ) + - 31 / + col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1965
SELECT - CAST ( NULL AS INTEGER ) + - 31 / + col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT DISTINCT 30 + cor0.col0 DIV cor0.col2 col1 FROM tab1 cor0
----
30
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT 30 + cor0.col0 / cor0.col2 col1 FROM tab1 cor0
----
30
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-1967
SELECT + 72 - - col1 DIV ( col2 ) AS col2 FROM tab0 AS cor0
----
169
73
74
skipif mysql # not compatible
query I rowsort label-1967
SELECT + 72 - - col1 / ( col2 ) AS col2 FROM tab0 AS cor0
----
169
73
74
query I rowsort
SELECT - 90 FROM tab0, tab0 cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 * 54 col1 FROM tab1, tab2 AS cor0
----
3888
onlyif mysql # use DIV operator for integer division
query I rowsort label-1970
SELECT col0 DIV - 76 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1970
SELECT col0 / - 76 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + + cor0.col1 * - cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT + + col1 * - ( col2 ) + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - cor0.col1 * cor0.col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT 45 + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
7343
80
837
query I rowsort
SELECT + 39 * 53 FROM tab0 AS cor0
----
2067
2067
2067
query I rowsort
SELECT - - col0 * + col2 * col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1977
SELECT ALL CAST( NULL AS SIGNED ) * + 52 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL CAST ( NULL AS INTEGER ) * + 52 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col1 * 81 + + col1 FROM tab1
----
1066
2132
820
query I rowsort
SELECT ALL + 11 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359
query I rowsort
SELECT + - 54 AS col1 FROM tab2 AS cor0
----
-54
-54
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-1981
SELECT - 46 DIV ( col0 + col1 ) AS col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1981
SELECT - 46 / ( col0 + col1 ) AS col1 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - 45 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-45
query I rowsort
SELECT ALL 84 * - cor0.col2 + col2 FROM tab1 AS cor0
----
-4482
-4731
-7968
query I rowsort
SELECT ALL tab2.col2 * - 33 AS col1 FROM tab2
----
-1254
-858
-891
onlyif mysql # use DIV operator for integer division
query I rowsort label-1985
SELECT ALL + 57 DIV - 22 AS col0 FROM tab0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL + 57 / - 22 AS col0 FROM tab0
----
-2
-2
-2
query I rowsort
SELECT 65 + + cor0.col0 AS col1 FROM tab0 cor0
----
100
154
89
query I rowsort
SELECT ALL - + col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL col2 + col1 - - 59 AS col0 FROM tab2 AS cor0
----
114
117
144
onlyif mysql # use DIV operator for integer division
query I rowsort label-1989
SELECT DISTINCT 29 DIV + 50 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT 29 / + 50 AS col2 FROM tab2
----
0
query I rowsort
SELECT ( ( col0 ) ) * + col1 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - ( - 23 * + col0 ) AS col2 FROM tab2
----
161
1794
1817
onlyif mysql # use DIV operator for integer division
query I rowsort label-1992
SELECT - cor0.col0 + col2 DIV - col2 FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-1992
SELECT - cor0.col0 + col2 / - col2 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT + col2 + ( - col0 ) * + cor0.col0 AS col2 FROM tab0 cor0
----
-1224
-543
-7839
query I rowsort
SELECT - col1 + ( + cor0.col0 ) * + col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT + + col2 * 99 + - ( cor0.col2 ) * ( col0 ) * - cor0.col0 FROM tab2 AS cor0
----
160758
240920
3996
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1996
SELECT + + col0 + CAST( 56 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
134
135
63
skipif mysql # not compatible
query I rowsort label-1996
SELECT + + col0 + CAST ( 56 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
134
135
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT 36 + cor0.col0 DIV ( col0 ) FROM tab2 AS cor0
----
37
37
37
skipif mysql # not compatible
query I rowsort label-1997
SELECT 36 + cor0.col0 / ( col0 ) FROM tab2 AS cor0
----
37
37
37
query I rowsort
SELECT + cor0.col1 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT + col0 * + col2 - + col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT + 40 + col1 * col1 FROM tab0 AS cor0
----
7436
8321
9449
query I rowsort
SELECT + - 93 + col0 AS col2 FROM tab2 AS cor0
----
-14
-15
-86
query I rowsort
SELECT DISTINCT - - col1 * col0 * col2 + 84 AS col1 FROM tab1 AS cor0
----
36564
4296
99924
query I rowsort
SELECT 56 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT 23 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 * - col0 * col1 col1 FROM tab2
----
-14756
-312936
-91324
query I rowsort
SELECT - 24 - col0 AS col2 FROM tab0
----
-113
-48
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2007
SELECT tab2.col2 DIV - col0 + - col0 * + 64 AS col0 FROM tab2
----
-451
-4992
-5056
skipif mysql # not compatible
query I rowsort label-2007
SELECT tab2.col2 / - col0 + - col0 * + 64 AS col0 FROM tab2
----
-451
-4992
-5056
query I rowsort
SELECT + col2 + - col2 - col1 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 22 * cor0.col1 col1 FROM tab1 AS cor0
----
220
286
572
onlyif mysql # use DIV operator for integer division
query I rowsort label-2010
SELECT ALL + - 83 DIV col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + - 83 / col2 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT + - 2 AS col1 FROM tab1 cor0
----
-2
query I rowsort
SELECT - 87 + col1 AS col1 FROM tab1 AS cor0
----
-61
-74
-77
query I rowsort
SELECT - + 22 - col2 * col1 FROM tab0 AS cor0
----
-119
-2860
-7484
onlyif mysql # use DIV operator for integer division
query I rowsort label-2014
SELECT col2 DIV 54 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2014
SELECT col2 / 54 AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + ( + col2 ) * + col1 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col1 FROM tab2, tab1 cor0
----
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + + 49 AS col0 FROM tab0 AS cor0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 85 col2 FROM tab1 AS cor0
----
-21
-5
-82
query I rowsort
SELECT DISTINCT - 9 + + col2 AS col1 FROM tab2 AS cor0
----
17
18
29
query I rowsort
SELECT 93 FROM tab2, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT DISTINCT - + cor0.col0 DIV col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT - + cor0.col0 / col2 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col2 col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL - col0 * 73 + col2 AS col1 FROM tab2 cor0
----
-484
-5668
-5729
query I rowsort
SELECT DISTINCT - + 64 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-26
-37
-38
query I rowsort
SELECT DISTINCT 46 * 28 FROM tab0 AS cor0
----
1288
query I rowsort
SELECT ALL - ( + cor0.col0 ) + col1 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2028
SELECT CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2028
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * + 23 + + col2 AS col0 FROM tab2 AS cor0
----
-1331
-353
-686
query I rowsort
SELECT ALL + ( - 32 ) FROM tab1 AS cor0
----
-32
-32
-32
query I rowsort
SELECT + - cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT 43 AS col2 FROM tab0 cor0
----
43
43
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2033
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + 93 + col1 * 47 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + 93 + col1 * 47 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2034
SELECT ALL - col0 * col2 DIV + ( + col0 ) FROM tab0 cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL - col0 * col2 / + ( + col0 ) FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + - cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - 70 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2037
SELECT DISTINCT col2 * - CAST( col2 AS SIGNED ) * + col2 FROM tab2 cor0
----
-17576
-19683
-54872
skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT col2 * - CAST ( col2 AS INTEGER ) * + col2 FROM tab2 cor0
----
-17576
-19683
-54872
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374
query I rowsort
SELECT ALL col0 * - 97 + - 48 AS col2 FROM tab1 AS cor0
----
-339
-6256
-7808
onlyif mysql # use DIV operator for integer division
query I rowsort label-2040
SELECT DISTINCT cor0.col2 DIV + col0 col2 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT cor0.col2 / + col0 col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL + cor0.col2 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + col0 * + ( + 57 ) * + col2 FROM tab1 AS cor0
----
207936
437760
9234
onlyif mysql # use DIV operator for integer division
query I rowsort label-2043
SELECT ALL cor0.col2 DIV + 4 FROM tab2 AS cor0
----
6
6
9
skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL cor0.col2 / + 4 FROM tab2 AS cor0
----
6
6
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2044
SELECT + + col1 + - 20 DIV + 52 AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2044
SELECT + + col1 + - 20 / + 52 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col0 + 40 * - col0 AS col0 FROM tab1 AS cor0
----
-123
-2624
-3280
query I rowsort
SELECT ALL + col0 + - col2 AS col2 FROM tab2
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2047
SELECT ALL col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL - 0 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 62 AS col0 FROM tab0 cor0
----
-62
query I rowsort
SELECT col1 + ( - col1 * col2 ) AS col2 FROM tab2
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT - 53 DIV - col0 + + 59 * + col0 col1 FROM tab0
----
1418
2066
5251
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2052
SELECT - 53 / - col0 + + 59 * + col0 col1 FROM tab0
----
1418
2066
5251
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2053
SELECT + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2053
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + - col2 + - col2 AS col1 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT - + col2 * col1 + + 35 AS col1 FROM tab0 AS cor0
----
-2803
-62
-7427
query I rowsort
SELECT ALL - 98 AS col1 FROM tab2 AS cor0
----
-98
-98
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2057
SELECT - col2 + cor0.col0 DIV + col1 FROM tab2 cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-2057
SELECT - col2 + cor0.col0 / + col1 FROM tab2 cor0
----
-25
-27
-34
query I rowsort
SELECT ALL - col2 + - col2 * col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT - col1 + col0 * - 33 FROM tab0 AS cor0
----
-1252
-3028
-878
query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - col2 * - 90 AS col1 FROM tab2 AS cor0
----
2340
2430
3420
query I rowsort
SELECT - 42 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2064
SELECT + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2064
SELECT + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 2 * + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - - cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - ( col0 ) * ( + 39 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
-2486
-3107
-91
query I rowsort
SELECT - 19 + col1 + ( - 58 ) * - col0 AS col2 FROM tab0 AS cor0
----
1459
2108
5234
query I rowsort
SELECT ALL col0 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-2070
SELECT DISTINCT - + col2 DIV col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT - + col2 / col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL + - col2 + + cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 + + col0 * + col2 * col2 col0 FROM tab2
----
114000
5027
52652
query I rowsort
SELECT ALL + 38 + 31 + + col0 AS col0 FROM tab0
----
104
158
93
query I rowsort
SELECT ALL + 79 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT + - 96 AS col1 FROM tab0 AS cor0
----
-96
-96
-96
query I rowsort
SELECT - - ( cor0.col2 ) + col0 * + col1 * col0 + ( 57 ) * + col1 AS col1 FROM tab0 AS cor0
----
124355
54471
726080
query I rowsort
SELECT cor0.col0 * - col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT + 13 + col2 AS col2 FROM tab2 AS cor0
----
39
40
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT + col1 + - cor0.col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2079
SELECT + col1 + - cor0.col2 / - col2 AS col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT + col2 + + col2 + + col2 AS col1 FROM tab0
----
246
3
99
query I rowsort
SELECT ALL - ( + col1 ) + + 29 FROM tab2
----
-2
-30
12
query I rowsort
SELECT 39 + - col2 AS col1 FROM tab2
----
1
12
13
query I rowsort
SELECT + col2 * - col2 + ( col1 ) FROM tab2 AS cor0
----
-1427
-617
-698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2085
SELECT 57 DIV col1 + + col1 AS col2 FROM tab1 AS cor0
----
15
17
28
skipif mysql # not compatible
query I rowsort label-2085
SELECT 57 / col1 + + col1 AS col2 FROM tab1 AS cor0
----
15
17
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-2086
SELECT DISTINCT + + cor0.col0 DIV col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT + + cor0.col0 / col2 FROM tab1 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2087
SELECT + cor0.col0 + - cor0.col0 DIV - col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2087
SELECT + cor0.col0 + - cor0.col0 / - col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT col1 * + col1 + + 87 * + col1 AS col1 FROM tab2 cor0
----
1768
3658
8614
query I rowsort
SELECT ALL tab2.col2 + 6 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 54c1537a7bfcf5685cb08ef0c5f069b8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2090
SELECT + ( col0 ) * - col2 + CAST( NULL AS DECIMAL ) * - col0 / + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2090
SELECT + ( col0 ) * - col2 + CAST ( NULL AS REAL ) * - col0 / + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * 20 FROM tab2 AS cor0
----
140
1560
1580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col0 col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - + 35 FROM tab0 AS cor0
----
-35
-35
-35
query I rowsort
SELECT - tab1.col2 + 10 FROM tab1
----
-44
-47
-86
query I rowsort
SELECT 26 * + 34 FROM tab2
----
884
884
884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2096
SELECT - - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2096
SELECT - - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col1 + + 50 * cor0.col0 col1 FROM tab1 AS cor0
----
1554
3770
5248
query I rowsort
SELECT DISTINCT + col1 * 89 FROM tab1 cor0
----
1157
2314
890
query I rowsort
SELECT 90 + - cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 48249c640c91fabc3dc1fad3b4972fe5
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col0 FROM tab1 cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2101
SELECT DISTINCT - + col1 * CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT - + col1 * CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + 57 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT ALL col1 * - 33 + - col1 FROM tab2 AS cor0
----
-1054
-2006
-578
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + 75 col0 FROM tab1 AS cor0
----
139
155
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2105
SELECT DISTINCT + - cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT + - cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col1 + - col1 * - col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2107
SELECT ALL - + CAST( col0 AS SIGNED ) * col0 col0 FROM tab2 cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - + CAST ( col0 AS INTEGER ) * col0 col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT 99 * - ( - col2 ) * - ( cor0.col2 ) + - col1 * - cor0.col2 AS col1 FROM tab2 cor0
----
-142310
-65390
-71334
onlyif mysql # use DIV operator for integer division
query I rowsort label-2109
SELECT + 86 * + col0 * col2 - - col1 DIV col2 FROM tab0 AS cor0
----
3107
627629
68114
skipif mysql # not compatible
query I rowsort label-2109
SELECT + 86 * + col0 * col2 - - col1 / col2 FROM tab0 AS cor0
----
3107
627629
68114
query I rowsort
SELECT ALL - - col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT ( col0 ) * - col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT ALL - cor0.col1 DIV col1 + + col1 AS col2 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - cor0.col1 / col1 + + col1 AS col2 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT ALL + + 55 AS col2 FROM tab2 AS cor0
----
55
55
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + 76 * - col2 col2 FROM tab1 AS cor0
----
12312
277248
583680
query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) AS col2 FROM tab2, tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 43 col0 FROM tab2
----
-1118
-1161
-1634
query I rowsort
SELECT + col0 - 79 * 34 FROM tab0
----
-2597
-2651
-2662
query I rowsort
SELECT - col2 + + 75 AS col0 FROM tab1
----
-21
18
21
query I rowsort
SELECT col1 + - col0 * + col0 AS col2 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT ALL + col1 * ( + 2 ) AS col0 FROM tab1
----
20
26
52
query I rowsort
SELECT - - cor0.col2 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT DISTINCT - col1 DIV col2 AS col0 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT - col1 / col2 AS col0 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL - 82 - + col0 AS col1 FROM tab2 AS cor0
----
-160
-161
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 * + cor0.col1 col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + 82 + + col0 AS col1 FROM tab2 AS cor0
----
160
161
89
query I rowsort
SELECT ALL + + col2 + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - 17 * - col1 + + col0 FROM tab0 AS cor0
----
1486
1636
1684
query I rowsort
SELECT + col0 + 58 * col2 - + 55 AS col2 FROM tab2
----
1518
1531
2228
query I rowsort
SELECT DISTINCT + ( 81 + col2 ) AS col2 FROM tab1
----
135
138
177
query I rowsort
SELECT ( - 3 ) * - tab0.col1 AS col0 FROM tab0
----
258
273
291
query I rowsort
SELECT + 10 AS col0 FROM tab0
----
10
10
10
query I rowsort
SELECT 18 + 71 * cor0.col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 417d90c964dc8ccda8ec7834e974f684
query I rowsort
SELECT DISTINCT 63 + col1 FROM tab1
----
73
76
89
query I rowsort
SELECT + col1 * col2 + - ( 8 ) AS col1 FROM tab2 AS cor0
----
1526
638
829
query I rowsort
SELECT + + 37 FROM tab2 AS cor0
----
37
37
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2137
SELECT - col1 / + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2137
SELECT - col1 / + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 + + col0 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 66 + col2 * + col1 + col1 * col2 * + ( col0 ) FROM tab0 AS cor0
----
3558
671646
71016
query I rowsort
SELECT - 89 + - col1 FROM tab0 AS cor0
----
-175
-180
-186
query I rowsort
SELECT ALL tab2.col1 + - col0 AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL - 56 + + col2 * - tab2.col1 FROM tab2
----
-1590
-702
-893
query I rowsort
SELECT DISTINCT + 98 * + col2 * - col0 AS col1 FROM tab2
----
-18522
-198744
-294196
onlyif mysql # use DIV operator for integer division
query I rowsort label-2144
SELECT ALL - col2 + + col1 DIV - col1 AS col0 FROM tab2
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - col2 + + col1 / - col1 AS col0 FROM tab2
----
-27
-28
-39
query I rowsort
SELECT ALL + col2 + - col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * + col0 + + ( + col0 ) * col0 AS col1 FROM tab0 AS cor0
----
16020
2640
4620
query I rowsort
SELECT DISTINCT - + col0 + - 92 - - col0 AS col0 FROM tab2 AS cor0
----
-92
query I rowsort
SELECT col0 + col1 + col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT ALL + col1 + 3 * + 60 AS col0 FROM tab2 AS cor0
----
197
211
239
onlyif mysql # use DIV operator for integer division
query I rowsort label-2150
SELECT DISTINCT + - col2 * col1 + - col1 DIV - col1 + + col1 * col2 col2 FROM tab1 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT + - col2 * col1 + - col1 / - col1 + + col1 * col2 col2 FROM tab1 cor0
----
1
query I rowsort
SELECT ALL col0 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - col2 + - 63 AS col2 FROM tab1 AS cor0
----
-117
-120
-159
query I rowsort
SELECT ALL col0 * + col1 + + col2 + col1 AS col0 FROM tab0
----
2183
3493
8272
query I rowsort
SELECT 30 FROM tab1, tab0 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT - 59 * 38 - - col2 AS col1 FROM tab1 AS cor0
----
-2146
-2185
-2188
query I rowsort
SELECT - + ( col2 ) * - cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 * - col2 - + col0 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL col1 + ( col2 ) FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL + cor0.col0 * col0 * - col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT - 74 + + col0 AS col2 FROM tab1 AS cor0
----
-10
-71
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2161
SELECT ALL CAST( NULL AS SIGNED ) / 16 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-2161
SELECT ALL CAST ( NULL AS INTEGER ) / 16 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2162
SELECT col1 DIV 81 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2162
SELECT col1 / 81 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - 50 + + col1 * - col2 FROM tab1 AS cor0
----
-1298
-1454
-620
query I rowsort
SELECT DISTINCT col1 * 73 * + col2 AS col1 FROM tab2 AS cor0
----
111982
47158
61101
query I rowsort
SELECT - + 87 + ( + col0 ) * col0 FROM tab0 AS cor0
----
1138
489
7834
query I rowsort
SELECT ALL + 2 AS col1 FROM tab1 cor0
----
2
2
2
query I rowsort
SELECT DISTINCT + col1 + col0 * + cor0.col1 FROM tab1 cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) + + col2 col0 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col2 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT + col1 * - col2 * - col2 + 77 AS col2 FROM tab2 AS cor0
----
22676
24625
39961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 * + cor0.col0 col0 FROM tab2 cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT DISTINCT + + 81 DIV cor0.col0 + + col2 * - col2 + + col0 AS col2 FROM tab0 AS cor0
----
-1062
-6635
36
skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT + + 81 / cor0.col0 + + col2 * - col2 + + col0 AS col2 FROM tab0 AS cor0
----
-1062
-6635
36
query I rowsort
SELECT ALL - 50 * - col1 AS col1 FROM tab2 AS cor0
----
1550
2950
850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2174
SELECT ALL - col2 + col2 * + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
108
3591
7584
skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL - col2 + col2 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT + + 34 AS col2 FROM tab2, tab0 AS cor0
----
34
query I rowsort
SELECT ALL col2 - col1 * tab1.col1 AS col0 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT DISTINCT 10 FROM tab1 cor0
----
10
query I rowsort
SELECT + + col1 * + col0 * + cor0.col2 + + 52 FROM tab1 AS cor0
----
36532
4264
99892
query I rowsort
SELECT + col0 + ( col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-2180
SELECT col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2180
SELECT col0 / col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + + ( + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT 38 + - 97 FROM tab0 AS cor0
----
-59
-59
-59
query I rowsort
SELECT - col2 * + ( col2 * col1 ) + + col0 FROM tab0 AS cor0
----
-611795
-62
-93630
onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT + cor0.col1 + - col2 DIV - col0 AS col0 FROM tab0 cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-2184
SELECT + cor0.col1 + - col2 / - col0 AS col0 FROM tab0 cor0
----
87
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2185
SELECT - - 13 DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
13
skipif mysql # not compatible
query I rowsort label-2185
SELECT - - 13 / col2 AS col1 FROM tab0 AS cor0
----
0
0
13
query I rowsort
SELECT col2 * + col1 + col0 * 31 AS col1 FROM tab0 AS cor0
----
10221
1182
3582
query I rowsort
SELECT - col1 * - 42 + + col2 FROM tab0 cor0
----
3645
3904
4075
query I rowsort
SELECT 82 + col2 * ( col2 * col1 ) AS col1 FROM tab2 AS cor0
----
22681
24630
39966
onlyif mysql # use DIV operator for integer division
query I rowsort label-2189
SELECT ALL cor0.col2 DIV + cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL cor0.col2 / + cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
5
69
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT 44 FROM tab2, tab0 cor0
----
44
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT + + 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT - col2 + 12 FROM tab1 AS cor0
----
-42
-45
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT ALL col0 DIV + ( - col1 * col2 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL col0 / + ( - col1 * col2 ) FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 58 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT DISTINCT + col1 * col0 + 1 * col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + cor0.col1 * 85 - col2 AS col2 FROM tab2 AS cor0
----
1407
2608
4989
query I rowsort
SELECT col1 * - col0 - 11 FROM tab0 AS cor0
----
-2075
-3406
-8110
query I rowsort
SELECT - cor0.col2 * + col1 + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT + col2 * + 73 AS col0 FROM tab2
----
1898
1971
2774
onlyif mysql # use DIV operator for integer division
query I rowsort label-2202
SELECT DISTINCT + tab0.col0 - col0 DIV + col2 AS col0 FROM tab0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT + tab0.col0 - col0 / + col2 AS col0 FROM tab0
----
0
24
88
query I rowsort
SELECT - col2 * + 14 * - col0 FROM tab0 AS cor0
----
102172
11088
490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 93 - - tab1.col0 * tab1.col0 col2 FROM tab1
----
10048
13840
288
query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE - cor0.col2 NOT IN ( + cor0.col1 )
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query I rowsort
SELECT - 55 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
4730
5005
5335
query I rowsort
SELECT DISTINCT + 80 * + col2 + + col2 FROM tab1
----
4374
4617
7776
query I rowsort
SELECT ALL col0 * col1 + col2 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL - 5 AS col0 FROM tab1 AS cor0
----
-5
-5
-5
query I rowsort
SELECT - + ( col2 ) + - col0 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT DISTINCT - col2 DIV 62 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT - col2 / 62 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + ( 96 ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT ALL ( + col2 ) * 84 FROM tab2
----
2184
2268
3192
onlyif mysql # use DIV operator for integer division
query I rowsort label-2215
SELECT + + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2215
SELECT + + col2 / col0 AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2217
SELECT col1 + col2 DIV - 7 col0 FROM tab1 AS cor0
----
0
19
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2217
SELECT col1 + col2 / - 7 col0 FROM tab1 AS cor0
----
0
19
2
query I rowsort
SELECT ALL - - cor0.col0 * 44 * - ( col1 ) FROM tab0 AS cor0
----
-149380
-356356
-90816
query I rowsort
SELECT ALL col2 * 0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * + 59 FROM tab1 AS cor0
----
1534
590
767
query I rowsort
SELECT ALL 15 * col2 * + ( tab1.col2 * col2 ) FROM tab1
----
13271040
2361960
2777895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 + cor0.col2 col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 48143591d2c69b3a0d95cc87da7bb057
query I rowsort
SELECT ALL col0 * + cor0.col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 * col2 * col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT + + col1 + 54 FROM tab1 AS cor0
----
64
67
80
query I rowsort
SELECT DISTINCT - 95 * - col1 FROM tab2
----
1615
2945
5605
query I rowsort
SELECT + 70 + col2 AS col0 FROM tab0
----
103
152
71
query I rowsort
SELECT + 72 + col2 FROM tab2
----
110
98
99
query I rowsort
SELECT + - col2 + col0 * ( - col0 ) FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT + - cor0.col0 * + col2 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 60 col0 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT DISTINCT - col2 * 86 + 56 AS col1 FROM tab0 AS cor0
----
-2782
-30
-6996
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2233
SELECT col1 + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-2233
SELECT col1 + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL col2 + + col2 * + col1 * col2 AS col2 FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT ALL + - col0 * col1 + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1054
-1989
-6136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2237
SELECT - col1 + CAST( 99 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
2290
3368
8720
skipif mysql # not compatible
query I rowsort label-2237
SELECT - col1 + CAST ( 99 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
2290
3368
8720
query I rowsort
SELECT DISTINCT - col1 * 53 * - col2 + cor0.col0 + + cor0.col2 * 62 * col2 FROM tab1 AS cor0
----
231712
255207
637616
query I rowsort
SELECT ALL + + col0 - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT - col1 * 92 FROM tab0 AS cor0
----
-7912
-8372
-8924
query I rowsort
SELECT DISTINCT - - col1 * 43 FROM tab1 AS cor0
----
1118
430
559
query I rowsort
SELECT - col1 * col2 - col1 AS col0 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT ALL col0 + col2 + + col2 * + col2 FROM tab1
----
2973
3370
9392
query I rowsort
SELECT ALL + - col0 + + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - - cor0.col0 + - 29 FROM tab0 AS cor0
----
-5
6
60
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < ( NULL )
----
query I rowsort
SELECT col0 * col2 * col0 AS col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT + tab2.col1 * - col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col1 * col1 + + tab1.col0 AS col0 FROM tab1
----
164
249
679
query I rowsort
SELECT DISTINCT - tab0.col1 * col0 + col2 FROM tab0
----
-2031
-3394
-8017
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( - col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( - col0 ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * tab2.col1 + col1 col0 FROM tab2 WHERE NULL IN ( col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 <> col1 * col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL col2 + col2 FROM tab2 WHERE NULL <> col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT - tab1.col2 DIV + tab1.col2 - col1 col0 FROM tab1
----
-11
-14
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2257
SELECT - tab1.col2 / + tab1.col2 - col1 col0 FROM tab1
----
-11
-14
-27
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * + col0 + col1 >= ( NULL )
----
query I rowsort
SELECT DISTINCT tab0.col1 * col0 FROM tab0 WHERE NOT - col1 NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL col0 * tab2.col1 + tab2.col0 AS col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL tab2.col0 * tab2.col2 AS col0 FROM tab2 WHERE NOT col0 BETWEEN col0 * col1 + col0 AND col1
----
189
2028
3002
query I rowsort
SELECT - col2 FROM tab1 WHERE NULL < NULL
----
query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL >= - col0 + + col1 * col0
----
query I rowsort
SELECT + col0 * col2 + col2 * - col0 FROM tab1
----
0
0
0
query I rowsort
SELECT col2 * + col2 - col2 * col2 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab1 AS cor0
----
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-2268
SELECT ALL - - 41 * + col2 * + 88 + col1 * col1 DIV col0 FROM tab1 AS cor0
----
195057
205657
346370
skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL - - 41 * + col2 * + 88 + col1 * col1 / col0 FROM tab1 AS cor0
----
195057
205657
346370
query I rowsort
SELECT ALL - - 18 * col2 FROM tab0 AS cor0
----
1476
18
594
query I rowsort
SELECT col2 * + col1 + - col0 AS col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT col0 + + col1 + + col1 AS col2 FROM tab1
----
106
55
84
query I rowsort
SELECT DISTINCT + col2 + - col0 + col2 FROM tab2
----
-26
-3
47
query I rowsort
SELECT DISTINCT col1 * col2 * + col0 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + tab0.col0 * - col2 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT tab2.col2 + col0 * col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT + col1 + - tab0.col0 * col2 + + col2 AS col0 FROM tab0
----
-673
-7125
63
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( - col2 )
----
query I rowsort
SELECT ALL col1 + - col1 * + tab0.col0 * - col2 + - col2 * col2 * col1 FROM tab0
----
-25456
3395
52325
query I rowsort
SELECT ALL - tab2.col0 * + col2 + + col0 * + col0 + - tab2.col1 AS col1 FROM tab2
----
-171
3222
3997
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT col1 - - col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT + - ( + col0 ) + - ( 84 ) * - col1 FROM tab2 AS cor0
----
1349
2597
4878
query I rowsort
SELECT DISTINCT - + 87 + - col2 AS col0 FROM tab1 AS cor0
----
-141
-144
-183
onlyif mysql # use DIV operator for integer division
query I rowsort label-2286
SELECT ALL - cor0.col0 + cor0.col0 DIV - col0 col0 FROM tab1 AS cor0
----
-4
-65
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL - cor0.col0 + cor0.col0 / - col0 col0 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT + - cor0.col2 + + col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + tab1.col2 * + tab1.col0 FROM tab1
----
159
3584
7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2289
SELECT CAST( 26 AS SIGNED ) * tab2.col1 FROM tab2
----
1534
442
806
skipif mysql # not compatible
query I rowsort label-2289
SELECT CAST ( 26 AS INTEGER ) * tab2.col1 FROM tab2
----
1534
442
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-2290
SELECT DISTINCT - tab1.col0 * - ( + tab1.col2 ) * 22 - ( col2 ) * col1 DIV + ( col1 ) AS col0 FROM tab1
----
168864
3510
80199
skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT - tab1.col0 * - ( + tab1.col2 ) * 22 - ( col2 ) * col1 / + ( col1 ) AS col0 FROM tab1
----
168864
3510
80199
query I rowsort
SELECT - col0 - col0 AS col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT 35 * - col1 + col0 * - col2 + tab0.col0 FROM tab0
----
-10394
-3395
-3778
query I rowsort
SELECT DISTINCT + ( col0 ) * - col1 + 63 AS col1 FROM tab0
----
-2001
-3332
-8036
query I rowsort
SELECT - col0 * - col0 + col0 AS col1 FROM tab0
----
1260
600
8010
query I rowsort
SELECT ALL ( + 72 ) * + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6ea840cdf2b42247db0ed404945b7aa1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT - ( col2 ) + 73 DIV + col0 + + col0 AS col1 FROM tab2
----
-10
41
52
skipif mysql # not compatible
query I rowsort label-2296
SELECT - ( col2 ) + 73 / + col0 + + col0 AS col1 FROM tab2
----
-10
41
52
query I rowsort
SELECT ALL ( col2 ) * ( + 65 * - col1 + col1 * + col2 ) FROM tab2 cor0
----
-17442
-31806
-59826
query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 + - 87 col2 FROM tab1 AS cor0
----
-1127
-165
-727
query I rowsort
SELECT ALL - + col1 * - col1 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + col0 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2302
SELECT CAST( NULL AS SIGNED ) col1 FROM tab1 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-2302
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 97 AS col0 FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca
query I rowsort
SELECT 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
243 values hashing to 9abcb2f48b3a009aa8d65d82a30c843f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2305
SELECT + - CAST( NULL AS DECIMAL ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2305
SELECT + - CAST ( NULL AS REAL ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - 98 AS col1 FROM tab1 AS cor0
----
1274
2548
980
query I rowsort
SELECT DISTINCT + col0 + + 15 AS col1 FROM tab1 cor0
----
18
79
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * - 11 FROM tab0 AS cor0
----
-1001
-1067
-946
query I rowsort
SELECT ALL col1 * - 89 AS col0 FROM tab1 AS cor0
----
-1157
-2314
-890
query I rowsort
SELECT ( + 60 ) - col0 AS col2 FROM tab2 AS cor0
----
-18
-19
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 - col0 col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT - 33 + col0 * - tab0.col2 * - col2 AS col2 FROM tab0
----
2
26103
598403
query I rowsort
SELECT ALL + col1 + col1 + col1 AS col1 FROM tab1
----
30
39
78
query I rowsort
SELECT ALL + col0 + 96 * col1 FROM tab1
----
1024
1328
2499
query I rowsort
SELECT DISTINCT + col2 * 30 + + col1 FROM tab0
----
1076
127
2551
query I rowsort
SELECT ALL - col2 * - col0 + - col2 * + col0 FROM tab2
----
0
0
0
query I rowsort
SELECT + - ( 57 ) FROM tab0 cor0
----
-57
-57
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 + cor0.col0 * col0 col1 FROM tab1 AS cor0
----
41
4128
6432
query I rowsort
SELECT DISTINCT - + 50 FROM tab0 AS cor0
----
-50
query I rowsort
SELECT DISTINCT - col2 + 68 - + col0 AS col2 FROM tab1 cor0
----
-108
-53
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2322
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + cor0.col1 - + col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + cor0.col1 - + col0 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 86 * cor0.col0 FROM tab1 AS cor0
----
-258
-5504
-6880
query I rowsort
SELECT ALL + + col1 * col0 + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT col2 * col0 * + cor0.col2 - - col0 AS col0 FROM tab2 AS cor0
----
114155
5110
52806
query I rowsort
SELECT - + col0 + - col2 * + col2 + col2 AS col0 FROM tab0 cor0
----
-1080
-35
-6731
query I rowsort
SELECT + + cor0.col2 - - col2 * + cor0.col2 * col2 AS col1 FROM tab0 cor0
----
2
35970
551450
query I rowsort
SELECT 77 + cor0.col1 AS col2 FROM tab2 AS cor0
----
108
136
94
query I rowsort
SELECT - 12 + col0 + cor0.col0 FROM tab0 AS cor0
----
166
36
58
query I rowsort
SELECT col1 * col2 + col1 * col2 + col0 FROM tab2 AS cor0
----
1371
1681
3146
query I rowsort
SELECT - - col0 + - cor0.col0 * + col1 + col0 FROM tab2 cor0
----
-1185
-203
-4446
onlyif mysql # use DIV operator for integer division
query I rowsort label-2332
SELECT DISTINCT + col2 DIV + tab2.col0 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT + col2 / + tab2.col0 FROM tab2
----
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2333
SELECT - col1 DIV - tab1.col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2333
SELECT - col1 / - tab1.col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + col0 * col2 * col2 + + tab0.col0 * col2 * col0 FROM tab0
----
1248047
1295
45168
onlyif mysql # use DIV operator for integer division
query I rowsort label-2335
SELECT + col1 DIV + 90 col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2335
SELECT + col1 / + 90 col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2336
SELECT DISTINCT CAST( NULL AS SIGNED ) * 36 + - col1 AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 36 + - col1 AS col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL 96 * - 52 FROM tab0 AS cor0
----
-4992
-4992
-4992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( ( + col0 ) ) - + col0 col2 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2339
SELECT DISTINCT + CAST( ( cor0.col2 ) AS SIGNED ) FROM tab0, tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT + CAST ( ( cor0.col2 ) AS INTEGER ) FROM tab0, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 92 * + col0 FROM tab1
----
276
5888
7360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2341
SELECT ALL CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - 12 * col1 ) + col2 * - col2 FROM tab2
----
-1101
-1384
-1648
query I rowsort
SELECT 65 * 10 * col0 FROM tab1
----
1950
41600
52000
query I rowsort
SELECT + col0 + col1 + col1 FROM tab1
----
106
55
84
query I rowsort
SELECT ALL + 34 FROM tab0
----
34
34
34
query I rowsort
SELECT ALL + cor0.col1 + ( col2 ) FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 * + cor0.col1 - + col0 * + col0 col0 FROM tab2 AS cor0
----
-421
-6445
-6792
query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT - cor0.col1 * col1 + - col1 > NULL
----
query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT - col2 IN ( col0 )
----
54
57
96
query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( + col1 + - col2 ) < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT col1 * + col0 DIV col0 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2351
SELECT col1 * + col0 / col0 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT DISTINCT + col1 DIV col1 AS col2 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + col1 / col1 AS col2 FROM tab1
----
1
query I rowsort
SELECT DISTINCT col2 + - tab2.col0 + + tab2.col1 FROM tab2
----
-24
51
7
query I rowsort
SELECT - tab2.col0 * tab2.col1 AS col1 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2355
SELECT + col1 + col0 DIV col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2355
SELECT + col1 + col0 / col1 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT tab0.col1 * - col1 + + col1 AS col2 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT - col0 * - col0 * - col0 + col1 AS col2 FROM tab0
----
-13738
-42778
-704878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab2.col1 * col0 + col1 col0 FROM tab2
----
119711
51051
5890
query I rowsort
SELECT col0 * + tab1.col1 + - col0 FROM tab1
----
576
75
960
query I rowsort
SELECT + col1 * - col1 * + col1 AS col0 FROM tab2
----
-205379
-29791
-4913
query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 + + col1 * + col1 - - col0 ) IN ( - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT + col0 * tab2.col1 * - col2 FROM tab2
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col1 * col1 col2 FROM tab0
----
636056
753571
912673
query I rowsort
SELECT DISTINCT col1 * + col2 * col2 AS col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT col0 - col0 * - col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT col2 - + col1 * tab0.col0 FROM tab0
----
-2031
-3394
-8017
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 - - col1 <= NULL OR + col2 * col0 BETWEEN + cor0.col1 + col2 + + col2 AND ( NULL )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2368
SELECT ALL col0 + CAST( NULL AS SIGNED ) / + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL col0 + CAST ( NULL AS INTEGER ) / + col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col0 - ( col2 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - + 9 + + col0 * col2 FROM tab0 AS cor0
----
26
7289
783
query I rowsort
SELECT DISTINCT ( col2 ) * col0 + col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2373
SELECT DISTINCT col1 / - CAST( NULL AS SIGNED ) + + col2 col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT col1 / - CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2374
SELECT + col1 DIV - tab0.col0 AS col1 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-2374
SELECT + col1 / - tab0.col0 AS col1 FROM tab0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2375
SELECT DISTINCT col2 * + col1 DIV tab1.col1 + col0 col2 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT col2 * + col1 / tab1.col1 + col0 col2 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 col2 FROM tab0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2377
SELECT CAST( - col1 AS SIGNED ) * + col1 + col0 AS col2 FROM tab2
----
-210
-3403
-954
skipif mysql # not compatible
query I rowsort label-2377
SELECT CAST ( - col1 AS INTEGER ) * + col1 + col0 AS col2 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT ALL 41 * col2 * - col0 FROM tab1
----
-149568
-314880
-6642
query I rowsort
SELECT 35 + - col0 FROM tab0
----
-54
0
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-2380
SELECT ALL + col0 DIV - col0 + + col2 AS col1 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL + col0 / - col0 + + col2 AS col1 FROM tab0
----
0
32
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2381
SELECT ALL + + 80 DIV 43 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL + + 80 / 43 AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + - 29 + - col0 AS col2 FROM tab1 AS cor0
----
-109
-32
-93
query I rowsort
SELECT 73 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT DISTINCT + 37 * + col1 FROM tab0 AS cor0
----
3182
3367
3589
query I rowsort
SELECT + + ( 72 ) FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT + 74 * - col0 + + col1 * col1 FROM tab2 AS cor0
----
-2291
-5557
443
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 * + col1 + - col2 col1 FROM tab0
----
-5279
-5633
-5918
query I rowsort
SELECT DISTINCT 20 FROM tab2, tab0, tab0 AS cor0
----
20
query I rowsort
SELECT DISTINCT - ( + col1 ) * 64 * ( col1 ) FROM tab0
----
-473344
-529984
-602176
onlyif mysql # use DIV operator for integer division
query I rowsort label-2390
SELECT + 77 DIV col2 + col0 FROM tab1
----
4
65
80
skipif mysql # not compatible
query I rowsort label-2390
SELECT + 77 / col2 + col0 FROM tab1
----
4
65
80
query I rowsort
SELECT - col0 - - col2 * 76 AS col1 FROM tab0
----
2484
41
6143
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2392
SELECT - col0 * + col0 + CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
-22
-6058
-6203
skipif mysql # not compatible
query I rowsort label-2392
SELECT - col0 * + col0 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT ALL + - 64 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 100c625e45715c20368551989514ba64
query I rowsort
SELECT DISTINCT ( cor1.col0 ) AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT ALL - col0 * cor0.col2 + - ( col0 ) FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT + 78 + - col1 * col0 FROM tab2 AS cor0
----
-1265
-139
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT + col1 DIV + 22 + col1 * col1 FROM tab2 AS cor0
----
289
3483
962
skipif mysql # not compatible
query I rowsort label-2397
SELECT + col1 / + 22 + col1 * col1 FROM tab2 AS cor0
----
289
3483
962
query I rowsort
SELECT col1 + 82 * ( + col1 ) FROM tab0 AS cor0
----
7138
7553
8051
query I rowsort
SELECT - + col2 + + col2 AS col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2400
SELECT DISTINCT col1 + - 79 * col0 DIV col0 FROM tab2 AS cor0
----
-20
-48
-62
skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT col1 + - 79 * col0 / col0 FROM tab2 AS cor0
----
-20
-48
-62
query I rowsort
SELECT DISTINCT col2 * - 70 + col0 FROM tab2 AS cor0
----
-1742
-1883
-2581
onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT ALL col1 + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL col1 + col2 / + col0 AS col0 FROM tab1 AS cor0
----
10
14
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - ( col0 ) - + col2 col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + + cor0.col1 * - ( - 52 ) AS col1 FROM tab0 AS cor0
----
4472
4732
5044
query I rowsort
SELECT DISTINCT - - cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + col0 * + ( col1 + col2 ) * ( 60 ) AS col0 FROM tab0 AS cor0
----
171360
205800
923820
query I rowsort
SELECT DISTINCT + tab2.col2 - + tab2.col2 FROM tab2, tab0, tab0 AS cor0
----
0
query I rowsort
SELECT - - col0 * - ( + col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2409
SELECT DISTINCT - - cor0.col1 * CAST( + col1 AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
210
3403
954
skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT - - cor0.col1 * CAST ( + col1 AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT ALL - col1 + + 99 FROM tab2 AS cor0
----
40
68
82
query I rowsort
SELECT ALL + - cor0.col1 * - 91 + - col1 AS col0 FROM tab1 AS cor0
----
1170
2340
900
query I rowsort
SELECT + col2 - 18 FROM tab2 cor0
----
20
8
9
query I rowsort
SELECT DISTINCT + col0 + col2 - col2 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT 62 FROM tab2, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2415
SELECT col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2415
SELECT col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2416
SELECT - col1 * - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-2416
SELECT - col1 * - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col2 * - col2 FROM tab1 cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2418
SELECT + cor0.col1 + col2 DIV + col0 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-2418
SELECT + cor0.col1 + col2 / + col0 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT - 1 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + cor0.col1 * + col1 + col1 * + 35 AS col2 FROM tab1 AS cor0
----
1586
450
624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2421
SELECT - - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2421
SELECT - - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - + 17 col2 FROM tab2 AS cor0
----
-34
-48
-76
query I rowsort
SELECT 79 + ( - col0 * - col1 + col0 ) FROM tab0 AS cor0
----
2167
3509
8267
query I rowsort
SELECT DISTINCT - 59 FROM tab0, tab0 AS cor0
----
-59
query I rowsort
SELECT DISTINCT - 80 FROM tab1, tab2 AS cor0
----
-80
query I rowsort
SELECT DISTINCT col1 + col0 + 98 * + tab0.col1 FROM tab0
----
8538
9098
9638
query I rowsort
SELECT + ( - col1 ) + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + col1 * col2 * col0 + + col2 FROM tab1
----
36537
4266
99936
query I rowsort
SELECT DISTINCT + col0 + ( 67 ) * col2 + col2 AS col1 FROM tab0
----
103
2268
5665
query I rowsort
SELECT col1 * + col0 + col1 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT + - 33 * + cor0.col2 FROM tab1 AS cor0
----
-1782
-1881
-3168
query I rowsort
SELECT DISTINCT - col1 * - col2 - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + - 23 FROM tab1 cor0
----
-23
-23
-23
onlyif mysql # use DIV operator for integer division
query I rowsort label-2435
SELECT - ( col1 ) + col1 DIV + 98 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2435
SELECT - ( col1 ) + col1 / + 98 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 * + col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT col2 * + col1 * + col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + + ( col2 ) * ( col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - + 88 + + col2 * + 24 FROM tab1 AS cor0
----
1208
1280
2216
query I rowsort
SELECT ALL - + 91 + col1 * col1 + col2 * - col2 FROM tab0 AS cor0
----
1466
6216
9317
query I rowsort
SELECT + 68 FROM tab1 cor0
----
68
68
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2442
SELECT ALL col2 + + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL col2 + + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col2 ) + col0 * ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2444
SELECT ALL col2 * - col0 + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL col2 * - col0 + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - 74 * col2 FROM tab0
----
-2442
-6068
-74
query I rowsort
SELECT 58 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL - col2 * - col1 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1322
15383
3414
query I rowsort
SELECT - cor0.col1 * + col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - tab2.col2 * + 95 * col1 FROM tab2
----
-145730
-61370
-79515
query I rowsort
SELECT DISTINCT - col1 * + 71 AS col2 FROM tab0
----
-6106
-6461
-6887
query I rowsort
SELECT ALL - 94 AS col1 FROM tab0
----
-94
-94
-94
query I rowsort
SELECT - + ( + col2 ) - - 2 * col1 AS col2 FROM tab2 cor0
----
-4
35
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2453
SELECT + 49 + + col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2453
SELECT + 49 + + col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 col0 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT - + 76 + + col1 FROM tab0 AS cor0
----
10
15
21
query I rowsort
SELECT + col2 - col2 * + ( col1 ) FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT 72 * cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 923ce748554f5aa7535b233559d7d16a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2458
SELECT ALL col1 + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL col1 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT col0 + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT + col0 + - ( - col2 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - + col1 * - 17 * + col0 - + col2 * 22 AS col0 FROM tab2 AS cor0
----
21995
3095
77662
query I rowsort
SELECT - col0 * 28 AS col2 FROM tab2 cor0
----
-196
-2184
-2212
onlyif mysql # use DIV operator for integer division
query I rowsort label-2463
SELECT - - cor0.col2 + cor0.col1 DIV - 72 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-2463
SELECT - - cor0.col2 + cor0.col1 / - 72 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT - + col1 * ( 96 ) FROM tab2 cor0
----
-1632
-2976
-5664
query I rowsort
SELECT + + col1 + + 42 AS col0 FROM tab1 AS cor0
----
52
55
68
query I rowsort
SELECT + + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
7
78
79
query I rowsort
SELECT + ( col2 ) * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c
query I rowsort
SELECT - + ( col2 ) + col1 AS col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ( + col2 ) + col1 * col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT cor0.col1 * 11 AS col0 FROM tab1 AS cor0
----
110
143
286
query I rowsort
SELECT - 25 + + col0 FROM tab1 AS cor0
----
-22
39
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT 30 DIV - 93 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2474
SELECT 30 / - 93 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2475
SELECT ALL + - CAST( 61 AS SIGNED ) + col0 DIV + col2 FROM tab1 AS cor0
----
-60
-61
-61
skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL + - CAST ( 61 AS INTEGER ) + col0 / + col2 FROM tab1 AS cor0
----
-60
-61
-61
query I rowsort
SELECT col2 * 73 FROM tab1
----
3942
4161
7008
query I rowsort
SELECT DISTINCT 98 * - 74 AS col0 FROM tab2 AS cor0
----
-7252
query I rowsort
SELECT - + col1 * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT 18 * 71 + col2 AS col1 FROM tab1 AS cor0
----
1332
1335
1374
query I rowsort
SELECT ALL + + 1 + col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT - 52 + col2 AS col1 FROM tab2 cor0
----
-14
-25
-26
query I rowsort
SELECT ALL tab2.col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT - 22 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to c376f9b42c4dffd278b22df819afbc8d
query I rowsort
SELECT - - 66 * - col1 AS col2 FROM tab0 AS cor0
----
-5676
-6006
-6402
query I rowsort
SELECT DISTINCT + col1 + + col2 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT - 60 * tab1.col2 + tab1.col2 FROM tab1
----
-3186
-3363
-5664
onlyif mysql # use DIV operator for integer division
query I rowsort label-2487
SELECT ALL + + col0 * 64 DIV - col2 + col2 * col1 AS col2 FROM tab0 AS cor0
----
-2143
2792
7393
skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + + col0 * 64 / - col2 + col2 * col1 AS col2 FROM tab0 AS cor0
----
-2143
2792
7393
query I rowsort
SELECT ALL + col1 * 85 AS col2 FROM tab2 AS cor0
----
1445
2635
5015
query I rowsort
SELECT - 25 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
query I rowsort
SELECT 58 * col0 AS col2 FROM tab0
----
1392
2030
5162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 97 col0 FROM tab1
----
107
110
123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2492
SELECT col1 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2492
SELECT col1 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * col0 * - ( + col0 ) FROM tab1
----
-262144
-27
-512000
query I rowsort
SELECT - col2 * + col0 * + cor0.col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT + - col0 + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL col2 * + col0 + - 32 AS col1 FROM tab1 AS cor0
----
130
3616
7648
query I rowsort
SELECT + cor2.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT + 83 - - col1 FROM tab1 AS cor0
----
109
93
96
query I rowsort
SELECT + col2 * col1 - cor0.col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ( 40 ) AS col0 FROM tab1
----
40
40
40
query I rowsort
SELECT ALL + 17 AS col0 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT ALL + 48 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT col2 - - col2 * ( + col0 ) * + col0 FROM tab0
----
1226
19041
649604
query I rowsort
SELECT ALL ( col1 ) + + tab0.col1 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL + col2 + + col1 * + col0 + col0 FROM tab1
----
1216
135
761
query I rowsort
SELECT + cor0.col0 * col0 + + 76 AS col2 FROM tab0 AS cor0
----
1301
652
7997
query I rowsort
SELECT ALL + ( col0 ) + ( col2 ) * + col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + 20 * + cor0.col0 + + col0 FROM tab0 cor0
----
1869
504
735
query I rowsort
SELECT - + col1 * + col2 - col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-648
2356
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + 1 col1 FROM tab2
----
27
28
39
query I rowsort
SELECT DISTINCT - - col1 - col2 * - col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + + ( 99 ) * + cor0.col0 * - col1 AS col1 FROM tab0 cor0
----
-204336
-336105
-801801
query I rowsort
SELECT - tab0.col2 + - tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to aac9661904614ee295157ea355327523
query I rowsort
SELECT - col0 * + 9 AS col2 FROM tab1 AS cor0
----
-27
-576
-720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2516
SELECT ALL - CAST( NULL AS SIGNED ) - cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - CAST ( NULL AS INTEGER ) - cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * 83 FROM tab2 AS cor0
----
-581
-6474
-6557
query I rowsort
SELECT ALL 31 * col1 + col2 FROM tab2 AS cor0
----
1855
565
988
query I rowsort
SELECT cor0.col1 + cor0.col2 * col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL 93 + col2 AS col0 FROM tab0 AS cor0
----
126
175
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 col0 FROM tab2 cor0
----
-92
-92
-92
query I rowsort
SELECT ALL - col2 - col2 * - col2 * - 5 FROM tab1 AS cor0
----
-14634
-16302
-46176
query I rowsort
SELECT DISTINCT + ( + ( + col2 ) ) * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - - 55 * col0 AS col0 FROM tab1 AS cor0
----
165
3520
4400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 12 col0 FROM tab1 AS cor0
----
12
12
12
query I rowsort
SELECT ALL - 39 * col2 FROM tab1 AS cor0
----
-2106
-2223
-3744
query I rowsort
SELECT DISTINCT - - ( + col1 ) * + col2 + + 68 AS col0 FROM tab0 cor0
----
165
2906
7530
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2528
SELECT - CAST( ( cor0.col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-2528
SELECT - CAST ( ( cor0.col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT ( + 42 ) FROM tab2
----
42
query I rowsort
SELECT 70 * - col1 + - col2 AS col0 FROM tab1
----
-1006
-1874
-757
query I rowsort
SELECT - 58 + col1 * - col2 AS col2 FROM tab2
----
-1592
-704
-895
onlyif mysql # use DIV operator for integer division
query I rowsort label-2532
SELECT + 21 DIV - ( - col0 * + col1 ) + - col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2532
SELECT + 21 / - ( - col0 * + col1 ) + - col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT tab2.col1 * + 94 FROM tab2
----
1598
2914
5546
query I rowsort
SELECT DISTINCT - ( col2 ) * col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ( 94 ) FROM tab1, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2536
SELECT - - cor0.col2 DIV + 59 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2536
SELECT - - cor0.col2 / + 59 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + 23 + + col2 FROM tab1 AS cor0
----
119
77
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2538
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 + - 52 * 13 AS col1 FROM tab2 AS cor0
----
-2704
-3678
-865
query I rowsort
SELECT ALL + col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL col0 - - cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - + ( + col2 ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + + col0 * - col1 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
-177471
-329314
-736927
query I rowsort
SELECT DISTINCT col2 * col1 * col0 - - col1 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT ALL - 33 AS col1 FROM tab2 AS cor0
----
-33
-33
-33
query I rowsort
SELECT DISTINCT - - cor0.col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 70 + + col1 FROM tab2 AS cor0
----
101
129
87
query I rowsort
SELECT - + 73 * + col1 FROM tab1 AS cor0
----
-1898
-730
-949
query I rowsort
SELECT DISTINCT col1 + - col2 * 25 AS col0 FROM tab2 AS cor0
----
-591
-644
-933
query I rowsort
SELECT ALL + col2 * ( col2 * col1 ) AS col0 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + col2 + - 16 * - 97 AS col1 FROM tab2 AS cor0
----
1578
1579
1590
query I rowsort
SELECT col0 * col1 + col2 + col2 FROM tab1 AS cor0
----
1232
186
754
query I rowsort
SELECT ALL - col2 * col1 * col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT + col2 * ( + col2 ) + + col2 + cor0.col1 FROM tab1 AS cor0
----
2996
3316
9325
query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab2, tab0 AS cor0
----
96
query I rowsort
SELECT col0 * 23 + - col2 AS col1 FROM tab1 AS cor0
----
1415
15
1744
onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT DISTINCT + col2 + 86 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
35
83
87
skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT + col2 + 86 / cor0.col2 AS col1 FROM tab0 AS cor0
----
35
83
87
query I rowsort
SELECT + + cor0.col2 + 37 AS col2 FROM tab1 AS cor0
----
133
91
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2560
SELECT cor0.col0 * ( col0 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2560
SELECT cor0.col0 * ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * col1 + - 58 AS col2 FROM tab0
----
2780
39
7404
query I rowsort
SELECT col0 * - ( col0 ) - col1 FROM tab1
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT + ( + tab1.col2 ) AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT - ( + tab2.col1 * col0 ) AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col2 + tab2.col0 * col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT - 89 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT + 91 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + ( col2 * + ( - col0 ) ) col1 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL + + col2 * ( col0 + col2 ) AS col2 FROM tab0 cor0
----
14022
1881
36
query I rowsort
SELECT + 56 - + 43 * + col0 * 8 FROM tab2 AS cor0
----
-2352
-26776
-27120
skipif mysql # not compatible
query I rowsort
SELECT + 72 * cor0.col2 * - col1 + CAST ( col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
-110389
-46495
-60233
query I rowsort
SELECT - - col2 + col0 * - col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT col1 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + ( col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT 96 + - tab1.col2 AS col1 FROM tab1
----
0
39
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2576
SELECT 43 + cor0.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2576
SELECT 43 + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2577
SELECT - 26 * + col2 + - ( 57 * - cor0.col0 ) + + CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2577
SELECT - 26 * + col2 + - ( 57 * - cor0.col0 ) + + CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2578
SELECT col2 * col2 + 47 DIV + col2 AS col0 FROM tab0 AS cor0
----
1090
48
6724
skipif mysql # not compatible
query I rowsort label-2578
SELECT col2 * col2 + 47 / + col2 AS col0 FROM tab0 AS cor0
----
1090
48
6724
query I rowsort
SELECT col0 * - 84 + col2 FROM tab2 cor0
----
-561
-6526
-6598
query I rowsort
SELECT DISTINCT 79 FROM tab2, tab0 AS cor0
----
79
query I rowsort
SELECT ALL - col1 + - col1 * + col0 * col1 AS col1 FROM tab2 AS cor0
----
-22848
-271577
-6758
query I rowsort
SELECT DISTINCT + col0 * - col2 - + col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT col1 + col0 * col1 AS col2 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - col2 + + ( - cor0.col0 ) * + cor0.col0 - 52 * col0 * + col2 FROM tab1 AS cor0
----
-193849
-405856
-8487
query I rowsort
SELECT + col0 + - 76 AS col0 FROM tab2 AS cor0
----
-69
2
3
query I rowsort
SELECT - - cor0.col1 * - 10 AS col0 FROM tab2 cor0
----
-170
-310
-590
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 * + col0 + col2 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT + col0 * col1 + + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + col1 * + ( col2 ) - - cor0.col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ( - col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - ( col1 ) + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT ( col1 ) - col0 * - col1 AS col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT + col1 - - col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - ( - col2 ) + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2595
SELECT + ( + 47 ) DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2595
SELECT + ( + 47 ) / + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 + + ( + col1 ) FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col1 FROM tab2
----
57
query I rowsort
SELECT DISTINCT 0 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort
SELECT 62 + cor0.col2 * + CAST ( col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
1506
738
791
query I rowsort
SELECT DISTINCT - 14 * col1 FROM tab1 AS cor0
----
-140
-182
-364
onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT DISTINCT + - cor0.col1 DIV + col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT + - cor0.col1 / + col1 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT ALL - - col0 * cor0.col0 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT + ( + col1 ) DIV - col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-2604
SELECT + ( + col1 ) / - col0 FROM tab0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2605
SELECT 69 DIV - 3 AS col1 FROM tab2
----
-23
-23
-23
skipif mysql # not compatible
query I rowsort label-2605
SELECT 69 / - 3 AS col1 FROM tab2
----
-23
-23
-23
query I rowsort
SELECT DISTINCT - 85 - col2 AS col0 FROM tab1
----
-139
-142
-181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col0 * - tab1.col0 col0 FROM tab1
----
4153
63
6496
query I rowsort
SELECT DISTINCT - col1 + tab2.col1 AS col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2609
SELECT ALL + tab0.col0 + + tab0.col0 DIV col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + tab0.col0 + + tab0.col0 / col0 FROM tab0
----
25
36
90
query I rowsort
SELECT ALL - col1 FROM tab0 WHERE col1 * + col0 NOT BETWEEN ( col2 ) AND NULL
----
query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 col2 FROM tab2 WHERE ( + col0 * - col2 ) NOT IN ( + tab2.col0 )
----
7
78
79
query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col0 > ( NULL )
----
query I rowsort
SELECT ALL tab0.col0 + - col1 * tab0.col0 FROM tab0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2615
SELECT DISTINCT col0 + - col1 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT col0 + - col1 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2616
SELECT ALL + col0 + cor0.col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + col0 + cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2617
SELECT - ( + col0 ) * CAST( col2 * col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
skipif mysql # not compatible
query I rowsort label-2617
SELECT - ( + col0 ) * CAST ( col2 * col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT + - ( - col2 ) FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 + col0 col0 FROM tab1
----
3
64
80
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + + col2 * + col0 BETWEEN col1 + col2 AND + col0 + col2
----
query I rowsort
SELECT ALL col2 + col0 + + cor0.col2 AS col1 FROM tab0 cor0 WHERE NOT - col1 - + col2 <= ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2622
SELECT ALL - col0 DIV col0 + + col2 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - col0 / col0 + + col2 FROM tab2
----
25
26
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT - cor0.col2 DIV + col0 + col1 AS col1 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-2623
SELECT - cor0.col2 / + col0 + col1 AS col1 FROM tab1 AS cor0
----
10
12
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 * col0 + + col0 col2 FROM tab1
----
1216
135
761
query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE col0 + col2 / col1 NOT IN ( + col2 )
----
10
13
26
query I rowsort
SELECT + col0 + tab0.col1 * + col0 + + col1 AS col2 FROM tab0 WHERE NULL IN ( col1 )
----
query I rowsort
SELECT ALL col0 * - col1 * tab2.col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - col1 + - col1 * col0 * - tab0.col0 AS col1 FROM tab0
----
118728
49450
720720
onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT col2 + - tab0.col1 DIV col1 AS col1 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-2629
SELECT col2 + - tab0.col1 / col1 AS col1 FROM tab0
----
0
32
81
query I rowsort
SELECT - tab0.col0 * + col1 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col0 + col1 * col2 FROM tab1
----
1168
1401
506
query I rowsort
SELECT ALL col0 * col2 - + col2 AS col0 FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL col2 + tab0.col0 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL tab1.col2 + col0 AS col1 FROM tab1
----
121
176
57
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + col0 AND NULL
----
query I rowsort
SELECT ALL col1 + col2 AS col1 FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND col2
----
query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL NOT IN ( + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT tab1.col1 + col2 FROM tab1 WHERE NOT NULL IN ( col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col0 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE col0 * col0 < NULL
----
query I rowsort
SELECT ( + ( col2 ) ) + cor0.col0 * - 63 FROM tab0 AS cor0
----
-1479
-2204
-5525
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 52c9380a39df7a744b9f2f2c5bf55dd5
query I rowsort
SELECT DISTINCT + cor1.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2645
SELECT DISTINCT col1 + CAST( + col0 AS SIGNED ) FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT col1 + CAST ( + col0 AS INTEGER ) FROM tab1
----
29
74
93
query I rowsort
SELECT 36 * tab2.col1 FROM tab2
----
1116
2124
612
query I rowsort
SELECT DISTINCT ( 85 ) * col2 AS col0 FROM tab2
----
2210
2295
3230
query I rowsort
SELECT + - 90 AS col0 FROM tab1 cor0
----
-90
-90
-90
query I rowsort
SELECT DISTINCT ( 15 ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
15
query I rowsort
SELECT cor0.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL - 46 * + 18 AS col2 FROM tab0 AS cor0
----
-828
-828
-828
query I rowsort
SELECT DISTINCT col1 + + col0 * + tab0.col1 FROM tab0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2653
SELECT col2 * col0 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2653
SELECT col2 * col0 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + col1 ) + - ( 80 ) FROM tab2
----
-21
-49
-63
query I rowsort
SELECT DISTINCT + col1 * col2 + + 59 * - tab2.col1 AS col2 FROM tab2
----
-1947
-357
-992
query I rowsort
SELECT ALL col2 * - col0 + tab0.col2 * + col2 FROM tab0
----
-34
-574
297
query I rowsort
SELECT DISTINCT - 19 * cor0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0
----
-133
-1482
-1501
onlyif mysql # use DIV operator for integer division
query I rowsort label-2658
SELECT + + cor0.col0 DIV - col1 + 8 * - col2 AS col1 FROM tab0 cor0
----
-264
-656
-8
skipif mysql # not compatible
query I rowsort label-2658
SELECT + + cor0.col0 / - col1 + 8 * - col2 AS col1 FROM tab0 cor0
----
-264
-656
-8
query I rowsort
SELECT ALL + - col1 + + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT col0 + ( - cor0.col0 ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT ALL cor0.col1 * + ( ( col1 ) ) + col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + 86 * tab1.col1 AS col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 4f21fc32bb8f8c72c1140bd6292aac09
onlyif mysql # use DIV operator for integer division
query I rowsort label-2663
SELECT + cor0.col0 + ( 9 ) DIV + cor0.col0 FROM tab1 AS cor0
----
6
64
80
skipif mysql # not compatible
query I rowsort label-2663
SELECT + cor0.col0 + ( 9 ) / + cor0.col0 FROM tab1 AS cor0
----
6
64
80
query I rowsort
SELECT - col2 * 64 + + col1 AS col1 FROM tab0 AS cor0
----
-2026
-5157
33
query I rowsort
SELECT ALL col0 * + cor0.col0 + + col1 * col2 FROM tab2 AS cor0
----
6887
7618
886
onlyif mysql # use DIV operator for integer division
query I rowsort label-2666
SELECT DISTINCT + col2 DIV - ( + cor0.col1 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT + col2 / - ( + cor0.col1 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col0 - col0 * 19 FROM tab1 AS cor0
----
-1152
-1440
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-2668
SELECT + col2 - + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-2668
SELECT + col2 - + col1 / col2 AS col2 FROM tab0 AS cor0
----
-96
31
81
query I rowsort
SELECT + 19 + - col2 * + col1 FROM tab0 cor0
----
-2819
-7443
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2670
SELECT + CAST( NULL AS SIGNED ) * 34 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2670
SELECT + CAST ( NULL AS INTEGER ) * 34 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 19 + col1 - - col1 * - col2 AS col2 FROM tab2
----
-1456
-610
-787
query I rowsort
SELECT DISTINCT col2 + col0 + - col1 AS col1 FROM tab1
----
111
163
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2673
SELECT CAST( - col1 AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-2673
SELECT CAST ( - col1 AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ( 59 ) + + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1593
705
896
query I rowsort
SELECT + - 31 AS col2 FROM tab1 AS cor0
----
-31
-31
-31
query I rowsort
SELECT - 88 * - col2 AS col1 FROM tab0 cor0
----
2904
7216
88
query I rowsort
SELECT ALL - col2 * col0 * - col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - 13 FROM tab1
----
-13
query I rowsort
SELECT DISTINCT + - 95 - col0 FROM tab2 AS cor0
----
-102
-173
-174
query I rowsort
SELECT 29 * - col1 * col1 + col0 * - col1 FROM tab0 cor0
----
-216548
-248248
-276256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 56 col2 FROM tab2
----
392
4368
4424
query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab0, tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + col0 * - 26 FROM tab2
----
-182
-2028
-2054
onlyif mysql # use DIV operator for integer division
query I rowsort label-2684
SELECT + col2 DIV + col1 + col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2684
SELECT + col2 / + col1 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + - cor0.col0 * cor0.col0 - col1 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-2686
SELECT + col1 DIV + 18 - + ( col0 ) FROM tab0 AS cor0
----
-20
-30
-84
skipif mysql # not compatible
query I rowsort label-2686
SELECT + col1 / + 18 - + ( col0 ) FROM tab0 AS cor0
----
-20
-30
-84
query I rowsort
SELECT - col1 * + cor0.col2 - + col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT + col0 + - col2 * + 4 AS col2 FROM tab0 AS cor0
----
-108
-239
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-2689
SELECT DISTINCT + 81 DIV - col2 FROM tab0
----
-2
-81
0
skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT + 81 / - col2 FROM tab0
----
-2
-81
0
query I rowsort
SELECT + 40 AS col2 FROM tab1
----
40
40
40
query I rowsort
SELECT + col2 * ( + col1 ) + col2 AS col0 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT col0 + 68 * - ( cor0.col1 ) * col1 + + col0 AS col0 FROM tab2 AS cor0
----
-19494
-236552
-65334
query I rowsort
SELECT ALL - col2 + 38 * - col1 FROM tab1 AS cor0
----
-1042
-437
-590
query I rowsort
SELECT tab0.col2 * + tab0.col2 * col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT + col2 - - 29 AS col1 FROM tab1 AS cor0
----
125
83
86
query I rowsort
SELECT - col1 * - 95 AS col0 FROM tab1 AS cor0
----
1235
2470
950
query I rowsort
SELECT DISTINCT + + col2 * col0 + cor0.col0 * - cor0.col2 - + col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - - col1 + - col2 * - col1 * - col2 AS col0 FROM tab0 cor0
----
-611793
-93568
0
query I rowsort
SELECT ALL col0 + + cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL + col1 + + col0 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL col2 + + col0 * cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
2073
3361
8092
query I rowsort
SELECT ALL - col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT + col1 * + col1 - col1 * - col1 * + col0 AS col0 FROM tab2 AS cor0
----
23120
274999
7688
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + + col0 - col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 - col1 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT + tab1.col0 * - tab1.col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - col2 - - col2 * col2 FROM tab0
----
0
1056
6642
query I rowsort
SELECT col1 + col0 * col2 - col1 * tab0.col1 AS col1 FROM tab0
----
-6518
-892
-9277
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab0.col2 col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT tab1.col2 * col0 - col1 FROM tab1
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 + - col1 col2 FROM tab0
----
-2
-62
query I rowsort
SELECT + col2 + - col0 * + tab1.col0 * col0 AS col2 FROM tab1
----
-262087
-511904
27
query I rowsort
SELECT ALL col0 + col1 * tab1.col1 * col1 FROM tab1
----
1064
17579
2277
onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT ALL + col0 DIV + col2 + col0 FROM tab1
----
3
65
80
skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL + col0 / + col2 + col0 FROM tab1
----
3
65
80
query I rowsort
SELECT ALL + col2 * + cor0.col1 + col0 + col1 AS col1 FROM tab1 AS cor0
----
1341
1433
644
query I rowsort
SELECT ALL + cor0.col1 * col1 + - col1 FROM tab0 cor0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT col0 + - col2 * + col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + - col0 + + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + + cor0.col1 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-2722
SELECT + col1 DIV - col1 + col2 DIV col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-2722
SELECT + col1 / - col1 + col2 / col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - col1 - - col0 * + col2 FROM tab1
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + col1 col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + + cor0.col0 + - col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL col0 * - col0 - cor0.col1 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT ALL + + col0 - col2 * col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT - 5 * + col2 FROM tab1 cor0
----
-270
-285
-480
query I rowsort
SELECT DISTINCT col2 * + col1 + col1 FROM tab0 cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT col0 + + col0 DIV col0 + 94 FROM tab0 AS cor0
----
119
130
184
skipif mysql # not compatible
query I rowsort label-2730
SELECT col0 + + col0 / col0 + 94 FROM tab0 AS cor0
----
119
130
184
query I rowsort
SELECT + cor0.col0 * col2 + + 74 * - cor0.col1 FROM tab2 AS cor0
----
-2105
-2338
1744
query I rowsort
SELECT + 66 * col0 + col1 FROM tab2 cor0
----
493
5207
5231
query I rowsort
SELECT + + 45 * - 7 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 690dae633d09ce577e987ac51ce24b4d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2734
SELECT DISTINCT - - col1 + - 90 DIV - col1 + - col0 * - col2 * col0 FROM tab2 cor0
----
1356
158244
237180
skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT - - col1 + - 90 / - col1 + - col0 * - col2 * col0 FROM tab2 cor0
----
1356
158244
237180
query I rowsort
SELECT 30 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2736
SELECT DISTINCT - col0 DIV + 41 + 38 * - col0 FROM tab0 AS cor0
----
-1330
-3384
-912
skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT - col0 / + 41 + 38 * - col0 FROM tab0 AS cor0
----
-1330
-3384
-912
query I rowsort
SELECT + col2 * col0 * 37 FROM tab1 AS cor0
----
134976
284160
5994
query I rowsort
SELECT DISTINCT col2 * + col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 55 * - 64 col0 FROM tab1 AS cor0
----
-3440
-3456
-3517
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2740
SELECT ALL + col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL + col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - col1 ) + col1 + - ( - 16 ) * tab0.col0 FROM tab0
----
1606
556
754
query I rowsort
SELECT ALL + col2 + - 60 * col1 AS col1 FROM tab2
----
-1833
-3514
-982
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 91 - + col0 col1 FROM tab2 AS cor0
----
2288
2450
3379
query I rowsort
SELECT + col2 * col0 + + col0 + + col0 AS col1 FROM tab2
----
203
2184
3160
query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab2, tab1 AS cor0
----
-60
query I rowsort
SELECT ( + col1 ) * - col0 + col0 - 79 AS col1 FROM tab2
----
-1343
-289
-4603
query I rowsort
SELECT - 93 FROM tab0, tab2, tab1 cor0
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
query I rowsort
SELECT ALL - + 55 * ( + col2 ) FROM tab2 AS cor0
----
-1430
-1485
-2090
query I rowsort
SELECT ALL - - ( - 98 ) * - col2 FROM tab2 AS cor0
----
2548
2646
3724
query I rowsort
SELECT + col1 * cor0.col1 * + col1 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT + col2 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + + 89 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1157
2314
890
query I rowsort
SELECT ALL + 23 * col2 AS col1 FROM tab0 AS cor0
----
1886
23
759
query I rowsort
SELECT DISTINCT cor0.col2 + col0 AS col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT 28 - - col1 * 19 AS col0 FROM tab0 cor0
----
1662
1757
1871
query I rowsort
SELECT + col1 * + col1 + 61 * + cor0.col0 FROM tab2 AS cor0
----
1388
5108
8239
query I rowsort
SELECT ALL + - col0 - col2 FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - + col1 * - col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - - col2 + - col0 + - col2 * cor0.col2 FROM tab2 AS cor0
----
-1485
-709
-728
query I rowsort
SELECT DISTINCT 82 * col0 AS col2 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT - + 65 + - cor0.col2 + + 70 FROM tab2 AS cor0
----
-21
-22
-33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2763
SELECT + cor0.col2 * - col0 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif mysql # not compatible
query I rowsort label-2763
SELECT + cor0.col2 * - col0 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + col1 * + col0 + + ( - col0 ) * - col0 + + col2 AS col1 FROM tab1 cor0
----
141
4793
7536
query I rowsort
SELECT - col0 + - 38 FROM tab1
----
-102
-118
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-2766
SELECT DISTINCT col1 DIV - tab0.col0 + + col1 col2 FROM tab0
----
83
90
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT col1 / - tab0.col0 + + col1 col2 FROM tab0
----
83
90
95
query I rowsort
SELECT DISTINCT ( col1 ) + tab0.col1 AS col2 FROM tab0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-2768
SELECT DISTINCT tab1.col2 DIV + tab1.col2 + + col2 * col0 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT tab1.col2 / + tab1.col2 + + col2 * col0 FROM tab1
----
163
3649
7681
query I rowsort
SELECT ALL + - ( col1 ) + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 33 col1 FROM tab1 AS cor0
----
33
33
33
query I rowsort
SELECT DISTINCT + 85 + + col0 AS col1 FROM tab1 AS cor0
----
149
165
88
query I rowsort
SELECT tab0.col0 + 11 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 4d49b0df7cda627ac7883f3d049d1ee7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT ALL 10 DIV col0 + - col1 * + ( col1 ) FROM tab1
----
-100
-169
-673
skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL 10 / col0 + - col1 * + ( col1 ) FROM tab1
----
-100
-169
-673
query I rowsort
SELECT + - cor0.col2 + col1 * - col2 + - col0 FROM tab1 AS cor0
----
-1424
-1461
-691
query I rowsort
SELECT ALL - col2 * - col1 + + col2 * tab2.col2 FROM tab2
----
1566
2090
2210
query I rowsort
SELECT ALL col1 + + col0 * 33 + - col1 * - tab2.col0 * + tab2.col2 AS col2 FROM tab2
----
122285
53658
6121
query I rowsort
SELECT ALL + col2 + tab2.col0 * col0 AS col0 FROM tab2
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * - col2 col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col1 * col0 + + 71 + col1 * col0 * col1 FROM tab0 AS cor0
----
179639
332781
745179
onlyif mysql # use DIV operator for integer division
query I rowsort label-2780
SELECT - + col0 * 79 DIV ( col0 ) + + col1 DIV + col2 + col2 FROM tab1 AS cor0
----
-22
-25
17
skipif mysql # not compatible
query I rowsort label-2780
SELECT - + col0 * 79 / ( col0 ) + + col1 / + col2 + col2 FROM tab1 AS cor0
----
-22
-25
17
query I rowsort
SELECT ALL - + tab2.col2 AS col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT - 99 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da
query I rowsort
SELECT - col2 * 36 + + col1 * col2 * 44 FROM tab0
----
123684
325376
4232
query I rowsort
SELECT + + cor0.col0 + - 68 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c6622166d27cb6f89e51eecdeab7624c
query I rowsort
SELECT + col2 + + col1 + tab0.col1 FROM tab0
----
195
205
264
onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT ALL 68 DIV - cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
13
4
9
skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL 68 / - cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
13
4
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2787
SELECT DISTINCT 34 * col0 + + col2 DIV + col0 AS col2 FROM tab0 cor0
----
1190
3026
817
skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT 34 * col0 + + col2 / + col0 AS col2 FROM tab0 cor0
----
1190
3026
817
query I rowsort
SELECT DISTINCT + ( 14 ) AS col1 FROM tab2 cor0
----
14
query I rowsort
SELECT ALL 25 * + col2 FROM tab0 AS cor0
----
2050
25
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2790
SELECT ALL - CAST( - col2 AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - CAST ( - col2 AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + col0 + + col0 * + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL - - 75 * col1 FROM tab1 AS cor0
----
1950
750
975
onlyif mysql # use DIV operator for integer division
query I rowsort label-2793
SELECT DISTINCT - ( + col1 ) DIV col0 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT - ( + col1 ) / col0 FROM tab2
----
-4
0
query I rowsort
SELECT ALL - ( - ( + col2 ) ) * + ( - col2 ) + col0 * + col1 AS col0 FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT DISTINCT - - ( col2 ) + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col2 + 23 AS col1 FROM tab1 AS cor0
----
119
77
80
query I rowsort
SELECT ALL + col1 + cor0.col2 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + - 41 * - col0 FROM tab0 cor0
----
1435
3649
984
onlyif mysql # use DIV operator for integer division
query I rowsort label-2799
SELECT col2 * 39 DIV + 6 AS col0 FROM tab2
----
169
175
247
skipif mysql # not compatible
query I rowsort label-2799
SELECT col2 * 39 / + 6 AS col0 FROM tab2
----
169
175
247
query I rowsort
SELECT tab2.col1 + 56 + + col2 AS col1 FROM tab2
----
111
114
141
onlyif mysql # use DIV operator for integer division
query I rowsort label-2801
SELECT + tab1.col0 DIV - col0 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2801
SELECT + tab1.col0 / - col0 AS col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL - 75 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
query I rowsort
SELECT col1 * 60 AS col1 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT + - col0 - + cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2805
SELECT + CAST( NULL AS DECIMAL ) - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2805
SELECT + CAST ( NULL AS REAL ) - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 97 + + col0 * col1 AS col0 FROM tab0 cor0
----
2161
3492
8196
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2807
SELECT + + CAST( NULL AS SIGNED ) * - col2 + + col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2807
SELECT + + CAST ( NULL AS INTEGER ) * - col2 + + col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( col0 ) * - col1 + + col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL - - col0 + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - - 55 + col2 FROM tab2 AS cor0
----
81
82
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2811
SELECT + - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2811
SELECT + - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( 73 ) * col2 + - col1 FROM tab0 AS cor0
----
-24
2323
5895
query I rowsort
SELECT DISTINCT - col2 - - cor0.col2 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT ALL - col1 + cor0.col2 DIV - col0 FROM tab1 AS cor0
----
-10
-14
-44
skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - col1 + cor0.col2 / - col0 FROM tab1 AS cor0
----
-10
-14
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 + - ( + col1 ) col2 FROM tab2 AS cor0
----
12
40
54
query I rowsort
SELECT - 56 + col2 AS col2 FROM tab1 AS cor0
----
-2
1
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - cor0.col2 col2 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
onlyif mysql # use DIV operator for integer division
query I rowsort label-2819
SELECT ALL + col1 * cor0.col2 + + ( + col2 ) DIV col0 + - 68 FROM tab2 cor0
----
1466
578
772
skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL + col1 * cor0.col2 + + ( + col2 ) / col0 + - 68 FROM tab2 cor0
----
1466
578
772
onlyif mysql # use DIV operator for integer division
query I rowsort label-2820
SELECT - 78 + col0 * + ( - cor0.col0 ) DIV + col0 AS col2 FROM tab2 AS cor0
----
-156
-157
-85
skipif mysql # not compatible
query I rowsort label-2820
SELECT - 78 + col0 * + ( - cor0.col0 ) / + col0 AS col2 FROM tab2 AS cor0
----
-156
-157
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2821
SELECT + CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2821
SELECT + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT + + 24 AS col0 FROM tab2 cor0
----
24
24
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 73 col1 FROM tab2 AS cor0
----
-511
-5694
-5767
onlyif mysql # use DIV operator for integer division
query I rowsort label-2824
SELECT col0 + - 46 DIV 3 AS col2 FROM tab0 cor0
----
20
74
9
skipif mysql # not compatible
query I rowsort label-2824
SELECT col0 + - 46 / 3 AS col2 FROM tab0 cor0
----
20
74
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2825
SELECT DISTINCT + cor0.col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col0 * + 16 * col2 AS col1 FROM tab2 cor0
----
-3024
-32448
-48032
query I rowsort
SELECT DISTINCT + + col0 + + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - - col1 * col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col1 + - 0 * 40 * - col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - col2 * ( 67 ) FROM tab1 AS cor0
----
-3618
-3819
-6432
query I rowsort
SELECT ALL + 70 FROM tab0, tab2 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT DISTINCT col0 * 79 FROM tab0
----
1896
2765
7031
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * + col0 col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - + col1 + col2 * col2 AS col2 FROM tab1 cor0
----
2890
3239
9203
query I rowsort
SELECT ALL + - col0 * + col0 * + col0 - + col1 FROM tab1 AS cor0
----
-262154
-512013
-53
query I rowsort
SELECT DISTINCT col2 * + col0 + - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT + col2 * + col2 + - col2 AS col0 FROM tab0
----
0
1056
6642
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2838
SELECT col1 * tab1.col2 + - CAST( NULL AS SIGNED ) * - 76 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2838
SELECT col1 * tab1.col2 + - CAST ( NULL AS INTEGER ) * - 76 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 2 * col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
16198
4128
6790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9
query I rowsort
SELECT - - cor0.col1 + col0 * 47 AS col2 FROM tab0 AS cor0
----
1214
1742
4274
query I rowsort
SELECT DISTINCT col2 + - cor0.col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT + ( - col0 ) * + 35 * + col2 + + col1 * 48 AS col2 FROM tab2 AS cor0
----
-104254
-5127
-68148
onlyif mysql # use DIV operator for integer division
query I rowsort label-2845
SELECT DISTINCT + 93 + + col1 DIV - col0 + + col2 * - col1 * + cor0.col0 FROM tab0 AS cor0
----
-3304
-664026
-68022
skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT + 93 + + col1 / - col0 + + col2 * - col1 * + cor0.col0 FROM tab0 AS cor0
----
-3304
-664026
-68022
onlyif mysql # use DIV operator for integer division
query I rowsort label-2846
SELECT + col0 DIV + ( col2 ) + cor0.col2 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-2846
SELECT + col0 / + ( col2 ) + cor0.col2 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT col1 * - 37 + + cor0.col0 * 58 FROM tab2 AS cor0
----
-741
2341
3953
query I rowsort
SELECT DISTINCT + col0 + + 26 FROM tab2 AS cor0
----
104
105
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2849
SELECT CAST( - col2 AS SIGNED ) * - col0 + ( - col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
185
3594
7613
skipif mysql # not compatible
query I rowsort label-2849
SELECT CAST ( - col2 AS INTEGER ) * - col0 + ( - col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
185
3594
7613
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 + col1 col2 FROM tab0 AS cor0
----
105
110
116
query I rowsort
SELECT DISTINCT + ( - col1 ) * + col2 + col0 + - col1 FROM tab2 AS cor0
----
-1515
-584
-861
query I rowsort
SELECT 2 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
106
122
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2853
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT ALL - tab2.col1 + + col0 * col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT + 49 + col1 - + col1 FROM tab2 AS cor0
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT col1 - + col1 DIV 96 AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2856
SELECT col1 - + col1 / 96 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT col2 + ( ( col1 ) ) * - ( + col1 + + col1 ) FROM tab0
----
-14759
-16480
-18817
query I rowsort
SELECT DISTINCT - col1 + + col0 * - col0 FROM tab1
----
-35
-4106
-6413
query I rowsort
SELECT + col0 * 71 * col1 FROM tab2
----
15407
326742
95353
query I rowsort
SELECT - col0 + + 35 * - col1 + - col0 FROM tab0
----
-3058
-3363
-3465
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + col1 col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - cor0.col2 + col1 * - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT + + ( col2 ) * + col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - + 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT DISTINCT + 75 AS col2 FROM tab1
----
75
query I rowsort
SELECT + - 65 FROM tab1 AS cor0
----
-65
-65
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2867
SELECT ALL col2 + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col1 + col1 * 6 FROM tab1 AS cor0
----
182
70
91
query I rowsort
SELECT ALL col1 * + col1 * - ( ( + col1 ) ) + col2 AS col2 FROM tab1 cor0
----
-17522
-2101
-943
query I rowsort
SELECT DISTINCT - - col1 + col1 * - 41 AS col2 FROM tab1 AS cor0
----
-1040
-400
-520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - - ( + col2 * col2 ) col1 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT ALL + col2 * - 49 - 27 FROM tab1 AS cor0
----
-2673
-2820
-4731
query I rowsort
SELECT col1 - 87 AS col2 FROM tab2 AS cor0
----
-28
-56
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2875
SELECT DISTINCT col0 + + CAST( col0 AS SIGNED ) FROM tab0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT col0 + + CAST ( col0 AS INTEGER ) FROM tab0
----
178
48
70
query I rowsort
SELECT ALL - tab1.col0 + 85 FROM tab1
----
21
5
82
query I rowsort
SELECT col2 + 2 + - 85 * + col0 FROM tab0
----
-2005
-2972
-7481
query I rowsort
SELECT + col2 + + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2879
SELECT - + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2879
SELECT - + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 82 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
82
query I rowsort
SELECT ALL - - col0 + - col2 * 69 AS col1 FROM tab2 AS cor0
----
-1716
-1856
-2543
query I rowsort
SELECT ALL 2 * cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1a063bfb694f348122cd0739295ca641
query I rowsort
SELECT DISTINCT col2 * - 56 + 67 FROM tab1 AS cor0
----
-2957
-3125
-5309
onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT ALL + cor0.col2 - 33 DIV 26 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL + cor0.col2 - 33 / 26 FROM tab1 AS cor0
----
53
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-2885
SELECT ALL + col2 DIV ( 6 ) + + col0 col1 FROM tab0 AS cor0
----
102
29
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL + col2 / ( 6 ) + + col0 col1 FROM tab0 AS cor0
----
102
29
35
query I rowsort
SELECT DISTINCT + + col2 - ( - 3 ) AS col2 FROM tab0 AS cor0
----
36
4
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2887
SELECT CAST( NULL AS SIGNED ) - 89 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2887
SELECT CAST ( NULL AS INTEGER ) - 89 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT + col1 DIV col0 - - col0 FROM tab0 cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-2888
SELECT + col1 / col0 - - col0 FROM tab0 cor0
----
27
37
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT tab2.col1 DIV 78 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2889
SELECT tab2.col1 / 78 FROM tab2
----
0
0
0
query I rowsort
SELECT 88 + - col2 * - col0 AS col1 FROM tab0 cor0
----
123
7386
880
query I rowsort
SELECT + - 20 * - col2 + + col1 FROM tab0 cor0
----
117
1731
746
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 36 + + 43 * - col1 col2 FROM tab1 AS cor0
----
-1154
-466
-595
query I rowsort
SELECT cor1.col1 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT ALL - + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL - + col0 / col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col0 FROM tab0
----
27
27
27
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT + - col2 DIV - ( + cor0.col2 ) FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2897
SELECT + - col2 / - ( + cor0.col2 ) FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + 97 AS col2 FROM tab0
----
97
97
97
query I rowsort
SELECT col1 + col1 * col2 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT - tab2.col2 + 82 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 525177b827b1f6492c8d41811b1ce1e3
query I rowsort
SELECT + cor0.col1 + + 3 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d8aa10b3a3dc2708c4050b455eb58297
onlyif mysql # use DIV operator for integer division
query I rowsort label-2902
SELECT DISTINCT - ( col0 ) + + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT - ( col0 ) + + col0 / col1 AS col0 FROM tab1 AS cor0
----
-3
-58
-74
query I rowsort
SELECT ALL + 37 + col2 AS col0 FROM tab2 AS cor0
----
63
64
75
query I rowsort
SELECT DISTINCT + 39 * - col1 FROM tab0 AS cor0
----
-3354
-3549
-3783
query I rowsort
SELECT - 11 AS col0 FROM tab1
----
-11
-11
-11
query I rowsort
SELECT DISTINCT ( + tab2.col0 * - col0 + col2 ) FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT 14 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT - 24 * cor0.col0 * 92 AS col0 FROM tab2 AS cor0
----
-15456
-172224
-174432
query I rowsort
SELECT - - cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + 87 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT + col0 * col1 - + ( - col0 + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1024
27
647
query I rowsort
SELECT DISTINCT + tab0.col2 + + tab0.col1 * + ( col0 * col0 ) - - col2 AS col0 FROM tab0
----
118827
49602
720975
query I rowsort
SELECT + 43 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col0 FROM tab0, tab2 AS cor0
----
-80
query I rowsort
SELECT col1 - 82 AS col2 FROM tab2
----
-23
-51
-65
query I rowsort
SELECT ( col1 ) + - col2 * 97 AS col2 FROM tab1 AS cor0
----
-5212
-5519
-9299
query I rowsort
SELECT + ( - 98 ) AS col0 FROM tab2 AS cor0
----
-98
-98
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2919
SELECT ALL CAST( NULL AS DECIMAL ) + ( col0 + CAST( - col1 AS SIGNED ) ) * - col2 * 30 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL CAST ( NULL AS REAL ) + ( col0 + CAST ( - col1 AS INTEGER ) ) * - col2 * 30 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2920
SELECT CAST( + cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2920
SELECT CAST ( + cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + - 88 + 81 + col0 AS col1 FROM tab0 AS cor0
----
17
28
82
query I rowsort
SELECT DISTINCT - 36 + 88 * - col2 + 90 * col0 FROM tab2 AS cor0
----
-1782
3730
4696
query I rowsort
SELECT ( + col1 ) + col2 * col2 AS col1 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab2, tab0 cor0
----
26
27
38
query I rowsort
SELECT - ( - col0 ) + + col2 AS col1 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2926
SELECT DISTINCT - 62 * col2 + + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-2047
-5085
-63
skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT - 62 * col2 + + col2 / - col2 AS col2 FROM tab0 AS cor0
----
-2047
-5085
-63
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 59 AS REAL ) * - col2 FROM tab1 AS cor0
----
-3186
-3363
-5664
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2928
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - 61 * + 80 AS col1 FROM tab0 AS cor0
----
-4880
-4880
-4880
query I rowsort
SELECT - ( - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - + ( - 42 ) * cor0.col2 + ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-55
1300
3353
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT - 11 AS col1 FROM tab0 cor0
----
-11
-11
-11
query I rowsort
SELECT col1 * cor0.col2 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL ( - col2 ) + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT - + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - 25 AS col0 FROM tab1 cor0
----
-25
-25
-25
query I rowsort
SELECT ALL + col2 * - col2 + 96 AS col0 FROM tab0 AS cor0
----
-6628
-993
95
query I rowsort
SELECT - - 59 * - col0 FROM tab0 AS cor0
----
-1416
-2065
-5251
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + + cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
10464
3819
4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT ALL - 11 - col1 DIV + ( col1 * - col1 ) AS col1 FROM tab2 AS cor0
----
-11
-11
-11
skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - 11 - col1 / + ( col1 * - col1 ) AS col1 FROM tab2 AS cor0
----
-11
-11
-11
query I rowsort
SELECT + 40 * - col2 AS col2 FROM tab1 AS cor0
----
-2160
-2280
-3840
query I rowsort
SELECT ALL + col0 + col1 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT - tab1.col2 DIV col2 - col0 * ( 21 ) AS col1 FROM tab1
----
-1345
-1681
-64
skipif mysql # not compatible
query I rowsort label-2944
SELECT - tab1.col2 / col2 - col0 * ( 21 ) AS col1 FROM tab1
----
-1345
-1681
-64
query I rowsort
SELECT DISTINCT - - 37 + + col1 * + 59 AS col0 FROM tab0 AS cor0
----
5111
5406
5760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2946
SELECT DISTINCT + + 98 + - col1 * - CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT + + 98 + - col1 * - CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2947
SELECT DISTINCT col2 * col0 + + CAST( ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
188
3658
7693
skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT col2 * col0 + + CAST ( ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + - 68 AS col2 FROM tab0 AS cor0
----
-68
-68
-68
query I rowsort
SELECT ALL + - 47 * col2 AS col1 FROM tab2 AS cor0
----
-1222
-1269
-1786
query I rowsort
SELECT + col1 + + 41 + 59 * + col1 FROM tab0 AS cor0
----
5201
5501
5861
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2951
SELECT col0 * 9 + ( cor0.col2 ) + - ( ( - cor0.col0 ) ) / CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2951
SELECT col0 * 9 + ( cor0.col2 ) + - ( ( - cor0.col0 ) ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * 42 FROM tab2 cor0
----
1302
2478
714
onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT ALL - cor0.col0 * - ( + col1 ) DIV col1 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL - cor0.col0 * - ( + col1 ) / col1 AS col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2954
SELECT + - col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2954
SELECT + - col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * - 24 + col1 FROM tab0 AS cor0
----
-1877
-706
73
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
query I rowsort
SELECT - col1 * 19 - 42 AS col0 FROM tab2 AS cor0
----
-1163
-365
-631
query I rowsort
SELECT + cor0.col1 * 58 * 62 FROM tab0 AS cor0
----
309256
327236
348812
onlyif mysql # use DIV operator for integer division
query I rowsort label-2959
SELECT DISTINCT - col2 DIV - ( col2 + + col2 ) AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT - col2 / - ( col2 + + col2 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + - col2 * 56 AS col2 FROM tab1 AS cor0
----
-3024
-3192
-5376
query I rowsort
SELECT + - col0 * - cor0.col1 + - col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2962
SELECT + col2 + CAST( NULL AS DECIMAL ) / ( + col0 * ( col1 ) ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2962
SELECT + col2 + CAST ( NULL AS REAL ) / ( + col0 * ( col1 ) ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + 62 * col0 FROM tab0 AS cor0
----
1521
2171
5600
query I rowsort
SELECT - - cor1.col1 * - cor1.col1 + - 84 + + cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d210e027f468a23aba7db51d2f310dc8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT + + col0 DIV cor0.col1 + + cor0.col2 * col1 * + col0 FROM tab0 AS cor0
----
3395
664118
68112
skipif mysql # not compatible
query I rowsort label-2965
SELECT + + col0 / cor0.col1 + + cor0.col2 * col1 * + col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT - ( ( + col0 ) ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - col0 + - 27 + + cor0.col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-21
4005
6293
query I rowsort
SELECT DISTINCT + col0 * 77 FROM tab0 AS cor0
----
1848
2695
6853
onlyif mysql # use DIV operator for integer division
query I rowsort label-2969
SELECT DISTINCT + + 94 DIV 41 FROM tab0 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT + + 94 / 41 FROM tab0 AS cor0
----
2
query I rowsort
SELECT - col1 * - cor0.col0 * col2 + ( col2 ) FROM tab0 AS cor0
----
3396
664200
68145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2971
SELECT - tab0.col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2971
SELECT - tab0.col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT col0 + - ( + col2 ) DIV + col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2972
SELECT col0 + - ( + col2 ) / + col1 FROM tab0
----
24
35
89
query I rowsort
SELECT + - 47 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT ALL - col1 + tab1.col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - + cor0.col2 + - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + - 56 * col2 FROM tab2 AS cor0
----
-1456
-1512
-2128
query I rowsort
SELECT DISTINCT + + col0 + + cor0.col2 * col2 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-2978
SELECT DISTINCT - - col1 DIV - col0 FROM tab1 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT - - col1 / - col0 FROM tab1 AS cor0
----
-8
0
query I rowsort
SELECT ALL 66 * - cor0.col0 + + ( col2 * - col2 ) AS col2 FROM tab2 AS cor0
----
-1191
-5824
-6658
onlyif mysql # use DIV operator for integer division
query I rowsort label-2980
SELECT DISTINCT 67 + col0 + tab0.col2 DIV col1 col1 FROM tab0
----
102
156
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT 67 + col0 + tab0.col2 / col1 col1 FROM tab0
----
102
156
91
query I rowsort
SELECT - - 51 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-2982
SELECT DISTINCT - + col0 DIV col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT - + col0 / col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT + - 26 + - col1 * + 50 AS col1 FROM tab0 cor0
----
-4326
-4576
-4876
onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT - col0 * col2 DIV col1 FROM tab0 AS cor0
----
-80
-9
0
skipif mysql # not compatible
query I rowsort label-2984
SELECT - col0 * col2 / col1 FROM tab0 AS cor0
----
-80
-9
0
query I rowsort
SELECT + 43 * col1 FROM tab2 AS cor0
----
1333
2537
731
query I rowsort
SELECT + 62 * + col2 FROM tab1 cor0
----
3348
3534
5952
query I rowsort
SELECT ALL + col2 + + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT ALL - 41 DIV col1 col0 FROM tab2 AS cor0
----
-1
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - 41 / col1 col0 FROM tab2 AS cor0
----
-1
-2
0
query I rowsort
SELECT ALL + + 77 FROM tab1 AS cor0
----
77
77
77
query I rowsort
SELECT + cor0.col2 * col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT col2 + cor0.col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT - col2 * 20 * ( - cor0.col0 * 44 ) + col1 + - col2 FROM tab0 AS cor0
----
30896
6422249
697013
query I rowsort
SELECT + col0 * + 46 FROM tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT DISTINCT - 78 * col1 + tab0.col0 + + 32 AS col0 FROM tab0
----
-6652
-6977
-7499
query I rowsort
SELECT tab2.col1 * + col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 59 * + 72 - col2 FROM tab2 cor0
----
4210
4221
4222
query I rowsort
SELECT ALL - 45 + col1 * col0 AS col2 FROM tab0 AS cor0
----
2019
3350
8054
query I rowsort
SELECT DISTINCT col2 + ( col2 ) * + cor0.col1 + ( col2 ) FROM tab2 AS cor0
----
1586
722
891
onlyif mysql # use DIV operator for integer division
query I rowsort label-2999
SELECT ALL - + col1 + - col0 DIV - col0 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL - + col1 + - col0 / - col0 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT ALL + col2 + 33 FROM tab2 cor0
----
59
60
71
query I rowsort
SELECT 76 FROM tab2, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3002
SELECT ALL - col2 DIV - 26 + col0 * 9 + col1 AS col1 FROM tab0 AS cor0
----
303
412
895
skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - col2 / - 26 + col0 * 9 + col1 AS col1 FROM tab0 AS cor0
----
303
412
895
query I rowsort
SELECT col2 * col1 * tab1.col2 + - 22 FROM tab1
----
119786
32468
75794
query I rowsort
SELECT + 92 FROM tab1, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3005
SELECT CAST( NULL AS SIGNED ) + - 19 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3005
SELECT CAST ( NULL AS INTEGER ) + - 19 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + 30 ) AS col2 FROM tab1
----
-30
-30
-30
query I rowsort
SELECT ALL 16 * + ( col2 ) FROM tab0
----
1312
16
528
onlyif mysql # use DIV operator for integer division
query I rowsort label-3008
SELECT ALL + 20 DIV + col0 FROM tab1
----
0
0
6
skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + 20 / + col0 FROM tab1
----
0
0
6
query I rowsort
SELECT ALL - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT 87 + + col0 AS col2 FROM tab2 cor0
----
165
166
94
query I rowsort
SELECT + + 91 * + 47 * col0 FROM tab0 cor0
----
102648
149695
380653
query I rowsort
SELECT col2 + col1 * col0 AS col1 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + - cor0.col0 + col1 * + col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT - ( + col1 ) + tab2.col2 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + 62 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT 80 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab2 cor0
----
10
query I rowsort
SELECT cor0.col0 + - col2 * + ( + col1 ) AS col1 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
28
query I rowsort
SELECT DISTINCT + col1 * - col0 * - 16 FROM tab0
----
129584
33024
54320
query I rowsort
SELECT ALL ( + 77 ) FROM tab2, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT ALL + col2 + + ( col0 ) * col2 * + col1 AS col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT DISTINCT - col2 * - ( col2 ) * col0 FROM tab2 AS cor0
----
114076
5103
52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( cor0.col0 ) col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - + col1 - - 1 * - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + col1 * - col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + col0 + 38 * col2 AS col2 FROM tab0 AS cor0
----
1278
3205
73
query I rowsort
SELECT - + ( col1 ) * + col2 * + ( + 43 ) + cor0.col2 FROM tab0 AS cor0
----
-122001
-320784
-4170
query I rowsort
SELECT ALL - col0 * col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT DISTINCT - 52 DIV - cor0.col2 + col1 DIV CAST( + 13 AS SIGNED ) - + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-16
0
skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT - 52 / - cor0.col2 + col1 / CAST ( + 13 AS INTEGER ) - + col2 / col0 AS col1 FROM tab1 AS cor0
----
-16
0
query I rowsort
SELECT ALL + col1 - + 62 AS col1 FROM tab0 AS cor0
----
24
29
35
query I rowsort
SELECT ALL - - col1 + cor0.col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT 78 + + cor0.col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7474
8359
9487
query I rowsort
SELECT - col0 * + col1 * tab1.col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT ALL - col0 + + 85 AS col2 FROM tab2
----
6
7
78
query I rowsort
SELECT - - 62 AS col2 FROM tab1 AS cor0
----
62
62
62
query I rowsort
SELECT + + col1 * - 65 AS col2 FROM tab2 cor0
----
-1105
-2015
-3835
query I rowsort
SELECT col2 + + ( cor0.col2 + col0 ) FROM tab1 AS cor0
----
111
178
272
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 + + CAST ( col0 AS REAL ) FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL + 99 AS col1 FROM tab2
----
99
99
99
query I rowsort
SELECT DISTINCT col1 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3045
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3045
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 5 * col2 AS col2 FROM tab2 AS cor0
----
-130
-135
-190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col2 FROM tab0 AS cor0
----
10
query I rowsort
SELECT DISTINCT + 45 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
1144
1188
1672
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3049
SELECT ALL - - CAST( NULL AS SIGNED ) * 7 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-3049
SELECT ALL - - CAST ( NULL AS INTEGER ) * 7 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 26 + col2 AS col1 FROM tab0 cor0
----
-25
56
7
query I rowsort
SELECT ALL - ( col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + 48 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 * - col2 col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT col0 * 29 FROM tab2 AS cor0
----
203
2262
2291
onlyif mysql # use DIV operator for integer division
query I rowsort label-3055
SELECT col0 DIV + 7 FROM tab2 AS cor0
----
1
11
11
skipif mysql # not compatible
query I rowsort label-3055
SELECT col0 / + 7 FROM tab2 AS cor0
----
1
11
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3056
SELECT DISTINCT 8 / + col2 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT 8 / + col2 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ( tab0.col2 ) * col0 AS col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3058
SELECT 40 DIV col2 - col1 col0 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3058
SELECT 40 / col2 - col1 col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + 21 + cor0.col2 FROM tab1 cor0
----
117
75
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT col2 DIV + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-3060
SELECT col2 / + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-24
-26
-38
query I rowsort
SELECT - - 16 * cor0.col0 + - 59 AS col2 FROM tab0 AS cor0
----
1365
325
501
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3062
SELECT - col2 * - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3062
SELECT - col2 * - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( cor0.col0 ) * - ( 45 ) * col0 + + ( + col0 ) * - col0 * col2 AS col1 FROM tab1 cor0
----
-326400
-49152
-81
query I rowsort
SELECT col2 * + col1 + + cor0.col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT - 17 + - tab2.col2 * + col0 FROM tab2
----
-2045
-206
-3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3066
SELECT - col2 * col2 - CAST( + 0 AS SIGNED ) FROM tab0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-3066
SELECT - col2 * col2 - CAST ( + 0 AS INTEGER ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + 89 + col2 AS col0 FROM tab1
----
143
146
185
query I rowsort
SELECT 91 * - col0 AS col2 FROM tab1
----
-273
-5824
-7280
query I rowsort
SELECT 41 * col0 FROM tab1
----
123
2624
3280
query I rowsort
SELECT DISTINCT - col2 * - col0 + 70 * - col1 AS col2 FROM tab2
----
-1981
-2102
1812
query I rowsort
SELECT DISTINCT + col1 * + col2 * ( + 39 ) + col0 * + col2 FROM tab0
----
111474
298316
3818
query I rowsort
SELECT ALL 66 + col1 FROM tab2
----
125
83
97
query I rowsort
SELECT DISTINCT - col1 * col2 * ( - col0 ) + col0 * col2 FROM tab2
----
121680
54036
6048
query I rowsort
SELECT ALL col2 + - col1 * + col1 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT 77 * tab0.col1 AS col0 FROM tab0
----
6622
7007
7469
query I rowsort
SELECT + - col2 + + 50 AS col0 FROM tab1 AS cor0
----
-4
-46
-7
query I rowsort
SELECT ALL col1 * - col1 * 52 - col1 FROM tab0 AS cor0
----
-384678
-430703
-489365
query I rowsort
SELECT - + col0 + 94 FROM tab2 cor0
----
15
16
87
query I rowsort
SELECT ALL + - col1 + + cor0.col1 * 92 + col2 FROM tab1 AS cor0
----
1279
2420
967
query I rowsort
SELECT DISTINCT col0 + + ( + 72 ) * col0 FROM tab1 AS cor0
----
219
4672
5840
query I rowsort
SELECT col1 * ( tab1.col0 ) + col1 AS col0 FROM tab1
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( - col2 ) + + col0 col0 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3083
SELECT + col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3083
SELECT + col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
7363
8199
9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3085
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + + col2 * 13 FROM tab2 AS cor0
----
338
351
494
skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( col1 AS REAL ) AS col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + + col0 * 20 + + 91 FROM tab1 AS cor0
----
1371
151
1691
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ( ( + col2 ) ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT 52 * col1 FROM tab0 AS cor0
----
4472
4732
5044
query I rowsort
SELECT - + col0 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT - - col2 * 35 AS col0 FROM tab0 cor0
----
1155
2870
35
query I rowsort
SELECT DISTINCT + 27 * col2 * col0 FROM tab2 AS cor0
----
5103
54756
81054
onlyif mysql # use DIV operator for integer division
query I rowsort label-3096
SELECT ALL - col1 * 39 DIV + col0 FROM tab0 AS cor0
----
-108
-139
-39
skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL - col1 * 39 / + col0 FROM tab0 AS cor0
----
-108
-139
-39
query I rowsort
SELECT - + col2 * 39 AS col1 FROM tab1 cor0
----
-2106
-2223
-3744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col2 col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + col2 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3100
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT - - col0 + col2 * + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - 5 * + col1 FROM tab0 AS cor0
----
-430
-455
-485
query I rowsort
SELECT + - 57 * col1 AS col1 FROM tab0 AS cor0
----
-4902
-5187
-5529
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col2 * ( + col1 ) * - col0 col1 FROM tab0 AS cor0
----
3298
664027
68026
query I rowsort
SELECT - 37 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT DISTINCT - - 49 DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT - - 49 / col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - col0 * - ( + col1 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT ( - 11 ) AS col1 FROM tab0
----
-11
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT ( + col2 + - tab0.col2 ) * CAST ( - col1 AS REAL ) AS col1 FROM tab0
----
0
query I rowsort
SELECT ALL - 30 FROM tab1, tab1 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT 68 + col1 AS col0 FROM tab2
----
127
85
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-3112
SELECT ALL + 70 + - col1 DIV col1 FROM tab2 AS cor0
----
69
69
69
skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + 70 + - col1 / col1 FROM tab2 AS cor0
----
69
69
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3113
SELECT DISTINCT - CAST( cor0.col1 AS SIGNED ) * - cor0.col0 + col0 * col2 FROM tab2 AS cor0
----
406
4345
6630
skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT - CAST ( cor0.col1 AS INTEGER ) * - cor0.col0 + col0 * col2 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT ALL 74 + - col0 AS col0 FROM tab2 AS cor0
----
-4
-5
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3115
SELECT DISTINCT + CAST( col1 AS SIGNED ) col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT + CAST ( col1 AS INTEGER ) col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + 58 + col1 AS col0 FROM tab2 AS cor0
----
117
75
89
query I rowsort
SELECT ALL cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT 58 + + col2 AS col1 FROM tab0 cor0
----
140
59
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 * cor0.col2 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 * cor0.col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT col2 * - col0 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT col1 * + col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + col2 * + col2 * - cor0.col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT + - col1 * col0 + 81 FROM tab1 AS cor0
----
-559
-959
3
query I rowsort
SELECT - 72 + + col0 AS col2 FROM tab0 AS cor0
----
-37
-48
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-3126
SELECT ALL - col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL - col1 / + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT 56 DIV col0 FROM tab2 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-3127
SELECT 56 / col0 FROM tab2 AS cor0
----
0
0
8
query I rowsort
SELECT DISTINCT + + col0 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - col2 * - 77 FROM tab0 cor0
----
2541
6314
77
query I rowsort
SELECT DISTINCT + cor0.col1 + 93 FROM tab0 AS cor0
----
179
184
190
query I rowsort
SELECT col2 + + 90 FROM tab1 AS cor0
----
144
147
186
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3132
SELECT + col0 * + cor0.col1 + - 75 * - col0 + - CAST( + ( - col1 ) AS SIGNED ) * col1 FROM tab0 AS cor0
----
11260
15429
23055
skipif mysql # not compatible
query I rowsort label-3132
SELECT + col0 * + cor0.col1 + - 75 * - col0 + - CAST ( + ( - col1 ) AS INTEGER ) * col1 FROM tab0 AS cor0
----
11260
15429
23055
query I rowsort
SELECT ALL - - col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - - col1 * - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT - col2 * 5 + col1 FROM tab0 AS cor0
----
-319
-79
92
query I rowsort
SELECT ALL + col0 + - col2 - - col2 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - - ( + 65 ) + col2 FROM tab1 cor0
----
119
122
161
query I rowsort
SELECT cor1.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT col2 + + 22 * + col0 AS col1 FROM tab1
----
120
1465
1856
query I rowsort
SELECT + col0 * col0 + col0 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT col0 * col0 + cor0.col1 + ( + col2 ) FROM tab0 AS cor0
----
1323
695
8094
query I rowsort
SELECT col0 * + col1 AS col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3143
SELECT + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3143
SELECT + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - 71 FROM tab2 AS cor0
----
-64
7
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3145
SELECT 5 + col0 DIV col1 + col2 FROM tab0 AS cor0
----
38
6
87
skipif mysql # not compatible
query I rowsort label-3145
SELECT 5 + col0 / col1 + col2 FROM tab0 AS cor0
----
38
6
87
query I rowsort
SELECT ALL - col1 * - 79 FROM tab2
----
1343
2449
4661
query I rowsort
SELECT ALL + 19 FROM tab1, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # use DIV operator for integer division
query I rowsort label-3148
SELECT cor0.col2 * 88 + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
2905
7217
89
skipif mysql # not compatible
query I rowsort label-3148
SELECT cor0.col2 * 88 + col2 / col2 AS col0 FROM tab0 AS cor0
----
2905
7217
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 68 col0 FROM tab1 AS cor0
----
68
68
68
query I rowsort
SELECT + 47 + + col2 FROM tab0 cor0
----
129
48
80
query I rowsort
SELECT DISTINCT 32 * - col0 AS col1 FROM tab0 AS cor0
----
-1120
-2848
-768
query I rowsort
SELECT + 18 * col0 FROM tab0 AS cor0
----
1602
432
630
query I rowsort
SELECT DISTINCT cor0.col1 * + col1 AS col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL - 90 AS col0 FROM tab1
----
-90
-90
-90
query I rowsort
SELECT ALL + 82 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT ALL + tab0.col2 + + col2 + tab0.col0 AS col2 FROM tab0
----
253
37
90
query I rowsort
SELECT - col0 * - ( + col2 ) AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col1 * + 58 AS col1 FROM tab1 AS cor0
----
-1508
-580
-754
query I rowsort
SELECT ALL - col0 * ( col1 ) + col0 + cor0.col2 FROM tab0 cor0
----
-2007
-3359
-7928
query I rowsort
SELECT DISTINCT + col0 * col2 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + tab2.col1 + col0 * ( 22 ) FROM tab2
----
1755
1775
185
query I rowsort
SELECT - - 8 + col1 FROM tab2 AS cor0
----
25
39
67
query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 * col1 FROM tab2 AS cor0
----
22606
24627
39962
onlyif mysql # use DIV operator for integer division
query I rowsort label-3164
SELECT DISTINCT + col1 - col2 DIV - col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + col1 - col2 / - col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3165
SELECT ALL + col0 + + CAST( col1 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
138
173
32
skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + col0 + + CAST ( col1 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT + col1 + - cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3167
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + + 50 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + + 50 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3168
SELECT ALL cor0.col2 DIV cor0.col0 - col0 col0 FROM tab0 cor0
----
-23
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL cor0.col2 / cor0.col0 - col0 col0 FROM tab0 cor0
----
-23
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3169
SELECT + cor0.col2 * + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3169
SELECT + cor0.col2 * + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + - 14 FROM tab1 AS cor0
----
-11
50
66
query I rowsort
SELECT - - col2 + col0 * + col0 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT col1 + 5 FROM tab1 AS cor0
----
15
18
31
query I rowsort
SELECT DISTINCT - col1 + + 27 AS col2 FROM tab0 AS cor0
----
-59
-64
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3174
SELECT ALL + - cor0.col2 / CAST( NULL AS SIGNED ) + - col2 + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + - cor0.col2 / CAST ( NULL AS INTEGER ) + - col2 + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab0
----
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3176
SELECT - col1 * cor0.col1 + col0 * CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3176
SELECT - col1 * cor0.col1 + col0 * CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + col1 + - tab0.col0 + 78 AS col0 FROM tab0
----
2118
3438
8088
query I rowsort
SELECT 89 * cor0.col0 AS col1 FROM tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT ALL col1 * 60 FROM tab0
----
5160
5460
5820
onlyif mysql # use DIV operator for integer division
query I rowsort label-3180
SELECT + 38 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
38
skipif mysql # not compatible
query I rowsort label-3180
SELECT + 38 / col2 AS col1 FROM tab0 AS cor0
----
0
1
38
query I rowsort
SELECT col2 + - cor0.col2 * col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT 36 * - 35 + cor0.col0 FROM tab0 AS cor0
----
-1171
-1225
-1236
query I rowsort
SELECT - col2 * col2 * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 col1 FROM tab2 AS cor0
----
5
query I rowsort
SELECT DISTINCT 66 FROM tab2, tab0, tab2 AS cor0
----
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 * - ( - col1 ) col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - col2 * col1 * - cor0.col0 + col1 FROM tab2 AS cor0
----
119711
51051
5890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3188
SELECT DISTINCT 10 * + col1 + CAST( NULL AS SIGNED ) * 48 * col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT 10 * + col1 + CAST ( NULL AS INTEGER ) * 48 * col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * - 52 FROM tab2 AS cor0
----
-371
-4134
-4187
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col0 FROM tab0 AS cor0
----
-30
-30
-30
onlyif mysql # use DIV operator for integer division
query I rowsort label-3191
SELECT + col1 + col1 + col1 DIV - 81 FROM tab2 AS cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-3191
SELECT + col1 + col1 + col1 / - 81 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + - cor0.col1 + col0 * 20 FROM tab1 AS cor0
----
1270
1587
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT 92 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT col2 + ( col1 ) * + col2 - col1 * - col0 FROM tab0
----
15643
3493
4935
query I rowsort
SELECT - 62 * col2 - + col2 FROM tab1
----
-3402
-3591
-6048
query I rowsort
SELECT ALL + tab2.col2 * + tab2.col1 - + col2 * col1 FROM tab2
----
0
0
0
query I rowsort
SELECT 95 * col2 * - 14 AS col2 FROM tab0 AS cor0
----
-109060
-1330
-43890
query I rowsort
SELECT + 56 + col1 * + 60 AS col2 FROM tab2 AS cor0
----
1076
1916
3596
query I rowsort
SELECT ALL - - col1 + - col0 * + 38 AS col1 FROM tab0 AS cor0
----
-1233
-3291
-826
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - col0 * - cor0.col1 - - col2 * - 4 AS col2 FROM tab2 cor0
----
109
1191
4498
query I rowsort
SELECT ( + col1 ) - - col1 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL - + col0 * - cor0.col2 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + tab2.col0 * + col0 - col1 AS col1 FROM tab2
----
18
6025
6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-3207
SELECT + col0 + ( col1 ) + - col0 DIV CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
109
131
179
skipif mysql # not compatible
query I rowsort label-3207
SELECT + col0 + ( col1 ) + - col0 / CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
109
131
179
query I rowsort
SELECT col1 * col2 - cor0.col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - col0 * + col2 + ( + 34 ) * col0 FROM tab2
----
-316
49
624
query I rowsort
SELECT DISTINCT - 84 FROM tab2, tab0, tab1 AS cor0, tab1 AS cor1
----
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - cor0.col1 * col1 + + 71 col1 FROM tab2 AS cor0
----
-297
-3488
-897
query I rowsort
SELECT 34 AS col1 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT ALL - col2 * + 58 AS col1 FROM tab2 AS cor0
----
-1508
-1566
-2204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT col2 * + 87 + - col2 AS col0 FROM tab2 AS cor0
----
2236
2322
3268
query I rowsort
SELECT DISTINCT - - ( col1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL - tab1.col1 * + cor1.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a6a7a6a47aff0e8ed0e5d5e78cd4092b
query I rowsort
SELECT + + 66 FROM tab0 AS cor0
----
66
66
66
query I rowsort
SELECT ALL tab2.col2 * + 71 FROM tab2
----
1846
1917
2698
query I rowsort
SELECT + 61 * col2 FROM tab2 AS cor0
----
1586
1647
2318
query I rowsort
SELECT ALL + 99 * 4 FROM tab1 AS cor0
----
396
396
396
query I rowsort
SELECT DISTINCT ( - 76 ) + - col0 FROM tab2 AS cor0
----
-154
-155
-83
query I rowsort
SELECT ALL + - 57 FROM tab1 cor0
----
-57
-57
-57
query I rowsort
SELECT ALL - col0 * + ( cor0.col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + ( col0 ) * col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3226
SELECT - col2 DIV + 60 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3226
SELECT - col2 / + 60 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL col0 + tab1.col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT - col0 + + ( col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( col2 + tab1.col2 ) AS col2 FROM tab1
----
108
114
192
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
query I rowsort
SELECT DISTINCT + col1 + - 66 FROM tab2 AS cor0
----
-35
-49
-7
query I rowsort
SELECT ALL col1 * ( - col0 ) * cor0.col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3233
SELECT DISTINCT - + col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT - + col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT + + col2 DIV - 93 + + 25 FROM tab0 AS cor0
----
25
25
25
skipif mysql # not compatible
query I rowsort label-3234
SELECT + + col2 / - 93 + + 25 FROM tab0 AS cor0
----
25
25
25
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col2 * + CAST ( - 10 AS REAL ) + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-543
-634
query I rowsort
SELECT ALL col2 * - 72 FROM tab2 AS cor0
----
-1872
-1944
-2736
query I rowsort
SELECT ALL + 40 FROM tab0, tab0 cor0, tab2, tab0 AS cor1
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3238
SELECT ALL - 69 + - col1 DIV tab1.col1 AS col1 FROM tab1
----
-70
-70
-70
skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - 69 + - col1 / tab1.col1 AS col1 FROM tab1
----
-70
-70
-70
query I rowsort
SELECT DISTINCT - col1 * 58 - cor0.col0 FROM tab2 AS cor0
----
-1065
-1805
-3500
query I rowsort
SELECT ALL + - 79 * col2 AS col1 FROM tab0 AS cor0
----
-2607
-6478
-79
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * - col2 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 + - col0 - - col2 col2 FROM tab1 cor0
----
213
3641
7696
query I rowsort
SELECT + - col1 * + cor0.col2 + col0 * col0 FROM tab1 AS cor0
----
-1395
3526
5152
query I rowsort
SELECT - cor0.col2 * - cor0.col1 - col1 * col1 FROM tab1 AS cor0
----
1079
470
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * - cor0.col1 - + col1 col0 FROM tab2 AS cor0
----
-1530
-2790
-5310
onlyif mysql # use DIV operator for integer division
query I rowsort label-3246
SELECT 13 DIV col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3246
SELECT 13 / col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - 58 AS col0 FROM tab1 cor0
----
-58
-58
-58
query I rowsort
SELECT DISTINCT ( 76 ) + + col2 - - 97 AS col0 FROM tab2 AS cor0
----
199
200
211
query I rowsort
SELECT ALL + col2 * 91 FROM tab0 AS cor0
----
3003
7462
91
query I rowsort
SELECT + - 13 - 69 AS col1 FROM tab1 AS cor0
----
-82
-82
-82
query I rowsort
SELECT ALL - + 69 + col1 * + cor0.col1 FROM tab0 AS cor0
----
7327
8212
9340
query I rowsort
SELECT + col0 * - 95 - - col2 FROM tab0 AS cor0
----
-2247
-3324
-8373
query I rowsort
SELECT ALL cor0.col0 + - 64 AS col1 FROM tab1 cor0
----
-61
0
16
query I rowsort
SELECT + + 39 AS col2 FROM tab0 cor0
----
39
39
39
query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab1 AS cor0
----
38
query I rowsort
SELECT ALL col0 + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - 21 * + col0 AS col1 FROM tab2 cor0
----
-147
-1638
-1659
query I rowsort
SELECT ALL - + col2 + + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - - 17 FROM tab1 cor0
----
17
query I rowsort
SELECT + col2 * + cor0.col2 + - col2 FROM tab2 AS cor0
----
1406
650
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + cor0.col0 * + col2 col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - cor0.col1 * + col1 - + col1 * col1 FROM tab0 cor0
----
-14792
-16562
-18818
query I rowsort
SELECT + col0 * col1 * ( cor0.col1 ) - - cor0.col2 AS col2 FROM tab1 AS cor0
----
13616
2082
6457
query I rowsort
SELECT + col1 * col1 * col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT + - 97 + - col1 FROM tab2 AS cor0
----
-114
-128
-156
query I rowsort
SELECT ALL 24 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT + col1 + 47 * + cor0.col2 AS col1 FROM tab0 cor0
----
144
1637
3945
query I rowsort
SELECT ALL + 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT - cor0.col0 * + col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT - + 99 * - col0 FROM tab2 AS cor0
----
693
7722
7821
query I rowsort
SELECT col0 + + ( col0 ) * col1 FROM tab0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3273
SELECT ALL - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3274
SELECT + CAST( NULL AS SIGNED ) + col0 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3274
SELECT + CAST ( NULL AS INTEGER ) + col0 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col0 * tab1.col1 ) + tab1.col2 AS col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT DISTINCT + 80 + col0 AS col0 FROM tab0
----
104
115
169
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 78 + + col1 ) col1 FROM tab0
----
164
169
175
query I rowsort
SELECT - col1 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT + 51 * col2 + + col2 + + col2 AS col0 FROM tab2
----
1378
1431
2014
onlyif mysql # use DIV operator for integer division
query I rowsort label-3280
SELECT DISTINCT - ( 76 ) DIV col2 AS col2 FROM tab0 AS cor0
----
-2
-76
0
skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT - ( 76 ) / col2 AS col2 FROM tab0 AS cor0
----
-2
-76
0
query I rowsort
SELECT - 54 * - 31 FROM tab0 AS cor0
----
1674
1674
1674
query I rowsort
SELECT ALL + cor0.col0 * + col0 + - col1 AS col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT + col0 + cor0.col2 FROM tab0 cor0
----
171
36
57
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT 44 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT DISTINCT + tab1.col1 - col1 AS col0 FROM tab1
----
0
query I rowsort
SELECT ( + col1 ) * col0 + + col2 + col1 FROM tab2
----
1398
275
4687
query I rowsort
SELECT tab2.col0 * + col1 + col2 * + tab2.col0 + col0 AS col2 FROM tab2
----
413
4424
6708
query I rowsort
SELECT 42 + + 95 AS col1 FROM tab2 AS cor0
----
137
137
137
query I rowsort
SELECT DISTINCT ( + col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3293
SELECT + CAST( cor0.col1 AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3293
SELECT + CAST ( cor0.col1 AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * 34 + - col0 FROM tab2 cor0
----
-1371
-925
-962
query I rowsort
SELECT ALL - 95 * + 27 AS col2 FROM tab2 AS cor0
----
-2565
-2565
-2565
query I rowsort
SELECT ALL tab1.col1 * + col1 FROM tab1
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3297
SELECT - 10 DIV col2 FROM tab0 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-3297
SELECT - 10 / col2 FROM tab0 AS cor0
----
-10
0
0
query I rowsort
SELECT ALL tab1.col0 * 29 FROM tab1, tab1 AS cor0
----
9 values hashing to 5319314427cff452ca112595a8b96825
query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col2 FROM tab1 AS cor0
----
-3
-3
-3
query I rowsort
SELECT - col0 * 15 FROM tab0 AS cor0
----
-1335
-360
-525
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3302
SELECT cor0.col0 * CAST( col1 + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1280
156
2080
skipif mysql # not compatible
query I rowsort label-3302
SELECT cor0.col0 * CAST ( col1 + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT DISTINCT + col2 + - 96 AS col0 FROM tab2 AS cor0
----
-58
-69
-70
query I rowsort
SELECT ALL - 26 AS col1 FROM tab1
----
-26
-26
-26
query I rowsort
SELECT DISTINCT + col2 * 75 FROM tab2 AS cor0
----
1950
2025
2850
query I rowsort
SELECT DISTINCT - + cor0.col2 * 76 + col2 FROM tab2 cor0
----
-1950
-2025
-2850
query I rowsort
SELECT DISTINCT - - col0 - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3308
SELECT ALL + col0 + - col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL + col0 + - col0 / + col0 AS col1 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3309
SELECT ALL - + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3310
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) + cor0.col0 col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) + cor0.col0 col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - - cor0.col1 + ( col0 ) FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - col0 * - col1 + 80 FROM tab1
----
1120
158
720
query I rowsort
SELECT ALL col1 * col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT ALL - col0 * + ( + col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3315
SELECT col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3315
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( - 29 ) FROM tab1 AS cor0
----
29
29
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + - col0 * - col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - 88 + - col0 FROM tab0 AS cor0
----
-112
-123
-177
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3320
SELECT DISTINCT + + CAST( col0 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - - 33 AS col1 FROM tab0 AS cor0
----
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3322
SELECT ALL + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT col1 * + ( - tab0.col1 ) * - col2 + tab0.col2 * 12 FROM tab0
----
244464
680026
9421
query I rowsort
SELECT + 55 + - col2 FROM tab2 AS cor0
----
17
28
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3326
SELECT DISTINCT 43 + - col2 DIV 31 AS col0 FROM tab2 AS cor0
----
42
43
skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT 43 + - col2 / 31 AS col0 FROM tab2 AS cor0
----
42
43
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 + cor0.col2 AS col0 FROM tab1 cor0
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT + - col1 + col1 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-3329
SELECT 89 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
90
90
90
skipif mysql # not compatible
query I rowsort label-3329
SELECT 89 + col0 / col0 AS col0 FROM tab1 AS cor0
----
90
90
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3330
SELECT ALL - 41 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL - 41 / cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 42 + cor0.col2 * col1 AS col2 FROM tab1 cor0
----
1290
1446
612
query I rowsort
SELECT DISTINCT - col0 + 50 * + tab2.col0 + + ( + 53 ) AS col1 FROM tab2
----
3875
3924
396
query I rowsort
SELECT - 11 + + 90 - - col0 AS col0 FROM tab0
----
103
114
168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3334
SELECT - col0 / - col1 + col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3334
SELECT - col0 / - col1 + col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( + 78 ) FROM tab2
----
78
78
78
query I rowsort
SELECT + ( + 1 ) AS col1 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL col2 * 51 FROM tab0
----
1683
4182
51
query I rowsort
SELECT ALL + 86 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 + col0 col0 FROM tab2
----
100
101
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-3340
SELECT - col0 DIV + col0 AS col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3340
SELECT - col0 / + col0 AS col0 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT 75 * + col1 + + ( - 28 + + col1 ) AS col2 FROM tab0 AS cor0
----
6508
6888
7344
query I rowsort
SELECT 5 * col1 AS col2 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT ALL - cor0.col1 * + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-3344
SELECT DISTINCT - col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT - col0 / col0 AS col0 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col1 FROM tab1
----
-59
query I rowsort
SELECT - 8 * + col0 AS col0 FROM tab2 AS cor0
----
-56
-624
-632
query I rowsort
SELECT + + ( col0 ) * col2 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3348
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + - cor0.col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL 23 + col0 AS col1 FROM tab0 cor0
----
112
47
58
query I rowsort
SELECT - ( col1 ) * + col2 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL + col0 * 40 FROM tab2
----
280
3120
3160
query I rowsort
SELECT ALL col0 * + ( + col1 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL ( col0 * + col0 ) AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col0 * + 33 * - col0 FROM tab0
----
-19008
-261393
-40425
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * col1 col2 FROM tab0
----
-7138
-7553
-8051
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3357
SELECT + + CAST( NULL AS SIGNED ) * cor0.col1 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3357
SELECT + + CAST ( NULL AS INTEGER ) * cor0.col1 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3358
SELECT - - cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3358
SELECT - - cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - cor0.col0 * - ( ( - col0 ) ) * cor0.col2 FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT - + cor0.col0 DIV 25 FROM tab0 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-3361
SELECT - + cor0.col0 / 25 FROM tab0 AS cor0
----
-1
-3
0
query I rowsort
SELECT col2 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3363
SELECT col0 + col0 DIV - col1 FROM tab2
----
7
75
77
skipif mysql # not compatible
query I rowsort label-3363
SELECT col0 + col0 / - col1 FROM tab2
----
7
75
77
query I rowsort
SELECT + 13 AS col1 FROM tab0
----
13
13
13
query I rowsort
SELECT DISTINCT + tab1.col2 * + col2 + col0 * col2 * tab1.col0 + 39 FROM tab1
----
236760
3441
623655
query I rowsort
SELECT ALL col1 + 98 * col0 + col1 AS col0 FROM tab1
----
346
6292
7866
query I rowsort
SELECT ALL + col0 + 63 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
2103
5255
98
query I rowsort
SELECT DISTINCT + col1 * - 25 AS col0 FROM tab2 AS cor0
----
-1475
-425
-775
query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col2 + + 21 * - col1 FROM tab1 AS cor0
----
-153
-177
-492
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3371
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3372
SELECT ALL col2 * 24 DIV + 14 AS col0 FROM tab0 AS cor0
----
1
140
56
skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL col2 * 24 / + 14 AS col0 FROM tab0 AS cor0
----
1
140
56
query I rowsort
SELECT + col2 - col1 * + 23 AS col2 FROM tab0 AS cor0
----
-1945
-2011
-2230
query I rowsort
SELECT DISTINCT col2 + 56 * col1 * col1 FROM tab2 cor0
----
16222
194962
53843
query I rowsort
SELECT - col0 * ( - 40 * - cor0.col2 ) FROM tab0 AS cor0
----
-1400
-291920
-31680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3376
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3377
SELECT DISTINCT + cor0.col0 + + 8 DIV + col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT + cor0.col0 + + 8 / + col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3378
SELECT ALL cor0.col2 DIV 72 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL cor0.col2 / 72 FROM tab0 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col2 FROM tab0, tab0 AS cor0
----
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-3380
SELECT DISTINCT col2 DIV ( + tab2.col0 ) FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT col2 / ( + tab2.col0 ) FROM tab2
----
0
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3381
SELECT + 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-3381
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 75 * - cor0.col0 + col2 FROM tab1 AS cor0
----
-171
-4743
-5904
query I rowsort
SELECT - col0 * col1 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - ( - 91 ) - col1 FROM tab1 AS cor0
----
65
78
81
query I rowsort
SELECT ALL col2 + 95 * + col2 FROM tab1 cor0
----
5184
5472
9216
query I rowsort
SELECT + - ( col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col0 col2 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3388
SELECT + col1 * - cor0.col2 + cor0.col0 * - col2 * + col0 + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-159718
-2157
-237804
skipif mysql # not compatible
query I rowsort label-3388
SELECT + col1 * - cor0.col2 + cor0.col0 * - col2 * + col0 + col2 / col0 AS col0 FROM tab2 AS cor0
----
-159718
-2157
-237804
query I rowsort
SELECT + + 81 + - 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col2 col2 FROM tab2 cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 + col2 col1 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT - col0 + + col2 * col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT - + cor0.col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 0 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3397
SELECT DISTINCT - cor0.col1 + col1 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT - cor0.col1 + col1 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col0 + col1 * - ( + col1 ) * col0 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT - ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - col2 + col0 col1 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3401
SELECT ALL col1 + + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL col1 + + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 42 FROM tab1 cor0
----
42
query I rowsort
SELECT - ( - 26 + tab1.col0 ) FROM tab1
----
-38
-54
23
query I rowsort
SELECT DISTINCT + ( + col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - - 13 FROM tab0 cor0
----
13
13
13
query I rowsort
SELECT DISTINCT - 6 * - col1 + - ( + col1 * col0 ) + + col0 FROM tab1 AS cor0
----
-516
-882
81
query I rowsort
SELECT ALL + + 6 * + col0 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT ALL - + 89 * - col2 AS col0 FROM tab2 AS cor0
----
2314
2403
3382
query I rowsort
SELECT + - col2 * ( col0 ) + col0 * col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 31 * col0 + 93 * col2 AS col1 FROM tab0 AS cor0
----
-992
2325
4867
query I rowsort
SELECT ALL + 81 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT ALL 89 + + col1 * col2 DIV col1 AS col2 FROM tab0 AS cor0
----
122
171
90
skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL 89 + + col1 * col2 / col1 AS col2 FROM tab0 AS cor0
----
122
171
90
query I rowsort
SELECT ALL - 1 + col0 AS col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT + 64 * - col1 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT DISTINCT col0 * col0 + 7 AS col2 FROM tab0
----
1232
583
7928
query I rowsort
SELECT DISTINCT + col1 * + col1 + + col2 AS col0 FROM tab1
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 76 * tab1.col2 ) col1 FROM tab1
----
4104
4332
7296
query I rowsort
SELECT ALL + col2 * col2 * col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT - 33 * col0 + col0 FROM tab0 AS cor0
----
-1120
-2848
-768
onlyif mysql # use DIV operator for integer division
query I rowsort label-3420
SELECT col1 * ( + col2 ) DIV + cor0.col1 AS col2 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3420
SELECT col1 * ( + col2 ) / + cor0.col1 AS col2 FROM tab1 cor0
----
54
57
96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 * col0 col1 FROM tab1 AS cor0
----
249
5312
6640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3423
SELECT + - CAST( NULL AS SIGNED ) + ( + col1 ) * 64 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3423
SELECT + - CAST ( NULL AS INTEGER ) + ( + col1 ) * 64 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 15 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
104
39
50
query I rowsort
SELECT DISTINCT - + ( + col1 ) + - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-3426
SELECT + + col1 DIV 30 + col1 * col2 FROM tab0 AS cor0
----
100
2840
7465
skipif mysql # not compatible
query I rowsort label-3426
SELECT + + col1 / 30 + col1 * col2 FROM tab0 AS cor0
----
100
2840
7465
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * cor0.col2 col1 FROM tab2 AS cor0
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 col2 FROM tab2 cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col0 col0 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26
query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab0 AS cor0
----
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3432
SELECT ALL - - ( - col2 ) DIV - cor0.col2 + 60 FROM tab0 AS cor0
----
61
61
61
skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL - - ( - col2 ) / - cor0.col2 + 60 FROM tab0 AS cor0
----
61
61
61
query I rowsort
SELECT ALL + col2 + col2 * ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - col2 * - col2 + - cor0.col2 + col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ( col2 ) * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - cor0.col2 * + col0 + - col0 + + ( + col1 ) * + cor0.col1 * + col0 FROM tab0 AS cor0
----
176688
329245
729622
onlyif mysql # use DIV operator for integer division
query I rowsort label-3437
SELECT 64 DIV - col1 + col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3437
SELECT 64 / - col1 + col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - 98 FROM tab2, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT - - col0 + - cor0.col1 * + cor0.col1 + ( col1 ) FROM tab0 AS cor0
----
-7286
-8101
-9277
query I rowsort
SELECT DISTINCT - - ( col0 ) * 1 + cor0.col0 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT DISTINCT + - col2 * + cor0.col2 + - 23 DIV col2 - col0 * col0 DIV col1 col2 FROM tab1 AS cor0
----
-2916
-3658
-9708
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT + - col2 * + cor0.col2 + - 23 / col2 - col0 * col0 / col1 col2 FROM tab1 AS cor0
----
-2916
-3658
-9708
onlyif mysql # use DIV operator for integer division
query I rowsort label-3443
SELECT ALL + 17 DIV col1 + 23 FROM tab0 cor0
----
23
23
23
skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + 17 / col1 + 23 FROM tab0 cor0
----
23
23
23
query I rowsort
SELECT ALL - col0 + + ( - col1 ) * col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT col2 * - col0 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL - col1 + tab1.col2 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT col2 + ( + tab0.col2 ) AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT - col0 + + col2 AS col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL + col2 * - col2 + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-2816
-2907
847
onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT ALL - + col1 DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - + col1 / - cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL + cor0.col0 * 5 FROM tab1 AS cor0
----
15
320
400
query I rowsort
SELECT ALL - + 84 + - col0 FROM tab2 AS cor0
----
-162
-163
-91
query I rowsort
SELECT ALL cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col2 - + col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - col0 * - 60 FROM tab0 cor0
----
1440
2100
5340
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 - col2 col1 FROM tab2 cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-3457
SELECT DISTINCT col2 + col2 * col1 DIV - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-131
-77
-98
skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT col2 + col2 * col1 / - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-131
-77
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3458
SELECT ALL - CAST( NULL AS SIGNED ) + 40 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL - CAST ( NULL AS INTEGER ) + 40 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col0 ) + - col2 col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL cor0.col2 - + col0 * - col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + col1 + - 95 + 75 FROM tab1
----
-10
-7
6
query I rowsort
SELECT DISTINCT - col2 + - ( col0 ) AS col1 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL - col2 * + col2 + + col1 AS col2 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT + + cor0.col1 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT + tab2.col0 * tab2.col1 - ( col2 ) AS col1 FROM tab2
----
1305
190
4576
query I rowsort
SELECT col0 * 76 FROM tab0
----
1824
2660
6764
query I rowsort
SELECT DISTINCT col1 + 93 FROM tab1
----
103
106
119
query I rowsort
SELECT cor0.col1 * col1 AS col0 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL - col1 * + col1 FROM tab2 WHERE NOT + col1 * - col1 + + col2 * col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - col1 - - col2 AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT col1 * + col2 + - col2 AS col0 FROM tab2
----
1508
608
810
query I rowsort
SELECT - col0 * col2 + tab0.col1 * col2 AS col1 FROM tab0
----
164
2046
62
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 <= - col0
----
7
31
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT + col1 * col2 DIV col1 AS col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3474
SELECT + col1 * col2 / col1 AS col0 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3475
SELECT DISTINCT + col1 DIV col2 + col1 + + tab1.col0 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT + col1 / col2 + col1 + + tab1.col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL NOT IN ( - col2 )
----
query I rowsort
SELECT ALL col1 * col1 * - col2 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT col2 * tab0.col2 + col1 AS col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL - col1 + + col0 * - col2 * tab1.col0 + + col1 AS col2 FROM tab1
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-3480
SELECT DISTINCT col1 + col2 * col2 + col1 DIV + col0 FROM tab1
----
2950
3259
9229
skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT col1 + col2 * col2 + col1 / + col0 FROM tab1
----
2950
3259
9229
query III rowsort
SELECT * FROM tab1 WHERE col1 - + col2 BETWEEN NULL AND - col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3482
SELECT + tab0.col0 * col2 + - col2 DIV - col1 + col0 FROM tab0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-3482
SELECT + tab0.col0 * col2 + - col2 / - col1 + col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT + col1 * col1 * + col1 AS col0 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT ALL col1 * col1 + - col2 AS col1 FROM tab2
----
251
3455
934
query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + col1 + + col1 >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3486
SELECT col1 * col1 DIV col2 + + tab0.col2 FROM tab0
----
182
257
9410
skipif mysql # not compatible
query I rowsort label-3486
SELECT col1 * col1 / col2 + + tab0.col2 FROM tab0
----
182
257
9410
query I rowsort
SELECT DISTINCT col0 + - tab2.col2 + + col0 FROM tab2
----
-13
120
130
query I rowsort
SELECT ALL col0 * + col0 * col2 + - col2 + tab1.col1 FROM tab1
----
233425
458
614317
query I rowsort
SELECT + col2 * col1 + tab0.col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT + col2 / + col1 FROM tab0 WHERE ( NULL ) NOT IN ( col1 + + col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( - col2 )
----
query I rowsort
SELECT ALL + col0 + + col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960
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-3494
SELECT - cor0.col1 * + col1 DIV + col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3494
SELECT - cor0.col1 * + col1 / + col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - - col0 * col2 * col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT + col1 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT + tab1.col0 + + tab1.col0 FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + tab2.col1 col1 FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT + col0 * col0 DIV col0 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3499
SELECT + col0 * col0 / col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT tab2.col0 * - col2 + col0 AS col1 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
3
64
80
query I rowsort
SELECT ALL col1 * col2 * + col1 AS col1 FROM tab1
----
16224
36504
5700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3503
SELECT ALL col2 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL col2 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2, tab1, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col2 + + col2 * col2 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - tab2.col2 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT + + col2 + col1 * 48 * - col2 FROM tab2 AS cor0
----
-30970
-40149
-73606
onlyif mysql # use DIV operator for integer division
query I rowsort label-3509
SELECT - cor0.col1 DIV 66 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-3509
SELECT - cor0.col1 / 66 col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col2 * - 51 AS col1 FROM tab2 AS cor0
----
-1326
-1377
-1938
query I rowsort
SELECT col0 * - col0 * - col2 FROM tab0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 - - tab0.col2 col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT col1 + cor0.col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * - col1 + - tab2.col1 col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col0 > ( col0 )
----
86
91
97
query I rowsort
SELECT + tab1.col2 + - tab1.col1 * col0 FROM tab1
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-3517
SELECT ALL - tab2.col0 DIV col0 + + tab2.col2 col1 FROM tab2
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL - tab2.col0 / col0 + + tab2.col2 col1 FROM tab2
----
25
26
37
query I rowsort
SELECT + col1 + + col2 * col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL - col0 + - tab2.col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT DISTINCT col2 * - col2 + col0 AS col0 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT 72 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
3891
4168
6992
query I rowsort
SELECT 59 * col0 AS col2 FROM tab2
----
413
4602
4661
query I rowsort
SELECT - col0 + col0 * col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT col1 + ( - 65 ) * + col1 * col2 FROM tab1
----
-37040
-81107
-91234
query I rowsort
SELECT - - cor0.col2 AS col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL + + cor0.col2 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col0 * + cor0.col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL + + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + - col2 + 5 * + col0 FROM tab1 AS cor0
----
-39
263
304
query I rowsort
SELECT ALL col2 + col0 * 42 FROM tab2 cor0
----
321
3302
3356
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3532
SELECT DISTINCT + CAST( 12 AS SIGNED ) - col1 AS col0 FROM tab2 AS cor0
----
-19
-47
-5
skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT + CAST ( 12 AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0
----
-19
-47
-5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3533
SELECT ALL + CAST( + 62 AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + CAST ( + 62 AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col0 FROM tab1 AS cor0
----
-35
query I rowsort
SELECT ALL 34 - col2 AS col1 FROM tab2 AS cor0
----
-4
7
8
query I rowsort
SELECT DISTINCT + ( col2 ) * col0 - + col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - 99 AS col1 FROM tab2 AS cor0
----
-99
-99
-99
query I rowsort
SELECT DISTINCT 14 FROM tab0 cor0
----
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT + 28 DIV col2 + - col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3539
SELECT + 28 / col2 + - col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - 35 + + col0 * + 52 AS col1 FROM tab2 AS cor0
----
329
4021
4073
query I rowsort
SELECT col1 + + col0 + col1 * col2 FROM tab1 AS cor0
----
1341
1433
644
query I rowsort
SELECT col0 * col2 * + tab0.col2 AS col1 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT ( + col1 ) + + 33 AS col0 FROM tab0 cor0
----
119
124
130
onlyif mysql # use DIV operator for integer division
query I rowsort label-3544
SELECT DISTINCT - col2 DIV col1 + - col0 * + col1 + col1 * col2 FROM tab2
----
-3068
-699
620
skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - col2 / col1 + - col0 * + col1 + col1 * col2 FROM tab2
----
-3068
-699
620
query I rowsort
SELECT col1 * - col0 - + 75 FROM tab0
----
-2139
-3470
-8174
query I rowsort
SELECT DISTINCT + col0 * tab0.col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-3548
SELECT DISTINCT + 46 DIV + col0 + + col1 * - col2 col0 FROM tab0
----
-2837
-7462
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT + 46 / + col0 + + col1 * - col2 col0 FROM tab0
----
-2837
-7462
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT ALL + col1 + - col1 DIV - col0 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + col1 + - col1 / - col0 FROM tab0
----
89
92
99
query I rowsort
SELECT ALL 57 + + col0 FROM tab2
----
135
136
64
query I rowsort
SELECT ALL 50 + + tab1.col1 AS col1 FROM tab1
----
60
63
76
query I rowsort
SELECT ALL + cor0.col0 * + col0 + + col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT col2 + - col0 * - col0 + col1 AS col0 FROM tab0
----
1323
695
8094
onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT + 14 DIV + col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3554
SELECT + 14 / + col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL - ( col1 ) * col0 + col0 FROM tab1
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-3557
SELECT - col2 DIV tab0.col2 + tab0.col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-3557
SELECT - col2 / tab0.col2 + tab0.col2 FROM tab0
----
0
32
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3558
SELECT ALL col1 DIV col2 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL col1 / col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col1 + col1 * col2 AS col2 FROM tab0 WHERE NULL IN ( + tab0.col2 * col2 * - col2 ) AND NOT col1 IN ( + tab0.col2 )
----
query I rowsort
SELECT - col2 * col0 + col0 AS col2 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + col0 + col1 * col1 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT - col0 + - col0 DIV - col0 AS col2 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-3563
SELECT - col0 + - col0 / - col0 AS col2 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT DISTINCT - tab2.col1 - + col0 * col0 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT - col1 + - col2 + col0 AS col0 FROM tab2
----
-51
-7
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3566
SELECT + CAST( NULL AS DECIMAL ) * tab2.col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3566
SELECT + CAST ( NULL AS REAL ) * tab2.col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - col1 * + col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - col0 + + col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT ALL + col2 - + 23 AS col1 FROM tab2 AS cor0
----
15
3
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT - 90 + col0 DIV tab2.col1 col1 FROM tab2
----
-86
-89
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3570
SELECT - 90 + col0 / tab2.col1 col1 FROM tab2
----
-86
-89
-90
query I rowsort
SELECT + - col1 * col1 + - col2 AS col2 FROM tab2 cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT + col0 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT col1 + cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-3574
SELECT col1 DIV - cor0.col0 + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2835
7461
95
skipif mysql # not compatible
query I rowsort label-3574
SELECT col1 / - cor0.col0 + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2835
7461
95
query I rowsort
SELECT ALL col2 * col0 * - col2 + + col2 AS col0 FROM tab2 AS cor0
----
-114038
-5076
-52702
query I rowsort
SELECT DISTINCT + - col0 + + col0 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3577
SELECT ALL ( col0 ) DIV col1 + col2 * cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373
skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL ( col0 ) / col1 + col2 * cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + + 99 FROM tab2 cor0
----
99
99
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * - col0 + + col2 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + - col2 - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL + col2 * - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL 10 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
-303
-512
-91
query I rowsort
SELECT + 74 + col1 FROM tab2 AS cor0
----
105
133
91
query I rowsort
SELECT - + col2 + col1 + + col2 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + + col2 - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab0, tab0 cor0, tab2 cor1
----
61
query I rowsort
SELECT + 67 + 24 FROM tab2
----
91
91
91
query I rowsort
SELECT ALL ( cor0.col1 ) * + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1d94ea086ff4b04d01d3c46ff83c5c3d
onlyif mysql # use DIV operator for integer division
query I rowsort label-3589
SELECT cor0.col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3589
SELECT cor0.col2 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT 17 * - col2 AS col2 FROM tab0 AS cor0
----
-1394
-17
-561
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT 98 * + col2 FROM tab0
----
3234
8036
98
query I rowsort
SELECT 86 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT col2 + + cor0.col2 * 42 FROM tab2 AS cor0
----
1118
1161
1634
query I rowsort
SELECT + - 72 + col2 AS col1 FROM tab2 AS cor0
----
-34
-45
-46
query I rowsort
SELECT ALL + cor0.col0 * 69 + col0 FROM tab1 AS cor0
----
210
4480
5600
onlyif mysql # use DIV operator for integer division
query I rowsort label-3597
SELECT - cor0.col2 * ( - cor0.col1 ) DIV - col2 + + cor0.col1 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3597
SELECT - cor0.col2 * ( - cor0.col1 ) / - col2 + + cor0.col1 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3598
SELECT DISTINCT col2 - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT col2 - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + col0 * - 27 AS col2 FROM tab2 AS cor0
----
-189
-2106
-2133
query I rowsort
SELECT ALL + + col1 + 40 + + col1 AS col1 FROM tab0 AS cor0
----
212
222
234
query I rowsort
SELECT - + 14 AS col2 FROM tab0 AS cor0
----
-14
-14
-14
query I rowsort
SELECT + col1 * 80 AS col2 FROM tab1 AS cor0
----
1040
2080
800
query I rowsort
SELECT - col1 + 58 * + cor0.col0 FROM tab0 AS cor0
----
1306
1933
5071
query I rowsort
SELECT col0 * - cor0.col0 * col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + 93 * 93 AS col0 FROM tab0 AS cor0
----
8649
8649
8649
query I rowsort
SELECT ALL 50 * + col1 + + cor0.col2 * - cor0.col1 FROM tab1 AS cor0
----
-104
-598
-70
query I rowsort
SELECT ALL + + cor0.col1 + + col2 + col0 AS col2 FROM tab0 AS cor0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * col2 col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + 66 * + col1 + col2 FROM tab1 AS cor0
----
1770
717
954
query I rowsort
SELECT ( 89 ) * + col0 + 96 AS col0 FROM tab0 AS cor0
----
2232
3211
8017
query I rowsort
SELECT DISTINCT 46 + col2 AS col1 FROM tab1
----
100
103
142
query I rowsort
SELECT ALL - col0 + ( col0 ) AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3613
SELECT col1 DIV col0 + - col2 FROM tab0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-3613
SELECT col1 / col0 + - col2 FROM tab0
----
-30
-81
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3614
SELECT - CAST( 23 + col2 AS SIGNED ) * - ( - col1 * + col0 + - ( col0 ) * + col0 ) AS col1 FROM tab2
----
-13300
-462624
-523614
skipif mysql # not compatible
query I rowsort label-3614
SELECT - CAST ( 23 + col2 AS INTEGER ) * - ( - col1 * + col0 + - ( col0 ) * + col0 ) AS col1 FROM tab2
----
-13300
-462624
-523614
query I rowsort
SELECT ALL + 22 + - col0 FROM tab1 AS cor0
----
-42
-58
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - cor0.col2 * col1 col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT ALL - col2 * ( col1 ) + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + col2 * col1 + + ( + col1 ) - - col0 FROM tab0 AS cor0
----
229
2948
7642
query I rowsort
SELECT ALL 57 + + col1 * ( col2 ) * col0 AS col0 FROM tab2 AS cor0
----
119709
51091
5916
query I rowsort
SELECT ALL cor0.col2 * + col2 + + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - 91 * col2 AS col1 FROM tab0 AS cor0
----
-3003
-7462
-91
query I rowsort
SELECT DISTINCT + + ( - col0 ) * - col1 * + col1 + + cor0.col0 * col1 * ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-34560
-69680
1794
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3623
SELECT ALL col2 * cor0.col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL col2 * cor0.col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - ( tab0.col1 ) ) FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL 66 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT ( 32 ) * col2 AS col0 FROM tab2
----
1216
832
864
query I rowsort
SELECT - 38 * col2 FROM tab2
----
-1026
-1444
-988
query I rowsort
SELECT ALL - 25 + tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8c01861655db553c6402de5d7f0033ea
query I rowsort
SELECT + col2 * + 15 * cor0.col2 FROM tab0 cor0
----
100860
15
16335
query I rowsort
SELECT col2 * ( + col0 ) - + col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - col2 * col0 + + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-3632
SELECT - + col0 - + col1 DIV 84 AS col2 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3632
SELECT - + col0 - + col1 / 84 AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT + col0 + - 30 * - col1 AS col0 FROM tab2 AS cor0
----
1848
589
937
query I rowsort
SELECT col2 * 88 * col0 FROM tab0 AS cor0
----
3080
642224
69696
query I rowsort
SELECT 30 * col1 AS col1 FROM tab2
----
1770
510
930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col1 FROM tab1
----
31
31
31
query I rowsort
SELECT - + col1 + - col0 * - 9 * + col0 AS col0 FROM tab0 AS cor0
----
10928
5098
71198
query I rowsort
SELECT DISTINCT col2 + - col0 * + col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT - col0 * col0 * + col1 FROM tab1
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + ( - col0 ) * + col1 col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT - ( cor0.col0 ) FROM tab0, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT + 88 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e
query I rowsort
SELECT col1 * 31 - col1 AS col1 FROM tab2
----
1770
510
930
query I rowsort
SELECT - tab2.col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT ALL - ( + tab0.col2 ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT - ( - col2 ) * - col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - 50 * - tab0.col2 + - col0 AS col1 FROM tab0
----
15
1626
4011
query I rowsort
SELECT ALL - ( + 27 ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0259a67676b131a4843853be4811b775
query I rowsort
SELECT DISTINCT - + col2 * col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL col1 * + ( col1 ) * + col2 AS col2 FROM tab2 cor0
----
10982
25947
90506
query I rowsort
SELECT + col2 + - 72 * col1 FROM tab1 AS cor0
----
-1818
-663
-840
onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT ALL + col0 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + col0 / - cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col0 + + ( ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3654
SELECT ALL - col1 + - CAST( 11 AS SIGNED ) FROM tab1 AS cor0
----
-21
-24
-37
skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL - col1 + - CAST ( 11 AS INTEGER ) FROM tab1 AS cor0
----
-21
-24
-37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3655
SELECT ALL col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3656
SELECT - - col1 DIV + col0 + col2 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-3656
SELECT - - col1 / + col0 + col2 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT - - col2 * - 83 AS col0 FROM tab1 AS cor0
----
-4482
-4731
-7968
query I rowsort
SELECT DISTINCT - col0 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col1 + + 67 * 71 FROM tab1 AS cor0
----
4767
4770
4783
query I rowsort
SELECT ALL - col2 * ( + col2 ) * col0 AS col2 FROM tab1 cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-3661
SELECT DISTINCT - - col2 + + 89 DIV col2 FROM tab1 AS cor0
----
55
58
96
skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - - col2 + + 89 / col2 FROM tab1 AS cor0
----
55
58
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3662
SELECT ALL + col2 + - col0 DIV + col0 col0 FROM tab0 AS cor0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL + col2 + - col0 / + col0 col0 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT ALL + - col0 * col0 + - cor0.col2 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT col0 + 26 * - col2 FROM tab1 AS cor0
----
-1401
-1418
-2416
query I rowsort
SELECT DISTINCT 14 - + col0 FROM tab2
----
-64
-65
7
query I rowsort
SELECT ALL - col2 + + col0 + cor0.col1 FROM tab0 cor0
----
131
77
98
query I rowsort
SELECT 93 * 39 AS col0 FROM tab2 AS cor0
----
3627
3627
3627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT ( col0 ) + - cor0.col0 * 86 FROM tab1 AS cor0
----
-255
-5440
-6800
query I rowsort
SELECT ALL - col0 - col2 * + col2 FROM tab2 AS cor0
----
-1523
-736
-754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 col2 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3672
SELECT - CAST( col2 AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-3672
SELECT - CAST ( col2 AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + + ( + col1 ) * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 77 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT ALL - 70 + col1 AS col0 FROM tab1 AS cor0
----
-44
-57
-60
query I rowsort
SELECT DISTINCT + col0 * col0 + + 17 FROM tab0 AS cor0
----
1242
593
7938
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 + - col2 col1 FROM tab1 cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab2 AS cor0
----
-29
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col1 + ( 53 ) FROM tab1 AS cor0
----
1301
1457
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-3681
SELECT + col0 DIV col1 + - col2 * 88 + - col0 col1 FROM tab0
----
-123
-2928
-7305
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3681
SELECT + col0 / col1 + - col2 * 88 + - col0 col1 FROM tab0
----
-123
-2928
-7305
query I rowsort
SELECT ALL tab2.col2 - + col0 * col1 FROM tab2
----
-1305
-190
-4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 85 - + col1 col1 FROM tab0
----
-13
-34
-88
query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 * - col0 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT - 35 * - 9 AS col1 FROM tab1
----
315
315
315
query I rowsort
SELECT ALL - 38 * + col2 AS col0 FROM tab2 AS cor0
----
-1026
-1444
-988
onlyif mysql # use DIV operator for integer division
query I rowsort label-3687
SELECT DISTINCT col2 * - cor0.col0 DIV cor0.col0 AS col1 FROM tab2 cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT col2 * - cor0.col0 / cor0.col0 AS col1 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT ( + col0 ) * 49 FROM tab2 cor0
----
343
3822
3871
query I rowsort
SELECT DISTINCT + col2 * - col1 + + col2 * + col2 FROM tab2 AS cor0
----
-108
-858
798
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col0 col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + + 82 + + col1 FROM tab0 cor0
----
168
173
179
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col0 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + 34 + col1 AS col1 FROM tab0 AS cor0
----
120
125
131
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + + 16 col0 FROM tab2 AS cor0
----
1550
662
853
query I rowsort
SELECT + + 57 + col1 * - col2 FROM tab2 AS cor0
----
-1477
-589
-780
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3696
SELECT + - ( + cor0.col0 ) + - ( col2 ) - + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3696
SELECT + - ( + cor0.col0 ) + - ( col2 ) - + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - cor0.col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - col2 * + col2 - col0 AS col0 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT col2 * + col1 + col2 * + col2 FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT + 99 * - col1 AS col0 FROM tab1
----
-1287
-2574
-990
query I rowsort
SELECT - cor0.col0 + 72 AS col0 FROM tab0 AS cor0
----
-17
37
48
query I rowsort
SELECT DISTINCT tab1.col1 + + col0 * - ( ( col1 ) ) FROM tab1
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * - col2 col0 FROM tab1 AS cor0
----
4644
4902
8256
query I rowsort
SELECT ALL + - col1 * col2 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT col2 * 84 + + ( - col1 ) AS col0 FROM tab1
----
4510
4778
8051
query I rowsort
SELECT 79 * tab2.col2 + - col0 FROM tab2
----
1976
2126
2923
query I rowsort
SELECT ALL + + 49 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT DISTINCT - 22 * - ( col0 ) FROM tab0
----
1958
528
770
onlyif mysql # use DIV operator for integer division
query I rowsort label-3709
SELECT ALL col0 DIV 71 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL col0 / 71 FROM tab2 AS cor0
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3710
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + 6 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + 6 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + 41 AS col2 FROM tab0 cor0
----
41
41
41
query I rowsort
SELECT DISTINCT ( 83 * col1 ) AS col2 FROM tab0
----
7138
7553
8051
query I rowsort
SELECT col2 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + - ( + col1 ) + - col1 * 75 FROM tab0 AS cor0
----
-6536
-6916
-7372
query I rowsort
SELECT ALL - col0 + + col2 + - col1 * cor0.col0 * - col0 FROM tab1 AS cor0
----
285
40953
83216
query I rowsort
SELECT + col0 + - 9 AS col1 FROM tab2 AS cor0
----
-2
69
70
query I rowsort
SELECT + + col0 * + col1 * col1 + - col1 FROM tab2 AS cor0
----
22814
271459
6696
query I rowsort
SELECT ALL - 66 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
query I rowsort
SELECT 17 - - 72 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT + 63 * col2 FROM tab1
----
3402
3591
6048
query I rowsort
SELECT DISTINCT col2 * + 28 AS col2 FROM tab0
----
2296
28
924
query I rowsort
SELECT DISTINCT col0 * + col0 AS col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT + + col1 * + col1 * 9 FROM tab1 AS cor0
----
1521
6084
900
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-1
-33
-82
query I rowsort
SELECT DISTINCT col2 * + 91 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT 8 * - col1 AS col2 FROM tab0
----
-688
-728
-776
query I rowsort
SELECT + col0 + tab0.col2 * col2 * ( col1 ) + - tab0.col2 AS col2 FROM tab0
----
131
611891
93645
query I rowsort
SELECT col2 * 29 + - col0 FROM tab1
----
1563
1589
2704
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + col2 * tab0.col2 col0 FROM tab0
----
1160
6795
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-3730
SELECT DISTINCT 52 DIV + col1 + + col0 AS col2 FROM tab1
----
5
69
84
skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT 52 / + col1 + + col0 AS col2 FROM tab1
----
5
69
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3731
SELECT ALL 4 DIV 60 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL 4 / 60 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + - 69 * 71 FROM tab1 AS cor0
----
-4899
-4899
-4899
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3733
SELECT ALL + - col1 * + col1 + - col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL + - col1 * + col1 + - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3734
SELECT DISTINCT - col1 + - col2 DIV col0 AS col1 FROM tab2
----
-17
-34
-59
skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT - col1 + - col2 / col0 AS col1 FROM tab2
----
-17
-34
-59
query I rowsort
SELECT - col1 * col1 * + col2 AS col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT - 0 * col0 + 30 * ( col2 ) AS col2 FROM tab0 AS cor0
----
2460
30
990
onlyif mysql # use DIV operator for integer division
query I rowsort label-3737
SELECT - col2 + col1 DIV 92 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-3737
SELECT - col2 + col1 / 92 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3738
SELECT DISTINCT - - ( - col0 ) * CAST( - col1 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
2031
3394
8017
skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - - ( - col0 ) * CAST ( - col1 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL - ( - cor0.col2 ) * cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + col2 + col1 + + col2 * + col1 FROM tab0 cor0
----
195
2957
7635
query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - col2 + + tab2.col2 - ( + tab2.col0 + col2 * - col2 ) FROM tab2
----
1365
598
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * - col0 col2 FROM tab0
----
-1190
-3026
-816
query I rowsort
SELECT ALL 24 - col1 FROM tab2
----
-35
-7
7
query I rowsort
SELECT DISTINCT 31 * - col2 - 64 AS col1 FROM tab0
----
-1087
-2606
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT col0 DIV + 53 + col0 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-3746
SELECT col0 / + 53 + col0 FROM tab0 AS cor0
----
24
35
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col1 + - 16 col1 FROM tab2 AS cor0
----
-305
-3497
-977
query I rowsort
SELECT + col1 * - 27 + 91 FROM tab0 AS cor0
----
-2231
-2366
-2528
query I rowsort
SELECT + col2 * 55 AS col1 FROM tab0 AS cor0
----
1815
4510
55
query I rowsort
SELECT DISTINCT - col2 + + 96 * 56 FROM tab2 AS cor0
----
5338
5349
5350
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3751
SELECT + - col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3751
SELECT + - col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col1 + 37 * col2 * col2 AS col0 FROM tab0 AS cor0
----
134
248879
40379
onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
SELECT DISTINCT + col1 DIV ( 9 ) + + col0 AS col2 FROM tab2 cor0
----
10
80
84
skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT + col1 / ( 9 ) + + col0 AS col2 FROM tab2 cor0
----
10
80
84
query I rowsort
SELECT DISTINCT col1 * - 50 + - col1 FROM tab1 AS cor0
----
-1326
-510
-663
query I rowsort
SELECT col0 + 85 FROM tab0 AS cor0
----
109
120
174
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3757
SELECT CAST( NULL AS SIGNED ) + col1 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3757
SELECT CAST ( NULL AS INTEGER ) + col1 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( cor0.col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - 59 + col0 FROM tab1 AS cor0
----
-56
21
5
query I rowsort
SELECT DISTINCT col2 * ( col2 + col1 ) FROM tab0
----
14186
3927
98
query I rowsort
SELECT + - 1 AS col1 FROM tab1 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * 12 col1 FROM tab0
----
1010
1163
999
query I rowsort
SELECT - - col2 * 84 AS col1 FROM tab0 cor0
----
2772
6888
84
query I rowsort
SELECT + 70 * col2 AS col1 FROM tab2 AS cor0
----
1820
1890
2660
query I rowsort
SELECT + cor0.col1 * - 45 * col1 AS col2 FROM tab1 AS cor0
----
-30420
-4500
-7605
onlyif mysql # use DIV operator for integer division
query I rowsort label-3766
SELECT col0 DIV - col2 AS col1 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-3766
SELECT col0 / - col2 AS col1 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT ALL + - 76 AS col2 FROM tab0 AS cor0
----
-76
-76
-76
query I rowsort
SELECT + - ( cor0.col0 ) + cor0.col2 + - 27 * cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
-207344
-4323
-98503
query I rowsort
SELECT + - tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - + cor0.col0 * + 78 AS col2 FROM tab0 AS cor0
----
-1872
-2730
-6942
query I rowsort
SELECT ALL ( ( + col0 ) ) FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + 97 * + col0 - - col1 * ( - col0 ) AS col1 FROM tab1 cor0
----
213
5568
6720
query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab0 cor0
----
27
query I rowsort
SELECT DISTINCT + - cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 - + 93 * col1 col1 FROM tab1 cor0
----
-1175
-2384
-896
query I rowsort
SELECT DISTINCT - 6 * - col1 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT ALL tab1.col1 - col0 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT col1 - + 75 FROM tab1
----
-49
-62
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * 74 col1 FROM tab1
----
103896
42180
92352
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3781
SELECT - CAST( col1 AS SIGNED ) + - col1 * 96 * - ( + col1 ) + - ( 33 * + col0 + - col1 ) FROM tab1
----
13584
64797
7488
skipif mysql # not compatible
query I rowsort label-3781
SELECT - CAST ( col1 AS INTEGER ) + - col1 * 96 * - ( + col1 ) + - ( 33 * + col0 + - col1 ) FROM tab1
----
13584
64797
7488
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * + col2 + col2 col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL + col2 + col1 * + col1 * col1 FROM tab2 AS cor0
----
205405
29818
4951
query I rowsort
SELECT + ( - 72 ) + cor0.col1 * - col1 FROM tab2 AS cor0
----
-1033
-3553
-361
query I rowsort
SELECT + 94 + 64 AS col2 FROM tab1
----
158
158
158
query I rowsort
SELECT - ( + ( + col2 ) ) * ( - col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - ( + 2 ) * col0 - + col2 FROM tab2 AS cor0
----
-182
-196
-41
query I rowsort
SELECT ALL - col1 + ( + col0 ) * + 78 FROM tab1 cor0
----
208
4982
6227
query I rowsort
SELECT - - 76 * 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0b798a8c506a492831ecb88821db3bf3
query I rowsort
SELECT DISTINCT + - 58 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-58
query I rowsort
SELECT + col0 * + 76 FROM tab0 AS cor0
----
1824
2660
6764
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3792
SELECT ALL + - cor0.col0 / + CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + - cor0.col0 / + CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3793
SELECT col0 + - CAST( col2 AS SIGNED ) - col1 AS col0 FROM tab0
----
-63
-84
-95
skipif mysql # not compatible
query I rowsort label-3793
SELECT col0 + - CAST ( col2 AS INTEGER ) - col1 AS col0 FROM tab0
----
-63
-84
-95
query I rowsort
SELECT + col2 * col2 + - col2 FROM tab0
----
0
1056
6642
onlyif mysql # use DIV operator for integer division
query I rowsort label-3795
SELECT + + col0 DIV col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3795
SELECT + + col0 / col0 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT ALL + col2 + ( col2 ) * - col1 * - ( col2 ) AS col2 FROM tab0 cor0
----
611966
93687
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3798
SELECT DISTINCT - col2 DIV - ( - col0 * - cor0.col0 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT - col2 / - ( - col0 * - cor0.col0 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col0 * 79 FROM tab0 AS cor0
----
1896
2765
7031
query I rowsort
SELECT DISTINCT col2 * + col2 - 22 FROM tab0 AS cor0
----
-21
1067
6702
query I rowsort
SELECT col1 + + ( + col2 ) AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL - col2 * - 18 FROM tab0
----
1476
18
594
query I rowsort
SELECT DISTINCT + col2 + - col0 * + 58 * col2 FROM tab0 AS cor0
----
-2029
-423202
-45903
query I rowsort
SELECT DISTINCT + col1 + - ( col0 ) * + col2 * col2 AS col1 FROM tab2 cor0
----
-114059
-5072
-52669
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3805
SELECT ALL - + col0 + CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL - + col0 + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + 26 AS col0 FROM tab2 AS cor0
----
52
53
64
query I rowsort
SELECT ALL col2 - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - - col0 * col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL - + cor0.col1 + - 16 AS col2 FROM tab1 AS cor0
----
-26
-29
-42
query I rowsort
SELECT DISTINCT - col2 * ( col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3811
SELECT - - col0 * + CAST( col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-3811
SELECT - - col0 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT - col0 * - 19 FROM tab2 AS cor0
----
133
1482
1501
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3813
SELECT col0 * CAST( 76 AS SIGNED ) AS col1 FROM tab0 cor0
----
1824
2660
6764
skipif mysql # not compatible
query I rowsort label-3813
SELECT col0 * CAST ( 76 AS INTEGER ) AS col1 FROM tab0 cor0
----
1824
2660
6764
query I rowsort
SELECT + + 21 - + 44 AS col0 FROM tab0 AS cor0
----
-23
-23
-23
query I rowsort
SELECT DISTINCT + 71 * col0 AS col1 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT DISTINCT + 74 + + col0 AS col2 FROM tab0 cor0
----
109
163
98
query I rowsort
SELECT - 54 * 86 AS col0 FROM tab0 cor0
----
-4644
-4644
-4644
query I rowsort
SELECT DISTINCT 70 * + cor0.col1 FROM tab2, tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab1 AS cor0
----
90
query I rowsort
SELECT ALL - col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - 28 * col0 FROM tab1 AS cor0
----
-1792
-2240
-84
query I rowsort
SELECT ALL - 52 * - cor0.col0 + - cor0.col1 - 69 AS col0 FROM tab2 AS cor0
----
264
3928
4022
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3823
SELECT ALL + 19 * + col0 * + CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
-138662
-15048
-665
skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + 19 * + col0 * + CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
-138662
-15048
-665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 94 * cor0.col2 col1 FROM tab1 AS cor0
----
-5076
-5358
-9024
query I rowsort
SELECT ALL - 92 + col0 * 65 FROM tab0 AS cor0
----
1468
2183
5693
query I rowsort
SELECT ALL - 86 AS col2 FROM tab0 AS cor0
----
-86
-86
-86
query I rowsort
SELECT - cor0.col1 * 34 FROM tab1 AS cor0
----
-340
-442
-884
query I rowsort
SELECT ALL 5 * col2 FROM tab2
----
130
135
190
query I rowsort
SELECT + 8 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 ) BETWEEN col1 AND NULL
----
query I rowsort
SELECT - cor0.col0 + col1 * col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT - col2 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1224
543
7839
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * + col2 <> NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 / + col0 NOT IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT + tab0.col0 DIV - col2 AS col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-3835
SELECT + tab0.col0 / - col2 AS col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT - cor0.col2 * - col0 + - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT + col0 + col2 * - cor0.col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 + col1 + col2 FROM tab1 cor0
----
106
122
77
query I rowsort
SELECT col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-3841
SELECT + col1 DIV + col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3841
SELECT + col1 / + col2 AS col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NULL NOT IN ( - col1 )
----
query I rowsort
SELECT - + col1 * col2 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT col1 + col1 * + col2 AS col1 FROM tab2
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-3845
SELECT col0 * col2 DIV col1 FROM tab1
----
364
590
6
skipif mysql # not compatible
query I rowsort label-3845
SELECT col0 * col2 / col1 FROM tab1
----
364
590
6
query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE ( NULL ) >= NULL
----
query I rowsort
SELECT DISTINCT + + col0 + cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - cor0.col2 - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL 36 * + col2 * + 18 FROM tab1 AS cor0
----
34992
36936
62208
query III rowsort
SELECT * FROM tab2 WHERE NULL > col1 + - col0
----
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN col1 + col1 * col0 AND NULL
----
query I rowsort
SELECT + tab0.col1 + - col1 * col2 AS col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT ALL + col2 + + col1 * + tab1.col0 * col2 AS col2 FROM tab1
----
36537
4266
99936
query I rowsort
SELECT tab1.col1 + - tab1.col2 * + col2 FROM tab1
----
-2890
-3239
-9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT col0 * + col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----
query I rowsort
SELECT DISTINCT col1 - + col1 * + col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT + 36 * col2 FROM tab2 AS cor0
----
1368
936
972
onlyif mysql # use DIV operator for integer division
query I rowsort label-3859
SELECT col0 DIV tab1.col2 + col0 + - 30 AS col0 FROM tab1
----
-27
35
50
skipif mysql # not compatible
query I rowsort label-3859
SELECT col0 / tab1.col2 + col0 + - 30 AS col0 FROM tab1
----
-27
35
50
query I rowsort
SELECT - + 67 * col0 - - col1 AS col2 FROM tab2 AS cor0
----
-438
-5167
-5276
query I rowsort
SELECT DISTINCT col1 + tab0.col2 AS col1 FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 / col2 - - col1 col0 FROM tab2 WHERE NOT ( - col1 ) NOT IN ( - col2 + + col2 * col2 * col0 )
----
query I rowsort
SELECT DISTINCT - col1 * col1 + col2 AS col1 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT col0 + col1 * tab2.col1 AS col0 FROM tab2
----
3559
368
968
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 * cor0.col0 ) NOT IN ( cor0.col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT + cor0.col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3866
SELECT + cor0.col1 / + col2 AS col2 FROM tab0 AS cor0
----
1
2
97
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT col2 + + tab1.col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL col0 * - col0 + col0 FROM tab0
----
-1190
-552
-7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-3870
SELECT - col2 + - col0 DIV - col1 FROM tab1
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-3870
SELECT - col2 + - col0 / - col1 FROM tab1
----
-51
-54
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT col1 + tab2.col2 DIV col1 FROM tab2
----
19
31
59
skipif mysql # not compatible
query I rowsort label-3871
SELECT col1 + tab2.col2 / col1 FROM tab2
----
19
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 WHERE NOT col2 * col1 NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT col1 + + tab0.col0 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + col1 + + col0 AS col1 FROM tab1
----
29
74
93
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN NULL AND col0 * col2 - - col2
----
query I rowsort
SELECT - col0 + col1 + col0 FROM tab1
----
10
13
26
query I rowsort
SELECT tab0.col2 + col1 * col2 + + tab0.col2 FROM tab0
----
2904
7626
99
query I rowsort
SELECT - col2 - + col2 AS col2 FROM tab1
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT col1 * tab1.col2 DIV col1 + col0 * + col1 AS col0 FROM tab1 WHERE NOT col2 BETWEEN NULL AND col1 DIV col0
----
1136
132
697
skipif mysql # not compatible
query I rowsort label-3879
SELECT col1 * tab1.col2 / col1 + col0 * + col1 AS col0 FROM tab1 WHERE NOT col2 BETWEEN NULL AND col1 / col0
----
1136
132
697
query I rowsort
SELECT DISTINCT + col0 + + tab0.col1 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col1 * - tab0.col2 + - col1 * - col0 * col0 FROM tab0
----
118728
46698
713349
onlyif mysql # use DIV operator for integer division
query I rowsort label-3882
SELECT DISTINCT tab0.col2 + + col1 DIV + col0 AS col1 FROM tab0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT tab0.col2 + + col1 / + col0 AS col1 FROM tab0
----
3
36
83
query I rowsort
SELECT - col1 + - tab1.col2 AS col2 FROM tab1
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3884
SELECT DISTINCT - col1 - + col2 DIV col0 AS col2 FROM tab1 cor0
----
-10
-14
-44
skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT - col1 - + col2 / col0 AS col2 FROM tab1 cor0
----
-10
-14
-44
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) * col0 - - 87 FROM tab0 AS cor0
----
-1977
-3308
-8012
query I rowsort
SELECT DISTINCT col2 + + col1 - col0 AS col1 FROM tab1 cor0
----
29
3
77
query I rowsort
SELECT - 7 + col2 AS col0 FROM tab0
----
-6
26
75
query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab0 AS cor0
----
79
query I rowsort
SELECT ALL - + col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL cor0.col0 + - 49 FROM tab2, tab0 AS cor0
----
9 values hashing to 229706910d0097730503c43c351d76e3
query I rowsort
SELECT DISTINCT + 41 * + cor0.col1 FROM tab0 AS cor0
----
3526
3731
3977
query I rowsort
SELECT - col1 - ( col2 ) AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - + cor0.col2 - + col0 * - col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT ALL - col1 + col0 + col2 AS col0 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT ALL col1 * ( + cor0.col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-3897
SELECT DISTINCT + col1 DIV 76 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT + col1 / 76 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - cor0.col2 - 40 AS col0 FROM tab1 AS cor0
----
-136
-94
-97
query I rowsort
SELECT ALL + col1 + - 25 * col2 FROM tab0 AS cor0
----
-1959
-739
72
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 - - col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT col1 + col0 * ( + col0 ) FROM tab0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col2 FROM tab1
----
-94
-94
-94
query I rowsort
SELECT ALL - + 77 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
query I rowsort
SELECT DISTINCT cor0.col2 * ( - col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col2 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3906
SELECT + + ( + col2 ) * col0 + + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
158
1969
2985
skipif mysql # not compatible
query I rowsort label-3906
SELECT + + ( + col2 ) * col0 + + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT + col2 + + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL + col0 + 99 * + col1 AS col1 FROM tab2 cor0
----
1762
3076
5919
query I rowsort
SELECT DISTINCT - 91 * - col1 FROM tab0 AS cor0
----
7826
8281
8827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 43 col1 FROM tab2 cor0
----
-43
-43
-43
query I rowsort
SELECT col1 + + 0 * + cor0.col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 + + 91 + + tab1.col0 col1 FROM tab1
----
1211
172
795
query I rowsort
SELECT DISTINCT + tab0.col0 + col0 * col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT DISTINCT - col1 + + col2 AS col0 FROM tab1
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3915
SELECT - col2 + CAST( - col0 + col1 AS SIGNED ) * col1 DIV col1 AS col1 FROM tab2
----
-100
-3
-45
skipif mysql # not compatible
query I rowsort label-3915
SELECT - col2 + CAST ( - col0 + col1 AS INTEGER ) * col1 / col1 AS col1 FROM tab2
----
-100
-3
-45
query I rowsort
SELECT + col2 * ( + 52 ) * + tab2.col2 FROM tab2
----
35152
37908
75088
query I rowsort
SELECT - col0 * ( - 39 ) FROM tab0
----
1365
3471
936
query I rowsort
SELECT ( - ( tab0.col1 ) + + col1 ) FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * + col2 + - col2 col1 FROM tab0
----
-2244
-5576
-68
query I rowsort
SELECT - col0 * - cor0.col0 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-1280
-153
448
query I rowsort
SELECT + + cor0.col1 * - 33 AS col2 FROM tab0 AS cor0
----
-2838
-3003
-3201
query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + 90 * - cor0.col1 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
-665664
-745379
-846845
query I rowsort
SELECT ALL + col2 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - ( col0 ) - col1 AS col2 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT ALL - + col2 * + col2 - + col0 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT - col2 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - + col2 + col0 * - col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT - 37 FROM tab0, tab0 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3930
SELECT DISTINCT CAST( col2 AS SIGNED ) * tab0.col1 col0 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT CAST ( col2 AS INTEGER ) * tab0.col1 col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL + tab0.col0 * cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 71e1c6f2098b2226c685e662111e4001
query I rowsort
SELECT DISTINCT col2 * col2 * - col2 AS col1 FROM tab1 cor0
----
-157464
-185193
-884736
query I rowsort
SELECT 10 AS col1 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT ALL - + 74 FROM tab2 AS cor0
----
-74
-74
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-3935
SELECT ALL col0 * col2 * + col1 + + col0 DIV col2 FROM tab0 AS cor0
----
3430
664119
68112
skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL col0 * col2 * + col1 + + col0 / col2 FROM tab0 AS cor0
----
3430
664119
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-3936
SELECT - cor0.col2 DIV + cor0.col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-3936
SELECT - cor0.col2 / + cor0.col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT ALL 54 + + col2 FROM tab0 AS cor0
----
136
55
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col1 col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT - - col0 * col0 * + col0 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT ALL + - col2 * + col2 * + col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - - col0 * + cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-3942
SELECT col0 * 49 DIV + 47 FROM tab1
----
3
66
83
skipif mysql # not compatible
query I rowsort label-3942
SELECT col0 * 49 / + 47 FROM tab1
----
3
66
83
query I rowsort
SELECT DISTINCT + col1 + ( + tab2.col2 ) * col1 * - tab2.col0 + - tab2.col1 AS col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL cor0.col1 * col0 - col0 * col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + - 73 AS col2 FROM tab1 AS cor0
----
-16
-19
23
query I rowsort
SELECT DISTINCT + col0 * - col0 + - 55 - - col2 * + col2 AS col1 FROM tab1 AS cor0
----
-902
2761
2852
query I rowsort
SELECT ALL + col0 * cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT cor0.col2 + - ( col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + - cor0.col0 - col0 FROM tab0 AS cor0
----
-15
-69
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3950
SELECT ALL + col2 DIV - CAST( col0 * + col1 AS SIGNED ) + + cor0.col1 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL + col2 / - CAST ( col0 * + col1 AS INTEGER ) + + cor0.col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3951
SELECT ALL + CAST( col0 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL + CAST ( col0 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + 34 FROM tab1 cor0
----
34
34
34
query I rowsort
SELECT - col1 + 42 * + col2 AS col0 FROM tab0 cor0
----
-55
1300
3353
query I rowsort
SELECT 38 + 65 AS col1 FROM tab1 AS cor0
----
103
103
103
onlyif mysql # use DIV operator for integer division
query I rowsort label-3955
SELECT ALL - ( 41 ) DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - ( 41 ) / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT + col0 * - 23 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
-1120
-139854
-143464
query I rowsort
SELECT - ( ( - col1 ) ) + - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3958
SELECT - 74 DIV col0 AS col0 FROM tab1 AS cor0
----
-1
-24
0
skipif mysql # not compatible
query I rowsort label-3958
SELECT - 74 / col0 AS col0 FROM tab1 AS cor0
----
-1
-24
0
query I rowsort
SELECT DISTINCT + col1 * + 81 FROM tab2 AS cor0
----
1377
2511
4779
onlyif mysql # use DIV operator for integer division
query I rowsort label-3960
SELECT DISTINCT - - 42 DIV 92 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT - - 42 / 92 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL col1 + col0 * - col1 * col0 AS col2 FROM tab2
----
-106080
-1488
-358897
onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT + col2 DIV + 10 + - col2 * tab2.col2 + + tab2.col2 AS col0 FROM tab2
----
-1403
-648
-700
skipif mysql # not compatible
query I rowsort label-3962
SELECT + col2 / + 10 + - col2 * tab2.col2 + + tab2.col2 AS col0 FROM tab2
----
-1403
-648
-700
query I rowsort
SELECT 28 * col0 + col1 * col0 AS col1 FROM tab2 AS cor0
----
3555
413
6786
query I rowsort
SELECT - + 29 + ( col0 ) AS col1 FROM tab0 AS cor0
----
-5
6
60
query I rowsort
SELECT - 85 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT ALL + 67 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL + + col1 + cor0.col2 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT - cor0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3969
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * 43 + - col0 * col2 FROM tab2 AS cor0
----
-1522
-3733
-4565
query I rowsort
SELECT DISTINCT cor0.col2 * col0 - col2 AS col1 FROM tab1 cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT cor0.col2 + 56 AS col0 FROM tab1 AS cor0
----
110
113
152
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col0 * col2 + + cor0.col0 * + 65 - - 81 AS col1 FROM tab0 AS cor0
----
-1432
2321
849
query I rowsort
SELECT + - cor0.col0 * + 94 + col1 AS col2 FROM tab1 AS cor0
----
-256
-6006
-7507
query I rowsort
SELECT + ( 51 ) FROM tab1 AS cor0
----
51
51
51
query I rowsort
SELECT ALL - + 33 + col0 FROM tab2 AS cor0
----
-26
45
46
query I rowsort
SELECT DISTINCT - - cor0.col1 + - cor0.col0 AS col2 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT - - 90 * col0 FROM tab0 AS cor0
----
2160
3150
8010
query I rowsort
SELECT ALL + - col0 * - col0 - + ( col0 ) FROM tab0 AS cor0
----
1190
552
7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-3981
SELECT DISTINCT - 42 + cor0.col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
-41
-42
-7
skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT - 42 + cor0.col0 / + col2 AS col2 FROM tab0 AS cor0
----
-41
-42
-7
query I rowsort
SELECT DISTINCT + - 46 FROM tab2 cor0
----
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1
query I rowsort
SELECT DISTINCT col2 * - col0 + 64 AS col2 FROM tab0 AS cor0
----
-7234
-728
29
query I rowsort
SELECT + col2 + col2 * - col0 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-3393
-663954
-68046
query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + + tab1.col0 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT ALL - 57 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT DISTINCT col1 + ( - col0 ) * + col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE ( NULL ) = NULL
----
query I rowsort
SELECT ALL - - col0 + - 28 FROM tab0 AS cor0
----
-4
61
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3992
SELECT ALL - col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - col2 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - 2 + col2 AS col1 FROM tab0 cor0
----
-1
31
80
query I rowsort
SELECT ALL + col1 * + col0 + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col1 FROM tab0 AS cor0
----
-76
-76
-76
query I rowsort
SELECT ALL cor0.col2 + col2 - - col0 AS col2 FROM tab2 cor0
----
130
155
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3997
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 34 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + col2 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col1 + col2 + ( col2 ) AS col2 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT - ( 11 ) FROM tab1
----
-11
-11
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-4002
SELECT ALL - ( + col2 ) DIV col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL - ( + col2 ) / col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT + - col2 * - cor0.col0 * - 1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col2 * - col2 + - ( col1 ) + col1 AS col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-4005
SELECT + - 7 * cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-7
-7
-7
skipif mysql # not compatible
query I rowsort label-4005
SELECT + - 7 * cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
-7
-7
-7
query I rowsort
SELECT cor0.col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT cor0.col2 * + 78 * + cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
12636
284544
599040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4008
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - - 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
onlyif mysql # use DIV operator for integer division
query I rowsort label-4010
SELECT + 89 + col0 DIV + 52 FROM tab2 AS cor0
----
89
90
90
skipif mysql # not compatible
query I rowsort label-4010
SELECT + 89 + col0 / + 52 FROM tab2 AS cor0
----
89
90
90
query I rowsort
SELECT + - 29 * cor0.col1 AS col1 FROM tab1 cor0
----
-290
-377
-754
query I rowsort
SELECT ( col0 ) + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col2 * + 45 + col1 FROM tab0
----
142
1571
3781
query I rowsort
SELECT - - 21 + - col0 FROM tab2 AS cor0
----
-57
-58
14
query I rowsort
SELECT DISTINCT - + 89 AS col2 FROM tab0 AS cor0
----
-89
query I rowsort
SELECT DISTINCT 45 FROM tab1, tab1 AS cor0
----
45
query I rowsort
SELECT DISTINCT - 28 + + col1 AS col1 FROM tab2 AS cor0
----
-11
3
31
query I rowsort
SELECT ( 58 ) AS col1 FROM tab0 AS cor0
----
58
58
58
query I rowsort
SELECT DISTINCT + + 81 + + col0 FROM tab0 AS cor0
----
105
116
170
query I rowsort
SELECT ALL 9 + - col2 * - 76 * 79 FROM tab2 cor0
----
156113
162117
228161
query I rowsort
SELECT - - 23 FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT ALL - 71 + col0 AS col0 FROM tab1 AS cor0
----
-68
-7
9
query I rowsort
SELECT 1 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 13 + - col1 + + 99 col2 FROM tab0 AS cor0
----
-11
-5
0
query I rowsort
SELECT + col0 * col0 * col1 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - ( + col1 ) * - col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - ( - col2 ) * + cor0.col0 + + cor0.col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT ALL + col0 + + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL 18 * col2 + 88 AS col1 FROM tab1 cor0
----
1060
1114
1816
query I rowsort
SELECT ALL + col1 * + col0 - 17 FROM tab2 AS cor0
----
1326
200
4585
query I rowsort
SELECT ALL + col2 * - 74 AS col0 FROM tab0 AS cor0
----
-2442
-6068
-74
query I rowsort
SELECT - - cor0.col2 + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4033
SELECT - col1 + 27 DIV - 46 col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4033
SELECT - col1 + 27 / - 46 col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + col0 + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-4035
SELECT - col0 DIV col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4035
SELECT - col0 / col1 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT 71 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT ALL - col0 + + cor0.col2 * 57 FROM tab0 AS cor0
----
1857
22
4585
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4038
SELECT + - col2 * CAST( col0 * col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-4038
SELECT + - col2 * CAST ( col0 * col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col2 * cor0.col2 - - cor0.col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT - - col1 * col1 * + col0 + - col1 AS col0 FROM tab2 AS cor0
----
22814
271459
6696
onlyif mysql # use DIV operator for integer division
query I rowsort label-4043
SELECT col1 * - cor0.col0 + + cor0.col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1040
-641
-78
skipif mysql # not compatible
query I rowsort label-4043
SELECT col1 * - cor0.col0 + + cor0.col0 / - col2 AS col2 FROM tab1 AS cor0
----
-1040
-641
-78
query I rowsort
SELECT DISTINCT col2 + + col2 + col2 AS col0 FROM tab0 AS cor0
----
246
3
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + - col0 col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + + 17 + + cor0.col2 * col0 AS col2 FROM tab2 cor0
----
2045
206
3019
query I rowsort
SELECT DISTINCT + 19 * - col2 + + col2 FROM tab0 AS cor0
----
-1476
-18
-594
query I rowsort
SELECT ALL - 70 * 88 - col1 AS col1 FROM tab0 AS cor0
----
-6246
-6251
-6257
query I rowsort
SELECT DISTINCT + col0 + + 67 FROM tab1
----
131
147
70
query I rowsort
SELECT - + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col2 * 64 AS col2 FROM tab2 cor0
----
1664
1728
2432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 99 + col1 col1 FROM tab1 cor0
----
1000
1300
2600
query I rowsort
SELECT - + col2 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-4054
SELECT - col0 + col2 + - col0 DIV 84 FROM tab0 AS cor0
----
-34
-8
9
skipif mysql # not compatible
query I rowsort label-4054
SELECT - col0 + col2 + - col0 / 84 FROM tab0 AS cor0
----
-34
-8
9
query I rowsort
SELECT ALL tab1.col0 + tab1.col0 + - col1 FROM tab1
----
-20
118
147
query I rowsort
SELECT col1 * - 41 * col2 + col0 AS col1 FROM tab2
----
-26407
-34310
-62816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4057
SELECT DISTINCT - col1 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT - col1 + + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
query I rowsort
SELECT tab1.col0 * - col1 + col0 - - col2 AS col1 FROM tab1
----
-21
-519
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + col2 * + 91 * + 73 col0 FROM tab2
----
174746
179550
255436
query I rowsort
SELECT + 27 + - cor0.col0 * col2 + - cor0.col1 * 76 AS col1 FROM tab0 AS cor0
----
-14187
-7301
-7380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - cor0.col0 - - 76 FROM tab1 AS cor0
----
-4
12
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4063
SELECT + col2 * cor0.col1 + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4063
SELECT + col2 * cor0.col1 + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 37 * col2 FROM tab2 AS cor0
----
-1406
-962
-999
query I rowsort
SELECT ( + tab0.col0 * col0 ) + 57 FROM tab0
----
1282
633
7978
onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT ALL + + 8 * col1 DIV + 56 AS col1 FROM tab0 AS cor0
----
12
13
13
skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + + 8 * col1 / + 56 AS col1 FROM tab0 AS cor0
----
12
13
13
query I rowsort
SELECT ALL - col1 + - 4 * + col2 FROM tab1 AS cor0
----
-238
-242
-397
query I rowsort
SELECT DISTINCT - col2 + 68 FROM tab1
----
-28
11
14
query I rowsort
SELECT ALL - 61 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT DISTINCT col1 + 59 + ( + col0 ) * - col0 AS col1 FROM tab0
----
-1069
-431
-7771
query I rowsort
SELECT DISTINCT col2 * 41 + - col2 FROM tab0
----
1320
3280
40
query I rowsort
SELECT ALL col1 * - 41 * col0 AS col1 FROM tab1 AS cor0
----
-26240
-3198
-42640
query I rowsort
SELECT ALL - cor0.col2 + - col2 * col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT cor0.col1 * ( 10 ) FROM tab1 cor0
----
100
130
260
query I rowsort
SELECT DISTINCT + col1 + ( - 15 ) * col0 AS col1 FROM tab2 AS cor0
----
-1111
-1168
-74
query I rowsort
SELECT + - col1 * - 44 - 56 FROM tab1 AS cor0
----
1088
384
516
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4077
SELECT ALL cor0.col2 * - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL cor0.col2 * - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT ALL - col0 DIV col2 AS col1 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL - col0 / col2 AS col1 FROM tab0
----
-1
-35
0
query I rowsort
SELECT ALL - 34 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT 24 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT + 93 AS col1 FROM tab1 AS cor0
----
93
93
93
query I rowsort
SELECT ALL + ( col2 ) * - tab0.col1 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - col1 * col2 * + col2 AS col0 FROM tab1
----
-119808
-32490
-75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 * 90 + col1 ) col2 FROM tab0
----
187
3056
7471
query I rowsort
SELECT 13 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT - + 67 * col2 AS col1 FROM tab1 AS cor0
----
-3618
-3819
-6432
query I rowsort
SELECT + 47 * + col2 + + 20 FROM tab0 AS cor0
----
1571
3874
67
query I rowsort
SELECT ALL 61 + 0 FROM tab1, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT + + col1 - 45 * + 6 FROM tab2 AS cor0
----
-211
-239
-253
query I rowsort
SELECT + col2 * + ( + col0 + - col2 ) FROM tab1
----
-1536
-2754
399
query I rowsort
SELECT + cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + col1 * 27 + col0 * - col0 * + col1 FROM tab2
----
-105638
-357363
-682
query I rowsort
SELECT ALL col2 * tab2.col2 + tab2.col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT DISTINCT 72 FROM tab2, tab1 AS cor0
----
72
query I rowsort
SELECT tab2.col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT - - col2 * - col2 * col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + 90 + - 31 * - col0 * col2 FROM tab2 cor0
----
5949
62958
93152
query I rowsort
SELECT + 6 + + col2 AS col2 FROM tab2 AS cor0
----
32
33
44
query I rowsort
SELECT + 75 + + col1 FROM tab2 AS cor0
----
106
134
92
query I rowsort
SELECT + col2 * - cor0.col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4101
SELECT DISTINCT + col0 * cor0.col2 * - CAST( 1 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + col0 * cor0.col2 * - CAST ( 1 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-4102
SELECT DISTINCT 39 * + col1 + + cor0.col0 DIV - 27 AS col1 FROM tab1 AS cor0
----
1014
388
505
skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT 39 * + col1 + + cor0.col0 / - 27 AS col1 FROM tab1 AS cor0
----
1014
388
505
onlyif mysql # use DIV operator for integer division
query I rowsort label-4103
SELECT ALL + 74 + - col0 DIV 35 FROM tab2 AS cor0
----
72
72
74
skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL + 74 + - col0 / 35 FROM tab2 AS cor0
----
72
72
74
query I rowsort
SELECT + col2 * - col0 + 34 * + 44 FROM tab2 AS cor0
----
-1506
-532
1307
query I rowsort
SELECT DISTINCT - + col1 + col2 * col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT 9 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT col2 - cor0.col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - col2 * 3 - col1 AS col0 FROM tab0
----
-100
-185
-337
query I rowsort
SELECT DISTINCT col2 - + tab1.col0 * ( + col0 ) FROM tab1
----
-4039
-6304
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - 6 ) col2 FROM tab2 cor0
----
-156
-162
-228
query I rowsort
SELECT - col0 + ( col0 * + cor0.col1 ) AS col0 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT - - col2 - - col2 AS col1 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT DISTINCT 75 * 61 * col2 FROM tab2 AS cor0
----
118950
123525
173850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4114
SELECT + col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4114
SELECT + col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 * - 27 FROM tab1 AS cor0
----
-1458
-1539
-2592
onlyif mysql # use DIV operator for integer division
query I rowsort label-4116
SELECT - 25 + col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-25
-25
-26
skipif mysql # not compatible
query I rowsort label-4116
SELECT - 25 + col0 / - col2 AS col0 FROM tab1 AS cor0
----
-25
-25
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT DISTINCT col0 * - col0 DIV + col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT col0 * - col0 / + col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - + cor0.col2 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL + - col2 + - col2 * + col0 * - 78 FROM tab1 AS cor0
----
12582
284487
598944
query I rowsort
SELECT DISTINCT - col0 + - 60 * + col2 FROM tab1 cor0
----
-3243
-3484
-5840
query I rowsort
SELECT 70 - - ( + tab1.col0 ) FROM tab1, tab2 AS cor0
----
9 values hashing to acc3994138ac6d1cc716e74dbfb065c6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4122
SELECT + col0 + col0 * cor0.col0 + + cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1261
601
8011
skipif mysql # not compatible
query I rowsort label-4122
SELECT + col0 + col0 * cor0.col0 + + cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
1261
601
8011
query I rowsort
SELECT DISTINCT - 49 + + col2 * + 42 AS col2 FROM tab2
----
1043
1085
1547
query I rowsort
SELECT + cor0.col2 + - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col0 * ( col1 ) FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT col0 * 47 FROM tab2
----
329
3666
3713
query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
-69
query I rowsort
SELECT + col0 * 99 + + 17 * + col0 AS col2 FROM tab0 AS cor0
----
10324
2784
4060
query I rowsort
SELECT ALL + col2 * + 2 + col1 FROM tab2 AS cor0
----
111
85
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4130
SELECT - - cor0.col0 * + CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4130
SELECT - - cor0.col0 * + CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col0 * col0 AS col2 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT + 46 + - col0 FROM tab2
----
-32
-33
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4133
SELECT CAST( + 76 AS SIGNED ) AS col2 FROM tab2
----
76
76
76
skipif mysql # not compatible
query I rowsort label-4133
SELECT CAST ( + 76 AS INTEGER ) AS col2 FROM tab2
----
76
76
76
query I rowsort
SELECT ALL + 30 - - 34 FROM tab2
----
64
64
64
query I rowsort
SELECT - 31 + col0 + + col2 AS col0 FROM tab2
----
3
73
86
query I rowsort
SELECT ALL + 62 + + col2 FROM tab0 AS cor0
----
144
63
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4137
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 9 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 9 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col2 - 37 FROM tab0 AS cor0
----
-36
-4
45
query I rowsort
SELECT + ( + 61 ) AS col2 FROM tab2
----
61
61
61
query I rowsort
SELECT DISTINCT - ( col1 * + col1 ) FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL + cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT 79 + - 50 AS col2 FROM tab1
----
29
29
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-4143
SELECT - col0 + cor0.col2 + col1 DIV cor0.col0 FROM tab2 AS cor0
----
-41
-52
24
skipif mysql # not compatible
query I rowsort label-4143
SELECT - col0 + cor0.col2 + col1 / cor0.col0 FROM tab2 AS cor0
----
-41
-52
24
query I rowsort
SELECT DISTINCT + 60 * col2 FROM tab0 AS cor0
----
1980
4920
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + cor0.col1 col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - col2 + - col1 * + 0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab0 cor0
----
21
query I rowsort
SELECT ALL cor0.col2 + col2 * cor0.col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - col1 * - col1 - 78 FROM tab0 AS cor0
----
7318
8203
9331
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 * ( - cor0.col2 ) col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT - col0 + - col1 + col2 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT - col1 * col0 + - col0 FROM tab2 cor0
----
-1422
-224
-4680
query I rowsort
SELECT - col2 * cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT ALL - cor0.col2 * - col0 + + cor0.col0 AS col2 FROM tab1 cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT col1 + col0 DIV + cor0.col0 + col0 * col0 FROM tab1 AS cor0
----
36
4107
6414
skipif mysql # not compatible
query I rowsort label-4155
SELECT col1 + col0 / + cor0.col0 + col0 * col0 FROM tab1 AS cor0
----
36
4107
6414
query I rowsort
SELECT ALL + 23 + col1 * + col0 FROM tab0 AS cor0
----
2087
3418
8122
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4157
SELECT col0 + - cor0.col0 * + CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4157
SELECT col0 + - cor0.col0 * + CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col0 + col2 + - col0 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - col0 + - col0 * col0 * col1 AS col0 FROM tab1
----
-237
-41024
-83280
query I rowsort
SELECT - + 74 AS col2 FROM tab1 AS cor0
----
-74
-74
-74
query I rowsort
SELECT + col2 + - ( + col0 ) + + col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4163
SELECT + cor0.col2 DIV cor0.col2 - col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-4163
SELECT + cor0.col2 / cor0.col2 - col0 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT + - col1 + + col2 * 11 AS col1 FROM tab1 AS cor0
----
1043
568
617
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4165
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 34 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 34 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT col0 * + 48 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-18
-3840
-576
onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT ALL - 79 DIV col0 + + col2 FROM tab2
----
16
25
37
skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL - 79 / col0 + + col2 FROM tab2
----
16
25
37
query I rowsort
SELECT ALL 25 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2225
600
875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) * col2 + col2 col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT - col2 * - col2 + + cor0.col1 AS col1 FROM tab2 cor0
----
1461
735
760
query I rowsort
SELECT ( - 22 ) AS col2 FROM tab0 AS cor0
----
-22
-22
-22
onlyif mysql # use DIV operator for integer division
query I rowsort label-4172
SELECT DISTINCT - col2 DIV col0 - col1 * ( - 98 ) FROM tab2 AS cor0
----
1666
3035
5782
skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT - col2 / col0 - col1 * ( - 98 ) FROM tab2 AS cor0
----
1666
3035
5782
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 5 AS REAL ) * + col1 AS col2 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT col1 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - ( + 92 ) AS col1 FROM tab0 cor0
----
-92
-92
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-4176
SELECT ALL col0 + + cor0.col0 DIV col1 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL col0 + + cor0.col0 / col1 AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4177
SELECT ALL + - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL + - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 47 + - col2 FROM tab0 AS cor0
----
-35
14
46
query I rowsort
SELECT DISTINCT + + col2 * + col2 - col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL tab0.col2 * 63 AS col2 FROM tab0
----
2079
5166
63
query I rowsort
SELECT col0 + 48 FROM tab0
----
137
72
83
query I rowsort
SELECT - 13 AS col1 FROM tab0 cor0
----
-13
-13
-13
query I rowsort
SELECT + + ( col0 ) * col2 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL + 45 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT ALL - ( + 85 * col2 ) FROM tab1
----
-4590
-4845
-8160
query I rowsort
SELECT - + col1 * 98 FROM tab0 AS cor0
----
-8428
-8918
-9506
query I rowsort
SELECT - col2 + 6 * + 38 AS col0 FROM tab0 AS cor0
----
146
195
227
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 63 + + col0 + col1 * 40 col0 FROM tab1 AS cor0
----
1232
4496
5640
query I rowsort
SELECT - col0 + - col1 + + col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + 23 + + col2 FROM tab0 AS cor0
----
105
24
56
query I rowsort
SELECT - col2 * col0 * + col2 AS col2 FROM tab0 cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + 16 + 41 * + tab2.col2 AS col2 FROM tab2
----
1082
1123
1574
query I rowsort
SELECT DISTINCT - + 75 FROM tab2, tab2 AS cor0
----
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-4194
SELECT + + col2 * - cor0.col2 + + col2 DIV - col0 col1 FROM tab0 AS cor0
----
-1
-1090
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4194
SELECT + + col2 * - cor0.col2 + + col2 / - col0 col1 FROM tab0 AS cor0
----
-1
-1090
-6724
query I rowsort
SELECT + + cor0.col2 + + col2 * - 51 + cor0.col0 FROM tab2 AS cor0
----
-1222
-1343
-1821
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 * 89 col1 FROM tab1
----
-3204
-3204
-3204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4197
SELECT DISTINCT + CAST( 86 AS SIGNED ) + + col1 * - 68 + col0 FROM tab2
----
-2015
-3848
-991
skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + CAST ( 86 AS INTEGER ) + + col1 * - 68 + col0 FROM tab2
----
-2015
-3848
-991
query I rowsort
SELECT DISTINCT 98 * col1 * + 27 FROM tab1
----
26460
34398
68796
query I rowsort
SELECT ALL + col0 * + col1 * col0 AS col2 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
29
query I rowsort
SELECT DISTINCT + 11 + - col1 FROM tab0 AS cor0
----
-75
-80
-86
query I rowsort
SELECT ALL - + col0 * + ( + col2 + + col2 ) AS col2 FROM tab1 AS cor0
----
-15360
-324
-7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-4203
SELECT 68 * + col0 + tab2.col2 - col0 DIV col1 AS col1 FROM tab2
----
503
5329
5406
skipif mysql # not compatible
query I rowsort label-4203
SELECT 68 * + col0 + tab2.col2 - col0 / col1 AS col1 FROM tab2
----
503
5329
5406
query I rowsort
SELECT - 67 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT ALL col0 + - tab1.col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL col0 + - col1 + col0 AS col0 FROM tab2
----
-17
141
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4207
SELECT DISTINCT - col2 + + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - col2 + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL col1 + col2 * col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL col0 * ( col0 + col2 ) * col0 FROM tab2 AS cor0
----
1666
632736
730197
query I rowsort
SELECT DISTINCT - 2 AS col2 FROM tab1, tab1 AS cor0
----
-2
query I rowsort
SELECT ( 47 ) FROM tab1
----
47
47
47
query I rowsort
SELECT + ( + col1 ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT ( - tab1.col1 ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + 14 + col2 AS col0 FROM tab0 AS cor0
----
15
47
96
query I rowsort
SELECT DISTINCT - col1 + col2 * ( - ( col2 ) ) FROM tab1 cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT + 71 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1605
717
908
query I rowsort
SELECT ALL - + col1 + col2 * + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-36023
-551459
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4218
SELECT DISTINCT cor0.col2 * col2 * - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT cor0.col2 * col2 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT - col0 - - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * col0 - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL + 56 FROM tab1, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4222
SELECT ALL - CAST( NULL AS SIGNED ) / + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - CAST ( NULL AS INTEGER ) / + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 51 + - col1 + + 45 FROM tab1 cor0
----
70
83
86
query I rowsort
SELECT ALL 17 * + cor0.col1 + col1 * - 4 FROM tab0 AS cor0
----
1118
1183
1261
query I rowsort
SELECT ALL - + col0 - - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 40 * + 29 FROM tab0 AS cor0
----
1160
1160
1160
query I rowsort
SELECT DISTINCT col1 * col2 - + col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL + ( - col0 ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4229
SELECT ALL - 91 DIV + col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL - 91 / + col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - ( cor0.col2 ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col0 + - 11 AS col0 FROM tab1 cor0
----
-8
53
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-4232
SELECT col2 - col2 DIV + col0 AS col1 FROM tab0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-4232
SELECT col2 - col2 / + col0 AS col1 FROM tab0
----
1
32
82
query I rowsort
SELECT ALL - 57 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 73af7ec97dc3697f855f0768b6d86d7a
query I rowsort
SELECT - tab0.col1 + - ( - 52 + col0 ) FROM tab0
----
-128
-58
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4235
SELECT col2 + col0 + tab1.col1 DIV ( 18 ) col2 FROM tab1
----
121
176
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4235
SELECT col2 + col0 + tab1.col1 / ( 18 ) col2 FROM tab1
----
121
176
58
query I rowsort
SELECT ( - 64 * + col0 ) FROM tab1
----
-192
-4096
-5120
onlyif mysql # use DIV operator for integer division
query I rowsort label-4237
SELECT col0 * col1 + CAST( - col1 AS SIGNED ) DIV - col1 FROM tab2 cor0
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-4237
SELECT col0 * col1 + CAST ( - col1 AS INTEGER ) / - col1 FROM tab2 cor0
----
1344
218
4603
query I rowsort
SELECT DISTINCT + tab1.col0 + + 94 FROM tab1
----
158
174
97
query I rowsort
SELECT - 33 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 + col2 col0 FROM tab2
----
24
25
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-4241
SELECT 85 + col0 DIV - col1 AS col0 FROM tab1
----
79
79
85
skipif mysql # not compatible
query I rowsort label-4241
SELECT 85 + col0 / - col1 AS col0 FROM tab1
----
79
79
85
query I rowsort
SELECT DISTINCT col1 + - col0 * + col1 * - col1 FROM tab1 AS cor0
----
13533
2054
6410
query I rowsort
SELECT col2 * - col2 * col1 AS col1 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT + 63 AS col0 FROM tab0
----
63
63
63
query I rowsort
SELECT ALL + 56 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT ALL - - col0 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - col0 * col0 * col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT + col0 * - 55 * + 2 AS col1 FROM tab0 AS cor0
----
-2640
-3850
-9790
query I rowsort
SELECT ALL + 17 * col1 FROM tab2
----
1003
289
527
query I rowsort
SELECT ( col2 ) - - ( 70 + + col1 ) FROM tab2
----
125
128
155
query I rowsort
SELECT ALL col0 + col0 + col1 AS col1 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT cor0.col0 + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - - col0 + + 60 * - cor0.col1 FROM tab2 AS cor0
----
-1853
-3462
-941
onlyif mysql # use DIV operator for integer division
query I rowsort label-4254
SELECT ALL + col1 DIV 44 + 54 FROM tab0 AS cor0
----
55
56
56
skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL + col1 / 44 + 54 FROM tab0 AS cor0
----
55
56
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-4255
SELECT + col0 DIV 12 AS col1 FROM tab2 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-4255
SELECT + col0 / 12 AS col1 FROM tab2 AS cor0
----
0
6
6
query I rowsort
SELECT DISTINCT + + cor0.col1 + 23 * + ( col0 ) FROM tab0 cor0
----
2138
638
902
onlyif mysql # use DIV operator for integer division
query I rowsort label-4257
SELECT ALL - cor0.col0 DIV col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - cor0.col0 / col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT col1 * 73 FROM tab0 AS cor0
----
6278
6643
7081
query I rowsort
SELECT col0 * col2 + + 1 FROM tab2
----
190
2029
3003
query I rowsort
SELECT - col1 * tab1.col1 + col2 AS col0 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT ALL + 47 + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 49d412da1aa5be090cdef33d4d0fcb9b
query I rowsort
SELECT DISTINCT + col1 + - col0 * col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - col2 + - ( + col0 ) * + col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL + cor0.col1 + 14 AS col2 FROM tab2 AS cor0
----
31
45
73
query I rowsort
SELECT DISTINCT 54 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
54
query I rowsort
SELECT DISTINCT + col1 + - 3 AS col0 FROM tab2 AS cor0
----
14
28
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( + col0 ) ) * + col2 + col1 col2 FROM tab2 cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT - col0 DIV + 89 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4268
SELECT - col0 / + 89 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 47 col2 FROM tab0 AS cor0
----
-39
-44
-50
query I rowsort
SELECT DISTINCT col0 * - ( - col1 * + col2 ) AS col1 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT - col1 + - col0 * - col2 * col2 AS col1 FROM tab1 AS cor0
----
207926
737267
8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-4272
SELECT + - col1 DIV 30 AS col1 FROM tab0 AS cor0
----
-2
-3
-3
skipif mysql # not compatible
query I rowsort label-4272
SELECT + - col1 / 30 AS col1 FROM tab0 AS cor0
----
-2
-3
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT + - col1 + col1 DIV col0 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-4273
SELECT + - col1 + col1 / col0 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT DISTINCT 21 * + col2 FROM tab1 AS cor0
----
1134
1197
2016
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4275
SELECT - - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4275
SELECT - - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - 15 AS col1 FROM tab2 cor0
----
-15
-15
-15
query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab1, tab2 AS cor0
----
11
query I rowsort
SELECT ALL col1 * - tab2.col0 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4279
SELECT - col0 + + 73 * col2 DIV col1 FROM tab2 cor0
----
-46
56
84
skipif mysql # not compatible
query I rowsort label-4279
SELECT - col0 + + 73 * col2 / col1 FROM tab2 cor0
----
-46
56
84
query I rowsort
SELECT - 95 * - col1 + col1 AS col1 FROM tab2 cor0
----
1632
2976
5664
query I rowsort
SELECT ALL - col0 + + cor0.col1 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
185
3594
7613
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 95 * + col2 col1 FROM tab2 AS cor0
----
2470
2565
3610
query I rowsort
SELECT ALL - 45 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
2430
2565
4320
query I rowsort
SELECT + + col1 + col1 + col1 * + col1 * - col0 FROM tab1 AS cor0
----
-13494
-1976
-6380
query I rowsort
SELECT + - 54 * col2 + col1 AS col1 FROM tab2 AS cor0
----
-1345
-1427
-2035
onlyif mysql # use DIV operator for integer division
query I rowsort label-4286
SELECT + 93 + col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
75
92
93
skipif mysql # not compatible
query I rowsort label-4286
SELECT + 93 + col2 / - col0 AS col1 FROM tab1 AS cor0
----
75
92
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + col1 col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 - col0 * - col2 AS col2 FROM tab1 AS cor0
----
-1536
-2754
399
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * col2 + cor0.col2 * col0 col1 FROM tab2 AS cor0
----
2538
4290
6308
query I rowsort
SELECT ALL 89 + + col0 * col2 FROM tab0 AS cor0
----
124
7387
881
onlyif mysql # use DIV operator for integer division
query I rowsort label-4291
SELECT - cor0.col0 DIV + ( + col0 + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4291
SELECT - cor0.col0 / + ( + col0 + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 * 82 * - 47 FROM tab2 AS cor0
----
119474
227386
65518
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col0 col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + col1 + col0 - - tab2.col0 FROM tab2
----
175
215
45
query I rowsort
SELECT col1 * 8 + cor0.col1 FROM tab2 AS cor0
----
153
279
531
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 + cor0.col2 col2 FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4297
SELECT col1 + CAST( - col0 + - col2 AS SIGNED ) * col1 * col2 FROM tab2
----
-159477
-28427
-75565
skipif mysql # not compatible
query I rowsort label-4297
SELECT col1 + CAST ( - col0 + - col2 AS INTEGER ) * col1 * col2 FROM tab2
----
-159477
-28427
-75565
query I rowsort
SELECT - - cor0.col0 * 40 FROM tab2 AS cor0
----
280
3120
3160
query I rowsort
SELECT - col1 * 70 + 25 FROM tab0 AS cor0
----
-5995
-6345
-6765
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4300
SELECT - col2 * + ( 98 * - col1 ) + CAST( 51 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
278175
731327
9557
skipif mysql # not compatible
query I rowsort label-4300
SELECT - col2 * + ( 98 * - col1 ) + CAST ( 51 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
278175
731327
9557
query I rowsort
SELECT DISTINCT col2 * col1 + 68 * col0 * col2 AS col0 FROM tab0 AS cor0
----
2477
503726
56694
query I rowsort
SELECT ALL col2 * 40 + - 65 FROM tab0 cor0
----
-25
1255
3215
onlyif mysql # use DIV operator for integer division
query I rowsort label-4303
SELECT DISTINCT - 76 DIV + 6 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
-12
skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT - 76 / + 6 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-4304
SELECT + col2 DIV cor0.col2 + + 73 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-72
1
skipif mysql # not compatible
query I rowsort label-4304
SELECT + col2 / cor0.col2 + + 73 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-72
1
query I rowsort
SELECT ALL + cor0.col2 * col2 + col1 * col0 AS col2 FROM tab2 AS cor0
----
2787
5278
946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4306
SELECT ALL col2 * CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL col2 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col2 + - ( + col1 ) * cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col1 + - ( + col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + - 42 AS col1 FROM tab2 AS cor0
----
-42
-42
-42
query I rowsort
SELECT - 54 + 10 * col2 AS col1 FROM tab0 AS cor0
----
-44
276
766
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4311
SELECT DISTINCT + col0 * + col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT + col0 * + col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4312
SELECT DISTINCT CAST( + 70 AS SIGNED ) * col1 + + col1 * ( col0 + col0 ) FROM tab2
----
13334
2604
3876
skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT CAST ( + 70 AS INTEGER ) * col1 + + col1 * ( col0 + col0 ) FROM tab2
----
13334
2604
3876
query I rowsort
SELECT 97 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 col0 FROM tab1, tab2 AS cor0
----
38
query I rowsort
SELECT DISTINCT cor0.col0 + + col0 - ( + 69 * col0 ) FROM tab1 AS cor0
----
-201
-4288
-5360
query I rowsort
SELECT 20 * col0 FROM tab2 cor0
----
140
1560
1580
query I rowsort
SELECT DISTINCT - 92 + + col2 FROM tab2 AS cor0
----
-54
-65
-66
query I rowsort
SELECT DISTINCT + cor0.col0 - col2 * - ( + col1 + col2 ) FROM tab0 cor0
----
133
14275
3951
query I rowsort
SELECT + + 3 * col0 + - 58 FROM tab1 cor0
----
-49
134
182
onlyif mysql # use DIV operator for integer division
query I rowsort label-4320
SELECT DISTINCT + 63 DIV col2 - ( + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-13
-25
-9
skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT + 63 / col2 - ( + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-13
-25
-9
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 - col0 FROM tab1 cor0
----
-2919
-3313
-9296
query I rowsort
SELECT - - ( - col0 ) * ( + 72 ) FROM tab1 AS cor0
----
-216
-4608
-5760
query I rowsort
SELECT ALL + col1 + col1 * + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT 86 - col0 FROM tab1
----
22
6
83
query I rowsort
SELECT DISTINCT + ( - col1 ) + - col2 * col2 FROM tab2 AS cor0
----
-1461
-735
-760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT ( 43 ) AS col2 FROM tab1
----
43
query I rowsort
SELECT DISTINCT + col1 * col0 - - tab0.col0 * col0 FROM tab0
----
16020
2640
4620
onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT DISTINCT - - ( - col2 ) * + cor0.col2 + + 19 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT - - ( - col2 ) * + cor0.col2 + + 19 / + col1 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + - cor0.col2 * - 76 AS col0 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT ALL + + ( - 78 ) AS col2 FROM tab1 AS cor0
----
-78
-78
-78
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 cor2, tab2 AS cor3
----
3645 values hashing to b9fc7433316cc7891b52d2a23a135419
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - 89 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT ALL + 34 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT ALL + col1 * + col0 + + col1 * + col0 * + col2 FROM tab0
----
672217
6790
70176
query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab1, tab1 AS cor0
----
9
query I rowsort
SELECT DISTINCT tab0.col1 * tab0.col2 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL cor0.col2 + - ( col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 45 * - col2 + - col1 * + col2 FROM tab1 cor0
----
-3135
-3834
-5568
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab2, tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + ( - 45 ) FROM tab0 AS cor0
----
-45
query I rowsort
SELECT + + 9 AS col1 FROM tab0 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT cor0.col1 * + 87 FROM tab1 AS cor0
----
1131
2262
870
query I rowsort
SELECT ALL 71 FROM tab0, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT 19 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT - 41 * ( col2 ) AS col0 FROM tab1 AS cor0
----
-2214
-2337
-3936
query I rowsort
SELECT + col0 + 99 AS col1 FROM tab0 AS cor0
----
123
134
188
query I rowsort
SELECT DISTINCT - col2 * + ( 55 ) FROM tab2 AS cor0
----
-1430
-1485
-2090
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT col1 * col2 + + 13 AS col2 FROM tab2 AS cor0
----
1547
659
850
query I rowsort
SELECT ALL - + col2 * 42 AS col2 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT ALL col2 + col1 * + 56 - col2 AS col2 FROM tab1 AS cor0
----
1456
560
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 + + cor0.col1 col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - + cor0.col0 + col0 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL + col0 * 34 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
10488
1287
3654
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 50 col2 FROM tab2 AS cor0
----
-12
-23
-24
query I rowsort
SELECT DISTINCT + - col1 + + ( + col0 ) FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT - + 86 * - col2 FROM tab2 cor0
----
2236
2322
3268
onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT - + ( col0 ) * col0 DIV + col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-4360
SELECT - + ( col0 ) * col0 / + col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4361
SELECT ALL - CAST( - col0 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - CAST ( - col0 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - col0 + cor0.col1 FROM tab2 cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4363
SELECT + col2 + col1 DIV - col1 AS col0 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-4363
SELECT + col2 + col1 / - col1 AS col0 FROM tab0
----
0
32
81
query I rowsort
SELECT - ( col2 ) * cor0.col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT 67 + col2 * 89 AS col0 FROM tab1 cor0
----
4873
5140
8611
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * 17 col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to e9c7af2def31b02bd465c936ac3c0c70
query I rowsort
SELECT ALL - - 7 + - col1 FROM tab0 cor0
----
-79
-84
-90
query I rowsort
SELECT ALL ( col1 ) * col2 + 65 * - col1 AS col0 FROM tab1 AS cor0
----
-286
-80
403
query I rowsort
SELECT DISTINCT 11 + + col0 FROM tab2 AS cor0
----
18
89
90
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + col1 )
----
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col2 + col0 )
----
query I rowsort
SELECT - col1 + - col1 * col2 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT ALL 78 + - col2 AS col2 FROM tab0 cor0
----
-4
45
77
query I rowsort
SELECT DISTINCT col0 * col1 - + 1 FROM tab1 AS cor0
----
1039
639
77
query I rowsort
SELECT DISTINCT - col1 * col0 - + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-3068
-697
620
query I rowsort
SELECT - col2 * + 97 FROM tab2 AS cor0
----
-2522
-2619
-3686
onlyif mysql # use DIV operator for integer division
query I rowsort label-4377
SELECT - + cor0.col0 + 8 DIV col0 FROM tab2 cor0
----
-6
-78
-79
skipif mysql # not compatible
query I rowsort label-4377
SELECT - + cor0.col0 + 8 / col0 FROM tab2 cor0
----
-6
-78
-79
query I rowsort
SELECT 45 * + col2 + tab1.col1 * col2 FROM tab1
----
3135
3834
5568
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab0 cor2
----
3645 values hashing to db9b93cf4fdd5de4106f0487a66ce0a5
query I rowsort
SELECT - + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col0 FROM tab2
----
-68
query I rowsort
SELECT - - ( - cor1.col2 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - ( col2 ) col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + 46 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT DISTINCT ( 86 * tab2.col2 ) + + 96 FROM tab2
----
2332
2418
3364
onlyif mysql # use DIV operator for integer division
query I rowsort label-4386
SELECT 39 DIV col0 + - col0 + + col2 AS col2 FROM tab0
----
-33
-7
10
skipif mysql # not compatible
query I rowsort label-4386
SELECT 39 / col0 + - col0 + + col2 AS col2 FROM tab0
----
-33
-7
10
query I rowsort
SELECT - 49 + col1 + + col0 AS col2 FROM tab1
----
-20
25
44
query I rowsort
SELECT col1 + + 40 FROM tab0
----
126
131
137
query I rowsort
SELECT col2 * col1 * + col2 FROM tab2
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-4390
SELECT 83 + - col1 DIV - tab1.col2 + + 72 AS col0 FROM tab1
----
155
155
155
skipif mysql # not compatible
query I rowsort label-4390
SELECT 83 + - col1 / - tab1.col2 + + 72 AS col0 FROM tab1
----
155
155
155
query I rowsort
SELECT ALL - ( col0 ) AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL + 85 FROM tab2 cor0
----
85
85
85
query I rowsort
SELECT DISTINCT ( col2 ) * col0 + + ( 27 ) AS col2 FROM tab0 AS cor0
----
62
7325
819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4394
SELECT DISTINCT - 17 * col0 + - col1 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT - 17 * col0 + - col1 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT + col2 + 55 FROM tab1
----
109
112
151
query I rowsort
SELECT ( col0 ) * + col2 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - cor0.col2 + col1 * + 87 AS col0 FROM tab0 cor0
----
7449
7835
8438
query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab2
----
18
query I rowsort
SELECT + col2 + - cor0.col0 + + col2 FROM tab0 AS cor0
----
-33
42
75
query I rowsort
SELECT - 52 * col1 + ( - col2 ) * + col0 + ( 86 ) * col2 FROM tab0 AS cor0
----
-2426
-4978
-4993
query I rowsort
SELECT - cor0.col1 * + col2 + 58 + col2 * col2 * + 91 FROM tab1 AS cor0
----
264010
295147
837466
onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT + 59 DIV + col1 + + 43 + ( col2 ) * 22 AS col0 FROM tab1 AS cor0
----
1233
1302
2159
skipif mysql # not compatible
query I rowsort label-4402
SELECT + 59 / + col1 + + 43 + ( col2 ) * 22 AS col0 FROM tab1 AS cor0
----
1233
1302
2159
query I rowsort
SELECT DISTINCT + col0 * + ( col2 ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL + col2 + 5 AS col1 FROM tab0 cor0
----
38
6
87
query I rowsort
SELECT ALL 21 * + col1 AS col1 FROM tab0 AS cor0
----
1806
1911
2037
query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
3
64
80
query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab1, tab0 cor0
----
33
query I rowsort
SELECT ALL - col2 - tab2.col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT 44 * 52 + col2 FROM tab2 AS cor0
----
2314
2315
2326
query I rowsort
SELECT DISTINCT + col2 * + 33 FROM tab2 AS cor0
----
1254
858
891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4411
SELECT + + CAST( NULL AS SIGNED ) - + 82 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4411
SELECT + + CAST ( NULL AS INTEGER ) - + 82 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab2.col1 * 23 AS col1 FROM tab2, tab0 AS cor0
----
1357
391
713
query I rowsort
SELECT + 90 * - col1 + ( col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
-1470
-2418
-3744
query I rowsort
SELECT - - cor0.col0 + col0 AS col1 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4416
SELECT + col1 / CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4416
SELECT + col1 / CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT ALL col2 + col1 DIV + 92 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL col2 + col1 / + 92 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col1 + - ( 65 ) FROM tab2
----
-124
-82
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 25 col1 FROM tab1 AS cor0
----
1600
2000
75
query I rowsort
SELECT - col0 + 7 FROM tab2 AS cor0
----
-71
-72
0
query I rowsort
SELECT DISTINCT col1 + ( - 31 ) AS col2 FROM tab1 AS cor0
----
-18
-21
-5
query I rowsort
SELECT col2 + - 64 AS col0 FROM tab1 AS cor0
----
-10
-7
32
query I rowsort
SELECT ALL + col1 + 20 AS col2 FROM tab1 AS cor0
----
30
33
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4425
SELECT ALL + col2 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + col2 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 * + cor0.col1 * col2 + col1 FROM tab1 AS cor0
----
-119795
-32480
-75790
onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT DISTINCT + col2 DIV - 79 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT + col2 / - 79 FROM tab1 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4428
SELECT ALL - col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - col0 / col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + - col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 53 * col2 + - col1 FROM tab2 AS cor0
----
1319
1400
1997
query I rowsort
SELECT ALL - - col0 * - 70 + col1 AS col0 FROM tab1 cor0
----
-184
-4470
-5587
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2, tab2 cor3
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0
query I rowsort
SELECT 1 - + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to f8cd45e02abac629e2820398721ea46c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * + ( ( - col0 ) ) col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + 91 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT + - col2 + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - 14 * 39 FROM tab1, tab2 AS cor0
----
9 values hashing to 4702c495748777632703e415362eb8f6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4438
SELECT ALL - col2 DIV - 18 AS col1 FROM tab0 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - col2 / - 18 AS col1 FROM tab0 AS cor0
----
0
1
4
query I rowsort
SELECT ALL col2 * col0 + ( + col2 ) * + col0 FROM tab1
----
15360
324
7296
query I rowsort
SELECT DISTINCT - 93 FROM tab2, tab0, tab0 AS cor0
----
-93
query I rowsort
SELECT col1 * col1 * col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT 63 + - 32 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT ALL + tab0.col2 * + col0 + col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT 50 + col1 AS col2 FROM tab0
----
136
141
147
query I rowsort
SELECT ALL + - ( col0 ) + col0 * + col0 FROM tab0 AS cor0
----
1190
552
7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * cor0.col1 col0 FROM tab2 AS cor0
----
1173
2139
4071
query I rowsort
SELECT col0 + - cor0.col2 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4448
SELECT ALL CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT DISTINCT - ( cor0.col1 ) + - cor0.col0 + ( col1 ) DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-21
-74
-93
skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - ( cor0.col1 ) + - cor0.col0 + ( col1 ) / cor0.col0 AS col1 FROM tab1 AS cor0
----
-21
-74
-93
query I rowsort
SELECT ALL - - 35 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1479
711
764
query I rowsort
SELECT DISTINCT cor0.col2 * ( col2 ) AS col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL - 69 * - col1 + - col2 FROM tab0 AS cor0
----
5901
6197
6692
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col0 * - col0 ) col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL 53 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1749
-4346
-53
query I rowsort
SELECT + col1 * - col2 * - 8 FROM tab2 cor0
----
12272
5168
6696
query I rowsort
SELECT + col2 * - tab0.col2 + col1 * - col0 AS col0 FROM tab0
----
-14823
-3153
-3396
query I rowsort
SELECT + 35 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT ALL + - col1 + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT tab1.col2 + - 65 * - 33 AS col2 FROM tab1
----
2199
2202
2241
query I rowsort
SELECT ALL col0 * - col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - + col2 * 62 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1638
-1701
-2394
onlyif mysql # use DIV operator for integer division
query I rowsort label-4462
SELECT ALL - + col0 DIV - 26 FROM tab2 AS cor0
----
0
3
3
skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - + col0 / - 26 FROM tab2 AS cor0
----
0
3
3
query I rowsort
SELECT + tab2.col1 * - 11 AS col1 FROM tab2
----
-187
-341
-649
query I rowsort
SELECT ALL + col2 + + col0 * + 8 AS col2 FROM tab1
----
569
736
78
query I rowsort
SELECT col1 + - col0 + + col0 AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL cor0.col1 * - 41 + - col0 * col0 FROM tab2 AS cor0
----
-1320
-6938
-8503
query I rowsort
SELECT col2 * 22 AS col0 FROM tab1 AS cor0
----
1188
1254
2112
query I rowsort
SELECT ALL col1 + 30 AS col0 FROM tab1 AS cor0
----
40
43
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4469
SELECT DISTINCT - - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4470
SELECT ALL - col1 + - CAST( col2 AS SIGNED ) * - col2 AS col2 FROM tab2 cor0
----
1427
617
698
skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL - col1 + - CAST ( col2 AS INTEGER ) * - col2 AS col2 FROM tab2 cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT - + cor0.col0 * 29 AS col2 FROM tab2 AS cor0
----
-203
-2262
-2291
query I rowsort
SELECT + 3 * - col0 * col1 FROM tab1 AS cor0
----
-1920
-234
-3120
query I rowsort
SELECT DISTINCT + 33 + col2 AS col1 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT DISTINCT - - col2 * 93 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-4
164
231
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4475
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col2 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col2 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + + 10 FROM tab1 cor0
----
10
10
10
query I rowsort
SELECT DISTINCT - - col1 * 55 + - col1 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT tab2.col0 * + 86 - - col1 FROM tab2
----
633
6767
6811
query I rowsort
SELECT DISTINCT - col2 * - col2 + col1 AS col0 FROM tab2
----
1461
735
760
query I rowsort
SELECT + ( cor0.col0 ) * col2 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + col0 - - 40 AS col0 FROM tab2
----
118
119
47
query I rowsort
SELECT col2 * col0 - ( col0 ) FROM tab1
----
159
3584
7600
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) * + col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 45 FROM tab2, tab0 AS cor0
----
45
query I rowsort
SELECT DISTINCT cor0.col0 * ( - col2 ) * 21 AS col2 FROM tab1 AS cor0
----
-161280
-3402
-76608
query I rowsort
SELECT col2 + 24 * col0 FROM tab2 AS cor0
----
1898
1934
195
query I rowsort
SELECT ( + col0 ) + - col1 * - col2 + - col2 * - col1 AS col1 FROM tab0 AS cor0
----
15013
229
5700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4488
SELECT + ( + ( col1 ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4488
SELECT + ( + ( col1 ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( + col2 ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - cor0.col1 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT col2 * - ( - col0 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + col2 * tab1.col1 * col0 FROM tab1
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4493
SELECT ALL + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT col0 * ( col1 ) * col1 FROM tab0 AS cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 col1 FROM tab1, tab2, tab0 AS cor0
----
10
13
26
query I rowsort
SELECT - col2 * ( - col1 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - cor0.col2 * - 12 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 125f2f3fb2d94b0cc3f62e6ce4a3f314
query I rowsort
SELECT 55 * col0 + 93 FROM tab0
----
1413
2018
4988
query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL col1 * ( - col2 ) * col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT ALL col0 + + col1 + col0 * - col1 AS col2 FROM tab2
----
-1247
-179
-4465
query I rowsort
SELECT + cor0.col2 + 10 FROM tab0 AS cor0
----
11
43
92
query I rowsort
SELECT - + cor0.col1 * ( col0 ) + col1 - - 46 * 30 * - col0 FROM tab0 AS cor0
----
-130828
-35098
-51598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4504
SELECT col1 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4504
SELECT col1 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 * 24 AS col1 FROM tab2 AS cor0
----
-168
-1872
-1896
query I rowsort
SELECT DISTINCT + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col0 * ( col1 * + col1 ) AS col2 FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL 28 - + col2 FROM tab1 AS cor0
----
-26
-29
-68
query I rowsort
SELECT - cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col2 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - - 77 - col2 AS col1 FROM tab1 AS cor0
----
-19
20
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4512
SELECT DISTINCT 98 DIV + col2 FROM tab0 AS cor0
----
1
2
98
skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT 98 / + col2 FROM tab0 AS cor0
----
1
2
98
query I rowsort
SELECT DISTINCT + col2 - - cor0.col2 * + 15 FROM tab2 AS cor0
----
416
432
608
query I rowsort
SELECT + 39 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT ALL col1 - ( 16 * + col1 ) FROM tab0 AS cor0
----
-1290
-1365
-1455
query I rowsort
SELECT ALL col2 * col2 + + col2 AS col1 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT col0 * ( cor0.col2 ) + + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - col2 * 70 + - cor0.col0 * - col2 FROM tab1 AS cor0
----
-342
-3618
960
query I rowsort
SELECT - + cor0.col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + ( col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - + 42 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT DISTINCT + - col1 * - col1 + col2 FROM tab0 cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - - 86 + - cor0.col0 FROM tab1 AS cor0
----
22
6
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4524
SELECT CAST( cor0.col0 * cor0.col1 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775
skipif mysql # not compatible
query I rowsort label-4524
SELECT CAST ( cor0.col0 * cor0.col1 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775
query I rowsort
SELECT col1 * - 14 AS col2 FROM tab0
----
-1204
-1274
-1358
query I rowsort
SELECT + ( 28 ) AS col2 FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT ALL + col0 + col0 * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col1 + + cor0.col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - col0 * - col0 * 51 AS col1 FROM tab1
----
208896
326400
459
query I rowsort
SELECT 35 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT ALL col2 * + col0 * 12 AS col2 FROM tab0
----
420
87576
9504
onlyif mysql # use DIV operator for integer division
query I rowsort label-4532
SELECT ALL col0 + + 92 * - col2 DIV col2 col1 FROM tab1
----
-12
-28
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL col0 + + 92 * - col2 / col2 col1 FROM tab1
----
-12
-28
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 44 ) col1 FROM tab2
----
-44
-44
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( col0 ) col1 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 * col1 col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT - + col2 + + 89 * col2 FROM tab1 AS cor0
----
4752
5016
8448
query I rowsort
SELECT - 92 * cor0.col1 FROM tab2 AS cor0
----
-1564
-2852
-5428
query I rowsort
SELECT 26 * col1 + - col1 * 67 AS col1 FROM tab1 cor0
----
-1066
-410
-533
query I rowsort
SELECT + + col2 * + 38 FROM tab2 AS cor0
----
1026
1444
988
query I rowsort
SELECT DISTINCT col1 * + col1 * - col0 + col2 * col2 FROM tab2
----
-21387
-270842
-5998
query I rowsort
SELECT - 38 * col0 FROM tab1
----
-114
-2432
-3040
query I rowsort
SELECT + col2 + - col0 + col0 * ( + col0 * + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1343
158132
237117
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 + tab1.col0 col1 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4544
SELECT ( col0 ) DIV tab1.col0 + - col2 * col2 FROM tab1
----
-2915
-3248
-9215
skipif mysql # not compatible
query I rowsort label-4544
SELECT ( col0 ) / tab1.col0 + - col2 * col2 FROM tab1
----
-2915
-3248
-9215
query I rowsort
SELECT - col2 * tab0.col0 + col2 AS col0 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT col0 * col0 + col2 AS col0 FROM tab0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col2 col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + tab2.col0 * col1 * ( - 52 * col0 ) AS col2 FROM tab2
----
-18665712
-5517044
-78988
onlyif mysql # use DIV operator for integer division
query I rowsort label-4549
SELECT col0 DIV col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4549
SELECT col0 / col2 FROM tab1 cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4550
SELECT DISTINCT - - col0 DIV - col0 col2 FROM tab1 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT - - col0 / - col0 col2 FROM tab1 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4551
SELECT - col2 * cor0.col1 DIV + 3 + col0 AS col1 FROM tab1 AS cor0
----
-126
-336
-465
skipif mysql # not compatible
query I rowsort label-4551
SELECT - col2 * cor0.col1 / + 3 + col0 AS col1 FROM tab1 AS cor0
----
-126
-336
-465
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4552
SELECT DISTINCT 32 * col1 + + col1 * + ( - cor0.col0 * - CAST( 9 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
21328
33659
75803
skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT 32 * col1 + + col1 * + ( - cor0.col0 * - CAST ( 9 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
21328
33659
75803
query I rowsort
SELECT ALL - + 29 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1102
-754
-783
query I rowsort
SELECT + col2 * + col2 * col2 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT - ( 22 ) + - cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 59538977ae26fe3ed52f7b6587232f17
query I rowsort
SELECT ALL + col1 * cor0.col0 + + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT cor0.col2 * col2 * col0 + + col1 * + ( 50 + col2 ) AS col1 FROM tab0 AS cor0
----
33274
4982
610448
query I rowsort
SELECT ALL + col0 * + ( - 86 ) FROM tab2 cor0
----
-602
-6708
-6794
query I rowsort
SELECT DISTINCT + col0 + - 68 + + 51 FROM tab2 AS cor0
----
-10
61
62
query I rowsort
SELECT col1 + + ( - col0 * - col1 ) AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + cor0.col1 - + 78 * + 33 FROM tab2 AS cor0
----
-2515
-2543
-2557
query I rowsort
SELECT ALL - - cor0.col2 * 88 + col1 * + col1 + - 39 AS col1 FROM tab0 AS cor0
----
10261
15458
9458
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 44 * + col1 + cor0.col2 col2 FROM tab1 AS cor0
----
-1090
-383
-476
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL - + 49 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1274
-490
-637
query I rowsort
SELECT + - col0 * + col0 + + col2 AS col2 FROM tab0 cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT - tab1.col2 * - col2 * col1 - + col2 AS col1 FROM tab1
----
119712
32433
75762
query I rowsort
SELECT ALL col1 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - 61 + - col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-7
-84
6
query I rowsort
SELECT DISTINCT + + 2 FROM tab0 AS cor0
----
2
query I rowsort
SELECT col0 + + col1 * + cor0.col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col2 + + 54 FROM tab0 cor0
----
-28
21
53
query I rowsort
SELECT ALL col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col1 * + 89 FROM tab0 AS cor0
----
7654
8099
8633
query I rowsort
SELECT - + col0 * - 91 + - col0 FROM tab1 AS cor0
----
270
5760
7200
onlyif mysql # use DIV operator for integer division
query I rowsort label-4576
SELECT DISTINCT - col1 + - col0 DIV tab1.col2 + + col2 AS col0 FROM tab1
----
28
46
83
skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT - col1 + - col0 / tab1.col2 + + col2 AS col0 FROM tab1
----
28
46
83
query I rowsort
SELECT - + col2 + - ( col0 * cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT cor0.col2 * + ( col2 ) - - col1 AS col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL + col2 * ( - col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col0 + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT col1 * + ( + col2 + col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
117648
122220
1384929
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 62 col2 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT ( + 64 ) + - col1 + col2 FROM tab1
----
111
147
92
query I rowsort
SELECT DISTINCT - col2 * tab0.col0 AS col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT col0 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4585
SELECT col0 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT col2 * 11 AS col0 FROM tab1
----
1056
594
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-4587
SELECT - col1 + + col0 DIV - cor0.col0 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-4587
SELECT - col1 + + col0 / - cor0.col0 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT ( - col1 ) * tab0.col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - 25 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
query I rowsort
SELECT DISTINCT - 1 FROM tab1, tab0, tab2 cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4591
SELECT col2 * + col1 - 17 DIV col0 AS col0 FROM tab1 AS cor0
----
1248
1399
570
skipif mysql # not compatible
query I rowsort label-4591
SELECT col2 * + col1 - 17 / col0 AS col0 FROM tab1 AS cor0
----
1248
1399
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4592
SELECT DISTINCT - 83 DIV col0 - cor0.col2 FROM tab2 AS cor0
----
-27
-38
-39
skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT - 83 / col0 - cor0.col2 FROM tab2 AS cor0
----
-27
-38
-39
query I rowsort
SELECT - col2 * col2 + - col0 * - col2 * - col0 FROM tab2
----
-158860
-2052
-238602
query I rowsort
SELECT 7 * col1 FROM tab1 AS cor0
----
182
70
91
query I rowsort
SELECT col1 * col1 * - ( col1 ) FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT - 79 + col0 FROM tab0 AS cor0
----
-44
-55
10
query I rowsort
SELECT + 68 * - col0 FROM tab1 cor0
----
-204
-4352
-5440
query I rowsort
SELECT ALL + + 63 FROM tab0 AS cor0
----
63
63
63
query I rowsort
SELECT + col2 * + col2 * + 71 FROM tab2 AS cor0
----
102524
47996
51759
query I rowsort
SELECT - ( cor0.col1 ) * cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8
query I rowsort
SELECT - 3 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT - col1 * - ( 46 ) AS col1 FROM tab1 AS cor0
----
1196
460
598
onlyif mysql # use DIV operator for integer division
query I rowsort label-4603
SELECT - col0 * CAST( 93 AS SIGNED ) + + col2 DIV col1 FROM tab0 AS cor0
----
-2232
-3255
-8277
skipif mysql # not compatible
query I rowsort label-4603
SELECT - col0 * CAST ( 93 AS INTEGER ) + + col2 / col1 FROM tab0 AS cor0
----
-2232
-3255
-8277
query I rowsort
SELECT - col0 * col2 + - col0 AS col1 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT - 33 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-33
query I rowsort
SELECT - col1 * - col2 + col0 + + cor0.col0 * + 27 AS col2 FROM tab0 cor0
----
1077
3510
9954
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + - 26 * + 75 * - col0 FROM tab1 AS cor0
----
124800
156000
5850
query I rowsort
SELECT ALL - 20 * - col1 + - col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
1773
1829
2036
query I rowsort
SELECT ALL + - 49 * - col1 AS col0 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT DISTINCT 31 AS col1 FROM tab2
----
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT - cor0.col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 79 FROM tab1 cor0
----
-79
-79
-79
query I rowsort
SELECT + 55 + + col2 AS col2 FROM tab0 AS cor0
----
137
56
88
query I rowsort
SELECT - + 4 * col2 FROM tab1 AS cor0
----
-216
-228
-384
query I rowsort
SELECT ALL tab1.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT + 54 * + cor0.col1 + + tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b7b7358141b4b570201f19d0aefc80a3
query I rowsort
SELECT ALL 57 FROM tab0, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT DISTINCT col0 + - col0 AS col0 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4621
SELECT DISTINCT + col0 + + col0 DIV tab1.col1 AS col0 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT + col0 + + col0 / tab1.col1 AS col0 FROM tab1
----
3
70
86
query I rowsort
SELECT col0 * col0 + + col0 AS col2 FROM tab2
----
56
6162
6320
query I rowsort
SELECT DISTINCT tab0.col0 + col2 * - col2 + col0 AS col0 FROM tab0
----
-1041
-6546
69
query I rowsort
SELECT col1 * col2 + - col0 * + col2 AS col2 FROM tab1 cor0
----
-3078
-6432
1242
query I rowsort
SELECT ALL - col0 + - col2 * - cor0.col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT col2 + col2 + - col0 AS col0 FROM tab2 cor0
----
-26
-3
47
query I rowsort
SELECT ALL + col1 - + col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + - col0 * - col0 * - col0 AS col0 FROM tab2 cor0
----
-343
-474552
-493039
query I rowsort
SELECT ALL - col0 * - col0 + col1 + - col0 AS col1 FROM tab0 AS cor0
----
1287
638
7923
query I rowsort
SELECT - cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT + col1 * tab2.col0 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - col1 * + col2 - + col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT - + cor0.col2 * col2 * col1 + col0 FROM tab0 AS cor0
----
-611795
-62
-93630
onlyif mysql # use DIV operator for integer division
query I rowsort label-4634
SELECT 46 DIV + tab1.col0 FROM tab1
----
0
0
15
skipif mysql # not compatible
query I rowsort label-4634
SELECT 46 / + tab1.col0 FROM tab1
----
0
0
15
query I rowsort
SELECT DISTINCT 45 * - 64 AS col2 FROM tab0
----
-2880
query I rowsort
SELECT tab2.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col1 * cor0.col2 + - col1 AS col2 FROM tab1 cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-4638
SELECT ALL + - col1 DIV col1 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-4638
SELECT ALL + - col1 / col1 col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - ( col0 ) - - col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - - 89 + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1129
167
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4641
SELECT CAST( NULL AS SIGNED ) / - tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4641
SELECT CAST ( NULL AS INTEGER ) / - tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + col1 * + col2 + col2 FROM tab1
----
1264
1455
563
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 * - col1 ) col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT - col0 - col1 AS col2 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT ALL - col0 + + tab2.col1 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT - col0 * - col0 + tab0.col2 FROM tab0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + col0 col2 FROM tab2
----
1523
736
754
query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT NULL < col0 * + col2
----
query I rowsort
SELECT - col2 * + col1 + - col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT + col1 + - tab2.col0 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT col1 * - col2 + col0 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT col0 + - col0 + + col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT - col2 + col2 * + col1 + - col1 AS col1 FROM tab1
----
1139
1324
503
onlyif mysql # use DIV operator for integer division
query I rowsort label-4654
SELECT - col2 DIV - col1 - col2 FROM tab2
----
-26
-27
-36
skipif mysql # not compatible
query I rowsort label-4654
SELECT - col2 / - col1 - col2 FROM tab2
----
-26
-27
-36
query I rowsort
SELECT + tab2.col1 FROM tab2 WHERE NOT col1 / + col1 - col1 < col1 * - col2 * col2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4656
SELECT ALL col1 + col0 + + col2 DIV col0 FROM tab0
----
111
132
180
skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL col1 + col0 + + col2 / col0 FROM tab0
----
111
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4657
SELECT + tab2.col1 * + tab2.col0 + tab2.col2 DIV - col1 col0 FROM tab2
----
1341
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4657
SELECT + tab2.col1 * + tab2.col0 + tab2.col2 / - col1 col0 FROM tab2
----
1341
217
4602
query I rowsort
SELECT DISTINCT - col2 + - col2 * col2 + + col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL col0 * col2 + tab0.col2 + + col2 AS col1 FROM tab0
----
37
7462
858
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL >= ( + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab1.col1 * - col1 col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT ALL col2 * + col2 + - col1 AS col1 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE - col2 + + col0 * col0 * - col0 NOT IN ( col2 )
----
86
91
97
query I rowsort
SELECT ALL col1 + tab2.col2 * col0 AS col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT DISTINCT + col2 + + col2 - col0 AS col2 FROM tab2
----
-26
-3
47
query I rowsort
SELECT - col1 + col2 * - col2 + - col0 * col1 AS col2 FROM tab2
----
-2804
-5337
-977
query I rowsort
SELECT - col0 * - tab1.col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - col2 * - col0 + col1 * tab2.col0 AS col0 FROM tab2
----
406
4345
6630
query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL NOT IN ( tab2.col0 + - col2 )
----
query I rowsort
SELECT - col2 + + col2 * col2 FROM tab0
----
0
1056
6642
query I rowsort
SELECT ALL col1 + - col0 * + col1 AS col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT col1 + + tab1.col2 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL + col2 + - col1 * + col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT + col2 FROM tab1 WHERE NOT col0 + col2 IN ( col2 * col0 )
----
54
57
96
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 * col2 ) NOT IN ( + col2 * - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) IN ( - tab0.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4678
SELECT DISTINCT + col2 DIV col2 AS col0 FROM tab0 WHERE ( - tab0.col1 ) NOT IN ( col0 + - col0 - tab0.col2 DIV col0 )
----
1
skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT + col2 / col2 AS col0 FROM tab0 WHERE ( - tab0.col1 ) NOT IN ( col0 + - col0 - tab0.col2 / col0 )
----
1
query I rowsort
SELECT col1 * - col1 + - col1 * + col1 FROM tab0 AS cor0
----
-14792
-16562
-18818
query I rowsort
SELECT + col1 * tab2.col1 + - col1 AS col1 FROM tab2
----
272
3422
930
query I rowsort
SELECT DISTINCT col1 * + col2 + cor0.col2 FROM tab1 AS cor0 WHERE - col1 + + col1 = ( col2 + col1 * col0 )
----
query I rowsort
SELECT ALL + col1 + + col0 + tab0.col0 AS col0 FROM tab0
----
134
167
269
query I rowsort
SELECT ALL + tab2.col0 * + col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + col2 * col1 * col2 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT ALL col1 + + col0 * col2 + + col2 DIV + col0 col0 FROM tab1 AS cor0
----
206
3658
7694
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL col1 + + col0 * col2 + + col2 / + col0 col0 FROM tab1 AS cor0
----
206
3658
7694
query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 ) NOT BETWEEN ( + col0 ) AND + col2
----
35
97
1
89
91
82
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT cor0.col0 + 86 FROM tab1 AS cor0
----
150
166
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - ( + col0 ) * + ( + cor0.col0 + - cor0.col2 ) col0 FROM tab2 AS cor0
----
-3222
-3997
171
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4690
SELECT ALL - CAST( NULL AS SIGNED ) * cor0.col1 + cor0.col1 * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - CAST ( NULL AS INTEGER ) * cor0.col1 + cor0.col1 * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - col1 - col0 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col0 + 80 FROM tab1 AS cor0
----
144
160
83
query I rowsort
SELECT DISTINCT + col2 + + col0 * + col1 * col2 + - col1 * - col0 AS col2 FROM tab0 AS cor0
----
672299
6791
70209
query I rowsort
SELECT ALL 11 FROM tab2 AS cor0
----
11
11
11
query I rowsort
SELECT ALL + + col0 * col2 + col1 + 84 FROM tab2 AS cor0
----
2171
304
3103
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4697
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( + col0 ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( + col0 ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - ( cor0.col2 ) * - col2 - - col1 * + 69 * - col0 AS col0 FROM tab0 AS cor0
----
-141327
-234254
-552107
query I rowsort
SELECT ALL + ( - col1 ) - - col1 * ( - 73 * col2 ) FROM tab2 AS cor0
----
-112041
-47175
-61132
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4700
SELECT CAST( col0 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-4700
SELECT CAST ( col0 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + col0 * col2 * - col1 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
-115050
-49691
-5642
onlyif mysql # use DIV operator for integer division
query I rowsort label-4702
SELECT 56 + + col0 DIV + col2 + - col1 * col2 FROM tab1 cor0
----
-1192
-1348
-513
skipif mysql # not compatible
query I rowsort label-4702
SELECT 56 + + col0 / + col2 + - col1 * col2 FROM tab1 cor0
----
-1192
-1348
-513
query I rowsort
SELECT ALL - - 61 FROM tab0, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT + + col2 + col0 * 15 FROM tab0 AS cor0
----
1417
393
526
query I rowsort
SELECT ALL 51 * col2 + + col1 FROM tab2
----
1385
1408
1955
query I rowsort
SELECT DISTINCT 12 + col1 FROM tab2
----
29
43
71
query I rowsort
SELECT ALL + tab0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL + cor0.col2 * col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4709
SELECT col1 DIV 32 AS col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4709
SELECT col1 / 32 AS col1 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + - col2 * + col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT - 52 + - col2 DIV + col2 FROM tab0
----
-53
-53
-53
skipif mysql # not compatible
query I rowsort label-4711
SELECT - 52 + - col2 / + col2 FROM tab0
----
-53
-53
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + col0 * + tab2.col1 col2 FROM tab2
----
-1659
2574
28
query I rowsort
SELECT + 54 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - 90 FROM tab0, tab1 AS cor0
----
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4716
SELECT + CAST( + 18 AS SIGNED ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-13
-41
1
skipif mysql # not compatible
query I rowsort label-4716
SELECT + CAST ( + 18 AS INTEGER ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-13
-41
1
query I rowsort
SELECT 76 AS col1 FROM tab1
----
76
76
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col0 FROM tab0, tab2 AS cor0
----
86
91
97
query I rowsort
SELECT + 60 * + tab2.col0 AS col2 FROM tab2
----
420
4680
4740
query I rowsort
SELECT - 40 FROM tab0, tab2 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT 38 + col0 FROM tab1 cor0
----
102
118
41
query I rowsort
SELECT ALL + 71 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col0 FROM tab0
----
36
36
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-4724
SELECT DISTINCT - col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT - col1 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - 66 * col1 FROM tab0
----
-5676
-6006
-6402
onlyif mysql # use DIV operator for integer division
query I rowsort label-4726
SELECT DISTINCT + col1 + + col0 DIV CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + col1 + + col0 / CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT + + col1 + col2 * col0 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + col1 + 56 AS col2 FROM tab1 cor0
----
66
69
82
query I rowsort
SELECT DISTINCT + + col0 + ( + 56 ) AS col1 FROM tab1 AS cor0
----
120
136
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT DISTINCT - col2 + col2 DIV + 10 AS col2 FROM tab2 AS cor0
----
-24
-25
-35
skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT - col2 + col2 / + 10 AS col2 FROM tab2 AS cor0
----
-24
-25
-35
query I rowsort
SELECT + col1 + + 15 AS col1 FROM tab1 AS cor0
----
25
28
41
query I rowsort
SELECT 81 + + col1 AS col2 FROM tab1
----
107
91
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-4733
SELECT + - col1 * 39 DIV + 29 + col2 * - col1 AS col0 FROM tab1 cor0
----
-1265
-1438
-583
skipif mysql # not compatible
query I rowsort label-4733
SELECT + - col1 * 39 / + 29 + col2 * - col1 AS col0 FROM tab1 cor0
----
-1265
-1438
-583
onlyif mysql # use DIV operator for integer division
query I rowsort label-4734
SELECT - col0 + ( col2 ) DIV + col2 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-4734
SELECT - col0 + ( col2 ) / + col2 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT DISTINCT - cor0.col1 * + 9 FROM tab2 AS cor0
----
-153
-279
-531
query I rowsort
SELECT - col1 * - col2 * 51 FROM tab2
----
32946
42687
78234
query I rowsort
SELECT + 62 * col1 AS col1 FROM tab2
----
1054
1922
3658
query I rowsort
SELECT DISTINCT tab0.col2 - - tab0.col1 FROM tab0
----
119
173
98
query I rowsort
SELECT col2 * - col0 * col0 + tab0.col0 AS col0 FROM tab0
----
-1190
-18984
-649433
onlyif mysql # use DIV operator for integer division
query I rowsort label-4740
SELECT ( col0 ) DIV 3 FROM tab0
----
11
29
8
skipif mysql # not compatible
query I rowsort label-4740
SELECT ( col0 ) / 3 FROM tab0
----
11
29
8
query I rowsort
SELECT ALL - tab1.col0 + - ( col0 ) AS col2 FROM tab1
----
-128
-160
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4742
SELECT col2 - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4742
SELECT col2 - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * col0 + - 4 FROM tab2
----
-1347
-221
-4606
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 92 * col0 col0 FROM tab2
----
637
7098
7189
query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab1, tab2 cor0
----
70
query I rowsort
SELECT col0 * + 31 + + col2 FROM tab0
----
1086
2841
777
query I rowsort
SELECT + col1 * 50 * 52 + col1 * - cor0.col2 FROM tab2 AS cor0
----
151866
43554
79763
query I rowsort
SELECT ALL + - cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - + col0 + 33 + col0 FROM tab1 AS cor0
----
33
33
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4750
SELECT ALL + col0 * CAST( cor0.col2 AS SIGNED ) * - col2 AS col0 FROM tab1 cor0
----
-207936
-737280
-8748
skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + col0 * CAST ( cor0.col2 AS INTEGER ) * - col2 AS col0 FROM tab1 cor0
----
-207936
-737280
-8748
query I rowsort
SELECT col2 * + 52 + + ( col2 ) * 6 AS col2 FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT ALL ( + col0 ) AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL 2 * - 27 AS col2 FROM tab2
----
-54
-54
-54
query I rowsort
SELECT ALL col2 * 16 AS col0 FROM tab1
----
1536
864
912
query I rowsort
SELECT ALL ( tab1.col0 * col0 ) FROM tab1
----
4096
6400
9
query I rowsort
SELECT - ( + col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT cor1.col0 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + 78 + col2 + + col2 * + col0 FROM tab2 AS cor0
----
2132
294
3118
onlyif mysql # use DIV operator for integer division
query I rowsort label-4760
SELECT DISTINCT + 13 DIV - cor0.col0 FROM tab1 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + 13 / - cor0.col0 FROM tab1 AS cor0
----
-4
0
query I rowsort
SELECT + col0 * - cor0.col1 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT + cor0.col0 * + col2 * - 70 FROM tab2 AS cor0
----
-13230
-141960
-210140
query I rowsort
SELECT - col2 + col0 + + 94 FROM tab2 cor0
----
135
146
74
query I rowsort
SELECT - cor0.col1 - - col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - + 44 FROM tab1 cor0
----
-44
-44
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-4766
SELECT ALL - col1 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL - col1 / cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL + + 77 + + col0 FROM tab1 AS cor0
----
141
157
80
query I rowsort
SELECT ALL + 92 * - cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
3220
671416
72864
query I rowsort
SELECT ALL + - col2 * col0 - cor0.col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT ( - col2 ) * + 33 * col2 FROM tab2 AS cor0
----
-22308
-24057
-47652
query I rowsort
SELECT + col0 + - 34 + + 71 FROM tab0 cor0
----
126
61
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-4772
SELECT - col2 DIV 4 - - col2 FROM tab2 AS cor0
----
20
21
29
skipif mysql # not compatible
query I rowsort label-4772
SELECT - col2 / 4 - - col2 FROM tab2 AS cor0
----
20
21
29
query I rowsort
SELECT ALL 10 - tab1.col1 AS col0 FROM tab1
----
-16
-3
0
query I rowsort
SELECT DISTINCT - col2 + + col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4775
SELECT ALL col2 * CAST( NULL AS SIGNED ) + 98 / col2 + ( col0 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL col2 * CAST ( NULL AS INTEGER ) + 98 / col2 + ( col0 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * 19 + - col1 * - col2 * ( col1 ) FROM tab2 AS cor0
----
11704
26460
91000
query I rowsort
SELECT ALL + - col2 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT + - col2 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL - + cor0.col2 + col1 * - col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT tab1.col1 - tab1.col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL 51 - + col2 AS col2 FROM tab0
----
-31
18
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-4782
SELECT DISTINCT + + col2 DIV + col0 + - cor0.col1 FROM tab0 AS cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT + + col2 / + col0 + - cor0.col1 FROM tab0 AS cor0
----
-85
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col0 ) + col2 + - ( ( - col1 ) ) col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL 58 + - 22 * - col2 FROM tab0 AS cor0
----
1862
784
80
query I rowsort
SELECT DISTINCT - - cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + - 83 + + col1 AS col0 FROM tab2 AS cor0
----
-24
-52
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + 95 FROM tab0 cor0
----
95
95
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4789
SELECT DISTINCT + col1 + + 6 DIV col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT + col1 + + 6 / col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col0 - col0 * + col2 AS col1 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab2, tab0 AS cor0
----
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT ALL - ( - cor0.col2 ) DIV col2 + col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - ( - cor0.col2 ) / col2 + col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT ( col0 ) * col1 - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT ALL - - 73 - - 20 DIV + col1 FROM tab2 AS cor0
----
73
73
74
skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL - - 73 - - 20 / + col1 FROM tab2 AS cor0
----
73
73
74
query I rowsort
SELECT ALL - 12 AS col1 FROM tab1 cor0
----
-12
-12
-12
query I rowsort
SELECT + - col0 + 97 AS col2 FROM tab0 AS cor0
----
62
73
8
query I rowsort
SELECT DISTINCT - ( - col1 ) * col0 * + 83 + + col0 AS col2 FROM tab2 AS cor0
----
111548
18018
382044
query I rowsort
SELECT 24 - 62 FROM tab0, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT DISTINCT + col1 + + 40 * cor0.col1 FROM tab2 AS cor0
----
1271
2419
697
query I rowsort
SELECT ALL col2 + - 79 AS col2 FROM tab2 AS cor0
----
-41
-52
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-4801
SELECT ALL + col2 * + cor0.col0 + col2 DIV col0 + + 47 AS col0 FROM tab2 AS cor0
----
2075
239
3049
skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + col2 * + cor0.col0 + col2 / col0 + + 47 AS col0 FROM tab2 AS cor0
----
2075
239
3049
query I rowsort
SELECT DISTINCT col0 * 45 AS col0 FROM tab0
----
1080
1575
4005
query I rowsort
SELECT - cor0.col0 * 59 + col0 * cor0.col1 FROM tab2 AS cor0
----
-196
-3318
0
query I rowsort
SELECT - col1 + + 22 * col0 - - cor0.col0 FROM tab2 AS cor0
----
130
1735
1800
query I rowsort
SELECT - - cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4806
SELECT - CAST( NULL AS SIGNED ) * 47 - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4806
SELECT - CAST ( NULL AS INTEGER ) * 47 - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col1 * ( col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4808
SELECT DISTINCT col0 DIV tab1.col2 AS col0 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT col0 / tab1.col2 AS col0 FROM tab1
----
0
1
query I rowsort
SELECT DISTINCT + + ( col0 ) + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT col1 * 8 - col2 AS col0 FROM tab0 AS cor0
----
646
655
775
query I rowsort
SELECT ALL + 73 + - cor0.col2 FROM tab2 AS cor0
----
35
46
47
query I rowsort
SELECT ( - col1 ) * col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4813
SELECT + CAST( NULL AS DECIMAL ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4813
SELECT + CAST ( NULL AS REAL ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 73 AS col0 FROM tab1 AS cor0
----
-73
-73
-73
query I rowsort
SELECT + col1 + ( col0 ) * cor0.col2 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-4816
SELECT ALL cor0.col2 DIV col0 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL cor0.col2 / col0 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT ALL - + 31 * col0 AS col2 FROM tab0 AS cor0
----
-1085
-2759
-744
query I rowsort
SELECT - col1 * col0 + + col2 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT ( cor0.col2 ) * col1 + - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT + - 41 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-14
-15
-3
query I rowsort
SELECT - 57 + + col2 AS col2 FROM tab1 AS cor0
----
-3
0
39
query I rowsort
SELECT ALL 42 * - col0 AS col0 FROM tab1 AS cor0
----
-126
-2688
-3360
query I rowsort
SELECT - 7 + col0 FROM tab0 cor0
----
17
28
82
query I rowsort
SELECT ALL - ( + col2 ) + + col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 * - ( 72 ) FROM tab1 AS cor0
----
-3888
-4104
-6912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + col0 + - ( + col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL tab1.col1 * col2 AS col0 FROM tab1
----
1248
1404
570
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 93e5b836e3f52f458344e73ebce589b5
query I rowsort
SELECT + cor0.col2 * - ( - ( col2 ) ) AS col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT - col0 * 20 AS col0 FROM tab2 AS cor0
----
-140
-1560
-1580
query I rowsort
SELECT - col0 + + ( - cor0.col2 + col1 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
1725
61
649
query I rowsort
SELECT ALL col2 + ( col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4836
SELECT DISTINCT col2 * CAST( col0 AS SIGNED ) + cor0.col1 FROM tab2 cor0
----
2087
220
3019
skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT col2 * CAST ( col0 AS INTEGER ) + cor0.col1 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT - col0 + 21 AS col1 FROM tab0 AS cor0
----
-14
-3
-68
query I rowsort
SELECT - 19 * col1 + - col0 * - 74 * col0 FROM tab1
----
172
302914
473353
query I rowsort
SELECT + col1 * 30 + cor0.col0 * col2 FROM tab0 AS cor0
----
10028
2945
3372
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4840
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) + - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4840
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) + - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4841
SELECT ALL col1 * + col2 * col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL col1 * + col2 * col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4842
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col2 / + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col2 / + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ( - 66 ) * col2 FROM tab2 AS cor0
----
-1716
-1782
-2508
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 43 ) col1 FROM tab1 AS cor0
----
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 * - col0 col0 FROM tab2 AS cor0
----
490
5460
5530
onlyif mysql # use DIV operator for integer division
query I rowsort label-4846
SELECT DISTINCT col0 DIV + 81 - + col0 * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT col0 / + 81 - + col0 * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col2 * + ( - col2 ) + col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT - 0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 95 col2 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 6ddacf7cdc440b47c37bfd544945f3f8
query I rowsort
SELECT ( + col1 + col0 ) * col0 FROM tab0
----
16020
2640
4620
query I rowsort
SELECT ALL col1 + + col0 * + tab2.col1 * ( col0 ) AS col0 FROM tab2
----
106114
1550
359015
query I rowsort
SELECT 89 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT + ( cor0.col1 ) * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4854
SELECT - col0 * col1 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4854
SELECT - col0 * col1 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 52 * ( cor0.col0 ) FROM tab0 AS cor0
----
-1248
-1820
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 33 ) col2 FROM tab2 AS cor0
----
-33
-33
-33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4857
SELECT ALL CAST( 10 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
10
10
10
skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL CAST ( 10 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
10
10
10
query I rowsort
SELECT DISTINCT + - 95 * + col1 AS col0 FROM tab2 AS cor0
----
-1615
-2945
-5605
onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT ALL - col0 + 21 DIV col2 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - col0 + 21 / col2 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4860
SELECT ALL + 11 DIV + col2 - col1 FROM tab0
----
-86
-86
-91
skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL + 11 / + col2 - col1 FROM tab0
----
-86
-86
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT DISTINCT + col0 + col2 * col1 DIV + col1 col2 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + col0 + col2 * col1 / + col1 col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4862
SELECT CAST( col0 AS SIGNED ) * cor0.col1 col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4862
SELECT CAST ( col0 AS INTEGER ) * cor0.col1 col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4863
SELECT + col2 DIV + col1 col0 FROM tab2
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4863
SELECT + col2 / + col1 col0 FROM tab2
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 64 * col0 * col0 + + 46 col1 FROM tab1
----
-262034
-409474
-527
query I rowsort
SELECT + 65 * + col2 FROM tab0
----
2145
5330
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-4866
SELECT + col0 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4866
SELECT + col0 / cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - 21 + col1 FROM tab1
----
-11
-8
5
query I rowsort
SELECT 96 - col2 AS col1 FROM tab1
----
0
39
42
query I rowsort
SELECT - col0 * col1 + col2 * col2 FROM tab1
----
2609
2838
8176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * - 30 col0 FROM tab1 cor0
----
-1856
-2320
-87
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to d5761ba4e40f0c65536d1d3c9de4e566
onlyif mysql # use DIV operator for integer division
query I rowsort label-4872
SELECT - col1 DIV col1 AS col1 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4872
SELECT - col1 / col1 AS col1 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT col0 * + ( + col0 ) FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col0 + col1 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL - + cor0.col1 * 85 AS col0 FROM tab1 AS cor0
----
-1105
-2210
-850
query I rowsort
SELECT - cor0.col2 * col2 * col2 FROM tab0 cor0
----
-1
-35937
-551368
query I rowsort
SELECT - - cor0.col0 * 2 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + col0 * + 34 * col0 FROM tab0 AS cor0
----
19584
269314
41650
query I rowsort
SELECT ALL col2 * ( - tab1.col1 * - col0 ) FROM tab1
----
36480
4212
99840
query I rowsort
SELECT + 34 FROM tab1, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT DISTINCT + col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col1 + + col0 * col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - col0 * + 52 + 24 FROM tab2 AS cor0
----
-340
-4032
-4084
onlyif mysql # use DIV operator for integer division
query I rowsort label-4884
SELECT ALL - col2 * cor0.col2 + col1 * col2 DIV - 53 + + 54 AS col2 FROM tab1 AS cor0
----
-2888
-3205
-9185
skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - col2 * cor0.col2 + col1 * col2 / - 53 + + 54 AS col2 FROM tab1 AS cor0
----
-2888
-3205
-9185
query I rowsort
SELECT + - cor0.col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * - 22 FROM tab1 AS cor0
----
-1188
-1254
-2112
query I rowsort
SELECT - + cor0.col2 * col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - 85 FROM tab1 AS cor0
----
-85
-85
-85
query I rowsort
SELECT DISTINCT - col2 * - 54 FROM tab0 AS cor0
----
1782
4428
54
query I rowsort
SELECT ALL col1 * - col0 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT cor0.col0 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4893
SELECT DISTINCT col2 DIV 18 FROM tab1 AS cor0
----
3
5
skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT col2 / 18 FROM tab1 AS cor0
----
3
5
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col2 AS REAL ) * col2 + + col2 FROM tab1 cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - ( + 12 ) + + col1 FROM tab0 AS cor0
----
74
79
85
query I rowsort
SELECT ALL + col1 * col2 * - tab0.col2 AS col1 FROM tab0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4897
SELECT - col1 DIV tab1.col1 - - col1 * tab1.col2 AS col0 FROM tab1
----
1247
1403
569
skipif mysql # not compatible
query I rowsort label-4897
SELECT - col1 / tab1.col1 - - col1 * tab1.col2 AS col0 FROM tab1
----
1247
1403
569
query I rowsort
SELECT + col1 - - col0 * - col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT col1 + - ( + tab1.col1 ) * col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT 66 * + col2 AS col1 FROM tab1 AS cor0
----
3564
3762
6336
onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT 74 DIV + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4901
SELECT 74 / + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT col2 * ( col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col1 * col0 + cor0.col2 * + col2 FROM tab0 AS cor0
----
14823
3153
3396
query I rowsort
SELECT ALL - ( col2 ) + col0 * + col0 FROM tab0 AS cor0
----
1224
543
7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - - col1 col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - + col0 * cor0.col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT + col1 * + col1 + + ( col1 ) * + col0 AS col2 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT DISTINCT + - ( col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + col0 + col2 * + cor0.col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + - col0 + + cor0.col1 * ( - col1 ) FROM tab2 cor0
----
-3559
-368
-968
query I rowsort
SELECT - + ( + col2 ) * + col2 + - 99 FROM tab1 AS cor0
----
-3015
-3348
-9315
query I rowsort
SELECT ALL - 96 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-3168
-7872
-96
query I rowsort
SELECT DISTINCT - - 99 * + col2 * col0 + col0 + col2 * - 50 AS col0 FROM tab1 AS cor0
----
13341
358366
755600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col0 col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT - col1 * + col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4916
SELECT CAST( - col0 AS SIGNED ) * + col1 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-4916
SELECT CAST ( - col0 AS INTEGER ) * + col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT ALL ( cor0.col0 ) DIV col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL ( cor0.col0 ) / col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col1 * col0 * col2 + col0 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT DISTINCT + col1 * - col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + 24 + col0 * + col1 FROM tab2 AS cor0
----
1367
241
4626
query I rowsort
SELECT ALL - 2 * col0 - cor0.col0 * cor0.col2 AS col1 FROM tab2 cor0
----
-203
-2184
-3160
query I rowsort
SELECT - - col1 + - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + - col2 * - col2 * 13 + col2 AS col0 FROM tab0 AS cor0
----
14
14190
87494
query I rowsort
SELECT ALL + 39 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT DISTINCT col0 * ( col0 * col1 ) + 21 FROM tab2 cor0
----
106118
1540
358977
query I rowsort
SELECT + - cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4927
SELECT + col2 * + cor0.col0 + 93 DIV + col2 FROM tab1 AS cor0
----
163
3649
7680
skipif mysql # not compatible
query I rowsort label-4927
SELECT + col2 * + cor0.col0 + 93 / + col2 FROM tab1 AS cor0
----
163
3649
7680
query I rowsort
SELECT ALL - - cor0.col1 + col2 * col2 + - col2 AS col0 FROM tab0 AS cor0
----
1142
6733
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4929
SELECT ALL - col1 DIV - ( + col2 ) AS col2 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - col1 / - ( + col2 ) AS col2 FROM tab0 cor0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4930
SELECT DISTINCT + - col0 - + ( - col2 ) DIV - col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT + - col0 - + ( - col2 ) / - col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 + tab0.col1 col0 FROM tab0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 - + col1 col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT + 6 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT ALL 45 * + col2 + col2 AS col0 FROM tab0
----
1518
3772
46
query I rowsort
SELECT + tab2.col1 * tab2.col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - 23 * 29 FROM tab1
----
-667
onlyif mysql # use DIV operator for integer division
query I rowsort label-4937
SELECT - cor0.col1 * col1 DIV + ( col2 ) AS col0 FROM tab1 AS cor0
----
-1
-1
-12
skipif mysql # not compatible
query I rowsort label-4937
SELECT - cor0.col1 * col1 / + ( col2 ) AS col0 FROM tab1 AS cor0
----
-1
-1
-12
query I rowsort
SELECT ALL - 97 * - col0 * col2 FROM tab1
----
15714
353856
744960
query I rowsort
SELECT + - 22 FROM tab2 cor0
----
-22
-22
-22
query I rowsort
SELECT DISTINCT + + col1 * col2 + 10 AS col1 FROM tab2 AS cor0
----
1544
656
847
query I rowsort
SELECT ALL - + 32 - + col2 AS col1 FROM tab0 AS cor0
----
-114
-33
-65
query I rowsort
SELECT + 32 * 22 FROM tab2, tab0 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 1f22338ca0e9e8d0ec0b543f7de059c7
query I rowsort
SELECT + 24 FROM tab1, tab0 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4946
SELECT DISTINCT + - cor0.col1 * + cor0.col2 + + col1 DIV - col2 + + col0 * + col0 FROM tab1 AS cor0
----
-1395
3526
5152
skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT + - cor0.col1 * + cor0.col2 + + col1 / - col2 + + col0 * + col0 FROM tab1 AS cor0
----
-1395
3526
5152
query I rowsort
SELECT + col2 * + col1 + col1 - col0 FROM tab1 AS cor0
----
1181
1427
516
query I rowsort
SELECT - col0 * col0 - - cor0.col0 AS col2 FROM tab0 cor0
----
-1190
-552
-7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4949
SELECT DISTINCT + col0 * + CAST( col2 AS SIGNED ) + col0 FROM tab1 cor0
----
165
3712
7760
skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT + col0 * + CAST ( col2 AS INTEGER ) + col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT - - cor0.col2 * - cor0.col1 + 10 FROM tab2 AS cor0
----
-1524
-636
-827
onlyif mysql # use DIV operator for integer division
query I rowsort label-4951
SELECT col0 DIV cor0.col2 + + 84 * col0 FROM tab1 AS cor0
----
252
5377
6720
skipif mysql # not compatible
query I rowsort label-4951
SELECT col0 / cor0.col2 + + 84 * col0 FROM tab1 AS cor0
----
252
5377
6720
query I rowsort
SELECT + 34 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT DISTINCT + col0 + col0 * col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT col2 + ( 4 ) FROM tab0 cor0
----
37
5
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4955
SELECT - CAST( NULL AS SIGNED ) * + 49 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4955
SELECT - CAST ( NULL AS INTEGER ) * + 49 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4956
SELECT + CAST( - 10 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-10
-10
skipif mysql # not compatible
query I rowsort label-4956
SELECT + CAST ( - 10 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-10
-10
query I rowsort
SELECT - - ( 87 ) AS col0 FROM tab1 AS cor0
----
87
87
87
query I rowsort
SELECT ALL - ( + col0 ) * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4959
SELECT ALL col1 + - col2 * tab1.col1 * col0 + + ( + tab1.col2 ) DIV - col2 AS col1 FROM tab1
----
-36471
-4187
-99828
skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL col1 + - col2 * tab1.col1 * col0 + + ( + tab1.col2 ) / - col2 AS col1 FROM tab1
----
-36471
-4187
-99828
query I rowsort
SELECT + col2 + col2 + col2 AS col2 FROM tab1 cor0
----
162
171
288
query I rowsort
SELECT - + 0 * col0 + col1 AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT CAST( + 84 AS SIGNED ) DIV cor0.col0 + col2 FROM tab0 cor0
----
3
36
82
skipif mysql # not compatible
query I rowsort label-4962
SELECT CAST ( + 84 AS INTEGER ) / cor0.col0 + col2 FROM tab0 cor0
----
3
36
82
query I rowsort
SELECT - col1 * - ( col1 ) + 19 FROM tab0 cor0
----
7415
8300
9428
query I rowsort
SELECT - + 63 + col1 AS col0 FROM tab0 AS cor0
----
23
28
34
query I rowsort
SELECT DISTINCT + + cor0.col0 * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - col2 * col1 + - col2 * - col1 * cor0.col1 FROM tab2 cor0
----
10336
25110
88972
query I rowsort
SELECT - + 74 AS col1 FROM tab1 AS cor0
----
-74
-74
-74
query I rowsort
SELECT cor0.col1 * col0 * 29 + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
18624
2265
30240
query I rowsort
SELECT + ( col2 ) * col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL 48 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ( - tab0.col0 ) AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + 45 AS col0 FROM tab0
----
45
45
45
query I rowsort
SELECT col0 * + 12 FROM tab1 AS cor0
----
36
768
960
query I rowsort
SELECT DISTINCT - col0 * - col1 + - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT + cor0.col0 * ( - col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + ( + col0 ) AS col1 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT - col1 DIV ( col1 ) AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4978
SELECT - col1 / ( col1 ) AS col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT - 38 - col2 * - col0 FROM tab0 AS cor0
----
-3
7260
754
query I rowsort
SELECT - cor0.col1 + 68 AS col1 FROM tab1 AS cor0
----
42
55
58
query I rowsort
SELECT 9 + 75 FROM tab2, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT - tab0.col2 * - tab0.col1 AS col1 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT + col0 DIV col1 AS col2 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4983
SELECT + col0 / col1 AS col2 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT ALL + - ( col2 ) + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 22 AS col2 FROM tab2 AS cor0
----
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 * col1 col0 FROM tab1 cor0
----
-1053
-2106
-810
query I rowsort
SELECT DISTINCT + col2 * - col0 * + col2 + cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
-207869
-737171
-8668
query I rowsort
SELECT ALL col2 * + col1 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT 34 + - col1 + col1 * + cor0.col2 FROM tab1 AS cor0
----
1269
1412
594
query I rowsort
SELECT DISTINCT + 97 * + col1 * col2 FROM tab2 AS cor0
----
148798
62662
81189
query I rowsort
SELECT ALL + 85 + col0 AS col0 FROM tab0 AS cor0
----
109
120
174
onlyif mysql # use DIV operator for integer division
query I rowsort label-4992
SELECT DISTINCT col0 + col1 DIV - col2 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT col0 + col1 / - col2 FROM tab0 AS cor0
----
-62
22
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT col2 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-4993
SELECT col2 / cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT ALL 28 * tab2.col1 AS col1 FROM tab2
----
1652
476
868
query I rowsort
SELECT 77 + col1 FROM tab1
----
103
87
90
query I rowsort
SELECT col1 + 0 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - ( + col1 ) * - col0 * - col1 FROM tab0 cor0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4998
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4999
SELECT ALL - - CAST( + 42 AS SIGNED ) + - col0 FROM tab0 cor0
----
-47
18
7
skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL - - CAST ( + 42 AS INTEGER ) + - col0 FROM tab0 cor0
----
-47
18
7
query I rowsort
SELECT - 59 FROM tab2, tab2 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + ( col2 ) + tab1.col2 AS col1 FROM tab1
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5004
SELECT CAST( + col0 AS SIGNED ) + col1 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-5004
SELECT CAST ( + col0 AS INTEGER ) + col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT tab0.col1 * tab0.col2 + col0 AS col2 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL ( - 39 * - col1 ) FROM tab1
----
1014
390
507
query I rowsort
SELECT 68 FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT - col0 + + col1 * col1 + col1 AS col0 FROM tab1
----
102
46
699
query I rowsort
SELECT DISTINCT ( + tab2.col0 ) + + tab2.col1 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT + 71 - - col2 AS col0 FROM tab1
----
125
128
167
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 60 * col1 col2 FROM tab2
----
-1853
-3462
-941
query I rowsort
SELECT col0 * col1 * - col2 + + col2 FROM tab1 cor0
----
-36423
-4158
-99744
query I rowsort
SELECT DISTINCT + col2 + col2 + col1 * col2 AS col2 FROM tab2
----
1586
722
891
query I rowsort
SELECT col1 * + col0 * col0 AS col2 FROM tab1
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT ALL + col0 DIV - tab0.col0 + + col1 * + tab0.col2 * - col2 AS col1 FROM tab0
----
-611885
-93655
-98
skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + col0 / - tab0.col0 + + col1 * + tab0.col2 * - col2 AS col1 FROM tab0
----
-611885
-93655
-98
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > ( col2 + col1 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col0 * + col1 * + col2 + - col0
----
query I rowsort
SELECT col0 * - col1 + col0 * col0 - tab0.col1 * col1 FROM tab0
----
-11579
-8459
-8884
query I rowsort
SELECT ALL - col2 + + col0 * col2 * tab0.col2 FROM tab0
----
26103
34
598354
query I rowsort
SELECT ALL col1 + col2 * tab1.col2 AS col1 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT ALL tab0.col0 + + col2 AS col0 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 + - col0 col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT + tab1.col1 + + col2 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT col2 + + col2 * col0 + + col2 FROM tab2 WHERE NULL IN ( - tab2.col2 )
----
query I rowsort
SELECT DISTINCT tab1.col2 * + tab1.col0 + col1 AS col0 FROM tab1
----
188
3658
7693
query I rowsort
SELECT col1 * + tab0.col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - cor0.col1 + col0 AS col0 FROM tab2 cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT DISTINCT col2 DIV col2 - - col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT col2 / col2 - - col1 FROM tab1 AS cor0
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT + col2 + col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5029
SELECT + col2 + col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * col1 col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT - col0 + + tab0.col0 * tab0.col0 - col0 FROM tab0
----
1155
528
7743
query I rowsort
SELECT ALL - col1 + + tab2.col0 * + col0 * + tab2.col0 - col1 AS col1 FROM tab2
----
281
474434
493005
query I rowsort
SELECT ALL + col1 - tab0.col2 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5035
SELECT - col1 DIV - col0 AS col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5035
SELECT - col1 / - col0 AS col0 FROM tab2
----
0
0
4
query I rowsort
SELECT col1 * col1 * col0 AS col1 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-5037
SELECT ALL col2 - + col1 * - col0 DIV - col0 AS col1 FROM tab2
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL col2 - + col1 * - col0 / - col0 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL - col2 * cor0.col2 + + col0 * + col2 FROM tab0 AS cor0
----
-297
34
574
query I rowsort
SELECT ALL + col0 * col2 + - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT col0 + + col1 + - col2 FROM tab1
----
-25
-3
17
query I rowsort
SELECT + col0 * col0 + col1 * - col2 FROM tab2 AS cor0
----
-788
4550
5595
query I rowsort
SELECT ALL col2 + col2 * + col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT col2 * col1 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - cor0.col2 * + col2 * + col0 + + col2 FROM tab2 AS cor0
----
-114038
-5076
-52702
query I rowsort
SELECT DISTINCT col0 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - col0 * + tab2.col2 * - col2 - col1 * - col0 * + col0 FROM tab2
----
220173
411684
6622
query I rowsort
SELECT col2 * cor0.col1 + + col0 + - col1 AS col0 FROM tab2 AS cor0
----
1553
708
813
onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT ALL - col1 DIV col0 - - col2 AS col0 FROM tab0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL - col1 / col0 - - col2 AS col0 FROM tab0
----
-1
30
81
query I rowsort
SELECT ALL + col1 + - col1 - + col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - col2 + col2 * col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT + + col0 * - cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT cor0.col0 * + col1 - + col1 FROM tab2 AS cor0
----
1326
186
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 + col2 col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5054
SELECT ALL - + col0 * CAST( + col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL - + col0 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col0 + ( + col1 ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT col2 * - col2 + - col2 FROM tab2 AS cor0
----
-1482
-702
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-5058
SELECT - - col0 * - col2 DIV col2 + - ( col0 ) FROM tab1 AS cor0
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-5058
SELECT - - col0 * - col2 / col2 + - ( col0 ) FROM tab1 AS cor0
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 + 22 col0 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT + col1 + + col0 * cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
119711
51051
5890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - cor1.col0 + - tab2.col0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-14
-156
-157
-158
-85
-86
query I rowsort
SELECT + + col0 * - col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + - col1 * + col2 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ( - col0 ) - - col2 AS col1 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT - + col1 * col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL col0 * 65 AS col2 FROM tab0
----
1560
2275
5785
query I rowsort
SELECT + 74 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT DISTINCT col2 * - col2 * col1 AS col2 FROM tab2
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col1 + - ( - col0 + col1 ) * - 11 col0 FROM tab0 AS cor0
----
-6714
-8259
-8727
onlyif mysql # use DIV operator for integer division
query I rowsort label-5071
SELECT 11 DIV col0 + - CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
57
57
96
skipif mysql # not compatible
query I rowsort label-5071
SELECT 11 / col0 + - CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
57
57
96
query I rowsort
SELECT ALL + col2 + cor0.col0 * col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL 61 + col1 - - col2 AS col0 FROM tab1 AS cor0
----
128
141
170
query I rowsort
SELECT DISTINCT - + 11 AS col1 FROM tab0 AS cor0
----
-11
query I rowsort
SELECT - col1 - col0 * - ( col2 ) * col2 FROM tab1 AS cor0
----
207926
737267
8722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5076
SELECT + col0 * - cor0.col1 + CAST( NULL AS SIGNED ) * - cor0.col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5076
SELECT + col0 * - cor0.col1 + CAST ( NULL AS INTEGER ) * - cor0.col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 58 - col2 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
-207994
-737338
-8806
query I rowsort
SELECT ALL - tab1.col2 * + col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5079
SELECT DISTINCT + - cor0.col1 DIV - col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT + - cor0.col1 / - col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL + - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT tab2.col2 + - col1 * ( col1 ) + + col1 * - col0 * tab2.col2 FROM tab2
----
-123107
-51285
-6793
query I rowsort
SELECT + col0 * 71 FROM tab0 cor0
----
1704
2485
6319
query I rowsort
SELECT ALL - - cor0.col0 * - ( cor0.col0 ) FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL col0 * ( + col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT col2 - + col2 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - cor0.col1 + + col0 AS col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL col0 * 41 * col1 FROM tab2
----
188682
55063
8897
query I rowsort
SELECT + 84 + - col0 * + col1 FROM tab2 cor0
----
-1259
-133
-4518
query I rowsort
SELECT + ( + col0 ) * + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ( + col1 ) + + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + ( col1 ) * col2 * 1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 91 * + col0 FROM tab1 AS cor0
----
273
5824
7280
query I rowsort
SELECT ( col0 ) * 56 AS col0 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT col0 * col1 * 41 FROM tab2 cor0
----
188682
55063
8897
query I rowsort
SELECT + 90 * - col2 FROM tab1 AS cor0
----
-4860
-5130
-8640
query I rowsort
SELECT DISTINCT - col1 + col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT ALL + col0 + - ( + col2 ) AS col1 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT 67 + col0 DIV col1 FROM tab2 cor0
----
67
68
71
skipif mysql # not compatible
query I rowsort label-5098
SELECT 67 + col0 / col1 FROM tab2 cor0
----
67
68
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-5099
SELECT - CAST( ( col1 ) AS SIGNED ) DIV - 45 + col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-5099
SELECT - CAST ( ( col1 ) AS INTEGER ) / - 45 + col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 34 ) + col1 col1 FROM tab1 AS cor0
----
44
47
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5101
SELECT col0 * cor0.col2 DIV - col0 FROM tab2 cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-5101
SELECT col0 * cor0.col2 / - col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - + 83 * col0 FROM tab1 AS cor0
----
-249
-5312
-6640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + ( - col2 ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - col0 * col0 * ( col1 ) FROM tab1 cor0
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 67 * col2 col1 FROM tab0 AS cor0
----
2211
5494
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT + + col2 DIV - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5107
SELECT + + col2 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 73 * + cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d75a0089f7d4941774cf793a89e7b4db
query I rowsort
SELECT 7 AS col2 FROM tab2 cor0
----
7
7
7
query I rowsort
SELECT col0 + + ( col0 ) FROM tab0
----
178
48
70
query I rowsort
SELECT col0 + - 42 AS col0 FROM tab1 AS cor0
----
-39
22
38
skipif mysql # not compatible
query I rowsort
SELECT col0 * + CAST ( - col1 AS REAL ) + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT col1 * + 9 AS col0 FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT ALL + - col1 + + ( + col0 * - col1 ) AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT + col0 * 26 AS col2 FROM tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT DISTINCT 35 + col0 FROM tab1 cor0
----
115
38
99
query I rowsort
SELECT ALL col1 + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + 3 * 54 + + col0 FROM tab1 AS cor0
----
165
226
242
query I rowsort
SELECT - - 87 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
4695
4895
8272
query I rowsort
SELECT DISTINCT + ( 96 ) AS col2 FROM tab2 AS cor0
----
96
query I rowsort
SELECT DISTINCT col1 * + 54 + + col2 * - 99 + + col1 FROM tab0 AS cor0
----
-3113
1463
5236
query I rowsort
SELECT ALL 46 + + col2 AS col1 FROM tab0 AS cor0
----
128
47
79
query I rowsort
SELECT ( - col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT col0 + col2 * - col1 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL tab1.col2 - tab1.col1 FROM tab1
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5126
SELECT ALL + col2 * 87 DIV + col1 FROM tab1
----
180
495
642
skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + col2 * 87 / + col1 FROM tab1
----
180
495
642
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 40 AS REAL ) * col0 - 51 AS col1 FROM tab0 AS cor0
----
1349
3509
909
query I rowsort
SELECT cor0.col1 - ( - col1 + + col0 ) FROM tab2 cor0
----
-45
40
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-5131
SELECT DISTINCT - col0 DIV + ( + col2 ) FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT - col0 / + ( + col2 ) FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT - - 73 FROM tab0 cor0
----
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5133
SELECT + CAST( NULL AS SIGNED ) + - cor0.col1 col0 FROM tab1, 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-5133
SELECT + CAST ( NULL AS INTEGER ) + - cor0.col1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - tab0.col2 + - 41 * tab0.col0 + + tab0.col1 FROM tab0
----
-1339
-3640
-931
query I rowsort
SELECT col0 - - ( - 37 * col0 ) FROM tab1
----
-108
-2304
-2880
query I rowsort
SELECT + - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5137
SELECT col0 DIV + col1 - - tab0.col2 * + CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-5137
SELECT col0 / + col1 - - tab0.col2 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT + ( + col0 ) * col1 + 1 FROM tab1
----
1041
641
79
query I rowsort
SELECT ( col1 ) * tab1.col2 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 25 col0 FROM tab0
----
2225
600
875
query I rowsort
SELECT DISTINCT col1 + + col1 * + col1 * 43 FROM tab2
----
12444
149742
41354
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5142
SELECT DISTINCT CAST( 89 AS SIGNED ) + col1 FROM tab2
----
106
120
148
skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT CAST ( 89 AS INTEGER ) + col1 FROM tab2
----
106
120
148
query I rowsort
SELECT ALL + 66 FROM tab0, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT ( - col1 ) * + col0 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT 63 - + col2 AS col1 FROM tab0
----
-19
30
62
query I rowsort
SELECT - 2 - col0 FROM tab2
----
-80
-81
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5147
SELECT col1 DIV col0 - + tab0.col2 FROM tab0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-5147
SELECT col1 / col0 - + tab0.col2 FROM tab0
----
-30
-81
1
query I rowsort
SELECT ALL + + col1 * col1 + col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + col1 AS col1 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5150
SELECT - + col1 * CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5150
SELECT - + col1 * CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * - tab1.col2 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT DISTINCT + col0 DIV CAST( ( col2 ) AS SIGNED ) + - ( - 38 ) * - cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
-107844
-283555
-3651
skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT + col0 / CAST ( ( col2 ) AS INTEGER ) + - ( - 38 ) * - cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
-107844
-283555
-3651
query I rowsort
SELECT ALL cor0.col0 * - 23 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e9624cdc45488e38bd1d49c31ef0f48b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5154
SELECT ALL + col1 + + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL + col1 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col2 * ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col0 + - col1 * col1 FROM tab0 cor0
----
-7420
-8370
-9444
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL cor0.col1 * col0 + + 23 * + col0 FROM tab2 AS cor0
----
3160
378
6396
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5160
SELECT DISTINCT + - col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + - col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - + cor0.col2 - + ( + 86 * col2 + - col1 ) AS col0 FROM tab0 AS cor0
----
-2785
-7043
10
query I rowsort
SELECT ALL + col1 + cor0.col1 - + 26 FROM tab2 AS cor0
----
36
8
92
query I rowsort
SELECT ALL - - ( col1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT 40 * + col2 * - 63 AS col1 FROM tab2 AS cor0
----
-65520
-68040
-95760
query I rowsort
SELECT - 0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT - col1 - - ( col0 ) AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + + cor0.col0 + col0 + col1 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT - col1 + - col0 * - col0 AS col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT col0 + + col2 + 85 FROM tab2
----
119
189
202
onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT tab2.col2 * col2 DIV tab2.col1 AS col2 FROM tab2
----
11
23
84
skipif mysql # not compatible
query I rowsort label-5170
SELECT tab2.col2 * col2 / tab2.col1 AS col2 FROM tab2
----
11
23
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5171
SELECT DISTINCT + col2 + + col2 * CAST( col1 AS SIGNED ) FROM tab0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT + col2 + + col2 * CAST ( col1 AS INTEGER ) FROM tab0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 * col0 col1 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT DISTINCT + col0 + - col0 + 27 FROM tab1
----
27
query I rowsort
SELECT ALL + col1 + + col0 + 80 FROM tab2
----
118
176
217
query I rowsort
SELECT DISTINCT + 85 + + col0 AS col1 FROM tab0
----
109
120
174
query I rowsort
SELECT ALL col1 * col0 + tab2.col1 AS col1 FROM tab2
----
1360
248
4661
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col2 * - col2 + col0 / col0 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5178
SELECT ALL col2 + - col0 + + col1 DIV - col2 FROM tab1 WHERE NOT col1 IN ( col0 * col0 )
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL col2 + - col0 + + col1 / - col2 FROM tab1 WHERE NOT col1 IN ( col0 * col0 )
----
-7
16
51
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) <= + col1
----
query I rowsort
SELECT + col0 - + tab0.col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col0 + col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab0 WHERE NOT NULL < col1 + - col2
----
query I rowsort
SELECT + col1 + col0 * + tab2.col0 AS col1 FROM tab2
----
6143
6258
80
query I rowsort
SELECT ALL col2 * col2 + col2 AS col1 FROM tab0
----
1122
2
6806
query I rowsort
SELECT + tab0.col2 + tab0.col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL col2 * - col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN col2 + col1 + - col1 AND ( NULL )
----
query I rowsort
SELECT + col1 - col0 * tab0.col0 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT + tab2.col1 FROM tab2 WHERE NOT ( NULL ) = col2
----
query I rowsort
SELECT ALL + col0 + col1 * + col2 FROM tab2
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 WHERE + col1 > - col2
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5191
SELECT + col0 + tab1.col1 DIV + col0 AS col2 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-5191
SELECT + col0 + tab1.col1 / + col0 AS col2 FROM tab1
----
11
64
80
query I rowsort
SELECT + - 4 * cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
-2560
-312
-4160
query I rowsort
SELECT DISTINCT 53 * col0 * col0 AS col0 FROM tab0 AS cor0
----
30528
419813
64925
query I rowsort
SELECT DISTINCT col0 + - col0 * + ( - 27 ) AS col0 FROM tab0 AS cor0
----
2492
672
980
query I rowsort
SELECT col0 + col0 * ( col1 ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + 84 - col0 FROM tab1
----
20
4
81
query I rowsort
SELECT + + 2 + + 37 FROM tab0 AS cor0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5198
SELECT DISTINCT - col2 * + col1 DIV tab0.col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT - col2 * + col1 / tab0.col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT col1 * + ( col1 ) + cor0.col2 + + cor0.col1 * col2 AS col0 FROM tab2 cor0
----
1825
5041
973
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5200
SELECT ALL + col2 + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL + col2 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT col0 * - ( - col2 ) + + col1 + - col1 * col0 FROM tab1 AS cor0
----
110
3018
6653
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5202
SELECT - + cor0.col2 * - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-5202
SELECT - + cor0.col2 * - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL cor1.col1 * + 7 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to bd4bc079090fb6f8203684b8907cf223
query I rowsort
SELECT + col1 - - 71 * + col1 FROM tab0
----
6192
6552
6984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 49 * + col1 + + col0 * + 18 col1 FROM tab0 AS cor0
----
4646
5383
6061
query I rowsort
SELECT DISTINCT - col2 * + 98 AS col1 FROM tab0 cor0
----
-3234
-8036
-98
query I rowsort
SELECT - col2 * + col0 * + cor0.col2 + - col2 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
-171456
-4536
-637440
onlyif mysql # use DIV operator for integer division
query I rowsort label-5208
SELECT col0 + + cor0.col1 DIV 33 AS col0 FROM tab0 AS cor0
----
26
37
91
skipif mysql # not compatible
query I rowsort label-5208
SELECT col0 + + cor0.col1 / 33 AS col0 FROM tab0 AS cor0
----
26
37
91
query I rowsort
SELECT - col0 * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5210
SELECT col1 * - col1 - ( + col1 ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5210
SELECT col1 * - col1 - ( + col1 ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5211
SELECT ALL col2 + - ( - col0 ) DIV col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL col2 + - ( - col0 ) / col0 FROM tab2 AS cor0
----
27
28
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5212
SELECT DISTINCT col2 DIV col1 - - col0 AS col2 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT col2 / col1 - - col0 AS col2 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT DISTINCT - col1 - col1 DIV col0 col2 FROM tab1 AS cor0
----
-10
-13
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT - col1 - col1 / col0 col2 FROM tab1 AS cor0
----
-10
-13
-34
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 + col0 + - col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT ALL - col1 - + col0 DIV - 92 AS col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL - col1 - + col0 / - 92 AS col1 FROM tab0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5217
SELECT ALL ( col0 ) - CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL ( col0 ) - CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col0 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab1, tab2, tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5220
SELECT - ( col0 ) DIV ( 34 * col0 ) AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5220
SELECT - ( col0 ) / ( 34 * col0 ) AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 83 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT ALL col1 + + col2 * + col1 * - tab1.col0 AS col2 FROM tab1
----
-36470
-4186
-99827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col0 + col1 col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT col0 * - 12 * + col0 AS col2 FROM tab1 AS cor0
----
-108
-49152
-76800
onlyif mysql # use DIV operator for integer division
query I rowsort label-5225
SELECT ALL + cor0.col2 + - 27 DIV - ( col0 ) AS col1 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL + cor0.col2 + - 27 / - ( col0 ) AS col1 FROM tab2 AS cor0
----
26
30
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 40 + col2 col0 FROM tab1 AS cor0
----
174
2617
3296
query I rowsort
SELECT ALL + col2 - - 67 * + col2 AS col1 FROM tab1 AS cor0
----
3672
3876
6528
onlyif mysql # use DIV operator for integer division
query I rowsort label-5228
SELECT ALL + tab1.col0 DIV 27 + + tab1.col0 * + col2 FROM tab1
----
162
3650
7682
skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + tab1.col0 / 27 + + tab1.col0 * + col2 FROM tab1
----
162
3650
7682
query I rowsort
SELECT - - cor0.col1 * col2 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-4558
-819
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-5230
SELECT DISTINCT + - cor0.col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT + - cor0.col1 / col2 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5231
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + + col2 col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - cor0.col0 + - ( ( + col2 ) ) AS col1 FROM tab1 cor0
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) * + col2 + - 38 * - ( - col1 ) col0 FROM tab2 AS cor0
----
-23777
-25194
-42126
query I rowsort
SELECT - - 38 AS col0 FROM tab1 AS cor0
----
38
38
38
query I rowsort
SELECT - - 59 * + 36 AS col2 FROM tab0 AS cor0
----
2124
2124
2124
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5236
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col2 * ( col1 * + col2 ) FROM tab1
----
2079360
227448
9584640
skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col2 * ( col1 * + col2 ) FROM tab1
----
2079360
227448
9584640
onlyif mysql # use DIV operator for integer division
query I rowsort label-5237
SELECT ALL + - 85 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + - 85 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 56 * col1 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT ALL - cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + 73 + + col2 AS col0 FROM tab0
----
106
155
74
query I rowsort
SELECT col2 + - col2 * + 4 FROM tab0
----
-246
-3
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5242
SELECT DISTINCT - col1 + - col1 - + CAST( NULL AS SIGNED ) / + col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT - col1 + - col1 - + CAST ( NULL AS INTEGER ) / + col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT + col0 + + tab0.col2 * col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - tab1.col2 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT DISTINCT - 90 * + col0 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT ALL - col0 * + col2 + col2 + 82 FROM tab2 AS cor0
----
-1920
-2882
-80
query I rowsort
SELECT ALL - + ( + col2 ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - - cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT ( col0 ) * - cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - ( + cor0.col2 ) col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL - 25 FROM tab1, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT col1 + - ( 98 ) * col1 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT DISTINCT col1 * - 78 AS col1 FROM tab0 cor0
----
-6708
-7098
-7566
query I rowsort
SELECT ALL col0 * ( col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 86 * + ( + cor0.col2 ) + + cor0.col1 * ( col2 ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1458
-2584
-676
query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL 63 + - 26 + col0 FROM tab1 AS cor0
----
101
117
40
query I rowsort
SELECT ALL 55 + col1 FROM tab1 AS cor0
----
65
68
81
query I rowsort
SELECT + col2 - 14 AS col0 FROM tab2
----
12
13
24
query I rowsort
SELECT + ( 86 ) + - col0 AS col2 FROM tab2 cor0
----
7
79
8
query I rowsort
SELECT DISTINCT - + col2 * + 49 + col2 AS col0 FROM tab2 AS cor0
----
-1248
-1296
-1824
query I rowsort
SELECT ALL - - 45 + + 63 AS col2 FROM tab2 AS cor0
----
108
108
108
query I rowsort
SELECT DISTINCT col1 + col0 + cor0.col1 FROM tab1 cor0
----
106
55
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5264
SELECT ALL CAST( + col1 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL CAST ( + col1 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + - col1 + - 47 * + col1 AS col0 FROM tab2 AS cor0
----
-1488
-2832
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5266
SELECT + CAST( NULL AS SIGNED ) + + 84 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5266
SELECT + CAST ( NULL AS INTEGER ) + + 84 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 97 AS col2 FROM tab0 AS cor0
----
-97
-97
-97
query I rowsort
SELECT - ( + col0 ) + tab2.col1 * ( - col1 * - col1 ) AS col0 FROM tab2
----
205301
29784
4834
query I rowsort
SELECT ALL - 82 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT ALL + col1 * - ( - col0 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + 18 - tab2.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d2ada01f11d1137db90b436afab50c63
query I rowsort
SELECT 61 * - 28 AS col1 FROM tab1 AS cor0
----
-1708
-1708
-1708
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5277
SELECT ALL ( - col2 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5278
SELECT DISTINCT - + 58 DIV col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT - + 58 / col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - + ( col1 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT + + col2 DIV cor0.col0 + - 69 AS col2 FROM tab2 AS cor0
----
-66
-69
-69
skipif mysql # not compatible
query I rowsort label-5280
SELECT + + col2 / cor0.col0 + - 69 AS col2 FROM tab2 AS cor0
----
-66
-69
-69
query I rowsort
SELECT DISTINCT - ( + col0 ) * - cor0.col1 + + cor0.col2 * col2 FROM tab0 AS cor0
----
14823
3153
3396
onlyif mysql # use DIV operator for integer division
query I rowsort label-5282
SELECT col2 DIV - col0 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5282
SELECT col2 / - col0 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + + col1 + + 80 FROM tab1 AS cor0
----
106
90
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT tab2.col1 + col0 DIV col0 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-5284
SELECT tab2.col1 + col0 / col0 FROM tab2
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - cor0.col2 * + 70 FROM tab1 AS cor0
----
-3780
-3990
-6720
query I rowsort
SELECT - - col0 + - col1 * + ( col2 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-611795
-62
-93630
query I rowsort
SELECT + col0 + - col0 * 62 FROM tab2 AS cor0
----
-427
-4758
-4819
query I rowsort
SELECT DISTINCT + col2 * + 39 * - col0 + - col0 FROM tab1
----
-142336
-299600
-6321
query I rowsort
SELECT - col0 * - col0 - col1 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT + col2 + - col2 * + 2 AS col1 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT col0 DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5292
SELECT col0 / col0 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * CAST ( col1 * + col1 AS REAL ) + cor0.col2 FROM tab1 AS cor0
----
-17522
-2101
-943
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5294
SELECT - + col1 + CAST( + ( col1 ) + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5294
SELECT - + col1 + CAST ( + ( col1 ) + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col1 + 27 * col2 AS col1 FROM tab2 cor0
----
1009
643
698
onlyif mysql # use DIV operator for integer division
query I rowsort label-5296
SELECT DISTINCT + col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT + col2 / - col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT 69 * 5 AS col0 FROM tab2 AS cor0
----
345
query I rowsort
SELECT ALL col0 + 96 AS col1 FROM tab1 AS cor0
----
160
176
99
query I rowsort
SELECT + 74 * + ( col2 ) FROM tab0 AS cor0
----
2442
6068
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5300
SELECT ALL + - CAST( + col0 AS SIGNED ) * + col1 + ( + 69 ) FROM tab0 AS cor0
----
-1995
-3326
-8030
skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + - CAST ( + col0 AS INTEGER ) * + col1 + ( + 69 ) FROM tab0 AS cor0
----
-1995
-3326
-8030
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5301
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 21 FROM tab0 AS cor0
----
-21
-21
-21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5303
SELECT ALL + CAST( - ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL + CAST ( - ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - ( 11 ) * col2 AS col0 FROM tab0 AS cor0
----
-11
-363
-902
query I rowsort
SELECT ALL + - 28 FROM tab0 cor0
----
-28
-28
-28
query I rowsort
SELECT DISTINCT - ( col1 ) + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT + + ( - 85 ) DIV col0 col2 FROM tab0 AS cor0
----
-2
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5307
SELECT + + ( - 85 ) / col0 col2 FROM tab0 AS cor0
----
-2
-3
0
query I rowsort
SELECT DISTINCT col0 + 49 FROM tab0
----
138
73
84
query I rowsort
SELECT + + col2 * col0 + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5310
SELECT - col1 * col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5310
SELECT - col1 * col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 - - col2 col2 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT col2 * + col1 + col1 * col1 FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT ALL col0 + col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-5315
SELECT - cor0.col1 + + col1 * col2 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5315
SELECT - cor0.col1 + + col1 * col2 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 8 + tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to efb31cc56a16563d5a43f4397e89760d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 + col1 col2 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT col2 * - cor0.col2 + ( + col0 + col1 ) FROM tab2 AS cor0
----
-1348
-539
-691
query I rowsort
SELECT - tab1.col1 + - col0 + col2 AS col0 FROM tab1
----
-17
25
3
query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab0
----
6
query I rowsort
SELECT DISTINCT + col2 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT col2 * 66 + + col0 AS col2 FROM tab2 AS cor0
----
1789
1794
2587
query I rowsort
SELECT DISTINCT col0 + col1 * - 76 FROM tab1 AS cor0
----
-1973
-696
-908
query I rowsort
SELECT - 25 * tab2.col0 FROM tab2
----
-175
-1950
-1975
query I rowsort
SELECT + + 20 AS col0 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 * + col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT + 96 * col2 FROM tab0 cor0
----
3168
7872
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT ALL - cor0.col1 + - col0 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
-11
-13
-26
skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - cor0.col1 + - col0 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
-11
-13
-26
query I rowsort
SELECT - col1 * col1 - - col1 * col2 FROM tab1 cor0
----
1079
470
728
query I rowsort
SELECT ALL + ( 69 ) - - col2 FROM tab1 AS cor0
----
123
126
165
query I rowsort
SELECT DISTINCT + col1 + col0 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL + 92 - + 40 * + col2 FROM tab1 AS cor0
----
-2068
-2188
-3748
query I rowsort
SELECT ALL col0 + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + col0 * 63 AS col0 FROM tab1 cor0
----
189
4032
5040
onlyif mysql # use DIV operator for integer division
query I rowsort label-5335
SELECT DISTINCT - 35 + - col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-35
-36
-53
skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT - 35 + - col2 / + col0 AS col0 FROM tab1 AS cor0
----
-35
-36
-53
query I rowsort
SELECT ALL + col1 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL + col0 * - col0 + col2 + + 85 FROM tab1 AS cor0
----
-3954
-6219
130
query I rowsort
SELECT DISTINCT col1 * - col2 - + col1 AS col2 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT + col0 + + col0 * - col1 - - col0 FROM tab1
----
-512
-72
-880
query I rowsort
SELECT + 23 + - cor1.col2 FROM tab1, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 14cde1103535939161399e07b601e6df
query I rowsort
SELECT ALL - 23 AS col1 FROM tab0 AS cor0
----
-23
-23
-23
query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT 27 + + col2 AS col2 FROM tab2 AS cor0
----
53
54
65
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1
query I rowsort
SELECT ALL - col1 + col1 * + col2 AS col0 FROM tab0
----
0
2752
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( col1 ) col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT tab1.col0 + col0 * col2 + ( 83 ) * col1 AS col1 FROM tab1
----
2323
4542
8839
onlyif mysql # use DIV operator for integer division
query I rowsort label-5348
SELECT 1 * ( col2 ) DIV - col1 AS col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5348
SELECT 1 * ( col2 ) / - col1 AS col1 FROM tab1
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5349
SELECT DISTINCT + + col2 DIV + col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT + + col2 / + col0 FROM tab0 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 - + 60 * + col0 col1 FROM tab2 AS cor0
----
-371
1404
1501
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5351
SELECT ALL - + cor0.col2 * CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL - + cor0.col2 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5352
SELECT ALL col0 * - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab0, tab2 AS cor0
----
64
query I rowsort
SELECT DISTINCT col2 * 74 - + 40 * col1 FROM tab0 AS cor0
----
-3806
-998
2428
query I rowsort
SELECT ALL + + col2 + - 40 * col0 AS col1 FROM tab1 AS cor0
----
-2503
-3104
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5356
SELECT DISTINCT - + col1 DIV cor0.col2 - + col0 AS col1 FROM tab0 AS cor0
----
-132
-26
-90
skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT - + col1 / cor0.col2 - + col0 AS col1 FROM tab0 AS cor0
----
-132
-26
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5357
SELECT ALL CAST( NULL AS SIGNED ) / - cor0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL CAST ( NULL AS INTEGER ) / - cor0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + + col1 * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5359
SELECT - col0 * + CAST( col1 AS SIGNED ) + col2 FROM tab1 cor0
----
-24
-583
-944
skipif mysql # not compatible
query I rowsort label-5359
SELECT - col0 * + CAST ( col1 AS INTEGER ) + col2 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT ALL + col0 * 46 + + 95 AS col1 FROM tab0 cor0
----
1199
1705
4189
query I rowsort
SELECT cor0.col2 * 46 AS col0 FROM tab2 AS cor0
----
1196
1242
1748
query I rowsort
SELECT - cor0.col1 * - col1 + - cor0.col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
12804
16380
9460
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5363
SELECT DISTINCT col1 * CAST( cor0.col1 + + col0 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
210158
31806
62016
skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT col1 * CAST ( cor0.col1 + + col0 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
210158
31806
62016
query I rowsort
SELECT ALL + + 20 * - 32 FROM tab0 AS cor0
----
-640
-640
-640
query I rowsort
SELECT + col2 * + 58 * col0 AS col0 FROM tab1 AS cor0
----
211584
445440
9396
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5366
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 2 * col2 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 2 * col2 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
-86
-91
-97
query I rowsort
SELECT ALL - ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5369
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 88 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 88 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab2
----
80
query I rowsort
SELECT ALL + ( - col2 ) + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT ( col2 ) * - col1 + col1 * 90 + col1 AS col1 FROM tab0 AS cor0
----
4988
819
8730
query I rowsort
SELECT ALL col0 * col0 - col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT 54 * cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 08085e5dd776fd51fb3fc0cc67f23f39
query I rowsort
SELECT DISTINCT - col1 + col0 * + 4 FROM tab2 AS cor0
----
-3
253
299
onlyif mysql # use DIV operator for integer division
query I rowsort label-5376
SELECT + col2 DIV + col2 + col0 AS col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-5376
SELECT + col2 / + col2 + col0 AS col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT col2 + col1 + - 41 FROM tab0
----
132
57
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT DISTINCT - col1 DIV col0 + + 61 * tab1.col0 DIV + col1 AS col1 FROM tab1
----
-1
375
390
skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT - col1 / col0 + + 61 * tab1.col0 / + col1 AS col1 FROM tab1
----
-1
375
390
query I rowsort
SELECT - 63 * col1 FROM tab1
----
-1638
-630
-819
query I rowsort
SELECT col2 + - tab2.col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT + tab0.col1 + tab0.col1 * col0 AS col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT ALL - - 34 AS col2 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT ALL - 71 + col1 * + col2 FROM tab0 AS cor0
----
26
2767
7391
query I rowsort
SELECT ALL cor0.col2 + - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5385
SELECT CAST( NULL AS SIGNED ) * - 99 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5385
SELECT CAST ( NULL AS INTEGER ) * - 99 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 88 + + col2 AS col1 FROM tab0 AS cor0
----
121
170
89
query I rowsort
SELECT DISTINCT ( + col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5388
SELECT ALL + col0 DIV - ( col1 ) FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL + col0 / - ( col1 ) FROM tab2 cor0
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5389
SELECT DISTINCT + col1 DIV 68 AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT + col1 / 68 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - - col2 * - 28 + - col2 FROM tab1 AS cor0
----
-1566
-1653
-2784
onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT ALL + col2 DIV - col1 col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL + col2 / - col1 col0 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT col2 + 72 FROM tab2 AS cor0
----
110
98
99
query I rowsort
SELECT + col0 * - col2 + cor0.col1 * + col0 * - col2 FROM tab0 AS cor0
----
-3430
-671416
-68904
query I rowsort
SELECT ALL col0 * col0 AS col0 FROM tab0 cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT col2 DIV + 2 AS col2 FROM tab2 AS cor0
----
13
13
19
skipif mysql # not compatible
query I rowsort label-5395
SELECT col2 / + 2 AS col2 FROM tab2 AS cor0
----
13
13
19
query I rowsort
SELECT - tab1.col2 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT DISTINCT + 93 + col0 DIV - tab1.col2 AS col1 FROM tab1
----
92
93
skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT + 93 + col0 / - tab1.col2 AS col1 FROM tab1
----
92
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5398
SELECT + cor0.col2 DIV cor0.col2 + 6 AS col0 FROM tab1 AS cor0
----
7
7
7
skipif mysql # not compatible
query I rowsort label-5398
SELECT + cor0.col2 / cor0.col2 + 6 AS col0 FROM tab1 AS cor0
----
7
7
7
query I rowsort
SELECT ALL - 0 + - col0 * ( 46 ) AS col1 FROM tab2
----
-322
-3588
-3634
query I rowsort
SELECT tab2.col0 * col1 - 26 AS col1 FROM tab2
----
1317
191
4576
query I rowsort
SELECT 36 * col1 + 73 FROM tab1 AS cor0
----
1009
433
541
query I rowsort
SELECT + col2 + + tab0.col0 + col0 FROM tab0
----
260
71
81
query I rowsort
SELECT ALL - ( + tab1.col2 ) AS col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
71
query I rowsort
SELECT + col1 * - tab1.col0 * col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - 55 + 8 FROM tab0, tab0 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT - - cor0.col2 * col0 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + tab0.col2 * - col0 * + col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT + 88 * tab2.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d49f2ec4cff37f52a8fd0c3ee9c42d05
query I rowsort
SELECT DISTINCT - 69 * cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
-207
-4416
-5520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5411
SELECT ALL CAST( NULL AS DECIMAL ) * - ( cor0.col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL CAST ( NULL AS REAL ) * - ( cor0.col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - col0 + + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - - 33 AS col2 FROM tab2 AS cor0
----
33
query I rowsort
SELECT col0 * - col1 + col2 * 86 + col2 FROM tab1 AS cor0
----
4319
4620
7312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col1 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT - ( ( + col0 ) ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - - 83 + ( + col1 ) FROM tab0 AS cor0
----
169
174
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT + 55 + - col1 DIV + cor0.col1 col0 FROM tab0 AS cor0
----
54
54
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5418
SELECT + 55 + - col1 / + cor0.col1 col0 FROM tab0 AS cor0
----
54
54
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5419
SELECT ALL - CAST( NULL AS SIGNED ) + - 93 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - CAST ( NULL AS INTEGER ) + - 93 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5420
SELECT ( + col1 ) * - col2 + CAST( - col2 * + col2 AS SIGNED ) FROM tab0 AS cor0
----
-14186
-3927
-98
skipif mysql # not compatible
query I rowsort label-5420
SELECT ( + col1 ) * - col2 + CAST ( - col2 * + col2 AS INTEGER ) FROM tab0 AS cor0
----
-14186
-3927
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 + - 94 * - col1 col2 FROM tab1 AS cor0
----
1029
1311
2533
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + col2 col1 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT 41 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT 17 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT ALL col2 + 48 AS col1 FROM tab2
----
74
75
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-5426
SELECT 2 * col2 DIV + col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5426
SELECT 2 * col2 / + col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL col0 * + cor0.col0 - + ( + 2 ) FROM tab0 AS cor0
----
1223
574
7919
query I rowsort
SELECT - cor0.col1 * + cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 22 + + col2 * + col2 FROM tab0 AS cor0
----
1111
23
6746
query I rowsort
SELECT DISTINCT - 18 * col2 FROM tab2 AS cor0
----
-468
-486
-684
query I rowsort
SELECT + col2 * - col1 + - col1 + 31 AS col1 FROM tab1 cor0
----
-1230
-1399
-549
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 * 72 col0 FROM tab2
----
504
5616
5688
query I rowsort
SELECT ALL + 58 FROM tab1, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT DISTINCT ( - col1 ) + + 30 FROM tab1 cor0
----
17
20
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT ALL - col2 DIV - col1 + col0 * col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
207941
737287
8750
skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - col2 / - col1 + col0 * col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
207941
737287
8750
query I rowsort
SELECT ALL - - col2 + - col2 - - ( - col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT col0 + col1 * + ( - 79 ) * cor0.col1 FROM tab1 AS cor0
----
-13271
-53401
-7836
query I rowsort
SELECT DISTINCT + col0 + - col1 FROM tab0 cor0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5439
SELECT ( + col1 ) DIV 58 + cor0.col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-5439
SELECT ( + col1 ) / 58 + cor0.col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT + col1 + col1 * + col2 AS col0 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + - col0 * + 0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-5443
SELECT col2 * col0 DIV - col1 col1 FROM tab2 AS cor0
----
-176
-34
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5443
SELECT col2 * col0 / - col1 col1 FROM tab2 AS cor0
----
-176
-34
-6
query I rowsort
SELECT col0 * - ( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT ALL 84 * 1 + col2 + col0 DIV + col2 FROM tab0 AS cor0
----
117
120
167
skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL 84 * 1 + col2 + col0 / + col2 FROM tab0 AS cor0
----
117
120
167
query I rowsort
SELECT + - col0 * + 16 AS col0 FROM tab1 AS cor0
----
-1024
-1280
-48
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 99 AS REAL ) + col0 + ( + col0 ) / - col1 AS col1 FROM tab2 AS cor0
----
106
174
176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5448
SELECT - + CAST( 57 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-57
-57
-57
skipif mysql # not compatible
query I rowsort label-5448
SELECT - + CAST ( 57 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-57
-57
-57
query I rowsort
SELECT DISTINCT + ( + col2 ) * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col2 * 3 AS col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT + 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT DISTINCT - col1 * + 45 AS col2 FROM tab2
----
-1395
-2655
-765
query I rowsort
SELECT ALL col2 * ( col2 ) AS col1 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5454
SELECT tab1.col0 * - ( 58 * + col1 ) + col2 DIV col2 FROM tab1
----
-37119
-4523
-60319
skipif mysql # not compatible
query I rowsort label-5454
SELECT tab1.col0 * - ( 58 * + col1 ) + col2 / col2 FROM tab1
----
-37119
-4523
-60319
query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
10
13
26
query I rowsort
SELECT - col1 * - 57 FROM tab0 AS cor0
----
4902
5187
5529
query I rowsort
SELECT - col1 + - 75 AS col0 FROM tab0 AS cor0
----
-161
-166
-172
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5458
SELECT ALL + - col1 * - CAST( + col2 + col1 * CAST( - col1 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-16172
-430
-949
skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL + - col1 * - CAST ( + col2 + col1 * CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-16172
-430
-949
query I rowsort
SELECT col0 * + 15 FROM tab0 AS cor0
----
1335
360
525
query I rowsort
SELECT + ( + col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT 21 * col0 AS col1 FROM tab0 AS cor0
----
1869
504
735
query I rowsort
SELECT DISTINCT - 21 * col2 * col0 FROM tab1 cor0
----
-161280
-3402
-76608
query I rowsort
SELECT ALL - 30 * + 70 AS col2 FROM tab1 AS cor0
----
-2100
-2100
-2100
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + ( - 29 ) AS col2 FROM tab1 AS cor0
----
-29
query I rowsort
SELECT - cor0.col0 + ( - col0 ) FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT - 81 + - col2 * + cor0.col2 * + ( + col0 ) AS col2 FROM tab2 cor0
----
-114157
-5184
-52809
query I rowsort
SELECT 46 * col2 AS col0 FROM tab1 AS cor0
----
2484
2622
4416
onlyif mysql # use DIV operator for integer division
query I rowsort label-5469
SELECT ALL - 3 + col0 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
-3
-3
-4
skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - 3 + col0 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
-3
-3
-4
query I rowsort
SELECT - col1 * + 41 + + col2 AS col1 FROM tab1
----
-1012
-353
-437
query I rowsort
SELECT + + 86 * - 48 AS col1 FROM tab2 cor0
----
-4128
-4128
-4128
query I rowsort
SELECT + + cor0.col0 + 59 AS col0 FROM tab0 cor0
----
148
83
94
query I rowsort
SELECT + 12 * col2 AS col0 FROM tab0 AS cor0
----
12
396
984
query I rowsort
SELECT ALL + 76 * - cor0.col0 + + col0 AS col0 FROM tab2 cor0
----
-525
-5850
-5925
query I rowsort
SELECT col1 * + col1 + 39 FROM tab0 AS cor0
----
7435
8320
9448
onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT ALL + col2 + - col1 DIV + cor0.col2 AS col1 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL + col2 + - col1 / + cor0.col2 AS col1 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 col1 FROM tab2 AS cor0
----
13
query I rowsort
SELECT DISTINCT + col2 + col2 * col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + 89 * + cor0.col0 FROM tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT ALL - ( col0 ) + col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5481
SELECT ALL col2 DIV + cor0.col0 + col0 AS col0 FROM tab2 cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL col2 / + cor0.col0 + col0 AS col0 FROM tab2 cor0
----
10
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT 91 DIV col0 AS col1 FROM tab2
----
1
1
13
skipif mysql # not compatible
query I rowsort label-5482
SELECT 91 / col0 AS col1 FROM tab2
----
1
1
13
query I rowsort
SELECT ALL - + ( - col2 ) + - col2 * 41 FROM tab0 AS cor0
----
-1320
-3280
-40
query I rowsort
SELECT ALL cor0.col0 + col0 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-7120
-744
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5485
SELECT DISTINCT - 43 + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-42
skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - 43 + col1 / col1 AS col0 FROM tab0 AS cor0
----
-42
query I rowsort
SELECT ALL - - 54 * + col0 AS col2 FROM tab0 AS cor0
----
1296
1890
4806
onlyif mysql # use DIV operator for integer division
query I rowsort label-5487
SELECT DISTINCT - col1 * col2 DIV col0 FROM tab0 AS cor0
----
-118
-2
-83
skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - col1 * col2 / col0 FROM tab0 AS cor0
----
-118
-2
-83
query I rowsort
SELECT ALL - cor0.col0 * col0 FROM tab1 cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5489
SELECT - + col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5489
SELECT - + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col0 * - 97 FROM tab0 AS cor0
----
-2328
-3395
-8633
query I rowsort
SELECT DISTINCT - col1 + ( col1 ) * + cor0.col2 * col1 FROM tab2 AS cor0
----
10965
25916
90447
query I rowsort
SELECT + col1 * - ( col2 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT - 24 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-24
query I rowsort
SELECT DISTINCT - - 92 + - 0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
92
query I rowsort
SELECT + col1 * - col1 + col2 AS col1 FROM tab1
----
-43
-622
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5496
SELECT + col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5496
SELECT + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * - col2 + + ( + col1 * 70 + + ( + col0 ) ) AS col0 FROM tab2 cor0
----
-175
1448
3532
query I rowsort
SELECT - + col2 + 42 AS col0 FROM tab2 AS cor0
----
15
16
4
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 * + 75 FROM tab2 AS cor0
----
-1237
-2298
-4399
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5500
SELECT DISTINCT - + col0 * + CAST( + 88 * col0 AS SIGNED ) + col2 col2 FROM tab0 AS cor0
----
-107799
-50655
-696966
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT - + col0 * + CAST ( + 88 * col0 AS INTEGER ) + col2 col2 FROM tab0 AS cor0
----
-107799
-50655
-696966
query I rowsort
SELECT 43 + - col1 + ( col0 ) FROM tab2
----
105
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5502
SELECT DISTINCT col2 + + tab0.col0 DIV col0 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT col2 + + tab0.col0 / col0 FROM tab0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * cor0.col1 + col0 col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT - 64 * col0 + col0 * ( - col1 * 55 ) FROM tab0
----
-115056
-188965
-451141
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5505
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5505
SELECT CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - 92 * - tab1.col1 FROM tab1, tab1 AS cor0
----
1196
2392
920
query I rowsort
SELECT ALL col1 + cor0.col0 * col1 AS col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - - col2 + + 77 FROM tab0 AS cor0
----
110
159
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT ALL + - col2 + + col1 * + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL + - col2 + + col1 * + col0 / col0 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT col2 + tab1.col0 * + col1 + + 76 FROM tab1
----
1212
208
773
query I rowsort
SELECT ALL 39 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT DISTINCT tab2.col1 * 25 - col2 AS col0 FROM tab2
----
1449
387
748
query I rowsort
SELECT tab2.col2 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL col2 * col1 - col0 * cor0.col2 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT + ( - col1 * col0 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - ( - tab2.col0 ) AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL + + 74 AS col1 FROM tab1 cor0
----
74
74
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - tab1.col0 col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - 96 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
query I rowsort
SELECT ( col1 + - col2 ) * - tab1.col2 FROM tab1
----
1512
2679
7968
query I rowsort
SELECT - + 75 FROM tab0 cor0
----
-75
-75
-75
query I rowsort
SELECT - 15 + col1 FROM tab0 AS cor0
----
71
76
82
query I rowsort
SELECT + 85 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT + 86 + col2 * 75 FROM tab2 AS cor0
----
2036
2111
2936
query I rowsort
SELECT - + col0 + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT 13 FROM tab0, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
10
13
26
query I rowsort
SELECT ALL + col2 + tab2.col0 + - col2 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + tab0.col2 * col1 * + col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT col1 * col0 + - col1 * - col1 - - col0 FROM tab0
----
12839
16469
9484
query I rowsort
SELECT DISTINCT col1 * col1 * + col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT + col0 * tab1.col0 + col2 AS col2 FROM tab1
----
4153
63
6496
query I rowsort
SELECT + col1 * + tab0.col0 AS col2 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5534
SELECT DISTINCT col2 + + tab0.col2 DIV + col0 + col0 * - col0 FROM tab0
----
-1224
-542
-7839
skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT col2 + + tab0.col2 / + col0 + col0 * - col0 FROM tab0
----
-1224
-542
-7839
query I rowsort
SELECT DISTINCT tab2.col0 * col0 * - col2 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT NULL <> ( NULL )
----
query I rowsort
SELECT ALL - col2 + - col1 * + col0 AS col0 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT tab2.col2 * col0 - + col0 FROM tab2
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab0 WHERE NULL NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT col0 * col2 + tab1.col0 + + tab1.col0 * + col2 AS col0 FROM tab1
----
15440
327
7360
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + col2 + + tab2.col1 BETWEEN ( col0 ) AND + col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col0 * + col2 FROM tab0 WHERE - col2 NOT IN ( col1 + - tab0.col1 )
----
35
7298
792
query I rowsort
SELECT ALL + col1 + col1 * col1 AS col0 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT col2 + + col0 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT - + col2 + + col1 + ( + col2 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 16 * + col1 + + col0 + - 93 * col1 AS col1 FROM tab1 AS cor0
----
-1999
-706
-921
query I rowsort
SELECT col2 * col2 * tab0.col0 AS col0 FROM tab0 WHERE NOT NULL IN ( + col1 )
----
query I rowsort
SELECT DISTINCT + tab1.col0 * tab1.col2 AS col0 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + tab2.col1 col0 FROM tab2
----
137
38
96
query I rowsort
SELECT - tab1.col1 * + col0 * tab1.col2 + + col2 AS col2 FROM tab1
----
-36423
-4158
-99744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col0 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 * - tab2.col2 col2 FROM tab2
----
-114076
-5103
-52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - tab0.col2 col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL - col0 + + col0 * col1 AS col1 FROM tab2
----
1264
210
4524
query I rowsort
SELECT col2 * - tab1.col1 * col2 + col2 * col1 AS col0 FROM tab1
----
-118560
-31920
-74412
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 * col0 col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT col0 * - col1 + col2 AS col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT + col1 * - col1 + + col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT - - col1 + - 42 FROM tab2 AS cor0
----
-11
-25
17
query I rowsort
SELECT DISTINCT - ( col2 ) * col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL - ( 13 ) + col0 FROM tab2 AS cor0
----
-6
65
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5562
SELECT CAST( - 26 AS SIGNED ) FROM tab1 cor0
----
-26
-26
-26
skipif mysql # not compatible
query I rowsort label-5562
SELECT CAST ( - 26 AS INTEGER ) FROM tab1 cor0
----
-26
-26
-26
query I rowsort
SELECT - 11 FROM tab0, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT ALL ( + 34 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
340
442
884
query I rowsort
SELECT - ( 49 ) + col1 * - col2 FROM tab1 AS cor0
----
-1297
-1453
-619
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - ( - col2 ) AS REAL ) + ( col0 ) * cor0.col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT cor0.col0 * - ( cor0.col2 * cor1.col0 ) FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to eaa8a52b87f0a3fd4cd0844f178382c4
query I rowsort
SELECT ALL - col1 - col1 * + col1 AS col2 FROM tab0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT tab1.col0 AS col2 FROM tab1, tab2, tab0 AS cor0
----
3
64
80
query I rowsort
SELECT + 15 * - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to eb91a7cd3d386d9d68515c604425c526
query I rowsort
SELECT + 39 AS col0 FROM tab0 cor0
----
39
39
39
query I rowsort
SELECT - + 93 + col1 FROM tab2 AS cor0
----
-34
-62
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT ( + ( tab2.col0 ) ) DIV tab2.col0 + + col0 col2 FROM tab2
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5573
SELECT ( + ( tab2.col0 ) ) / tab2.col0 + + col0 col2 FROM tab2
----
79
8
80
query I rowsort
SELECT + + 52 + col1 FROM tab2 AS cor0
----
111
69
83
query I rowsort
SELECT DISTINCT - tab0.col2 * col2 + ( col0 ) FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT - ( - col1 * 5 ) + - col0 FROM tab1
----
-14
-15
127
query I rowsort
SELECT - col0 * 83 AS col0 FROM tab2 AS cor0
----
-581
-6474
-6557
query I rowsort
SELECT + col1 - + ( + 87 + col1 ) AS col0 FROM tab1
----
-87
-87
-87
query I rowsort
SELECT ALL - - col0 * col0 - col2 AS col0 FROM tab2 cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT col2 + - 34 * col1 AS col0 FROM tab2 AS cor0
----
-1027
-1980
-540
query I rowsort
SELECT DISTINCT + + col1 - + ( - col1 * col2 ) AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - col2 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL + - cor0.col0 + cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5584
SELECT ALL col2 + - CAST( NULL AS SIGNED ) + + col0 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) + + col0 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * ( col0 + col0 ) AS col2 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT + col2 + 66 + + tab0.col1 * col2 FROM tab0
----
164
2937
7610
query I rowsort
SELECT DISTINCT + 78 + tab1.col0 FROM tab1
----
142
158
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5588
SELECT DISTINCT col1 DIV + col0 + - tab2.col1 FROM tab2
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT col1 / + col0 + - tab2.col1 FROM tab2
----
-17
-27
-59
query I rowsort
SELECT col2 - ( tab1.col2 ) * ( tab1.col0 ) * col2 FROM tab1
----
-207879
-737184
-8694
onlyif mysql # use DIV operator for integer division
query I rowsort label-5590
SELECT ALL + col0 DIV ( - col0 ) + - ( col0 ) AS col2 FROM tab1
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL + col0 / ( - col0 ) + - ( col0 ) AS col2 FROM tab1
----
-4
-65
-81
query I rowsort
SELECT DISTINCT cor0.col0 + + 60 FROM tab1, tab2 AS cor0
----
138
139
67
query I rowsort
SELECT DISTINCT - col2 + 53 AS col1 FROM tab2
----
15
26
27
query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL < NULL
----
query I rowsort
SELECT tab1.col2 * - 64 * col2 AS col0 FROM tab1
----
-186624
-207936
-589824
query I rowsort
SELECT + col1 + - tab0.col0 * - col2 AS col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT ( - col2 ) + - col1 AS col1 FROM tab2
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5597
SELECT DISTINCT + 76 + + 6 DIV col0 AS col2 FROM tab2
----
76
skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT + 76 + + 6 / col0 AS col2 FROM tab2
----
76
query I rowsort
SELECT - col1 * - col1 * tab1.col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT col2 + + 79 * + col0 AS col1 FROM tab0
----
1929
2766
7113
query I rowsort
SELECT + 43 + 12 FROM tab1
----
55
55
55
query I rowsort
SELECT DISTINCT + col2 + col2 * col0 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT 71 * - col0 FROM tab0 AS cor0
----
-1704
-2485
-6319
onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT DISTINCT - + col0 + - col2 DIV col1 FROM tab2 cor0
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - + col0 + - col2 / col1 FROM tab2 cor0
----
-7
-78
-81
query I rowsort
SELECT ALL cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col1 * col0 + + 93 * - col0 AS col2 FROM tab0 AS cor0
----
-16376
-4296
-6650
query I rowsort
SELECT DISTINCT - ( col0 ) + - ( + col2 + col2 ) * - col0 FROM tab0 cor0
----
14507
1560
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 * + col1 col2 FROM tab1 AS cor0
----
-270
-351
-702
query I rowsort
SELECT + 24 * - col0 + col0 * - col0 FROM tab2 AS cor0
----
-217
-7956
-8137
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 col2 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 * 45 FROM tab0 AS cor0
----
302580
45
49005
query I rowsort
SELECT ALL - col2 * col0 + + 15 FROM tab2 AS cor0
----
-174
-2013
-2987
query I rowsort
SELECT ALL + col1 + + cor0.col1 AS col2 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT ALL ( - col0 ) + - 5 FROM tab1 AS cor0
----
-69
-8
-85
query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * col2 - cor0.col1 FROM tab1 AS cor0
----
2887
3175
9123
onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT col1 DIV 14 FROM tab0
----
6
6
6
skipif mysql # not compatible
query I rowsort label-5615
SELECT col1 / 14 FROM tab0
----
6
6
6
query I rowsort
SELECT + 16 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216
query I rowsort
SELECT DISTINCT 23 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
23
query I rowsort
SELECT DISTINCT col0 + - ( col2 ) FROM tab1
----
-16
-51
7
query I rowsort
SELECT + + col0 * col0 * + 90 + + col2 AS col2 FROM tab2 AS cor0
----
4437
547586
561728
query I rowsort
SELECT + col2 + - col0 * tab1.col0 + + tab1.col2 AS col0 FROM tab1
----
-3982
-6208
99
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 53ea9df66efbebef5063fb0b15c25baa
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
onlyif mysql # use DIV operator for integer division
query I rowsort label-5623
SELECT col0 - - ( + col0 ) DIV - col2 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-5623
SELECT col0 - - ( + col0 ) / - col2 FROM tab0 AS cor0
----
0
24
88
query I rowsort
SELECT + col1 * + col1 - ( - col0 ) FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT - + col1 DIV - 88 + + 99 * col0 AS col2 FROM tab0 AS cor0
----
2376
3466
8812
skipif mysql # not compatible
query I rowsort label-5625
SELECT - + col1 / - 88 + + 99 * col0 AS col2 FROM tab0 AS cor0
----
2376
3466
8812
query I rowsort
SELECT - cor0.col0 * - 63 - + col2 AS col1 FROM tab0 AS cor0
----
1479
2204
5525
query I rowsort
SELECT ALL + - cor0.col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL - ( + col0 ) + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT 31 AS col1 FROM tab1, tab0 AS cor0
----
31
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - + 29 FROM tab0 AS cor0
----
-29
query I rowsort
SELECT + 24 + + cor0.col1 FROM tab2 AS cor0
----
41
55
83
query I rowsort
SELECT ALL col2 * - 19 * col2 AS col1 FROM tab1 AS cor0
----
-175104
-55404
-61731
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col1 FROM tab0 AS cor0
----
41
41
41
query I rowsort
SELECT DISTINCT - ( col0 ) + + col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-5636
SELECT - - col2 + - ( col0 ) + col1 DIV + col2 AS col2 FROM tab0 cor0
----
-6
11
63
skipif mysql # not compatible
query I rowsort label-5636
SELECT - - col2 + - ( col0 ) + col1 / + col2 AS col2 FROM tab0 cor0
----
-6
11
63
query I rowsort
SELECT DISTINCT + - ( - col2 ) * - cor0.col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 30 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5639
SELECT tab0.col0 DIV - tab0.col0 AS col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5639
SELECT tab0.col0 / - tab0.col0 AS col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL - 33 * col2 + + col0 + - 86 FROM tab1 AS cor0
----
-1865
-1903
-3174
query I rowsort
SELECT - + 48 * - col0 FROM tab1 AS cor0
----
144
3072
3840
query I rowsort
SELECT DISTINCT - + ( 41 ) AS col0 FROM tab2 cor0
----
-41
query I rowsort
SELECT ALL + + col1 + - col0 * col0 * col2 AS col2 FROM tab1 AS cor0
----
-233462
-460
-614387
onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT ALL cor0.col2 DIV 13 + - col0 FROM tab0 AS cor0
----
-22
-35
-83
skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL cor0.col2 / 13 + - col0 FROM tab0 AS cor0
----
-22
-35
-83
query I rowsort
SELECT DISTINCT col1 + - col1 - col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + - cor1.col2 + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0bd022e691ee49f12c598975818ed537
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
7
78
79
query I rowsort
SELECT ALL + - col1 + col0 FROM tab2 cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + col2 col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT - + col1 + - col0 - cor0.col2 * - 14 FROM tab0 AS cor0
----
-118
352
968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5651
SELECT + CAST( + col2 AS SIGNED ) - - col0 AS col1 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-5651
SELECT + CAST ( + col2 AS INTEGER ) - - col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col1 - col1 * - col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5653
SELECT - + CAST( NULL AS DECIMAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5653
SELECT - + CAST ( NULL AS REAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 23 + col2 AS col1 FROM tab2 AS cor0
----
15
3
4
query I rowsort
SELECT - 30 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
-2387
-2399
-241
query I rowsort
SELECT cor0.col0 + col0 * col2 + 15 AS col0 FROM tab0 AS cor0
----
7402
831
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab0.col0 * tab0.col2 ) + 16 + - col0 col2 FROM tab0
----
-54
-7371
-800
query I rowsort
SELECT - cor1.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL col1 - + ( col0 ) * cor0.col1 AS col0 FROM tab2 cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col1 col2 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col1 - 25 FROM tab0
----
61
66
72
query I rowsort
SELECT col0 + + ( + col1 ) AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + cor0.col1 * 92 + col2 AS col1 FROM tab1 AS cor0
----
1292
2446
977
query I rowsort
SELECT DISTINCT - col0 + + 68 FROM tab2 cor0
----
-10
-11
61
query I rowsort
SELECT + col2 * + 78 AS col0 FROM tab2 AS cor0
----
2028
2106
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5667
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + ( 1 ) AS col2 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT - ( + 53 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT ALL 45 * col2 AS col1 FROM tab1
----
2430
2565
4320
query I rowsort
SELECT 38 AS col1 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT tab0.col1 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5673
SELECT + 83 DIV 35 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
skipif mysql # not compatible
query I rowsort label-5673
SELECT + 83 / 35 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT - - col0 * + col1 + ( + col2 ) FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) * - col2 col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + - cor0.col1 * ( col0 ) + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5677
SELECT 33 * col1 + + CAST( NULL AS SIGNED ) + + 79 / + col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5677
SELECT 33 * col1 + + CAST ( NULL AS INTEGER ) + + 79 / + col0 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - ( + 88 ) + + cor0.col2 FROM tab1 AS cor0
----
-21
-8
21
query I rowsort
SELECT - - cor0.col1 * col0 * - col1 + - cor0.col1 FROM tab1 AS cor0
----
-13533
-2054
-6410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5680
SELECT + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5680
SELECT + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - 14 * + col0 + cor0.col1 + - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7646
-9436
-9802
query I rowsort
SELECT DISTINCT ( 88 ) AS col2 FROM tab0 AS cor0
----
88
query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab2
----
62
query I rowsort
SELECT ( - tab2.col1 + - col2 ) AS col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT - 24 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-240
-312
-624
onlyif mysql # use DIV operator for integer division
query I rowsort label-5686
SELECT ( cor0.col1 ) DIV 45 AS col1 FROM tab0 cor0
----
1
2
2
skipif mysql # not compatible
query I rowsort label-5686
SELECT ( cor0.col1 ) / 45 AS col1 FROM tab0 cor0
----
1
2
2
query I rowsort
SELECT col0 * col2 * ( ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - 18 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
11520
1404
18720
onlyif mysql # use DIV operator for integer division
query I rowsort label-5689
SELECT + col2 DIV col0 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5689
SELECT + col2 / col0 FROM tab0 cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT ALL + 67 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL + 67 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT 44 AS col1 FROM tab1 AS cor0
----
44
44
44
query I rowsort
SELECT DISTINCT - - col2 - + col0 * - ( - 76 * col1 ) AS col2 FROM tab0 AS cor0
----
-156831
-258019
-615442
query I rowsort
SELECT ALL ( col2 ) + ( cor0.col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) FROM tab1, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + 7 * col0 * col1 - + col0 AS col1 FROM tab0 AS cor0
----
14424
23730
56604
onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT ALL - 92 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - 92 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT 84 + + col0 AS col1 FROM tab2 AS cor0
----
162
163
91
query I rowsort
SELECT DISTINCT - 62 * + col0 + 78 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-2533
-6786
-7783
onlyif mysql # use DIV operator for integer division
query I rowsort label-5699
SELECT DISTINCT cor0.col1 DIV - 44 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT cor0.col1 / - 44 AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5700
SELECT DISTINCT + + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT + + col0 / col1 AS col1 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT ALL - col1 * + col0 + col0 * + col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5702
SELECT + - col0 DIV col0 AS col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5702
SELECT + - col0 / col0 AS col0 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5703
SELECT + col1 DIV - col1 + - col0 FROM tab2
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-5703
SELECT + col1 / - col1 + - col0 FROM tab2
----
-79
-8
-80
query I rowsort
SELECT tab2.col1 - tab2.col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + 63 + + col0 FROM tab0
----
152
87
98
query I rowsort
SELECT DISTINCT + tab2.col0 * + col2 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT + col0 * 37 + col2 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
256
2886
2923
skipif mysql # not compatible
query I rowsort label-5707
SELECT + col0 * 37 + col2 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
256
2886
2923
query I rowsort
SELECT ALL + 46 * cor0.col0 + col0 * ( + col2 ) FROM tab1 AS cor0
----
11360
300
6592
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5709
SELECT DISTINCT - CAST( + col0 AS SIGNED ) - - col0 * 13 col0 FROM tab0 AS cor0
----
1068
288
420
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) - - col0 * 13 col0 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT ALL 81 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT ALL - col2 * col2 * - cor0.col2 + - ( - 13 ) - col1 AS col0 FROM tab0 AS cor0
----
-83
35864
551290
query I rowsort
SELECT DISTINCT - - col0 - - cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + - 96 * - col1 FROM tab2 AS cor0
----
1632
2976
5664
query I rowsort
SELECT ALL col1 * - tab1.col0 * 55 FROM tab1
----
-35200
-4290
-57200
onlyif mysql # use DIV operator for integer division
query I rowsort label-5715
SELECT ALL 64 DIV + 56 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL 64 / + 56 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT + col2 * - 74 AS col0 FROM tab1
----
-3996
-4218
-7104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 * - col1 + col2 col0 FROM tab2 AS cor0
----
1517
2724
5159
query I rowsort
SELECT cor0.col2 + + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT col0 + - 84 AS col2 FROM tab0 AS cor0
----
-49
-60
5
query I rowsort
SELECT + 13 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT DISTINCT - cor0.col0 + - 91 FROM tab0 AS cor0
----
-115
-126
-180
query I rowsort
SELECT DISTINCT + - col0 + col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT col0 + 45 AS col2 FROM tab0 AS cor0
----
134
69
80
query I rowsort
SELECT DISTINCT col2 + col0 - 44 FROM tab2
----
-10
60
73
query I rowsort
SELECT DISTINCT + col1 - col0 FROM tab2
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-5726
SELECT + 13 DIV - tab2.col1 + + col1 + col1 * + col2 AS col1 FROM tab2
----
1593
663
868
skipif mysql # not compatible
query I rowsort label-5726
SELECT + 13 / - tab2.col1 + + col1 + col1 * + col2 AS col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT - col0 + - col0 * 73 AS col1 FROM tab2 cor0
----
-518
-5772
-5846
query I rowsort
SELECT DISTINCT - col1 + - tab1.col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + ( ( tab2.col1 ) * cor0.col2 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 24458b87d784ecaf9184f99bd12fb51a
query I rowsort
SELECT ALL col2 + - 82 + + 77 AS col2 FROM tab1
----
49
52
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5731
SELECT ALL col0 * CAST( NULL AS SIGNED ) + - 92 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL col0 * CAST ( NULL AS INTEGER ) + - 92 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + + ( - 49 ) col2 FROM tab0
----
-131
-50
-82
query I rowsort
SELECT DISTINCT col1 * 26 AS col0 FROM tab0 AS cor0
----
2236
2366
2522
query I rowsort
SELECT DISTINCT 68 FROM tab2, tab1 AS cor0
----
68
query I rowsort
SELECT + col1 + + col0 + col1 FROM tab1
----
106
55
84
query I rowsort
SELECT DISTINCT - col1 + 87 * col2 FROM tab1
----
4672
4949
8339
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * tab1.col0 + + ( + col2 ) col2 FROM tab1
----
4153
63
6496
query I rowsort
SELECT + 85 * cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 43e5153ae802335e917d6ce3c47e0b21
query I rowsort
SELECT DISTINCT - col0 * col0 + + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col1 + cor0.col0 col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + + col2 * + col1 + ( - col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + ( tab1.col0 * - col2 ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col1 * 30 AS col0 FROM tab2
----
-1770
-510
-930
query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab2
----
2
query I rowsort
SELECT DISTINCT - ( + col1 + col2 ) * col0 FROM tab1
----
-240
-4288
-8720
query I rowsort
SELECT ALL ( col2 ) * col1 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 - + col2 col1 FROM tab2
----
53
64
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5748
SELECT DISTINCT col1 + + col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT col1 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5749
SELECT ALL 11 * col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL 11 * col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 + ( - 46 ) col0 FROM tab1 AS cor0
----
-129
-74
-93
query I rowsort
SELECT ALL + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col1 + + col0 + col1 * - 49 FROM tab1 AS cor0
----
-1297
-436
-570
query I rowsort
SELECT DISTINCT - col1 * col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT + 63 AS col0 FROM tab2 cor0
----
63
query I rowsort
SELECT DISTINCT 75 * col1 - - col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
10509
2374
7516
query I rowsort
SELECT ( + cor0.col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL - col1 * col1 + + col0 * col0 FROM tab0 AS cor0
----
-360
-6820
-8184
query I rowsort
SELECT + - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5759
SELECT ALL ( col0 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + col2 * col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL + 42 AS col0 FROM tab0
----
42
42
42
query I rowsort
SELECT ALL + - col1 - - col0 * col0 AS col2 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + - 26 AS col2 FROM tab1 AS cor0
----
-26
-26
-26
query I rowsort
SELECT ALL - 86 + col1 AS col2 FROM tab2 AS cor0
----
-27
-55
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-5766
SELECT ALL + + 26 DIV col1 AS col0 FROM tab1 AS cor0
----
1
2
2
skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL + + 26 / col1 AS col0 FROM tab1 AS cor0
----
1
2
2
query I rowsort
SELECT DISTINCT + col2 * col2 * tab1.col1 FROM tab1
----
119808
32490
75816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5768
SELECT + col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5768
SELECT + col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * - ( - col2 ) - col0 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT col2 - + ( cor0.col0 ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL cor0.col1 * 99 + - ( col1 ) FROM tab1 AS cor0
----
1274
2548
980
query I rowsort
SELECT ALL + 18 * col2 AS col0 FROM tab2
----
468
486
684
query I rowsort
SELECT col1 * 67 FROM tab0 cor0
----
5762
6097
6499
query I rowsort
SELECT ALL col1 * 2 AS col2 FROM tab0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 col1 FROM tab0 AS cor0
----
-6
-6
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5776
SELECT + + col2 DIV + 2 AS col0 FROM tab1 AS cor0
----
27
28
48
skipif mysql # not compatible
query I rowsort label-5776
SELECT + + col2 / + 2 AS col0 FROM tab1 AS cor0
----
27
28
48
query I rowsort
SELECT DISTINCT + - ( col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT cor0.col0 * 6 AS col1 FROM tab0 AS cor0
----
144
210
534
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5779
SELECT ALL - + ( 76 ) * - col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL - + ( 76 ) * - col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5780
SELECT + - col1 DIV 21 AS col0 FROM tab0 AS cor0
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-5780
SELECT + - col1 / 21 AS col0 FROM tab0 AS cor0
----
-4
-4
-4
query I rowsort
SELECT - 14 * 27 * col2 + - tab1.col1 FROM tab1
----
-20438
-21556
-36301
query I rowsort
SELECT ALL 89 FROM tab0, tab1 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col1 FROM tab1, tab2 AS cor0
----
-38
query I rowsort
SELECT + col2 + 3 * col0 AS col0 FROM tab1 AS cor0
----
249
336
63
query I rowsort
SELECT + 71 * 89 AS col0 FROM tab0 AS cor0
----
6319
6319
6319
query I rowsort
SELECT col0 + 79 AS col0 FROM tab1 AS cor0
----
143
159
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * + col1 * - cor0.col1 col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5788
SELECT + + CAST( NULL AS DECIMAL ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5788
SELECT + + CAST ( NULL AS REAL ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + + 15 AS col2 FROM tab0 AS cor0
----
-20
-74
-9
query I rowsort
SELECT ALL - + cor0.col0 + - cor0.col1 * - col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + col2 + - col1 * - col1 FROM tab0 cor0
----
7429
8363
9410
query I rowsort
SELECT + 96 * cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
5238
5529
9312
query I rowsort
SELECT - - col0 * cor0.col2 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - col0 + - col2 * col2 FROM tab1 cor0
----
-2919
-3313
-9296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5795
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - - cor0.col1 * - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1040
-640
-78
query I rowsort
SELECT - ( + 73 ) FROM tab0 cor0
----
-73
-73
-73
query I rowsort
SELECT ALL - 46 + - 90 FROM tab2 AS cor0
----
-136
-136
-136
query I rowsort
SELECT DISTINCT - - 89 * + col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
136526
57494
74493
query I rowsort
SELECT DISTINCT + col2 + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL - col0 * + col1 * col0 FROM tab0
----
-118825
-49536
-720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5802
SELECT + - CAST( NULL AS SIGNED ) + + ( - col1 ) * + 12 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-5802
SELECT + - CAST ( NULL AS INTEGER ) + + ( - col1 ) * + 12 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT col0 + - 87 DIV - col0 FROM tab0 AS cor0
----
27
37
89
skipif mysql # not compatible
query I rowsort label-5803
SELECT col0 + - 87 / - col0 FROM tab0 AS cor0
----
27
37
89
query I rowsort
SELECT - 0 + - 49 AS col1 FROM tab2
----
-49
-49
-49
query I rowsort
SELECT + - col2 + + cor0.col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT - 92 * col1 AS col2 FROM tab0
----
-7912
-8372
-8924
query I rowsort
SELECT DISTINCT + 34 * - col0 + 1 + - 85 FROM tab2 AS cor0
----
-2736
-2770
-322
query I rowsort
SELECT - col0 * - 97 * - col2 - col1 * ( + col2 + col2 ) AS col1 FROM tab2
----
-199784
-20007
-292486
query I rowsort
SELECT DISTINCT + ( 74 ) + - cor0.col1 * 37 FROM tab2, tab0, tab0 AS cor0, tab1 AS cor1
----
-3108
-3293
-3515
query I rowsort
SELECT col2 * col1 + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + cor0.col2 * + col1 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT 86 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT ALL col2 + - 71 * col0 FROM tab0
----
-1671
-2484
-6237
query I rowsort
SELECT + col1 * col1 * 23 + - col1 FROM tab1 AS cor0
----
15522
2290
3874
query I rowsort
SELECT - col1 * 40 AS col1 FROM tab1 AS cor0
----
-1040
-400
-520
query I rowsort
SELECT DISTINCT cor0.col0 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL col2 + - 79 FROM tab1 cor0
----
-22
-25
17
query I rowsort
SELECT DISTINCT + + cor0.col0 + ( - col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - col1 + - 90 * - col2 AS col2 FROM tab1 AS cor0
----
4834
5120
8627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 86 * - 39 col1 FROM tab1
----
-3408
-3411
-3450
query I rowsort
SELECT col0 * + ( ( + col1 ) * col1 ) FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL + 14 - col1 AS col1 FROM tab2 AS cor0
----
-17
-3
-45
query I rowsort
SELECT DISTINCT + + 10 - col0 FROM tab1 AS cor0
----
-54
-70
7
query I rowsort
SELECT + 44 + col1 AS col2 FROM tab2 AS cor0
----
103
61
75
query I rowsort
SELECT cor0.col1 * 67 + col2 AS col1 FROM tab2 cor0
----
1177
2104
3979
query I rowsort
SELECT DISTINCT 14 * 30 FROM tab2 AS cor0
----
420
query I rowsort
SELECT DISTINCT - + col0 * + 18 FROM tab0 cor0
----
-1602
-432
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-5829
SELECT ALL + + 14 DIV 76 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL + + 14 / 76 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + 24 * - col2 AS col1 FROM tab1 AS cor0
----
-1296
-1368
-2304
query I rowsort
SELECT ALL + col1 + col0 + - col0 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - tab2.col0 * - col1 + col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT - tab0.col2 + tab0.col2 AS col2 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5834
SELECT DISTINCT + 56 * col1 DIV col2 AS col2 FROM tab0 AS cor0
----
145
5432
62
skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT + 56 * col1 / col2 AS col2 FROM tab0 AS cor0
----
145
5432
62
query I rowsort
SELECT + ( + col2 ) + - 57 * + 6 + col1 * - col2 FROM tab1 AS cor0
----
-1494
-1692
-855
query I rowsort
SELECT - col0 * - col2 + - 32 FROM tab1 AS cor0
----
130
3616
7648
query I rowsort
SELECT - cor0.col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT ALL + col1 * col2 DIV cor0.col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL + col1 * col2 / cor0.col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - col1 * - 53 + col0 AS col2 FROM tab1 AS cor0
----
1381
594
769
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5840
SELECT - col0 * CAST( col1 AS SIGNED ) * + col0 + - ( 15 ) FROM tab2 AS cor0
----
-106112
-1534
-358971
skipif mysql # not compatible
query I rowsort label-5840
SELECT - col0 * CAST ( col1 AS INTEGER ) * + col0 + - ( 15 ) FROM tab2 AS cor0
----
-106112
-1534
-358971
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5841
SELECT ALL - cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL - cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5842
SELECT ALL ( col2 ) - tab1.col1 DIV - col1 AS col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL ( col2 ) - tab1.col1 / - col1 AS col2 FROM tab1
----
55
58
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5843
SELECT + col1 + tab0.col1 * - CAST( NULL AS SIGNED ) + - col1 * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5843
SELECT + col1 + tab0.col1 * - CAST ( NULL AS INTEGER ) + - col1 * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 27 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0259a67676b131a4843853be4811b775
query I rowsort
SELECT ALL - - 92 + cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 6ca4b2cdfad956991591f91381792f68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5846
SELECT ( col2 ) * CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5846
SELECT ( col2 ) * CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5847
SELECT ALL col0 DIV col0 - ( 17 ) * col1 FROM tab1
----
-169
-220
-441
skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL col0 / col0 - ( 17 ) * col1 FROM tab1
----
-169
-220
-441
query I rowsort
SELECT - 63 * 91 AS col0 FROM tab0 AS cor0
----
-5733
-5733
-5733
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 AS col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT DISTINCT + - ( col2 ) + + col0 DIV - col2 FROM tab0 AS cor0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT + - ( col2 ) + + col0 / - col2 FROM tab0 AS cor0
----
-33
-36
-83
query I rowsort
SELECT DISTINCT + 77 * + col2 + + col1 FROM tab1 AS cor0
----
4184
4399
7405
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
-1
-33
-82
query I rowsort
SELECT ALL 21 + + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c327fc3b4ad0ae54e494ca2ffc18b6ae
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 36 col1 FROM tab1 AS cor0
----
108
2304
2880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5855
SELECT CAST( - 60 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
26
31
37
skipif mysql # not compatible
query I rowsort label-5855
SELECT CAST ( - 60 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
26
31
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT ALL - 53 * 90 AS col2 FROM tab0 AS cor0
----
-4770
-4770
-4770
query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT ALL - ( col0 ) + - col1 DIV col2 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - ( col0 ) + - col1 / col2 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5860
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + 49 * - col0 * col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + 49 * - col0 * col2 AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5861
SELECT ALL + CAST( - 18 AS SIGNED ) * + col1 + col0 col2 FROM tab1 AS cor0
----
-116
-154
-465
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL + CAST ( - 18 AS INTEGER ) * + col1 + col0 col2 FROM tab1 AS cor0
----
-116
-154
-465
query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab1 AS cor0
----
4
query I rowsort
SELECT - - col0 * 27 * col2 AS col0 FROM tab0 AS cor0
----
197046
21384
945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 col1 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5865
SELECT + - 90 DIV - cor0.col1 - col2 DIV cor0.col1 FROM tab2 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5865
SELECT + - 90 / - cor0.col1 - col2 / cor0.col1 FROM tab2 AS cor0
----
1
2
3
query I rowsort
SELECT ALL 30 - - 65 AS col1 FROM tab0
----
95
95
95
query I rowsort
SELECT col0 + cor0.col0 + col0 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT ( col2 ) * - col2 * col0 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab0 AS cor0
----
34
query I rowsort
SELECT ALL - - 48 * - col1 FROM tab1 AS cor0
----
-1248
-480
-624
query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + cor0.col0 + - col1 * + col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL 99 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
onlyif mysql # use DIV operator for integer division
query I rowsort label-5874
SELECT ALL 65 + col2 DIV - col2 + - col0 * tab0.col1 FROM tab0
----
-2000
-3331
-8035
skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL 65 + col2 / - col2 + - col0 * tab0.col1 FROM tab0
----
-2000
-3331
-8035
query I rowsort
SELECT ALL - col1 + ( + col2 ) * - col1 + + col2 AS col0 FROM tab0
----
-193
-2891
-7471
query I rowsort
SELECT + tab1.col1 + + ( - col1 ) * col0 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL tab1.col2 * col1 + - col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT ALL + 15 - + col0 * - col1 AS col1 FROM tab1
----
1055
655
93
query I rowsort
SELECT col0 + ( + 65 * col1 ) AS col2 FROM tab2 AS cor0
----
1184
2022
3913
query I rowsort
SELECT ALL + cor0.col1 + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + col2 * 34 * cor0.col0 + col2 * col0 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
127737
268896
5724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 * col1 + - cor0.col2 col0 FROM tab1 AS cor0
----
-119904
-32547
-75870
query I rowsort
SELECT ALL + col1 * 22 + col0 AS col1 FROM tab0 AS cor0
----
1916
2091
2169
query I rowsort
SELECT DISTINCT - col2 + - 64 FROM tab2 cor0
----
-102
-90
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5885
SELECT ALL + + col2 + CAST( NULL AS SIGNED ) / col0 + - col1 / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL + + col2 + CAST ( NULL AS INTEGER ) / col0 + - col1 / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * col1 + + ( col0 ) FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + cor0.col1 * - col0 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
-22869
-271544
-6754
query I rowsort
SELECT ALL col2 * + col0 + 79 AS col0 FROM tab0
----
114
7377
871
query I rowsort
SELECT DISTINCT col2 + + col1 * + 72 * + col2 AS col2 FROM tab2
----
110474
46550
60291
query I rowsort
SELECT + col0 * - col2 * col2 + 40 AS col2 FROM tab2
----
-114036
-5063
-52688
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT DISTINCT + col2 + 73 AS col1 FROM tab2 AS cor0
----
100
111
99
query I rowsort
SELECT DISTINCT col0 * + 89 - + col0 * + col1 AS col2 FROM tab1 AS cor0
----
189
5056
6080
query I rowsort
SELECT - 45 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5895
SELECT - - cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5895
SELECT - - cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col0 * - ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ( + 6 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT DISTINCT col2 * + col0 * col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT tab2.col0 * + col2 + + col0 FROM tab2
----
196
2106
3081
query III rowsort
SELECT * FROM tab2 WHERE + col0 + - col2 / + col0 BETWEEN ( + col0 ) AND NULL
----
query I rowsort
SELECT - col0 + - col1 FROM tab2 AS cor0 WHERE NOT col2 * - col0 + - cor0.col1 NOT BETWEEN ( NULL ) AND ( col1 - + col0 ) OR NOT col1 - + col1 BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL + col2 * cor0.col2 + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 - + col1 AS col0 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL - col0 * col1 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT - tab0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT DISTINCT col1 + + col1 * col1 AS col1 FROM tab1
----
110
182
702
query I rowsort
SELECT - 43 - col1 FROM tab0 AS cor0
----
-129
-134
-140
query I rowsort
SELECT col1 * col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col2 FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT DISTINCT + + 38 * col0 FROM tab1 cor0
----
114
2432
3040
query I rowsort
SELECT DISTINCT ( col1 ) * + cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT + 43 * col0 FROM tab2 AS cor0
----
301
3354
3397
query I rowsort
SELECT + col1 * + col1 + - col2 * cor0.col0 FROM tab0 AS cor0
----
6604
9374
983
query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT 28 * + col0 + col2 * col1 AS col2 FROM tab1 cor0
----
1488
2362
3488
query I rowsort
SELECT ALL - col1 * + col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col0 * col2 * + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-62
26050
598345
onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT ALL col1 DIV col0 + tab1.col0 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL col1 / col0 + tab1.col0 FROM tab1
----
11
64
80
query I rowsort
SELECT col2 * col0 + + col1 * + col1 FROM tab0 AS cor0
----
15579
8188
9444
query I rowsort
SELECT col0 * + col1 * col2 + col2 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT + - col2 * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5922
SELECT - col0 DIV - cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-5922
SELECT - col0 / - cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT + col0 * col1 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
14823
3153
3396
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + col1 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - - 37 * col2 + + 84 AS col0 FROM tab0 AS cor0
----
121
1305
3118
query I rowsort
SELECT ( ( col1 ) ) AS col2 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5927
SELECT + ( col2 ) + col0 DIV ( cor0.col1 ) col2 FROM tab1 AS cor0
----
102
54
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5927
SELECT + ( col2 ) + col0 / ( cor0.col1 ) col2 FROM tab1 AS cor0
----
102
54
63
query I rowsort
SELECT DISTINCT + 50 * - cor1.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-4300
-4550
-4850
onlyif mysql # use DIV operator for integer division
query I rowsort label-5929
SELECT - + cor0.col1 + + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-5929
SELECT - + cor0.col1 + + col1 / col1 AS col0 FROM tab2 AS cor0
----
-16
-30
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5930
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + cor0.col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT ALL tab0.col0 DIV col2 + ( - col1 ) * tab0.col2 AS col0 FROM tab0
----
-2838
-62
-7461
skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL tab0.col0 / col2 + ( - col1 ) * tab0.col2 AS col0 FROM tab0
----
-2838
-62
-7461
onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT - + 95 + 52 DIV col0 FROM tab0 AS cor0
----
-93
-94
-95
skipif mysql # not compatible
query I rowsort label-5932
SELECT - + 95 + 52 / col0 FROM tab0 AS cor0
----
-93
-94
-95
query I rowsort
SELECT - col1 * col1 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1798
-5015
-935
query I rowsort
SELECT tab0.col2 * - ( col0 ) AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL 27 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 AS cor2, tab2 AS cor3
----
729 values hashing to 384f13fa66ad67956a9d5afb6c9e6ace
query I rowsort
SELECT 4 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT - 24 * - 1 FROM tab1
----
24
24
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-5938
SELECT ( ( cor0.col2 ) ) DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5938
SELECT ( ( cor0.col2 ) ) / col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5939
SELECT + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-5939
SELECT + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5940
SELECT + - ( + col1 ) + - cor0.col0 DIV + col0 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-5940
SELECT + - ( + col1 ) + - cor0.col0 / + col0 FROM tab2 AS cor0
----
-18
-32
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5941
SELECT + cor1.col0 DIV cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 44ce11d8eb6e20775a077d9e3aeb1ed6
skipif mysql # not compatible
query I rowsort label-5941
SELECT + cor1.col0 / cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 44ce11d8eb6e20775a077d9e3aeb1ed6
query I rowsort
SELECT ALL - col2 * col2 - col0 * - 23 FROM tab1 AS cor0
----
-1777
-2847
-7376
onlyif mysql # use DIV operator for integer division
query I rowsort label-5943
SELECT ALL - cor0.col1 DIV cor0.col0 + 15 FROM tab0 AS cor0
----
12
13
14
skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL - cor0.col1 / cor0.col0 + 15 FROM tab0 AS cor0
----
12
13
14
query I rowsort
SELECT ALL + col1 * col2 + - col0 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5945
SELECT - col0 * ( - col2 ) + - CAST( col0 * col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5945
SELECT - col0 * ( - col2 ) + - CAST ( col0 * col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 81 FROM tab2, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT - col2 + col2 * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT col2 + tab2.col1 * - col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + 78 + + col2 FROM tab0
----
111
160
79
query I rowsort
SELECT ALL - col1 * col1 + - ( col0 ) AS col0 FROM tab0
----
-7420
-8370
-9444
query I rowsort
SELECT DISTINCT + - col2 * col0 + + 84 FROM tab0 AS cor0
----
-708
-7214
49
query I rowsort
SELECT DISTINCT + 12 * col1 FROM tab0 AS cor0
----
1032
1092
1164
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5953
SELECT DISTINCT ( - cor0.col2 ) * - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT ( - cor0.col2 ) * - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + 76 + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1368
-600
-653
query I rowsort
SELECT DISTINCT cor0.col0 * - col1 * 83 FROM tab1 AS cor0
----
-53120
-6474
-86320
query I rowsort
SELECT ALL + col2 * + ( - col0 ) FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5957
SELECT + col1 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5957
SELECT + col1 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + - 80 * ( + col1 ) * col1 + + col2 FROM tab1 AS cor0
----
-13424
-54026
-7943
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col1 AS REAL ) AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL - col2 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT 33 + ( col2 + - col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-120
-1247
481
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + + 59 - - col2 FROM tab2 AS cor0
----
85
86
97
query I rowsort
SELECT + ( 58 ) - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1190
-1346
-512
onlyif mysql # use DIV operator for integer division
query I rowsort label-5965
SELECT col0 DIV 49 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5965
SELECT col0 / 49 AS col2 FROM tab0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5966
SELECT - + col1 * - col0 DIV col0 AS col2 FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5966
SELECT - + col1 * - col0 / col0 AS col2 FROM tab2 cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5967
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT + CAST ( NULL AS REAL ) * col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 + 99 * - col0 AS col2 FROM tab1 cor0
----
-243
-6279
-7824
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5969
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - - 95 + - 48 FROM tab2 cor0
----
47
47
47
query I rowsort
SELECT DISTINCT + col1 * + col1 + + col1 * + col0 - + col2 FROM tab0 cor0
----
12803
16298
9427
onlyif mysql # use DIV operator for integer division
query I rowsort label-5972
SELECT ALL + - col1 DIV - 9 col2 FROM tab0 AS cor0
----
10
10
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL + - col1 / - 9 col2 FROM tab0 AS cor0
----
10
10
9
query I rowsort
SELECT + - col1 * - col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - - col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL col0 + - 87 * col1 FROM tab2 AS cor0
----
-1400
-2690
-5055
query I rowsort
SELECT ALL ( cor0.col2 ) * + 81 FROM tab2, tab0 AS cor0
----
9 values hashing to cc54ba4ba871419a14fabbeb4f3a7731
query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab1, tab0 AS cor0
----
34
query I rowsort
SELECT + cor1.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL + 23 + 61 * col1 AS col0 FROM tab2 AS cor0
----
1060
1914
3622
query I rowsort
SELECT DISTINCT + 26 + 70 FROM tab0 AS cor0
----
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT DISTINCT + col1 * + 34 - - col1 FROM tab1 AS cor0
----
350
455
910
query I rowsort
SELECT ALL 46 * col1 FROM tab1 AS cor0
----
1196
460
598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5984
SELECT - + CAST( col0 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-5984
SELECT - + CAST ( col0 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT 68 + - tab2.col0 AS col0 FROM tab2
----
-10
-11
61
query I rowsort
SELECT ALL - ( - col1 ) * col2 FROM tab1
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5987
SELECT DISTINCT col0 + - col1 * CAST( - col0 AS SIGNED ) FROM tab0
----
2088
3430
8188
skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT col0 + - col1 * CAST ( - col0 AS INTEGER ) FROM tab0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * + col2 + - col0 + col1 col2 FROM tab2
----
553
618
774
query I rowsort
SELECT col1 * col0 + + 40 FROM tab0 AS cor0
----
2104
3435
8139
onlyif mysql # use DIV operator for integer division
query I rowsort label-5990
SELECT col2 DIV col1 + col0 AS col1 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-5990
SELECT col2 / col1 + col0 AS col1 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT ALL - 84 AS col1 FROM tab2 AS cor0
----
-84
-84
-84
query I rowsort
SELECT DISTINCT + 51 * - col1 FROM tab1 AS cor0
----
-1326
-510
-663
query I rowsort
SELECT DISTINCT - col1 * col1 + 65 FROM tab1 AS cor0
----
-104
-35
-611
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + cor0.col2 * + 83 FROM tab2 AS cor0
----
2158
2241
3154
query I rowsort
SELECT + - col0 * ( col1 ) + + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-406
-4345
-6630
query I rowsort
SELECT + - col2 + - col0 * - 74 AS col2 FROM tab2 cor0
----
491
5746
5808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 + col2 * col0 col1 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT ALL col2 * - ( col0 ) - col1 AS col1 FROM tab0 cor0
----
-132
-7389
-878
onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT DISTINCT - + col1 DIV + col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT - + col1 / + col0 FROM tab2 AS cor0
----
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6001
SELECT ( col0 ) DIV - tab1.col1 + col0 * - col2 AS col0 FROM tab1
----
-162
-3654
-7686
skipif mysql # not compatible
query I rowsort label-6001
SELECT ( col0 ) / - tab1.col1 + col0 * - col2 AS col0 FROM tab1
----
-162
-3654
-7686
query I rowsort
SELECT DISTINCT + 67 + col2 AS col1 FROM tab1
----
121
124
163
query I rowsort
SELECT ALL tab2.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6004
SELECT DISTINCT 38 + col1 DIV - col2 FROM tab1
----
38
skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT 38 + col1 / - col2 FROM tab1
----
38
query I rowsort
SELECT + ( 14 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT DISTINCT + col2 * + col1 + col1 + - col1 AS col0 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - col0 * - ( - col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6009
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6010
SELECT ALL col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 64 + - 10 FROM tab2 AS cor0
----
54
54
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6012
SELECT - CAST( col2 AS SIGNED ) + cor0.col1 * + ( - 48 ) AS col0 FROM tab2 AS cor0
----
-1515
-2858
-854
skipif mysql # not compatible
query I rowsort label-6012
SELECT - CAST ( col2 AS INTEGER ) + cor0.col1 * + ( - 48 ) AS col0 FROM tab2 AS cor0
----
-1515
-2858
-854
query I rowsort
SELECT 74 * - col2 FROM tab2 AS cor0
----
-1924
-1998
-2812
query I rowsort
SELECT col0 * - 91 FROM tab2
----
-637
-7098
-7189
query I rowsort
SELECT ALL tab1.col1 * + 39 FROM tab1
----
1014
390
507
onlyif mysql # use DIV operator for integer division
query I rowsort label-6016
SELECT + cor0.col2 + col1 DIV - ( + cor0.col0 ) FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-6016
SELECT + cor0.col2 + col1 / - ( + cor0.col0 ) FROM tab1 AS cor0
----
46
57
96
query I rowsort
SELECT col1 * + col0 + cor0.col2 + ( col1 + + 43 ) * 78 AS col0 FROM tab1 AS cor0
----
4831
5504
5514
query I rowsort
SELECT + ( cor0.col1 ) * ( 3 ) * col1 - + col0 AS col2 FROM tab0 AS cor0
----
22164
24754
28192
query I rowsort
SELECT + col0 + - col1 * col1 * col2 FROM tab2 cor0
----
-10903
-25940
-90428
query I rowsort
SELECT + col2 * + col1 + + 47 FROM tab1 AS cor0
----
1295
1451
617
query I rowsort
SELECT ALL 6 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT ALL 33 + - col2 + + col0 FROM tab1
----
-18
17
40
query I rowsort
SELECT + col0 * col2 + + col2 AS col0 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT 47 + col2 AS col2 FROM tab1 AS cor0
----
101
104
143
onlyif mysql # use DIV operator for integer division
query I rowsort label-6025
SELECT DISTINCT - 17 DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - 17 / col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT 70 + + col0 - - col1 AS col2 FROM tab0 AS cor0
----
180
202
250
query I rowsort
SELECT DISTINCT + col0 * col2 + col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - ( + 94 + col2 ) AS col1 FROM tab2
----
-120
-121
-132
onlyif mysql # use DIV operator for integer division
query I rowsort label-6029
SELECT ALL ( - 40 ) - col2 DIV + 36 FROM tab0
----
-40
-40
-42
skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL ( - 40 ) - col2 / + 36 FROM tab0
----
-40
-40
-42
query I rowsort
SELECT ALL 16 * + 11 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 6f3f6ff7150b3da5d8d0905676190e0a
query I rowsort
SELECT ALL ( - 97 ) FROM tab2
----
-97
-97
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * + col2 col1 FROM tab1
----
3132
3306
5568
query I rowsort
SELECT + ( - col2 ) + + col1 * - 21 FROM tab2 cor0
----
-1265
-395
-678
onlyif mysql # use DIV operator for integer division
query I rowsort label-6034
SELECT ALL - col2 * col0 * col2 + ( + 53 ) + tab2.col0 DIV + 87 AS col2 FROM tab2
----
-114023
-5050
-52675
skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL - col2 * col0 * col2 + ( + 53 ) + tab2.col0 / + 87 AS col2 FROM tab2
----
-114023
-5050
-52675
query I rowsort
SELECT ALL 55 + col1 FROM tab2
----
114
72
86
query I rowsort
SELECT + 9 * - col0 FROM tab0 AS cor0
----
-216
-315
-801
query I rowsort
SELECT + 29 + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
318
3510
990
query I rowsort
SELECT ( col2 ) * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT 61 * + col1 + - col0 FROM tab2 cor0
----
1884
3521
958
query I rowsort
SELECT ALL - ( - col1 ) AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - + ( + 52 ) FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT ALL 45 * col0 FROM tab1 AS cor0
----
135
2880
3600
query I rowsort
SELECT ALL - 14 * + col1 AS col2 FROM tab2 AS cor0
----
-238
-434
-826
query I rowsort
SELECT DISTINCT + - col1 * + col0 * - 17 FROM tab0 cor0
----
137683
35088
57715
query I rowsort
SELECT - 38 AS col1 FROM tab1 AS cor0
----
-38
-38
-38
query I rowsort
SELECT + cor0.col1 + - col2 * + ( col0 * col0 ) AS col2 FROM tab2 cor0
----
-1292
-158125
-237141
query I rowsort
SELECT DISTINCT 55 * col0 FROM tab0 AS cor0
----
1320
1925
4895
query I rowsort
SELECT + + col2 * 27 AS col2 FROM tab1 AS cor0
----
1458
1539
2592
query I rowsort
SELECT col0 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT col0 + ( ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT col1 + + ( col2 ) * col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + col1 + 28 FROM tab2 AS cor0
----
45
59
87
query I rowsort
SELECT ALL - col0 + 52 AS col2 FROM tab2 AS cor0
----
-26
-27
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-6055
SELECT col1 DIV col0 + col2 col2 FROM tab2 cor0
----
26
31
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6055
SELECT col1 / col0 + col2 col2 FROM tab2 cor0
----
26
31
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6056
SELECT ALL ( cor0.col1 ) + + cor0.col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL ( cor0.col1 ) + + cor0.col1 / - col0 AS col2 FROM tab0 AS cor0
----
83
90
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * - CAST ( 27 AS REAL ) col0 FROM tab0
----
-2403
-648
-945
query I rowsort
SELECT + 23 * - 31 FROM tab2 AS cor0
----
-713
-713
-713
query I rowsort
SELECT DISTINCT + col2 * + col2 + + col1 * - col0 AS col1 FROM tab1 AS cor0
----
2609
2838
8176
query I rowsort
SELECT + - ( - ( col1 ) ) + + ( col2 ) AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - + 1 + + col0 AS col2 FROM tab0 cor0
----
23
34
88
query I rowsort
SELECT ALL - 55 * - 92 AS col2 FROM tab1 AS cor0
----
5060
5060
5060
query I rowsort
SELECT - 28 + + col1 + col2 AS col2 FROM tab1 AS cor0
----
39
52
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT DISTINCT col1 DIV 42 AS col0 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT col1 / 42 AS col0 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT - + ( + cor0.col1 ) * + cor0.col1 + 4 + - col1 FROM tab1 AS cor0
----
-106
-178
-698
query I rowsort
SELECT DISTINCT + - col2 * - cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6067
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( + col2 ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( + col2 ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT DISTINCT ( col1 ) * + col0 DIV + col0 AS col2 FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT ( col1 ) * + col0 / + col0 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + + ( + col0 ) * + col0 + col2 * - 24 FROM tab0 AS cor0
----
-216
1201
5953
query I rowsort
SELECT ALL + 72 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT ALL + - ( 30 ) + col1 FROM tab1 AS cor0
----
-17
-20
-4
query I rowsort
SELECT DISTINCT - ( col1 ) + - col2 * - col0 FROM tab2 cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT col1 + + col2 DIV + col1 + - ( 16 ) FROM tab2
----
15
3
43
skipif mysql # not compatible
query I rowsort label-6074
SELECT col1 + + col2 / + col1 + - ( 16 ) FROM tab2
----
15
3
43
query I rowsort
SELECT DISTINCT - 62 + col2 * + 61 FROM tab2 AS cor0
----
1524
1585
2256
query I rowsort
SELECT DISTINCT col0 + col2 - col2 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - col0 col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + + 93 * + col1 + col2 + col1 AS col2 FROM tab2 AS cor0
----
1636
2941
5572
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6079
SELECT DISTINCT CAST( col2 AS SIGNED ) + col0 AS col2 FROM tab0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT CAST ( col2 AS INTEGER ) + col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT + tab2.col2 + - col1 * col0 + + 40 FROM tab2
----
-1265
-150
-4536
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 + - 35 col1 FROM tab0 AS cor0
----
-35
-35
-35
query I rowsort
SELECT ALL + 18 + + tab0.col1 * - ( + 35 ) * tab0.col2 AS col1 FROM tab0
----
-261152
-3377
-99312
query I rowsort
SELECT col0 - ( + 91 ) * + col0 FROM tab1
----
-270
-5760
-7200
query I rowsort
SELECT DISTINCT col2 * - 81 AS col1 FROM tab0
----
-2673
-6642
-81
query I rowsort
SELECT DISTINCT + - col0 + 27 FROM tab1 AS cor0
----
-37
-53
24
query I rowsort
SELECT ALL + col0 * + 40 - cor0.col0 * col0 FROM tab1 AS cor0
----
-1536
-3200
111
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * CAST ( + ( col1 ) * col1 AS REAL ) FROM tab1 cor0
----
16224
36504
5700
query I rowsort
SELECT ALL + 3 FROM tab0, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT DISTINCT 88 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6090
SELECT col0 * col2 + col2 DIV - col0 FROM tab0 AS cor0
----
35
7298
791
skipif mysql # not compatible
query I rowsort label-6090
SELECT col0 * col2 + col2 / - col0 FROM tab0 AS cor0
----
35
7298
791
query I rowsort
SELECT + - ( col0 ) + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL + 21 + - col1 FROM tab0 AS cor0
----
-65
-70
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6093
SELECT - ( - col0 ) + + 96 * col2 DIV cor0.col1 FROM tab1 AS cor0
----
202
611
788
skipif mysql # not compatible
query I rowsort label-6093
SELECT - ( - col0 ) + + 96 * col2 / cor0.col1 FROM tab1 AS cor0
----
202
611
788
onlyif mysql # use DIV operator for integer division
query I rowsort label-6094
SELECT ALL col1 + tab1.col2 DIV col2 col1 FROM tab1
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL col1 + tab1.col2 / col2 col1 FROM tab1
----
11
14
27
query I rowsort
SELECT - 44 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT - 51 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT tab2.col1 AS col0 FROM tab2, tab1, tab2 AS cor0, tab2 cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col2 FROM tab2
----
46
query I rowsort
SELECT cor0.col2 * - 80 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 02f760529381ca25cbb9e53d6037c8c2
query I rowsort
SELECT DISTINCT + 62 * + col1 AS col0 FROM tab0 AS cor0
----
5332
5642
6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-6101
SELECT - col2 * col1 DIV + cor0.col0 col0 FROM tab0 AS cor0
----
-118
-2
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6101
SELECT - col2 * col1 / + cor0.col0 col0 FROM tab0 AS cor0
----
-118
-2
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + + col0 * + 12 col0 FROM tab2 AS cor0
----
1002
1014
150
query I rowsort
SELECT DISTINCT - + col1 * - col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + 19 + + cor0.col0 AS col2 FROM tab2 cor0
----
26
97
98
query I rowsort
SELECT + + 69 + col2 AS col1 FROM tab0 AS cor0
----
102
151
70
query I rowsort
SELECT ALL + cor0.col2 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT - 32 FROM tab0, tab2 AS cor0
----
-32
query I rowsort
SELECT ALL col2 - col1 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL - col1 - 36 FROM tab1
----
-46
-49
-62
query I rowsort
SELECT ALL col1 * col2 - 15 * cor0.col1 FROM tab2 AS cor0
----
372
391
649
query I rowsort
SELECT DISTINCT + + cor0.col0 AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - col0 * 66 AS col1 FROM tab2 AS cor0
----
-462
-5148
-5214
query I rowsort
SELECT ALL + col2 - ( 6 ) FROM tab0 AS cor0
----
-5
27
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6114
SELECT DISTINCT col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 80 FROM tab2, tab0 AS cor0
----
80
query I rowsort
SELECT ALL 83 FROM tab0, tab1 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT col2 * + 14 FROM tab1
----
1344
756
798
query I rowsort
SELECT DISTINCT 94 + 44 AS col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
138
query I rowsort
SELECT ALL - col2 + - 22 + col0 * - col0 AS col1 FROM tab2
----
-6132
-6301
-98
query I rowsort
SELECT DISTINCT - col2 * 21 * 49 AS col2 FROM tab2 AS cor0
----
-26754
-27783
-39102
query I rowsort
SELECT + 68 * - col1 + col0 * col1 FROM tab1 AS cor0
----
-1690
-40
156
onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT + + 66 + 89 DIV col1 FROM tab1 AS cor0
----
69
72
74
skipif mysql # not compatible
query I rowsort label-6122
SELECT + + 66 + 89 / col1 FROM tab1 AS cor0
----
69
72
74
query I rowsort
SELECT ALL - - col1 * col0 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL col0 + + 16 + col2 FROM tab0 AS cor0
----
187
52
73
query I rowsort
SELECT DISTINCT - + col0 - 3 FROM tab0 AS cor0
----
-27
-38
-92
query I rowsort
SELECT DISTINCT col0 * - col0 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
-4550
-5595
788
query I rowsort
SELECT ALL - col2 * col0 - + cor0.col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT 21 + cor0.col2 * col0 FROM tab1 AS cor0
----
183
3669
7701
query I rowsort
SELECT DISTINCT cor0.col2 * - 65 - + col2 * col0 FROM tab0 AS cor0
----
-100
-12628
-2937
query I rowsort
SELECT 66 * col0 * cor0.col0 - - 53 * - 40 FROM tab0 AS cor0
----
35896
520666
78730
query I rowsort
SELECT + + ( - col1 ) + col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6132
SELECT ALL + cor0.col1 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL + cor0.col1 / - col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + col2 col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + - ( col2 ) + col1 * - col0 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT + col1 + - col1 * col1 DIV + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6135
SELECT + col1 + - col1 * col1 / + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + + 58 * + col0 FROM tab2 AS cor0
----
406
4524
4582
query I rowsort
SELECT DISTINCT - col1 * 60 FROM tab2 AS cor0
----
-1020
-1860
-3540
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6138
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 66 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 66 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + 2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
88
93
99
query I rowsort
SELECT ALL - - ( 69 ) * col1 AS col1 FROM tab1 cor0
----
1794
690
897
query I rowsort
SELECT + ( col2 ) - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + tab1.col1 * - tab1.col2 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT tab2.col2 * 3 FROM tab2
----
114
78
81
query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab1, tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT + ( - col2 ) DIV col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-6145
SELECT + ( - col2 ) / col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT + - col0 + + col1 + + col1 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT ALL + col1 + - 32 FROM tab2 AS cor0
----
-1
-15
27
query I rowsort
SELECT - + cor0.col0 * col2 + + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + + col0 * col2 + - col0 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
105
3527
7504
query I rowsort
SELECT col1 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT col2 + col2 * tab1.col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ( - col1 + + col0 ) * + 91 * col2 FROM tab1
----
-113022
280098
585312
query I rowsort
SELECT col2 + col1 * + 91 FROM tab2 AS cor0
----
1585
2848
5395
query I rowsort
SELECT ALL + - col1 * 80 AS col0 FROM tab1 AS cor0
----
-1040
-2080
-800
query I rowsort
SELECT ALL - col2 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - col2 + + ( ( col1 ) ) AS col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ( - tab1.col1 ) AS col1 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * col0 col0 FROM tab0
----
2256
3290
8366
query I rowsort
SELECT ALL + cor1.col1 FROM tab1 cor0 CROSS JOIN tab1, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col2 * + cor0.col2 + + col2 * - col0 FROM tab2 cor0
----
-1352
-1558
540
onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT + col0 * 28 DIV col1 AS col1 FROM tab1 AS cor0
----
172
179
3
skipif mysql # not compatible
query I rowsort label-6161
SELECT + col0 * 28 / col1 AS col1 FROM tab1 AS cor0
----
172
179
3
query I rowsort
SELECT DISTINCT col1 * + tab0.col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + col1 + col1 * + tab1.col1 FROM tab1
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-6164
SELECT + 48 * + col1 DIV - tab0.col1 FROM tab0
----
-48
-48
-48
skipif mysql # not compatible
query I rowsort label-6164
SELECT + 48 * + col1 / - tab0.col1 FROM tab0
----
-48
-48
-48
query I rowsort
SELECT cor0.col0 * + cor0.col2 - - 92 FROM tab0 cor0
----
127
7390
884
onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT DISTINCT + - col1 + col1 * - cor0.col1 DIV col1 FROM tab2 AS cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT + - col1 + col1 * - cor0.col1 / col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + col1 + col2 - 18 * col0 FROM tab0 cor0
----
-1429
-313
-532
query I rowsort
SELECT - col1 - + ( 31 ) AS col0 FROM tab1 AS cor0
----
-41
-44
-57
query I rowsort
SELECT ALL - 77 FROM tab0
----
-77
-77
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col2 FROM tab2
----
14
14
14
query I rowsort
SELECT ALL + col1 * - 33 + - col1 AS col0 FROM tab2
----
-1054
-2006
-578
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 cor1, tab2, tab1 AS cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23
query I rowsort
SELECT - col0 * col1 - 2 AS col2 FROM tab0
----
-2066
-3397
-8101
query I rowsort
SELECT DISTINCT col1 * - col1 - - col0 * col1 AS col0 FROM tab2
----
-744
1054
1121
query I rowsort
SELECT - 55 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 037c686cf473a7e2cc59ce6c19d8dc57
query I rowsort
SELECT DISTINCT + col1 * + col2 + 95 * + col1 + cor0.col2 * col2 FROM tab2 cor0
----
3705
4511
7815
query I rowsort
SELECT - - col1 * ( + cor0.col0 ) + cor0.col0 * + 83 FROM tab1 AS cor0
----
327
5952
7680
query I rowsort
SELECT - cor0.col0 * 4 FROM tab2 AS cor0
----
-28
-312
-316
query I rowsort
SELECT cor1.col1 * - 84 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51002eaedb8c46c2003d6b8e1630bd2e
query I rowsort
SELECT ( + col0 ) * col2 + cor0.col0 * - 62 AS col1 FROM tab2 AS cor0
----
-1896
-245
-2808
query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
32
query I rowsort
SELECT - col0 * col2 * + cor0.col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6183
SELECT + - 26 DIV col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6183
SELECT + - 26 / col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT 11 * col0 AS col2 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT 31 + col0 * ( ( - cor0.col0 ) * + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-233441
-455
-614369
onlyif mysql # use DIV operator for integer division
query I rowsort label-6186
SELECT ALL + - cor0.col2 DIV - col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL + - cor0.col2 / - col1 FROM tab2 AS cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6189
SELECT ALL - - col1 + col2 DIV - col2 FROM tab1 cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL - - col1 + col2 / - col2 FROM tab1 cor0
----
12
25
9
query I rowsort
SELECT ALL - 46 * - col1 FROM tab2 AS cor0
----
1426
2714
782
query I rowsort
SELECT DISTINCT - + 67 AS col0 FROM tab1 AS cor0
----
-67
query I rowsort
SELECT + - 86 FROM tab2 cor0
----
-86
-86
-86
query I rowsort
SELECT ALL - 59 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
-38114
-49383
-90506
query I rowsort
SELECT ALL - cor0.col0 * - col0 + col0 + + col0 FROM tab1 AS cor0
----
15
4224
6560
onlyif mysql # use DIV operator for integer division
query I rowsort label-6195
SELECT DISTINCT col1 DIV CAST( - col1 + - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT col1 / CAST ( - col1 + - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col2 + 59 * - col2 FROM tab2 AS cor0
----
-1508
-1566
-2204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6197
SELECT col2 * col1 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6197
SELECT col2 * col1 + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6199
SELECT DISTINCT + ( - 12 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT + ( - 12 ) / + col2 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + - 76 + col2 AS col1 FROM tab1 AS cor0
----
-19
-22
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6201
SELECT CAST( NULL AS SIGNED ) + col0 * col1 * - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6201
SELECT CAST ( NULL AS INTEGER ) + col0 * col1 * - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - ( - col2 ) AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - 63 * + col0 + - col2 FROM tab2 cor0
----
-468
-4940
-5015
query I rowsort
SELECT + col2 - + 96 FROM tab1
----
-39
-42
0
query I rowsort
SELECT ALL + col2 * col1 + + col0 AS col1 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-6206
SELECT DISTINCT - 59 DIV cor0.col0 FROM tab0, tab2 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - 59 / cor0.col0 FROM tab0, tab2 AS cor0
----
-8
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * cor0.col2 - 42 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 7798f0f0ff508db86d32df5c91e84be6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 * + tab0.col2 + col2 col0 FROM tab0
----
-1287
-3198
-39
query I rowsort
SELECT DISTINCT - 29 + - col2 FROM tab2
----
-55
-56
-67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6210
SELECT DISTINCT ( - ( - col0 ) ) * CAST( NULL AS SIGNED ) + + col0 * + col0 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT ( - ( - col0 ) ) * CAST ( NULL AS INTEGER ) + + col0 * + col0 AS col0 FROM tab0
----
NULL
query I rowsort
SELECT 67 * - col0 FROM tab1
----
-201
-4288
-5360
query I rowsort
SELECT ALL + col0 * + 60 FROM tab2 AS cor0
----
420
4680
4740
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 + col1 + col0 col1 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT + col0 * - col0 - + col1 * - col1 FROM tab2 AS cor0
----
-2603
-5952
912
query I rowsort
SELECT ALL col1 + col0 * 40 AS col2 FROM tab0 AS cor0
----
1046
1497
3651
query I rowsort
SELECT DISTINCT - + col1 * 61 FROM tab1 AS cor0
----
-1586
-610
-793
query I rowsort
SELECT - col0 + col2 * col1 + - col2 AS col1 FROM tab2
----
1430
529
803
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 + + 7 col2 FROM tab1 AS cor0
----
-121
-153
1
query I rowsort
SELECT col0 + ( 74 ) AS col1 FROM tab2 AS cor0
----
152
153
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6220
SELECT + col2 + + CAST( NULL AS DECIMAL ) * + 74 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6220
SELECT + col2 + + CAST ( NULL AS REAL ) * + 74 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT col0 * - col1 + + col2 + - cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-24
-584
-944
skipif mysql # not compatible
query I rowsort label-6221
SELECT col0 * - col1 + + col2 + - cor0.col0 / col2 AS col1 FROM tab1 AS cor0
----
-24
-584
-944
query I rowsort
SELECT + col0 * + tab0.col2 * 18 AS col0 FROM tab0
----
131364
14256
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6223
SELECT CAST( NULL AS SIGNED ) * + cor0.col1 + col0 * cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6223
SELECT CAST ( NULL AS INTEGER ) * + cor0.col1 + col0 * cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT col0 * col1 DIV + col1 + + tab2.col1 + + col0 DIV - col1 FROM tab2
----
136
38
92
skipif mysql # not compatible
query I rowsort label-6225
SELECT col0 * col1 / + col1 + + tab2.col1 + + col0 / - col1 FROM tab2
----
136
38
92
query I rowsort
SELECT ALL col0 * + col1 * + col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT ALL + ( col1 ) + - col2 * - cor0.col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL - col1 + - col0 + - col1 FROM tab1
----
-106
-55
-84
query I rowsort
SELECT DISTINCT 12 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
12
query I rowsort
SELECT DISTINCT - 19 + + col2 * 71 FROM tab2 AS cor0
----
1827
1898
2679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col0 + + tab2.col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab0
----
13
query I rowsort
SELECT col2 - tab1.col2 * col0 AS col1 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT + - cor0.col1 - + col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + tab2.col1 * + col2 * tab2.col0 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col0 - col2 col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT - tab1.col1 * + ( + tab1.col1 * - col2 ) FROM tab1
----
16224
36504
5700
query I rowsort
SELECT DISTINCT - 97 * + 80 FROM tab2 AS cor0
----
-7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6242
SELECT + CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-6242
SELECT + CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - 60 + + col1 AS col1 FROM tab1 cor0
----
-34
-47
-50
query I rowsort
SELECT DISTINCT col2 * - col1 + col2 AS col2 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6246
SELECT - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6246
SELECT - 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 col2 * 1 + - col1 * - col0 col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - ( + col1 + tab0.col1 ) AS col2 FROM tab0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col1 * + col2 col2 FROM tab0 AS cor0
----
0
2752
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 86 col2 FROM tab2 AS cor0
----
-2236
-2322
-3268
query I rowsort
SELECT ALL 49 + + col2 + + col0 FROM tab1 AS cor0
----
106
170
225
query I rowsort
SELECT ( + cor0.col0 ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT - CAST( + col1 AS SIGNED ) DIV + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6253
SELECT - CAST ( + col1 AS INTEGER ) / + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT 82 FROM tab0 AS cor0
----
82
query I rowsort
SELECT - col2 + 35 AS col0 FROM tab2 AS cor0
----
-3
8
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6256
SELECT ALL - + col0 + + col0 DIV col2 FROM tab1 AS cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL - + col0 + + col0 / col2 FROM tab1 AS cor0
----
-3
-63
-80
query I rowsort
SELECT DISTINCT - - 81 + col0 AS col0 FROM tab1 AS cor0
----
145
161
84
query I rowsort
SELECT + 81 FROM tab1 AS cor0
----
81
81
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-6259
SELECT DISTINCT - 21 DIV - 62 AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - 21 / - 62 AS col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + 78 + col0 * col0 FROM tab2 AS cor0
----
127
6162
6319
query I rowsort
SELECT ALL - col1 - col2 * 41 FROM tab2 AS cor0
----
-1125
-1138
-1575
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + col0 * - ( - col0 ) col1 FROM tab0 AS cor0
----
1190
552
7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6263
SELECT cor0.col1 * - col2 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6263
SELECT cor0.col1 * - col2 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - cor0.col1 ) * 9 - col2 * col1 AS col0 FROM tab0 AS cor0
----
-3612
-8281
-970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 * - col0 col2 FROM tab0 AS cor0
----
-120
-175
-445
query I rowsort
SELECT - 46 * - col2 - col1 FROM tab0
----
-51
1432
3681
query I rowsort
SELECT 28 + 19 FROM tab0
----
47
47
47
query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab2, tab1 AS cor0
----
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 col0 FROM tab0
----
18
query I rowsort
SELECT + col0 + 14 AS col2 FROM tab1 AS cor0
----
17
78
94
query I rowsort
SELECT ALL + col2 * + ( + 80 ) AS col2 FROM tab0 AS cor0
----
2640
6560
80
query I rowsort
SELECT ALL col1 * 16 FROM tab1 AS cor0
----
160
208
416
query I rowsort
SELECT DISTINCT cor0.col0 * col1 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT 84 * col0 AS col1 FROM tab2
----
588
6552
6636
query I rowsort
SELECT - col2 * col2 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
-2609
-2838
-8176
onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT ALL - col0 DIV + cor0.col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - col0 / + cor0.col0 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col1 + + 72 * col0 FROM tab2 AS cor0
----
535
5675
5705
onlyif mysql # use DIV operator for integer division
query I rowsort label-6278
SELECT DISTINCT - cor0.col0 * col2 * - 23 + + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
176640
3726
83905
skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT - cor0.col0 * col2 * - 23 + + col0 / col2 AS col0 FROM tab1 AS cor0
----
176640
3726
83905
query I rowsort
SELECT col1 + + 73 FROM tab0 AS cor0
----
159
164
170
query I rowsort
SELECT ALL - 85 + col1 AS col0 FROM tab1
----
-59
-72
-75
query I rowsort
SELECT + 42 * + cor1.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 71f2f521d323e7f3e1cc806cf72b0d96
query I rowsort
SELECT - + cor0.col1 + col2 * - ( + col1 + col2 ) * ( - col1 + - col1 ) AS col2 FROM tab2 AS cor0
----
260721
71043
97061
query I rowsort
SELECT ALL + col1 * + col1 + + col2 AS col2 FROM tab2
----
327
3507
988
query I rowsort
SELECT col0 * + col1 - tab1.col2 AS col1 FROM tab1
----
24
583
944
query I rowsort
SELECT tab1.col2 * tab1.col0 + - 10 FROM tab1
----
152
3638
7670
query I rowsort
SELECT + tab0.col1 * - ( - col0 ) + tab0.col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT - - col1 * 57 + col2 FROM tab0 AS cor0
----
4935
5269
5530
query I rowsort
SELECT DISTINCT - col2 * - ( + ( - tab2.col1 ) ) * ( 62 ) + col2 AS col1 FROM tab2
----
-40014
-51867
-95082
query I rowsort
SELECT ( - cor0.col1 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * 83 col1 FROM tab1 AS cor0
----
-4482
-4731
-7968
query I rowsort
SELECT DISTINCT + col1 * + 54 + - col1 AS col1 FROM tab1 AS cor0
----
1378
530
689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6292
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 * + col2 + + col0 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT ALL - - cor0.col0 + col1 - - cor0.col1 FROM tab2 cor0
----
113
196
69
query I rowsort
SELECT DISTINCT - ( - 13 ) FROM tab0 AS cor0
----
13
query I rowsort
SELECT ALL - 25 + + 97 AS col2 FROM tab2 AS cor0
----
72
72
72
query I rowsort
SELECT ALL + 28 - - col2 AS col1 FROM tab1 AS cor0
----
124
82
85
query I rowsort
SELECT ALL 30 * - 26 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2136
2469
8436
query I rowsort
SELECT ALL - cor0.col0 + + 76 FROM tab1 AS cor0
----
-4
12
73
query I rowsort
SELECT ALL - - 7 FROM tab1 AS cor0
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT ALL + cor0.col0 + - col2 DIV - cor0.col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + cor0.col0 + - col2 / - cor0.col0 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT - 92 * - 99 AS col1 FROM tab1 cor0
----
9108
9108
9108
query I rowsort
SELECT DISTINCT - ( col2 ) + col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - col2 * + ( col0 ) * - 74 + - col2 * col0 FROM tab1 AS cor0
----
-12150
-273600
-576000
query I rowsort
SELECT ALL + - col1 - + 32 FROM tab1 AS cor0
----
-42
-45
-58
query I rowsort
SELECT - ( 94 ) AS col1 FROM tab2 AS cor0
----
-94
-94
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) col0 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6308
SELECT col1 + col0 + 32 * col2 DIV col2 AS col2 FROM tab0
----
142
164
212
skipif mysql # not compatible
query I rowsort label-6308
SELECT col1 + col0 + 32 * col2 / col2 AS col2 FROM tab0
----
142
164
212
query I rowsort
SELECT DISTINCT - col0 * tab2.col1 + - ( - col0 * col1 ) AS col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + + 23 * col0 FROM tab2 cor0
----
161
1794
1817
query I rowsort
SELECT + col2 * col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 - + col2 col2 FROM tab2 AS cor0
----
-105
-106
-117
query I rowsort
SELECT ALL - 86 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
7826
8342
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 * col0 col0 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT DISTINCT - + 32 + col1 AS col1 FROM tab1 AS cor0
----
-19
-22
-6
query I rowsort
SELECT DISTINCT + - 85 * + cor0.col1 AS col1 FROM tab0 cor0
----
-7310
-7735
-8245
query I rowsort
SELECT + cor0.col1 + col0 * - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-185
-1995
-3023
query I rowsort
SELECT - col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT 86 * - cor0.col0 FROM tab2 AS cor0
----
-602
-6708
-6794
query I rowsort
SELECT ALL - col1 * 83 + - 77 FROM tab1 AS cor0
----
-1156
-2235
-907
query I rowsort
SELECT ALL col0 + - 66 + + ( - cor0.col2 ) FROM tab0 AS cor0
----
-32
-59
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 86 col1 FROM tab1 AS cor0
----
150
166
89
query I rowsort
SELECT DISTINCT - col0 * + 43 * - cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
156928
330320
6969
query I rowsort
SELECT ALL - 75 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
onlyif mysql # use DIV operator for integer division
query I rowsort label-6326
SELECT - col1 * tab0.col0 DIV 15 + col0 + + col1 FROM tab0
----
-27
-359
-94
skipif mysql # not compatible
query I rowsort label-6326
SELECT - col1 * tab0.col0 / 15 + col0 + + col1 FROM tab0
----
-27
-359
-94
query I rowsort
SELECT DISTINCT + + cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + col1 * 17 * col2 + + col1 FROM tab1 AS cor0
----
21229
23894
9700
query I rowsort
SELECT ALL - - cor0.col0 AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL 35 * - col0 * col1 FROM tab0
----
-118825
-283465
-72240
query I rowsort
SELECT DISTINCT ( col0 ) * - ( - col1 ) FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6332
SELECT DISTINCT + col0 + + col0 * CAST( NULL AS SIGNED ) / col0 + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT + col0 + + col0 * CAST ( NULL AS INTEGER ) / col0 + col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6333
SELECT + col1 + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-6333
SELECT + col1 + col2 / col2 AS col0 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL + col1 * col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL - col2 * + col2 - + 91 AS col2 FROM tab1 AS cor0
----
-3007
-3340
-9307
query I rowsort
SELECT ALL 73 * + col2 AS col0 FROM tab2 AS cor0
----
1898
1971
2774
query I rowsort
SELECT col0 * cor0.col0 * col0 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT - - col1 * + ( col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-6339
SELECT ALL - cor0.col2 DIV - col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - cor0.col2 / - col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 + + ( col2 ) * col2 - 15 FROM tab1 AS cor0
----
2594
2823
8161
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6342
SELECT col1 * - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6342
SELECT col1 * - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor1.col2 + 43 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2b6f370aeac216577f06fcbd0504d50b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6344
SELECT + cor0.col2 * col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
364
590
6
skipif mysql # not compatible
query I rowsort label-6344
SELECT + cor0.col2 * col0 / + col1 AS col0 FROM tab1 AS cor0
----
364
590
6
query I rowsort
SELECT ALL - ( + col0 ) * + col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT - cor1.col2 * cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to cbc7ea781e219f4177126feeb59feb2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6347
SELECT ALL + + col2 DIV 35 + col0 FROM tab1 AS cor0
----
4
65
82
skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL + + col2 / 35 + col0 FROM tab1 AS cor0
----
4
65
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT + 12 * - col0 + + col2 FROM tab2 cor0
----
-57
-910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6350
SELECT CAST( col0 AS SIGNED ) + + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
3559
368
968
skipif mysql # not compatible
query I rowsort label-6350
SELECT CAST ( col0 AS INTEGER ) + + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT tab2.col0 + - ( + col2 + col0 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col0 + - 84 FROM tab0
----
-49
-60
5
query I rowsort
SELECT - - 12 + + 0 FROM tab2 AS cor0
----
12
12
12
query I rowsort
SELECT ALL - + cor0.col1 + - 78 FROM tab1 AS cor0
----
-104
-88
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 65 + col0 * col1 col0 FROM tab0 AS cor0
----
2129
3460
8164
query I rowsort
SELECT - ( 41 ) + cor0.col0 FROM tab1 AS cor0
----
-38
23
39
query I rowsort
SELECT DISTINCT + 45 * col2 * - tab0.col1 FROM tab0
----
-127710
-335790
-4365
query I rowsort
SELECT - col1 * - col1 * 83 FROM tab0 AS cor0
----
613868
687323
780947
query I rowsort
SELECT + - 70 AS col0 FROM tab1 AS cor0
----
-70
-70
-70
query I rowsort
SELECT 12 + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2076
3407
8111
query I rowsort
SELECT ( + col0 ) * - col2 * + col2 + + col1 AS col0 FROM tab0
----
-26050
-598345
62
query I rowsort
SELECT + 66 * 91 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 5b027fc26135f8fbc5a7bd5e111750e9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6363
SELECT col2 DIV 86 + + col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6363
SELECT col2 / 86 + + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab2, tab0 AS cor0
----
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-6365
SELECT - 20 DIV + col1 + 40 * 49 FROM tab2 AS cor0
----
1959
1960
1960
skipif mysql # not compatible
query I rowsort label-6365
SELECT - 20 / + col1 + 40 * 49 FROM tab2 AS cor0
----
1959
1960
1960
onlyif mysql # use DIV operator for integer division
query I rowsort label-6366
SELECT - - cor0.col2 DIV cor0.col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6366
SELECT - - cor0.col2 / cor0.col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 45 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
onlyif mysql # use DIV operator for integer division
query I rowsort label-6368
SELECT ALL 46 DIV tab2.col1 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL 46 / tab2.col1 FROM tab2
----
0
1
2
query I rowsort
SELECT ALL 5 * col0 FROM tab0
----
120
175
445
query I rowsort
SELECT + + 8 * col2 * - col2 FROM tab0 AS cor0
----
-53792
-8
-8712
query I rowsort
SELECT ALL - 8 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
query I rowsort
SELECT DISTINCT col0 + - 56 FROM tab1
----
-53
24
8
query I rowsort
SELECT ALL col1 * + ( + 48 ) + col0 AS col2 FROM tab1
----
1251
544
704
query I rowsort
SELECT DISTINCT - tab1.col0 * + ( - 82 ) FROM tab1, tab0, tab2 AS cor0
----
246
5248
6560
query I rowsort
SELECT ALL - 5 * + 26 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3e323cca4480a8ff656f0db20c1c30c5
query I rowsort
SELECT + col2 * ( - 36 ) AS col0 FROM tab0
----
-1188
-2952
-36
query I rowsort
SELECT + - col0 * col2 + col1 * col1 FROM tab0 AS cor0
----
6604
9374
983
query I rowsort
SELECT - + 48 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-2592
-2736
-4608
query I rowsort
SELECT ALL - tab2.col2 + 95 * 63 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 65e284a7998d30b84e9c1759d04f1a32
query I rowsort
SELECT ALL - col0 * - col2 + - col0 * col0 AS col0 FROM tab0
----
-1190
-623
216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( cor0.col0 ) ) col1 FROM tab2, tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col1 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col2 col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6384
SELECT - cor0.col0 DIV col2 + + cor0.col1 DIV 14 AS col0 FROM tab0 AS cor0
----
-29
5
6
skipif mysql # not compatible
query I rowsort label-6384
SELECT - cor0.col0 / col2 + + cor0.col1 / 14 AS col0 FROM tab0 AS cor0
----
-29
5
6
query I rowsort
SELECT DISTINCT col0 * col1 + col2 * + ( ( col2 ) ) FROM tab1 AS cor0
----
10256
2994
3889
query I rowsort
SELECT DISTINCT + - col1 + - ( cor0.col0 ) * 90 AS col1 FROM tab2 cor0
----
-661
-7079
-7127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + cor0.col0 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - ( 94 ) AS col2 FROM tab0 AS cor0
----
-94
-94
-94
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT - tab0.col0 FROM tab0 WHERE NOT ( + col0 + col0 * col0 ) NOT IN ( - col0 * + col1 + - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6391
SELECT DISTINCT + col0 DIV - col1 + - col2 * - col1 FROM tab1
----
1242
1404
564
skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT + col0 / - col1 + - col2 * - col1 FROM tab1
----
1242
1404
564
query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1 WHERE NOT ( NULL ) < ( col0 )
----
query I rowsort
SELECT col1 * + tab2.col0 / col0 FROM tab2 WHERE NOT + col1 + + col0 NOT IN ( - col1 + col0 )
----
query I rowsort
SELECT col0 + + col1 AS col0 FROM tab1 cor0
----
29
74
93
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0
----
query I rowsort
SELECT ALL + col1 * col1 + col2 FROM tab1
----
157
265
730
query I rowsort
SELECT col0 + + tab2.col2 * + col2 FROM tab2
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-6398
SELECT DISTINCT - tab1.col1 DIV tab1.col0 + - col0 AS col0 FROM tab1
----
-11
-64
-80
skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT - tab1.col1 / tab1.col0 + - col0 AS col0 FROM tab1
----
-11
-64
-80
query III rowsort
SELECT * FROM tab2 WHERE NULL <= - col0 * col0
----
query I rowsort
SELECT ALL col0 + + tab1.col0 * + col1 * - col1 AS col0 FROM tab1
----
-13440
-2025
-6336
onlyif mysql # use DIV operator for integer division
query I rowsort label-6401
SELECT + tab1.col2 + + col2 DIV col2 AS col1 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-6401
SELECT + tab1.col2 + + col2 / col2 AS col1 FROM tab1
----
55
58
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6402
SELECT col2 - - col0 DIV + col0 AS col1 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-6402
SELECT col2 - - col0 / + col0 AS col1 FROM tab2
----
27
28
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT ALL + col2 DIV + col2 + - col1 * col0 FROM tab1
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + col2 / + col2 + - col1 * col0 FROM tab1
----
-1039
-639
-77
query I rowsort
SELECT ALL - col1 * col2 * col0 AS col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + tab0.col1 * col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 + - col0 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col1 + - tab0.col2 FROM tab0
----
53
9
96
query I rowsort
SELECT - - col1 * col1 * col0 + cor0.col1 FROM tab0 AS cor0
----
177590
329412
737100
query I rowsort
SELECT col1 * col2 + - col2 - - col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + col2 * + col0 * - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-119678
-51072
-5886
onlyif mysql # use DIV operator for integer division
query I rowsort label-6411
SELECT col2 DIV - col1 + - cor0.col0 + col1 FROM tab2 AS cor0
----
-19
-64
24
skipif mysql # not compatible
query I rowsort label-6411
SELECT col2 / - col1 + - cor0.col0 + col1 FROM tab2 AS cor0
----
-19
-64
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6412
SELECT + + cor0.col2 DIV cor0.col0 + col0 DIV col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6412
SELECT + + cor0.col2 / cor0.col0 + col0 / col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + col2 * col1 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 - - tab2.col1 <= NULL
----
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col1 * + col0 FROM tab2 WHERE col1 IN ( col1 )
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 * col1 col0 FROM tab1
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + col0 * + col1 col2 FROM tab2
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col1 + col2 - col1 * - cor0.col2 col0 FROM tab2 AS cor0
----
1081
2027
6162
query I rowsort
SELECT col2 * + col1 + col2 * + col1 FROM tab0 AS cor0
----
14924
194
5676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 * col0 * col1 + + col2 col0 FROM tab2 WHERE NOT ( + col0 ) <> + col0
----
119678
51072
5886
query I rowsort
SELECT ALL + col1 * ( - 20 ) AS col1 FROM tab2 AS cor0
----
-1180
-340
-620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + col2 + 49 FROM tab0 AS cor0
----
131
50
82
query I rowsort
SELECT col2 + - col2 * 41 * col1 AS col0 FROM tab1 AS cor0
----
-23313
-51072
-57510
skipif mysql # not compatible
query I rowsort
SELECT + - col2 * CAST ( 67 AS REAL ) + - col1 + - ( + col1 * - col2 + + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1030
-1955
-293
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6428
SELECT ALL - - col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL - - col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6429
SELECT DISTINCT - + col1 + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT - + col1 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6430
SELECT cor0.col2 DIV col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6430
SELECT cor0.col2 / col2 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col0 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT col1 * - ( cor0.col2 ) + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT - cor0.col0 + - 34 FROM tab0 AS cor0
----
-123
-58
-69
query I rowsort
SELECT DISTINCT + + col0 + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6435
SELECT ALL - col1 + col1 DIV - 79 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - col1 + col1 / - 79 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL col2 * tab1.col1 - + ( + 82 ) AS col1 FROM tab1
----
1166
1322
488
query I rowsort
SELECT DISTINCT - 38 FROM tab2, tab1 AS cor0
----
-38
query I rowsort
SELECT + col0 * 46 + + 66 FROM tab0 AS cor0
----
1170
1676
4160
query I rowsort
SELECT DISTINCT + col0 * - col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( col2 ) col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT + - col2 * col1 DIV + 14 AS col2 FROM tab1 AS cor0
----
-100
-40
-89
skipif mysql # not compatible
query I rowsort label-6441
SELECT + - col2 * col1 / + 14 AS col2 FROM tab1 AS cor0
----
-100
-40
-89
query I rowsort
SELECT ALL + col1 * + 7 + + col0 AS col0 FROM tab0 AS cor0
----
626
714
726
query I rowsort
SELECT + col2 FROM tab0 WHERE col1 * col1 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col0 * - col2 + tab2.col1 AS col0 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT tab2.col0 * + col2 * tab2.col2 + - col1 FROM tab2
----
114059
5072
52669
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col2 * + col0 + - tab2.col1 * + col1 FROM tab2 WHERE NULL <> + col0 * + col1
----
query I rowsort
SELECT DISTINCT col0 + - col0 * + tab0.col0 FROM tab0
----
-1190
-552
-7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-6449
SELECT ALL + col0 DIV - col0 + - col2 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL + col0 / - col0 + - col2 FROM tab1
----
-55
-58
-97
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col0 * col0 )
----
query I rowsort
SELECT col2 * col2 + col0 / col2 + + col2 AS col2 FROM tab0 WHERE NULL NOT IN ( col0 * + col0 * tab0.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6452
SELECT ALL + - col2 - + col1 * cor0.col0 DIV 20 FROM tab0 AS cor0
----
-136
-170
-486
skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL + - col2 - + col1 * cor0.col0 / 20 FROM tab0 AS cor0
----
-136
-170
-486
query I rowsort
SELECT ALL 55 + col1 FROM tab0
----
141
146
152
onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT DISTINCT col2 + cor0.col2 - col1 DIV - col1 col1 FROM tab2 AS cor0
----
53
55
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT col2 + cor0.col2 - col1 / - col1 col1 FROM tab2 AS cor0
----
53
55
77
query I rowsort
SELECT 40 - col2 AS col1 FROM tab0 AS cor0
----
-42
39
7
query I rowsort
SELECT ALL - - col1 + col1 AS col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT col1 * + col1 * - tab2.col2 + col1 FROM tab2
----
-10965
-25916
-90447
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6458
SELECT + col2 + - ( col1 ) / + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6458
SELECT + col2 + - ( col1 ) / + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6459
SELECT + - col0 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6459
SELECT + - col0 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 47 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT - - 20 FROM tab1 AS cor0
----
20
20
20
query I rowsort
SELECT ALL 90 * 76 FROM tab2 AS cor0
----
6840
6840
6840
query I rowsort
SELECT DISTINCT ( + 3 ) FROM tab2 AS cor0
----
3
query I rowsort
SELECT ALL cor0.col1 + - col0 + col0 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + ( ( col2 ) ) + + 44 AS col2 FROM tab0 AS cor0
----
126
45
77
query I rowsort
SELECT ( 77 ) * - cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1d5e9447b5fe06b87957fc8fb6085eef
query I rowsort
SELECT DISTINCT + 73 + col2 AS col0 FROM tab0
----
106
155
74
query I rowsort
SELECT DISTINCT 65 + + col0 * col0 AS col0 FROM tab2 AS cor0
----
114
6149
6306
query I rowsort
SELECT - col1 + + cor0.col2 * 21 AS col2 FROM tab0 cor0
----
-76
1631
607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col0 FROM tab1 AS cor0
----
-87
query I rowsort
SELECT ALL - 93 * col2 AS col0 FROM tab2 AS cor0
----
-2418
-2511
-3534
query I rowsort
SELECT ALL 55 * col2 - - ( - col2 + + col2 ) FROM tab0 AS cor0
----
1815
4510
55
query I rowsort
SELECT ALL - ( col2 ) * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - + col2 + + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6476
SELECT col2 * CAST( - cor0.col0 AS SIGNED ) + col2 * 57 DIV - col2 FROM tab1 AS cor0
----
-219
-3705
-7737
skipif mysql # not compatible
query I rowsort label-6476
SELECT col2 * CAST ( - cor0.col0 AS INTEGER ) + col2 * 57 / - col2 FROM tab1 AS cor0
----
-219
-3705
-7737
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - tab2.col0 col0 FROM tab2
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6478
SELECT + + col0 + CAST( col1 + col0 AS SIGNED ) FROM tab1 AS cor0
----
138
173
32
skipif mysql # not compatible
query I rowsort label-6478
SELECT + + col0 + CAST ( col1 + col0 AS INTEGER ) FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT ALL + 23 FROM tab1, tab2 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT - + col2 * - ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - + col0 + col2 AS col1 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL col1 + col0 * col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - + cor0.col1 * + col2 - + col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT + col1 * - 52 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1585
-3042
-846
query I rowsort
SELECT + 20 * ( col1 * - col1 ) + col2 FROM tab1 AS cor0
----
-13466
-1943
-3284
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + - ( - col0 ) * + 36 AS col1 FROM tab0 AS cor0
----
1260
3204
864
query I rowsort
SELECT 25 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
onlyif mysql # use DIV operator for integer division
query I rowsort label-6489
SELECT + col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6489
SELECT + col2 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6490
SELECT + + cor0.col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6490
SELECT + + cor0.col0 / + col0 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col0 * - 23 + - 5 AS col0 FROM tab2 AS cor0
----
-166
-1799
-1822
query I rowsort
SELECT - + cor0.col0 * + col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT + - cor0.col2 + 76 FROM tab0 AS cor0
----
-6
43
75
query I rowsort
SELECT + 94 AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT + + cor0.col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6496
SELECT ALL - col0 DIV col1 AS col0 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL - col0 / col1 AS col0 FROM tab2
----
-1
-4
0
query I rowsort
SELECT ALL + 42 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT 34 * col2 FROM tab1
----
1836
1938
3264
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6499
SELECT CAST( NULL AS DECIMAL ) * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6499
SELECT CAST ( NULL AS REAL ) * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + col0 * 51 AS col2 FROM tab2 AS cor0
----
384
4004
4067
query I rowsort
SELECT - - col2 + - 84 * col0 AS col2 FROM tab2 cor0
----
-561
-6526
-6598
query I rowsort
SELECT ( + col2 ) * col0 + ( col0 ) AS col1 FROM tab1
----
165
3712
7760
query I rowsort
SELECT col0 * - col2 + - 44 AS col1 FROM tab2
----
-2072
-233
-3046
onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT DISTINCT - + cor0.col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT - + cor0.col2 / - col1 AS col0 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT col1 + tab2.col2 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL - + 52 * - col2 * + 7 + 86 FROM tab0 AS cor0
----
12098
29934
450
query I rowsort
SELECT ALL - - col2 + col0 + + col2 AS col0 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT DISTINCT col0 * + col0 - col2 FROM tab0 cor0
----
1224
543
7839
query I rowsort
SELECT ALL - + col2 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + col2 col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT DISTINCT + tab2.col1 * 46 FROM tab2
----
1426
2714
782
query I rowsort
SELECT col0 * ( + col0 ) - - col1 * tab0.col0 FROM tab0
----
16020
2640
4620
query I rowsort
SELECT - col0 + + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL + col2 * ( - ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT + - col0 * - 71 FROM tab0 AS cor0
----
1704
2485
6319
onlyif mysql # use DIV operator for integer division
query I rowsort label-6518
SELECT + - ( + 38 ) + cor0.col2 DIV cor0.col0 FROM tab1 AS cor0
----
-20
-37
-38
skipif mysql # not compatible
query I rowsort label-6518
SELECT + - ( + 38 ) + cor0.col2 / cor0.col0 FROM tab1 AS cor0
----
-20
-37
-38
query I rowsort
SELECT DISTINCT + col1 * + col0 + - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 + - cor0.col0 col0 FROM tab1 AS cor0
----
-137
-153
-76
query I rowsort
SELECT DISTINCT + 75 + + col2 FROM tab2 AS cor0
----
101
102
113
query I rowsort
SELECT col1 * cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-6523
SELECT DISTINCT - 10 DIV + 90 + - col0 DIV col0 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT - 10 / + 90 + - col0 / col0 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT - col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + 77 - - col0 FROM tab0 AS cor0
----
101
112
166
query I rowsort
SELECT + ( - col2 ) - col0 FROM tab2 cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6528
SELECT ALL CAST( NULL AS DECIMAL ) * - 97 + col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL CAST ( NULL AS REAL ) * - 97 + col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6529
SELECT ALL 49 * + ( col1 ) + + col2 DIV 76 FROM tab2 AS cor0
----
1519
2891
833
skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL 49 * + ( col1 ) + + col2 / 76 FROM tab2 AS cor0
----
1519
2891
833
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6530
SELECT ALL CAST( NULL AS SIGNED ) * 28 - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL CAST ( NULL AS INTEGER ) * 28 - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6531
SELECT DISTINCT + cor0.col1 DIV + col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT + cor0.col1 / + col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT + col1 - + col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-6534
SELECT ALL - 51 + col0 DIV - cor0.col2 FROM tab0 AS cor0
----
-51
-52
-86
skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL - 51 + col0 / - cor0.col2 FROM tab0 AS cor0
----
-51
-52
-86
query I rowsort
SELECT ALL + ( 59 ) AS col1 FROM tab1 cor0
----
59
59
59
query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT - ( + ( - col0 ) ) + - 52 AS col2 FROM tab0 AS cor0
----
-17
-28
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6538
SELECT CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6538
SELECT CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT DISTINCT - col0 + - col0 DIV col1 FROM tab2 AS cor0
----
-7
-79
-83
skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT - col0 + - col0 / col1 FROM tab2 AS cor0
----
-7
-79
-83
query I rowsort
SELECT + cor0.col0 * col0 + col0 * col1 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT - cor0.col0 * - col1 - + 84 FROM tab2 AS cor0
----
1259
133
4518
query I rowsort
SELECT + ( col2 ) + + 3 AS col2 FROM tab1 AS cor0
----
57
60
99
query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col0 - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + 48 * + col2 FROM tab0 AS cor0
----
1584
3936
48
query I rowsort
SELECT ALL 71 * col1 + + col2 AS col1 FROM tab2 cor0
----
1245
2228
4215
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col0 FROM tab1 AS cor0
----
-65
-65
-65
query I rowsort
SELECT - tab1.col2 + 76 + col0 AS col0 FROM tab1
----
25
60
83
query I rowsort
SELECT ALL - tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT 86 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6551
SELECT ALL + CAST( NULL AS SIGNED ) + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 54 + col1 AS col0 FROM tab0
----
32
37
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT col2 + col1 DIV col0 FROM tab0 cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-6553
SELECT col2 + col1 / col0 FROM tab0 cor0
----
3
36
83
query I rowsort
SELECT ALL + col1 * + col1 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - cor0.col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col1 * - ( - col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col2 + + col2 * col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT - col0 * col1 + - col0 FROM tab1 cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT + - cor0.col2 * ( ( - col0 ) ) AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL - tab0.col2 + + col1 AS col0 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT ( col2 ) + - col2 AS col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT col1 * + col1 + ( - 81 ) AS col1 FROM tab0
----
7315
8200
9328
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT ALL col2 * - ( col0 ) FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6565
SELECT ALL col2 * - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL col2 * - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + - col1 * col0 + - col0 * col0 + col1 FROM tab0 AS cor0
----
-15929
-2554
-4523
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + CAST ( + col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-6568
SELECT DISTINCT - + col2 + + cor0.col2 DIV col0 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT - + col2 + + cor0.col2 / col0 FROM tab2 AS cor0
----
-24
-26
-38
query I rowsort
SELECT DISTINCT col0 * - ( - ( + col2 ) ) AS col2 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6570
SELECT DISTINCT 38 DIV 15 FROM tab1, tab2 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT 38 / 15 FROM tab1, tab2 AS cor0
----
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT - ( cor0.col0 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6571
SELECT - ( cor0.col0 ) / - col0 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - 82 * + col0 + + col0 * 52 FROM tab2 AS cor0
----
-210
-2340
-2370
query I rowsort
SELECT 82 + - col1 FROM tab2 cor0
----
23
51
65
query I rowsort
SELECT ALL tab0.col2 + 71 AS col2 FROM tab0
----
104
153
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT DISTINCT col0 DIV col2 + col0 AS col2 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT col0 / col2 + col0 AS col2 FROM tab0
----
24
70
90
query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab2, tab0, tab1 AS cor0
----
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT col0 * col2 + tab1.col2 DIV - col1 + - 30 FROM tab1
----
130
3613
7643
skipif mysql # not compatible
query I rowsort label-6577
SELECT col0 * col2 + tab1.col2 / - col1 + - 30 FROM tab1
----
130
3613
7643
query I rowsort
SELECT - col0 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT DISTINCT - - col0 DIV col0 col1 FROM tab2 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT - - col0 / col0 col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT + cor0.col2 + + col1 * - col0 + 47 FROM tab1 cor0
----
-536
-897
23
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1, tab1 cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6583
SELECT - col0 * 3 + - col0 + - tab0.col0 DIV col1 AS col0 FROM tab0
----
-140
-356
-96
skipif mysql # not compatible
query I rowsort label-6583
SELECT - col0 * 3 + - col0 + - tab0.col0 / col1 AS col0 FROM tab0
----
-140
-356
-96
query I rowsort
SELECT - tab2.col1 + 10 + 48 * col1 FROM tab2
----
1467
2783
809
query I rowsort
SELECT DISTINCT col2 + + 46 AS col1 FROM tab2
----
72
73
84
query I rowsort
SELECT + col1 * col1 + + ( - col1 ) * col1 + + 2 FROM tab1
----
2
2
2
query I rowsort
SELECT - ( - 9 + + col1 ) FROM tab1
----
-1
-17
-4
query I rowsort
SELECT 29 * + col0 AS col2 FROM tab1
----
1856
2320
87
query I rowsort
SELECT DISTINCT + 50 FROM tab0, tab1, tab2 AS cor0
----
50
query I rowsort
SELECT cor0.col2 + cor0.col2 * col1 FROM tab1 cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + col2 + col1 col0 FROM tab2 AS cor0
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6592
SELECT DISTINCT + tab0.col2 DIV 51 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT + tab0.col2 / 51 FROM tab0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6593
SELECT - tab0.col2 DIV col1 + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6593
SELECT - tab0.col2 / col1 + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT - 11 * + col1 FROM tab2
----
-187
-341
-649
query I rowsort
SELECT ALL + - 89 FROM tab2 AS cor0
----
-89
-89
-89
query I rowsort
SELECT + - 33 FROM tab1 cor0
----
-33
-33
-33
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab0 cor0, tab1, tab0 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT ALL col1 * 92 AS col1 FROM tab0
----
7912
8372
8924
query I rowsort
SELECT - + col1 - - cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - 91 * + ( + col2 ) - 57 FROM tab1 AS cor0
----
-4971
-5244
-8793
query I rowsort
SELECT - + 68 FROM tab0, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT - 61 * col0 AS col0 FROM tab1 AS cor0
----
-183
-3904
-4880
query I rowsort
SELECT + col2 * col2 + 38 * + col2 FROM tab2 AS cor0
----
1664
1755
2888
query I rowsort
SELECT ALL 89 + col1 * + ( + 59 ) FROM tab2
----
1092
1918
3570
query I rowsort
SELECT 55 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT ALL col1 * col2 * - col1 AS col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT - col0 * + 86 FROM tab1 AS cor0
----
-258
-5504
-6880
query I rowsort
SELECT + 44 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6609
SELECT + col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6609
SELECT + col0 * CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - ( + col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6611
SELECT CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6611
SELECT CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col2 * - ( + ( + col0 ) ) AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + + col0 * + col0 + col0 + + col2 * - ( col2 * col2 ) FROM tab1 AS cor0
----
-157452
-181033
-878256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( 5 ) col1 FROM tab2 AS cor0
----
130
135
190
query I rowsort
SELECT DISTINCT + col1 * + 55 FROM tab0 AS cor0
----
4730
5005
5335
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6616
SELECT ALL + - cor0.col2 * CAST( col1 AS SIGNED ) + col2 * 76 * - 1 col0 FROM tab2 cor0
----
-2889
-3510
-3534
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL + - cor0.col2 * CAST ( col1 AS INTEGER ) + col2 * 76 * - 1 col0 FROM tab2 cor0
----
-2889
-3510
-3534
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6617
SELECT ALL - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col2 + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6619
SELECT + col1 DIV col1 + col0 AS col1 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-6619
SELECT + col1 / col1 + col0 AS col1 FROM tab2
----
79
8
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6620
SELECT + col1 / CAST( NULL AS SIGNED ) + 3 - + tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6620
SELECT + col1 / CAST ( NULL AS INTEGER ) + 3 - + tab0.col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * + col1 + - tab0.col0 + col1 * col2 AS col2 FROM tab0
----
10210
15654
9471
query I rowsort
SELECT ALL - col1 - - ( 52 * col2 ) FROM tab0
----
-45
1630
4173
onlyif mysql # use DIV operator for integer division
query I rowsort label-6623
SELECT DISTINCT - col2 + CAST( 45 AS SIGNED ) DIV + col1 - + col1 FROM tab1
----
-106
-63
-79
skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT - col2 + CAST ( 45 AS INTEGER ) / + col1 - + col1 FROM tab1
----
-106
-63
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * col1 + - col1 col2 FROM tab2
----
310
3448
957
query I rowsort
SELECT ALL + 23 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6626
SELECT - col2 + + ( col1 ) * col2 + CAST( - col2 AS SIGNED ) FROM tab2
----
1482
570
783
skipif mysql # not compatible
query I rowsort label-6626
SELECT - col2 + + ( col1 ) * col2 + CAST ( - col2 AS INTEGER ) FROM tab2
----
1482
570
783
query I rowsort
SELECT + + cor0.col1 - col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT col0 - tab1.col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - col1 * + 10 * + col2 FROM tab0
----
-28380
-74620
-970
onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT DISTINCT 53 DIV col0 AS col2 FROM tab2
----
0
7
skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT 53 / col0 AS col2 FROM tab2
----
0
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - cor0.col2 * + ( col0 * col1 ) - - col0 col0 FROM tab2 AS cor0
----
-181622
-7059390
-867499
query I rowsort
SELECT DISTINCT col0 + + col1 * - ( col0 ) AS col0 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT cor0.col2 * col1 + - ( col2 ) FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT - - 26 AS col0 FROM tab2 AS cor0
----
26
26
26
query I rowsort
SELECT ALL + - 38 FROM tab1 AS cor0
----
-38
-38
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 * tab2.col1 + - 90 ) col0 FROM tab2
----
199
3391
871
query I rowsort
SELECT DISTINCT - 89 + - cor0.col2 FROM tab1 AS cor0
----
-143
-146
-185
query I rowsort
SELECT DISTINCT + col1 + + col1 * + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-13507
-2002
-6390
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - col2 + col2 * 78 * + col0 + ( col0 ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
14764
164242
240359
query I rowsort
SELECT DISTINCT + col1 + 69 + - 35 * - col2 AS col1 FROM tab0 AS cor0
----
1310
201
3030
onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT ALL - col1 * - col2 - col0 DIV + col0 FROM tab1 AS cor0
----
1247
1403
569
skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL - col1 * - col2 - col0 / + col0 FROM tab1 AS cor0
----
1247
1403
569
query I rowsort
SELECT DISTINCT - - cor0.col2 * 43 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT - col0 * - col0 + col2 * col0 FROM tab0 AS cor0
----
1260
1368
15219
onlyif mysql # use DIV operator for integer division
query I rowsort label-6645
SELECT DISTINCT - col0 DIV - col0 + col2 + - col0 DIV + 55 FROM tab1 AS cor0
----
55
57
96
skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT - col0 / - col0 + col2 + - col0 / + 55 FROM tab1 AS cor0
----
55
57
96
query I rowsort
SELECT DISTINCT - col2 + col0 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-29
-3
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6647
SELECT ALL + cor0.col0 + + CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL + cor0.col0 + + CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col1 * - 23 AS col1 FROM tab0 cor0
----
-1978
-2093
-2231
query I rowsort
SELECT - col1 * 31 * col0 FROM tab1 AS cor0
----
-19840
-2418
-32240
query I rowsort
SELECT - col2 * - 74 FROM tab2 AS cor0
----
1924
1998
2812
query I rowsort
SELECT 83 AS col2 FROM tab0 cor0
----
83
83
83
query I rowsort
SELECT ALL + + 31 FROM tab2 cor0
----
31
31
31
query I rowsort
SELECT DISTINCT - - 37 * - col0 AS col2 FROM tab0 AS cor0
----
-1295
-3293
-888
query I rowsort
SELECT + - 93 * - col0 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT ALL - + cor0.col1 * 3 AS col0 FROM tab0 AS cor0
----
-258
-273
-291
query I rowsort
SELECT DISTINCT + 59 FROM tab1 cor0
----
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6657
SELECT + col2 + + col0 DIV col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6657
SELECT + col2 + + col0 / col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - ( 0 ) * cor0.col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - col0 + + col0 + - col0 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6660
SELECT ( - col2 ) DIV + col2 + col2 AS col1 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-6660
SELECT ( - col2 ) / + col2 + col2 AS col1 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT ALL + - col0 + ( + col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - ( + cor0.col2 ) + col2 * + col1 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT ALL - col0 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + + col2 + - 94 col1 FROM tab2 AS cor0
----
233
3413
894
query I rowsort
SELECT ALL + - 69 + + col0 AS col0 FROM tab0 AS cor0
----
-34
-45
20
query I rowsort
SELECT DISTINCT - + col0 + + 54 + cor0.col2 FROM tab1 cor0
----
105
47
70
query I rowsort
SELECT - + col0 + - cor0.col2 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6668
SELECT ALL + - CAST( ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + - CAST ( ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - - col1 * 0 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + ( + col0 ) + + 91 FROM tab0 AS cor0
----
115
126
180
query I rowsort
SELECT - col2 + 59 AS col2 FROM tab0
----
-23
26
58
query I rowsort
SELECT DISTINCT - col1 * - col2 * + col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT - - ( + cor0.col2 ) AS col0 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT ALL - 79 DIV + col2 - - 69 FROM tab1 AS cor0
----
68
68
69
skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - 79 / + col2 - - 69 FROM tab1 AS cor0
----
68
68
69
query I rowsort
SELECT DISTINCT + ( - 88 ) * cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
-109824
-123552
-50160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 col1 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col1 FROM tab0
----
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6678
SELECT - ( ( col0 ) ) DIV - tab2.col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-6678
SELECT - ( ( col0 ) ) / - tab2.col1 AS col0 FROM tab2
----
0
1
4
query I rowsort
SELECT - ( + col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + 53 * + col0 FROM tab2 AS cor0
----
371
4134
4187
query I rowsort
SELECT + col0 + - 79 * + col2 FROM tab2 AS cor0
----
-1976
-2126
-2923
query I rowsort
SELECT - 41 * col1 AS col1 FROM tab1 AS cor0
----
-1066
-410
-533
onlyif mysql # use DIV operator for integer division
query I rowsort label-6683
SELECT col2 + - ( col1 ) DIV - 23 FROM tab2
----
28
28
38
skipif mysql # not compatible
query I rowsort label-6683
SELECT col2 + - ( col1 ) / - 23 FROM tab2
----
28
28
38
query I rowsort
SELECT DISTINCT col0 * 23 + - tab0.col0 * 49 AS col1 FROM tab0
----
-2314
-624
-910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 * - ( - col1 ) + col2 col2 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT - + col2 * ( 46 ) * - cor0.col2 FROM tab1 AS cor0
----
134136
149454
423936
query I rowsort
SELECT - col1 * + 91 FROM tab0 AS cor0
----
-7826
-8281
-8827
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6688
SELECT col2 * + CAST( + 4 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
216
228
384
skipif mysql # not compatible
query I rowsort label-6688
SELECT col2 * + CAST ( + 4 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
216
228
384
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 38 * 30 col1 FROM tab2 AS cor0
----
19380
35340
67260
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
query I rowsort
SELECT ALL + col1 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - col2 * 20 AS col2 FROM tab0 AS cor0
----
-1640
-20
-660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 18 * col2 col0 FROM tab1 cor0
----
-1632
-918
-969
onlyif mysql # use DIV operator for integer division
query I rowsort label-6694
SELECT DISTINCT - col0 DIV - 81 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT - col0 / - 81 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col0 * - col1 + tab0.col2 AS col1 FROM tab0
----
-2031
-3394
-8017
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 81 AS REAL ) FROM tab0, tab2 cor0
----
81
query I rowsort
SELECT ALL col0 + - 57 * - cor0.col0 FROM tab1 AS cor0
----
174
3712
4640
onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT ALL - col2 * - col0 + - cor0.col0 DIV + col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL - col2 * - col0 + - cor0.col0 / + col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - 35 * 29 * col2 FROM tab1 AS cor0
----
-54810
-57855
-97440
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
0
query I rowsort
SELECT - col0 * + 68 FROM tab0 AS cor0
----
-1632
-2380
-6052
query I rowsort
SELECT ALL col2 + + ( + col1 ) * 42 FROM tab1 AS cor0
----
1146
477
642
query I rowsort
SELECT DISTINCT - col1 * 56 AS col0 FROM tab0
----
-4816
-5096
-5432
query I rowsort
SELECT - - ( - col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 78 + cor0.col2 FROM tab0 AS cor0
----
111
160
79
query I rowsort
SELECT DISTINCT + 82 FROM tab2, tab0 cor0
----
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6707
SELECT ALL + col1 DIV tab0.col2 AS col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL + col1 / tab0.col2 AS col2 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT - + col0 * col0 * ( col1 ) + - ( + col1 ) - col2 FROM tab2 AS cor0
----
-106152
-1577
-359041
query I rowsort
SELECT ALL + + col1 + ( + col2 ) * col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT 82 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT tab2.col0 * - tab2.col1 + - col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT + col1 * col1 * 16 FROM tab1 AS cor0
----
10816
1600
2704
query I rowsort
SELECT DISTINCT col1 * 80 AS col2 FROM tab0
----
6880
7280
7760
query I rowsort
SELECT + col2 + 89 FROM tab0 AS cor0
----
122
171
90
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 cor1, tab1, tab2 cor2
----
3645 values hashing to bd2b318ad064d89aa12ab468220362b6
query I rowsort
SELECT ALL + col2 * col0 + col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT ALL - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT - col2 * col2 * - col0 AS col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL col1 * + col0 * cor0.col1 + - col2 FROM tab2 AS cor0
----
22793
271492
6700
query I rowsort
SELECT ALL + + col1 + - col2 * col2 * col1 FROM tab1 AS cor0
----
-119795
-32480
-75790
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - col2 + - col2 - - col2 * col0 )
----
3
26
54
query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT ALL - cor0.col2 * - col2 * cor0.col1 FROM tab2 AS cor0
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + cor0.col1 + col2 col1 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL col0 * - col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT DISTINCT + col0 DIV tab2.col0 AS col2 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT + col0 / tab2.col0 AS col2 FROM tab2
----
1
query I rowsort
SELECT ALL - col0 + - col1 * tab1.col1 AS col2 FROM tab1
----
-164
-249
-679
query I rowsort
SELECT col2 - + tab0.col0 * col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT ALL col1 * tab2.col1 + + tab2.col0 FROM tab2
----
3559
368
968
query I rowsort
SELECT ALL tab1.col0 + + col0 * col0 AS col2 FROM tab1
----
12
4160
6480
query I rowsort
SELECT DISTINCT - col2 + + col1 + - col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6734
SELECT - cor0.col2 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6734
SELECT - cor0.col2 / col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col1 FROM tab1
----
121
176
57
query I rowsort
SELECT col1 + + col0 * - col1 * - col2 FROM tab0
----
3492
664209
68198
query I rowsort
SELECT col1 - col0 * col2 * - col2 AS col0 FROM tab2
----
114093
5134
52787
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 * + col2 col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT col0 * - col1 * - tab2.col2 AS col1 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT + col0 * col2 + - 96 DIV col1 FROM tab1 AS cor0
----
159
3639
7673
skipif mysql # not compatible
query I rowsort label-6740
SELECT + col0 * col2 + - 96 / col1 FROM tab1 AS cor0
----
159
3639
7673
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - tab0.col2 )
----
query I rowsort
SELECT ALL col2 + + col0 * + col2 AS col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT col0 * + col0 + col1 FROM tab0
----
1322
662
8012
query I rowsort
SELECT col1 + - tab1.col2 * - col2 FROM tab1 WHERE NOT NULL < NULL
----
query I rowsort
SELECT col1 + tab2.col2 * - col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT ALL - tab0.col1 * - col1 * col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT + col2 - - col1 FROM tab2
----
55
58
85
query I rowsort
SELECT - 41 * col1 + + col1 FROM tab1
----
-1040
-400
-520
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + col2 col1 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT 67 + + cor0.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0b8c70c7080caf579094b9270fba2121
query I rowsort
SELECT ALL 93 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT ALL col0 * + tab0.col0 * ( 10 ) FROM tab0
----
12250
5760
79210
query I rowsort
SELECT DISTINCT col0 + - col1 + col1 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT col0 * tab2.col1 * - col0 AS col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT - col1 * + col2 * tab2.col0 AS col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - col2 * - col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT tab0.col0 * col0 * - col1 AS col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT - col2 * - col2 + + col1 FROM tab1
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-6760
SELECT + col1 DIV col1 + col2 * + col1 AS col0 FROM tab0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-6760
SELECT + col1 / col1 + col2 * + col1 AS col0 FROM tab0
----
2839
7463
98
query I rowsort
SELECT DISTINCT col2 + + col1 + col2 * tab0.col2 FROM tab0
----
1208
6897
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-6762
SELECT ALL col1 * tab0.col0 DIV + col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL col1 * tab0.col0 / + col1 FROM tab0
----
24
35
89
query I rowsort
SELECT tab0.col0 * + col1 + col2 + col0 * + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( col1 + - col0 + col0 ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 * + col0 col2 FROM tab1
----
234
40960
83200
query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE - col0 + col0 * - col1 IN ( col1 )
----
query I rowsort
SELECT ALL col1 * col2 + - col0 + col0 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6767
SELECT DISTINCT col2 DIV - col1 FROM tab0 AS cor0 WHERE ( - col0 ) NOT IN ( + col2 )
----
0
skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT col2 / - col1 FROM tab0 AS cor0 WHERE ( - col0 ) NOT IN ( + col2 )
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6768
SELECT col0 DIV - col0 - - col1 FROM tab2 cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-6768
SELECT col0 / - col0 - - col1 FROM tab2 cor0
----
16
30
58
query I rowsort
SELECT ALL - col0 * + col0 + cor0.col0 * col2 - col0 * col2 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-6771
SELECT DISTINCT + col1 DIV - tab2.col0 + + col1 FROM tab2
----
17
27
59
skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT + col1 / - tab2.col0 + + col1 FROM tab2
----
17
27
59
query I rowsort
SELECT DISTINCT tab0.col1 * - col0 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + col2 * tab0.col0 + - col2 AS col0 FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL + tab1.col1 + + col0 AS col1 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + - col2 * - col2 col2 FROM tab2
----
2704
4446
918
query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT col1 * + col2 NOT IN ( col1 )
----
35
query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col1 * col0 * - col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT - col2 * - col1 + + col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT - col1 * + col0 + - col1 FROM tab0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-6781
SELECT ALL col0 * - tab2.col1 + col1 + col2 DIV + col0 col2 FROM tab2
----
-1326
-183
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL col0 * - tab2.col1 + col1 + col2 / + col0 col2 FROM tab2
----
-1326
-183
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-6782
SELECT ALL - col1 DIV + col1 col1 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL - col1 / + col1 col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT col0 * col0 + col0 * col0 + + col1 FROM tab0
----
1238
15933
2547
query I rowsort
SELECT DISTINCT - col1 + + col2 * col1 + col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL col0 + col1 * - tab0.col1 + - col0 FROM tab0
----
-7396
-8281
-9409
query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) = col0
----
query I rowsort
SELECT DISTINCT 53 * col0 + 97 * col2 FROM tab2 AS cor0
----
2990
6656
7873
query I rowsort
SELECT ALL cor0.col1 - col2 * - col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - + col0 * - col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 col2 FROM tab1 AS cor0
----
97
97
97
query I rowsort
SELECT ALL col0 + + col1 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - col1 + + 26 AS col2 FROM tab0 AS cor0
----
-60
-65
-71
query I rowsort
SELECT + - col2 * - cor0.col1 + col0 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT - col2 - 95 AS col0 FROM tab2 AS cor0
----
-121
-122
-133
query I rowsort
SELECT col1 + - col1 * 61 AS col1 FROM tab1 AS cor0
----
-1560
-600
-780
query I rowsort
SELECT - col0 - col0 * 59 FROM tab2 AS cor0
----
-420
-4680
-4740
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6797
SELECT - CAST( NULL AS SIGNED ) + col2 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6797
SELECT - CAST ( NULL AS INTEGER ) + col2 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 - + col1 col2 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT DISTINCT + 45 DIV col0 AS col2 FROM tab2 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT + 45 / col0 AS col2 FROM tab2 AS cor0
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 33 col1 FROM tab0 AS cor0
----
-2
-56
9
query I rowsort
SELECT 98 * col0 + col2 * + col2 AS col2 FROM tab0 cor0
----
15446
3431
3441
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * col0 * col2 FROM tab2 AS cor0
----
1354
158243
237175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6803
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-6803
SELECT - ( ( col2 ) ) * + CAST ( + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT ALL + + 45 DIV - ( col1 * 71 ) col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL + + 45 / - ( col1 * 71 ) col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * col1 + + col0 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL 27 AS col0 FROM tab1 cor0
----
27
27
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-6807
SELECT ALL 94 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL 94 / + col2 AS col0 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT + 95 AS col2 FROM tab1 cor0
----
95
95
95
query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT - 99 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da
query I rowsort
SELECT - - 44 AS col2 FROM tab0 cor0
----
44
44
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab0
----
36
36
36
query I rowsort
SELECT + + 87 * col2 * col2 FROM tab1 AS cor0
----
253692
282663
801792
query I rowsort
SELECT - 57 * - col1 AS col0 FROM tab0 AS cor0
----
4902
5187
5529
query I rowsort
SELECT + col1 * + cor0.col2 + 22 FROM tab1 AS cor0
----
1270
1426
592
query I rowsort
SELECT ALL - 41 AS col0 FROM tab0 AS cor0
----
-41
-41
-41
query I rowsort
SELECT + col0 * ( - 56 ) FROM tab2 AS cor0
----
-392
-4368
-4424
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col1 FROM tab0
----
-62
-62
-62
query I rowsort
SELECT + col0 * - col1 + cor0.col0 * + 37 * col0 AS col2 FROM tab0 AS cor0
----
19248
284978
41930
query I rowsort
SELECT DISTINCT 85 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
85
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to a1a9b1c1e9ca8f59e89e834a7cdebbd0
query I rowsort
SELECT 13 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
onlyif mysql # use DIV operator for integer division
query I rowsort label-6823
SELECT - 97 + + 78 DIV col0 FROM tab2 cor0
----
-86
-96
-97
skipif mysql # not compatible
query I rowsort label-6823
SELECT - 97 + + 78 / col0 FROM tab2 cor0
----
-86
-96
-97
query I rowsort
SELECT ALL 72 * 54 FROM tab2
----
3888
3888
3888
query I rowsort
SELECT DISTINCT col2 * 5 FROM tab0 AS cor0
----
165
410
5
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL + - 34 + col0 * + col1 FROM tab2 cor0
----
1309
183
4568
query I rowsort
SELECT ALL + col0 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6829
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + 98 AS col1 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT ALL col0 + col2 * - col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT cor0.col1 + + 54 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to b8e4be96ca5f55e45deec1a86e84bd4e
onlyif mysql # use DIV operator for integer division
query I rowsort label-6834
SELECT ALL + - col2 * cor0.col2 + col0 - cor0.col1 DIV 26 FROM tab2 AS cor0
----
-1365
-600
-723
skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + - col2 * cor0.col2 + col0 - cor0.col1 / 26 FROM tab2 AS cor0
----
-1365
-600
-723
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6835
SELECT ALL + - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL + - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + ( col0 ) ) col2 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6837
SELECT DISTINCT - 50 * + col1 + + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT - 50 * + col1 + + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col2 * - col1 - - col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - + col2 * + col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab2, tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6841
SELECT ALL 38 + - col1 * + CAST( NULL AS SIGNED ) + - ( - col2 ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL 38 + - col1 * + CAST ( NULL AS INTEGER ) + - ( - col2 ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * col1 * - col0 + col1 * col2 AS col2 FROM tab1
----
-40390
-81952
1170
query I rowsort
SELECT + cor0.col2 * 88 FROM tab0, tab1 AS cor0
----
9 values hashing to 039452d1a5e063417abf197c6d8a96fa
query I rowsort
SELECT + 47 * + cor0.col2 + 52 + + 53 AS col0 FROM tab2 AS cor0
----
1327
1374
1891
query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab1 cor0
----
23
query I rowsort
SELECT + + col2 + col0 + + ( cor0.col2 + col1 ) FROM tab2 AS cor0
----
172
189
92
query I rowsort
SELECT ALL + col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6848
SELECT DISTINCT + + col2 DIV + col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT + + col2 / + col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT - col1 + col0 * + col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + 91 + col0 + col2 AS col1 FROM tab1 AS cor0
----
148
212
267
query I rowsort
SELECT ALL col0 + cor0.col0 * 19 * + col0 AS col2 FROM tab1 AS cor0
----
121680
174
77888
query I rowsort
SELECT DISTINCT - - cor0.col1 * - 57 - ( - col1 ) FROM tab2 AS cor0
----
-1736
-3304
-952
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6853
SELECT DISTINCT + cor0.col0 * CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT + cor0.col0 * CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT + + col0 + cor0.col0 + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2016
-3325
-7921
query I rowsort
SELECT DISTINCT + col2 + 53 AS col2 FROM tab1 AS cor0
----
107
110
149
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6856
SELECT DISTINCT col1 * 67 * - cor0.col2 + + cor0.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT col1 * 67 * - cor0.col2 + + cor0.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col0 * - 1 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL col1 * 11 + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1118
-2328
-7098
query I rowsort
SELECT ALL + - cor0.col0 + col2 - col1 * col2 FROM tab2 AS cor0
----
-1586
-687
-817
query I rowsort
SELECT col0 + col0 * + col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL 16 + tab2.col1 FROM tab2
----
33
47
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6862
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * + 28 AS col1 FROM tab1 cor0
----
-280
-364
-728
query I rowsort
SELECT col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6865
SELECT ALL - tab0.col0 DIV col0 + 51 AS col2 FROM tab0
----
50
50
50
skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL - tab0.col0 / col0 + 51 AS col2 FROM tab0
----
50
50
50
query I rowsort
SELECT - - cor0.col0 + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT ALL tab1.col1 * 94 + col2 * col1 AS col1 FROM tab1
----
1510
2470
3848
onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT 18 * col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-17
-5
-6
skipif mysql # not compatible
query I rowsort label-6868
SELECT 18 * col0 / - col1 AS col0 FROM tab0 AS cor0
----
-17
-5
-6
query I rowsort
SELECT DISTINCT - col0 + - ( tab2.col2 ) AS col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT tab0.col0 * - 96 FROM tab0
----
-2304
-3360
-8544
query I rowsort
SELECT + col2 + + 57 AS col2 FROM tab0
----
139
58
90
query I rowsort
SELECT DISTINCT - col2 + - col0 * + 63 AS col2 FROM tab1
----
-243
-4089
-5136
query I rowsort
SELECT - tab2.col2 - 37 * - col2 AS col2 FROM tab2
----
1368
936
972
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6874
SELECT DISTINCT + col0 * col0 - - CAST( col2 + + cor0.col1 * col2 AS SIGNED ) FROM tab1 AS cor0
----
1467
4723
7744
skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT + col0 * col0 - - CAST ( col2 + + cor0.col1 * col2 AS INTEGER ) FROM tab1 AS cor0
----
1467
4723
7744
query I rowsort
SELECT DISTINCT - 70 * col0 * ( ( col2 ) * ( ( col1 ) ) + + col2 ) AS col2 FROM tab1 AS cor0
----
-2808960
-306180
-7526400
onlyif mysql # use DIV operator for integer division
query I rowsort label-6876
SELECT + - 30 DIV col0 col1 FROM tab0 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6876
SELECT + - 30 / col0 col1 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT ALL + ( col2 ) AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + - 87 AS col1 FROM tab2 AS cor0
----
-87
query I rowsort
SELECT - + 33 * col0 FROM tab2 AS cor0
----
-231
-2574
-2607
onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT 46 DIV col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6880
SELECT 46 / col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col1 ) + col1 FROM tab2
----
0
query I rowsort
SELECT + 75 * - col2 + + col2 * + col0 + col0 * + col2 AS col0 FROM tab0
----
-5
-891
8446
query I rowsort
SELECT DISTINCT - ( col0 ) * 84 AS col2 FROM tab2 cor0
----
-588
-6552
-6636
query I rowsort
SELECT 29 * col2 AS col0 FROM tab0 AS cor0
----
2378
29
957
onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT ALL 24 * + col0 + - col0 DIV + 52 + + col2 AS col2 FROM tab0 cor0
----
2217
609
841
skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL 24 * + col0 + - col0 / + 52 + + col2 AS col2 FROM tab0 cor0
----
2217
609
841
query I rowsort
SELECT + 27 AS col1 FROM tab0 cor0
----
27
27
27
query I rowsort
SELECT + col1 - col1 * col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT + 11 * - col0 AS col1 FROM tab0 AS cor0
----
-264
-385
-979
query I rowsort
SELECT col1 + col1 * - col2 FROM tab2 AS cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + col2 + ( + col2 + + col2 ) col2 FROM tab2 AS cor0
----
156
193
88
query I rowsort
SELECT ALL - col1 + - col2 * col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT ( 88 ) + + col0 * + 16 FROM tab2 AS cor0
----
1336
1352
200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6893
SELECT ALL ( + col2 * col1 + - CAST( col0 AS SIGNED ) * col1 ) AS col2 FROM tab1
----
-70
1326
208
skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL ( + col2 * col1 + - CAST ( col0 AS INTEGER ) * col1 ) AS col2 FROM tab1
----
-70
1326
208
query I rowsort
SELECT - + ( + col0 ) * - col0 * + 53 AS col0 FROM tab1 AS cor0
----
217088
339200
477
query I rowsort
SELECT - 79 * + cor0.col2 FROM tab2 AS cor0
----
-2054
-2133
-3002
query I rowsort
SELECT - + col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT + - col0 DIV 13 FROM tab1 AS cor0
----
-4
-6
0
skipif mysql # not compatible
query I rowsort label-6897
SELECT + - col0 / 13 FROM tab1 AS cor0
----
-4
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT DISTINCT col0 + col1 + 49 DIV col1 col1 FROM tab1
----
30
78
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT col0 + col1 + 49 / col1 col1 FROM tab1
----
30
78
96
query I rowsort
SELECT - tab2.col2 * - col1 + 55 AS col2 FROM tab2
----
1589
701
892
onlyif mysql # use DIV operator for integer division
query I rowsort label-6900
SELECT ALL + col2 DIV + col1 + + col2 AS col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL + col2 / + col1 + + col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - 86 * col2 AS col2 FROM tab0
----
-2838
-7052
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT - col2 DIV + 83 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6903
SELECT - col2 / + 83 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6904
SELECT col1 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6904
SELECT col1 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * col2 + + col0 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - 52 * + col0 col2 FROM tab0 AS cor0
----
-1334
-1917
-4719
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6907
SELECT DISTINCT col0 * CAST( + col1 AS SIGNED ) + tab2.col1 * - tab2.col2 FROM tab2
----
-620
3068
697
skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT col0 * CAST ( + col1 AS INTEGER ) + tab2.col1 * - tab2.col2 FROM tab2
----
-620
3068
697
query I rowsort
SELECT ALL + col2 + - col2 * - 61 AS col1 FROM tab0
----
2046
5084
62
query I rowsort
SELECT - col2 + + col1 * + tab0.col1 AS col1 FROM tab0
----
7363
8199
9408
query I rowsort
SELECT - 37 + - tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to b095edfc623c378f38f362034939e16c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL - col2 * col0 + - 33 FROM tab1
----
-195
-3681
-7713
query I rowsort
SELECT col0 + + 64 * col0 FROM tab0 AS cor0
----
1560
2275
5785
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6914
SELECT + CAST( NULL AS SIGNED ) * 27 + col2 + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6914
SELECT + CAST ( NULL AS INTEGER ) * 27 + col2 + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6916
SELECT - col0 * - col1 + - col2 * col1 + - col2 * col0 DIV CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-807
3297
555
skipif mysql # not compatible
query I rowsort label-6916
SELECT - col0 * - col1 + - col2 * col1 + - col2 * col0 / CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-807
3297
555
query I rowsort
SELECT - - col1 + 1 * - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col1 * col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL + - 51 + 68 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT ALL cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT col0 * col1 - - col2 AS col2 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT - + col2 + 96 FROM tab1 cor0
----
0
39
42
query I rowsort
SELECT + col1 * - cor0.col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + + col2 * - 5 * col2 FROM tab0 cor0
----
-33620
-5
-5445
query I rowsort
SELECT ALL 2 AS col2 FROM tab2 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT + + 39 AS col0 FROM tab2 AS cor0
----
39
query I rowsort
SELECT DISTINCT + col2 * 29 + cor0.col2 FROM tab1 AS cor0
----
1620
1710
2880
query I rowsort
SELECT DISTINCT + - 29 AS col2 FROM tab0 cor0
----
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + col0 col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - col0 * cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab0 cor0
----
-72
query I rowsort
SELECT - + 70 + + col2 AS col0 FROM tab2 AS cor0
----
-32
-43
-44
query I rowsort
SELECT - cor1.col1 * + 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9e5e2583764024073881a3f58315eb6
query I rowsort
SELECT - ( cor0.col1 ) * - col2 * 20 FROM tab2 AS cor0
----
12920
16740
30680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * cor0.col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT 44 * col2 FROM tab2 AS cor0
----
1144
1188
1672
query I rowsort
SELECT DISTINCT - - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab2 AS cor0
----
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 * col1 col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - - cor0.col2 * col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - col0 * 56 + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1572
-4154
-5728
query I rowsort
SELECT ALL + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT DISTINCT + col2 DIV - 89 + col0 col2 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT + col2 / - 89 + col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - cor0.col1 + 79 AS col0 FROM tab2 AS cor0
----
20
48
62
query I rowsort
SELECT - + col1 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT - col0 + + 14 AS col0 FROM tab1 AS cor0
----
-50
-66
11
query I rowsort
SELECT + - 34 FROM tab1, tab0 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
skipif mysql # not compatible
query I rowsort
SELECT - col2 * + CAST ( col0 AS REAL ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6949
SELECT + - col1 * col1 + col1 DIV col1 FROM tab2 AS cor0
----
-288
-3480
-960
skipif mysql # not compatible
query I rowsort label-6949
SELECT + - col1 * col1 + col1 / col1 FROM tab2 AS cor0
----
-288
-3480
-960
query I rowsort
SELECT DISTINCT + col0 * 57 FROM tab0 AS cor0
----
1368
1995
5073
onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT ALL cor0.col1 DIV - col0 col0 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL cor0.col1 / - col0 col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT tab0.col1 + ( + col0 ) - + col1 FROM tab0
----
24
35
89
query I rowsort
SELECT - col1 * col1 + col0 + - tab2.col2 FROM tab2
----
-248
-3429
-981
query I rowsort
SELECT tab1.col2 * - cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1091576b2dabfc91057486e7b5f493ef
query I rowsort
SELECT DISTINCT - 18 * + col1 AS col0 FROM tab2 cor0
----
-1062
-306
-558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6957
SELECT col1 * - col2 + + CAST( + 57 AS SIGNED ) col1 FROM tab1 AS cor0
----
-1191
-1347
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6957
SELECT col1 * - col2 + + CAST ( + 57 AS INTEGER ) col1 FROM tab1 AS cor0
----
-1191
-1347
-513
query I rowsort
SELECT ALL col2 * col1 + - col2 + - 44 AS col0 FROM tab1 AS cor0
----
1108
1306
469
query I rowsort
SELECT 3 + + col1 FROM tab0 AS cor0
----
100
89
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-6960
SELECT DISTINCT + tab2.col2 - tab2.col2 DIV col0 FROM tab2
----
24
26
38
skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT + tab2.col2 - tab2.col2 / col0 FROM tab2
----
24
26
38
query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab1 AS cor0
----
79
query I rowsort
SELECT + - 26 * + cor0.col1 + cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
-3444
-3562
-995
query I rowsort
SELECT ALL + col2 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + + 62 * - col0 FROM tab1 AS cor0
----
-186
-3968
-4960
query I rowsort
SELECT DISTINCT + col0 * + col1 + ( - col1 ) FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - col2 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT - - col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6968
SELECT col2 / - CAST( NULL AS SIGNED ) + + col0 * col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6968
SELECT col2 / - CAST ( NULL AS INTEGER ) + + col0 * col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * + 88 FROM tab2 cor0
----
-1496
-2728
-5192
query I rowsort
SELECT col0 * + 48 AS col0 FROM tab0 AS cor0
----
1152
1680
4272
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6972
SELECT + col1 DIV 54 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6972
SELECT + col1 / 54 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab0, tab1, tab0 AS cor0
----
87
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 / + col2 + + col2 * CAST ( - 55 AS REAL ) FROM tab1
----
-2970
-3135
-5280
query I rowsort
SELECT ALL + - 39 * - 59 FROM tab1 AS cor0
----
2301
2301
2301
query I rowsort
SELECT DISTINCT - + 21 AS col0 FROM tab0 AS cor0
----
-21
query I rowsort
SELECT + 6 + + col0 FROM tab0 AS cor0
----
30
41
95
query I rowsort
SELECT DISTINCT col0 * col1 * - col0 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL ( 26 ) * - col1 + - col0 FROM tab0 cor0
----
-2260
-2455
-2557
query I rowsort
SELECT ALL + 45 * cor0.col1 * - col0 FROM tab0 AS cor0
----
-152775
-364455
-92880
query I rowsort
SELECT cor0.col0 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + col0 + ( - cor0.col2 ) * col1 - col1 AS col1 FROM tab0 cor0
----
-159
-2900
-7464
onlyif mysql # use DIV operator for integer division
query I rowsort label-6983
SELECT DISTINCT + col1 DIV 32 + col1 DIV - col1 FROM tab2 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT + col1 / 32 + col1 / - col1 FROM tab2 AS cor0
----
-1
0
query I rowsort
SELECT - + 78 AS col2 FROM tab1 AS cor0
----
-78
-78
-78
query I rowsort
SELECT ALL - - 81 + + 69 AS col0 FROM tab0 AS cor0
----
150
150
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-6986
SELECT ALL cor0.col0 * + col2 + col0 * + col1 DIV + col1 FROM tab1 AS cor0
----
165
3712
7760
skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL cor0.col0 * + col2 + col0 * + col1 / + col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + 93 * - col0 + + col0 AS col1 FROM tab2 AS cor0
----
-644
-7176
-7268
query I rowsort
SELECT + cor1.col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 * + 70 FROM tab1 AS cor0
----
213
4544
5680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6990
SELECT DISTINCT + - 91 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT + - 91 / col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - 44 * - col2 + ( ( + col2 ) ) * col2 FROM tab2 AS cor0
----
1820
1917
3116
query I rowsort
SELECT col1 + col2 * - ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6993
SELECT ALL - CAST( col2 AS SIGNED ) + col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL - CAST ( col2 AS INTEGER ) + col2 FROM tab1
----
0
0
0
query I rowsort
SELECT 61 + col0 + + tab0.col2 FROM tab0
----
118
232
97
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT ALL + - col1 * + ( - col1 ) + - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL - col0 - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-6998
SELECT DISTINCT - col1 DIV 22 col1 FROM tab1
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT - col1 / 22 col1 FROM tab1
----
-1
0
query I rowsort
SELECT ALL - + col2 * col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col0 * - col0 - col1 * col0 FROM tab2 AS cor0
----
-168
1482
4898
query I rowsort
SELECT col1 * cor0.col0 + 74 FROM tab1 AS cor0
----
1114
152
714
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7002
SELECT DISTINCT - col2 * - col1 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT - col2 * - col1 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7003
SELECT - col0 DIV col0 + + col0 col2 FROM tab2 AS cor0
----
6
77
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7003
SELECT - col0 / col0 + + col0 col2 FROM tab2 AS cor0
----
6
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT - ( 57 ) DIV cor0.col0 + + 76 FROM tab0, tab1 AS cor0
----
9 values hashing to 65c8ef6a0c92b4eb24395ecb736d4353
skipif mysql # not compatible
query I rowsort label-7004
SELECT - ( 57 ) / cor0.col0 + + 76 FROM tab0, tab1 AS cor0
----
9 values hashing to 65c8ef6a0c92b4eb24395ecb736d4353
query I rowsort
SELECT DISTINCT + col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col1 + + cor0.col1 * col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + - col1 * + 26 FROM tab0 AS cor0
----
-2236
-2366
-2522
query I rowsort
SELECT col0 * col2 + - col2 AS col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT 65 FROM tab1, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT 35 + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
121
126
132
query I rowsort
SELECT + col2 * 63 FROM tab1 cor0
----
3402
3591
6048
query I rowsort
SELECT 86 + 69 FROM tab0, tab0 cor0
----
9 values hashing to 37e6fe86ed7b54e43b7c859d6f5347fc
query I rowsort
SELECT + col1 * - 93 + 20 AS col2 FROM tab1
----
-1189
-2398
-910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT + col0 + 30 AS col1 FROM tab2
----
108
109
37
query I rowsort
SELECT + + col0 * + col2 + cor0.col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + + ( col2 ) * 46 + cor0.col2 FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT ALL cor0.col2 * + 97 + 75 FROM tab2 AS cor0
----
2597
2694
3761
query I rowsort
SELECT DISTINCT + col2 * 11 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab1
----
-94
query I rowsort
SELECT col0 * + 73 AS col1 FROM tab2 AS cor0
----
511
5694
5767
query I rowsort
SELECT + + col0 * - ( + ( cor0.col0 ) + + col1 ) FROM tab1 AS cor0
----
-4736
-7440
-87
query I rowsort
SELECT col1 * + col2 * - ( - col0 * tab2.col0 ) FROM tab2
----
4031686
41013
9332856
query I rowsort
SELECT + + col2 * ( - col0 * ( cor0.col1 ) ) + col2 AS col0 FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT - 65 - 9 AS col2 FROM tab2 AS cor0
----
-74
-74
-74
query I rowsort
SELECT + 59 - - 16 * col2 AS col1 FROM tab1 cor0
----
1595
923
971
query I rowsort
SELECT ALL col1 + 54 + col0 * - tab0.col1 FROM tab0
----
-1924
-3244
-7954
onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT ALL + col1 + + col2 DIV col1 + col0 FROM tab1
----
100
31
79
skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + col1 + + col2 / col1 + col0 FROM tab1
----
100
31
79
query I rowsort
SELECT ALL + col0 + 87 AS col1 FROM tab1
----
151
167
90
query I rowsort
SELECT col0 * - ( - 77 ) * - col0 + + 69 AS col0 FROM tab0
----
-44283
-609848
-94256
query I rowsort
SELECT ALL 53 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT tab2.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7033
SELECT - 49 * col2 DIV - col1 AS col2 FROM tab2
----
109
21
42
skipif mysql # not compatible
query I rowsort label-7033
SELECT - 49 * col2 / - col1 AS col2 FROM tab2
----
109
21
42
query I rowsort
SELECT ALL - 20 * col0 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT + cor0.col2 + + col0 * col0 * ( - col1 ) + col0 AS col2 FROM tab1 cor0
----
-177
-40839
-83024
query I rowsort
SELECT DISTINCT + + col0 * - ( + col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + - ( - 34 ) * col2 - col0 FROM tab1 AS cor0
----
1833
1874
3184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col0 FROM tab1
----
45
45
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7039
SELECT - ( col0 ) + col2 + + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7039
SELECT - ( col0 ) + col2 + + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7040
SELECT ALL - ( col1 ) DIV + col2 AS col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - ( col1 ) / + col2 AS col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT ALL col1 * - 23 FROM tab0
----
-1978
-2093
-2231
onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT DISTINCT + col1 DIV col2 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT + col1 / col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT + 93 * 54 FROM tab0
----
5022
5022
5022
query I rowsort
SELECT + tab0.col1 * + col0 * col0 AS col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT - 40 * col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1399
-3478
-927
query I rowsort
SELECT ALL - col2 + + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + - 53 * - col0 * col2 + - cor0.col1 * col0 FROM tab0 AS cor0
----
-1540
378695
39912
query I rowsort
SELECT - col1 + + col2 + + col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT 26 * tab0.col0 AS col1 FROM tab0
----
2314
624
910
query I rowsort
SELECT + 98 + - col1 * tab0.col1 AS col2 FROM tab0
----
-7298
-8183
-9311
query I rowsort
SELECT ALL col2 * col2 - col0 * col0 * tab2.col2 AS col1 FROM tab2
----
-157508
-235714
-594
query I rowsort
SELECT - + tab0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT tab2.col0 + col0 - - col0 AS col0 FROM tab2
----
21
234
237
query I rowsort
SELECT col0 + - ( col1 ) + - col1 FROM tab0
----
-148
-159
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT - 65 DIV col1 FROM tab2 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7055
SELECT - 65 / col1 FROM tab2 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT + tab0.col2 * + col0 * + col0 + col2 FROM tab0
----
1226
19041
649604
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) * + col2 + col0 * col1 col1 FROM tab0
----
1272
3360
801
query I rowsort
SELECT DISTINCT - tab1.col1 + col1 * col1 FROM tab1
----
156
650
90
query I rowsort
SELECT - 96 + - col2 * col2 FROM tab1 AS cor0
----
-3012
-3345
-9312
query I rowsort
SELECT ALL - 7 + + col2 FROM tab2 AS cor0
----
19
20
31
query I rowsort
SELECT - - 51 + - cor0.col2 * col0 - col0 AS col1 FROM tab0 cor0
----
-19
-7336
-765
query I rowsort
SELECT col1 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT col1 * + 69 FROM tab0 AS cor0
----
5934
6279
6693
query I rowsort
SELECT ALL 75 FROM tab2, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) + + cor0.col1 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT col0 * - col1 - col1 * col0 FROM tab1 AS cor0
----
-1280
-156
-2080
query I rowsort
SELECT ALL + col2 + - 55 AS col0 FROM tab2 AS cor0
----
-17
-28
-29
query I rowsort
SELECT DISTINCT + - col0 - - col0 * 16 * cor0.col1 FROM tab0 AS cor0
----
129495
33000
54285
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7069
SELECT - cor0.col2 * CAST( NULL AS SIGNED ) - + 64 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7069
SELECT - cor0.col2 * CAST ( NULL AS INTEGER ) - + 64 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT - col2 - - ( - col1 ) DIV - col0 col0 FROM tab1 AS cor0
----
-46
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7070
SELECT - col2 - - ( - col1 ) / - col0 col0 FROM tab1 AS cor0
----
-46
-57
-96
query I rowsort
SELECT ALL + col2 * 64 AS col2 FROM tab0 AS cor0
----
2112
5248
64
query I rowsort
SELECT ALL - col0 * - 88 AS col1 FROM tab2 AS cor0
----
616
6864
6952
query I rowsort
SELECT DISTINCT + col2 * - col2 + 9 AS col1 FROM tab1 AS cor0
----
-2907
-3240
-9207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7074
SELECT + cor0.col2 * CAST( - col0 AS SIGNED ) + + col2 + 44 col0 FROM tab1 cor0
----
-3547
-64
-7540
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7074
SELECT + cor0.col2 * CAST ( - col0 AS INTEGER ) + + col2 + 44 col0 FROM tab1 cor0
----
-3547
-64
-7540
query I rowsort
SELECT DISTINCT + + col0 * + cor0.col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT + 3 - - col1 AS col1 FROM tab1
----
13
16
29
query I rowsort
SELECT 61 - + tab1.col2 AS col0 FROM tab1
----
-35
4
7
query I rowsort
SELECT + cor0.col1 * 97 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
2103
7253
9408
query I rowsort
SELECT - + col2 * - col1 - ( col1 ) AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - + cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT + - col1 DIV ( 49 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7082
SELECT + - col1 / ( 49 ) FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + tab0.col0 + 29 * - tab0.col0 AS col0 FROM tab0
----
-2492
-672
-980
onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT col2 DIV 16 AS col0 FROM tab1
----
3
3
6
skipif mysql # not compatible
query I rowsort label-7084
SELECT col2 / 16 AS col0 FROM tab1
----
3
3
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7085
SELECT col1 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7085
SELECT col1 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 60 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1
query I rowsort
SELECT + + cor0.col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ( col1 * ( + col2 ) ) + tab0.col0 * - tab0.col0 AS col1 FROM tab0
----
-1128
-459
2262
query I rowsort
SELECT 40 + + tab0.col2 AS col2 FROM tab0
----
122
41
73
query I rowsort
SELECT ALL + - 68 * col1 + + 97 * + col2 FROM tab0 AS cor0
----
-2647
-6499
1766
query I rowsort
SELECT DISTINCT - 8 * cor0.col1 FROM tab2 AS cor0
----
-136
-248
-472
onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT + 77 DIV - cor0.col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-7092
SELECT + 77 / - cor0.col0 FROM tab0 AS cor0
----
-2
-3
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7093
SELECT DISTINCT 62 DIV col1 col2 FROM tab2 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT 62 / col1 col2 FROM tab2 AS cor0
----
1
2
3
query I rowsort
SELECT ALL - 79 - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1168
-6803
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7095
SELECT DISTINCT - + col1 * cor0.col2 DIV + 48 AS col1 FROM tab2 AS cor0
----
-13
-17
-31
skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT - + col1 * cor0.col2 / + 48 AS col1 FROM tab2 AS cor0
----
-13
-17
-31
query I rowsort
SELECT ALL - + col0 * col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL - 72 AS col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT + col2 * col1 * 79 AS col1 FROM tab2 AS cor0
----
121186
51034
66123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7100
SELECT DISTINCT col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 + ( - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT 5 * - col2 FROM tab2
----
-130
-135
-190
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 61 AS REAL ) + col1 FROM tab1
----
-35
-48
-51
query I rowsort
SELECT ALL - col0 + ( + col1 ) * 14 FROM tab1 AS cor0
----
102
361
76
query I rowsort
SELECT DISTINCT + 95 FROM tab1
----
95
query I rowsort
SELECT 72 FROM tab1, tab1 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 + - col2 col0 FROM tab1
----
-5
34
37
query I rowsort
SELECT DISTINCT col2 * 1 * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT 63 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
2079
5166
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab1, tab0 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT DISTINCT - 68 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
1173
2139
4071
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + - col0 col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * + 3 FROM tab1 cor0
----
162
171
288
query I rowsort
SELECT DISTINCT - ( col0 ) + + col2 * + col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + col2 + 44 * + col0 FROM tab2 cor0
----
335
3458
3514
onlyif mysql # use DIV operator for integer division
query I rowsort label-7117
SELECT DISTINCT col2 DIV + col1 + col2 AS col1 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT col2 / + col1 + col2 AS col1 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT DISTINCT + col2 + + col1 * ( col0 * col2 ) AS col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab0 cor0
----
12
query I rowsort
SELECT - + 85 FROM tab2 AS cor0
----
-85
-85
-85
query I rowsort
SELECT + col0 * - col2 * - 43 AS col1 FROM tab2 AS cor0
----
129086
8127
87204
query I rowsort
SELECT ALL - - 37 + col0 FROM tab1 AS cor0
----
101
117
40
query I rowsort
SELECT DISTINCT + + cor0.col1 - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - 82 AS col0 FROM tab1 AS cor0
----
-82
-82
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT DISTINCT - - col1 * - col0 + 24 DIV 99 FROM tab1 cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT - - col1 * - col0 + 24 / 99 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + tab1.col0 * col1 + - col2 AS col1 FROM tab1
----
24
583
944
query I rowsort
SELECT 67 * - 69 + col1 AS col2 FROM tab2
----
-4564
-4592
-4606
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * - col0 + 15 col0 FROM tab0
----
50
7313
807
onlyif mysql # use DIV operator for integer division
query I rowsort label-7129
SELECT ALL tab1.col2 DIV 53 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL tab1.col2 / 53 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT ( + col1 ) * tab2.col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7132
SELECT - col2 DIV - col2 - col2 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-7132
SELECT - col2 / - col2 - col2 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT + col0 + cor0.col0 AS col2 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT ALL 31 + - col2 AS col2 FROM tab1
----
-23
-26
-65
query I rowsort
SELECT - + col2 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT DISTINCT - col1 * + col1 * 57 + col0 FROM tab1 AS cor0
----
-38529
-5636
-9553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * col0 col2 FROM tab0
----
1155
2937
792
query I rowsort
SELECT DISTINCT - + cor0.col0 * 82 FROM tab1 cor0
----
-246
-5248
-6560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col2 FROM tab1 AS cor0
----
92
92
92
query I rowsort
SELECT + - cor0.col1 * + 96 + + col0 AS col1 FROM tab0 AS cor0
----
-8232
-8647
-9277
query I rowsort
SELECT - + 11 + + 55 AS col2 FROM tab0 AS cor0
----
44
44
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-7142
SELECT + col0 + col2 DIV col1 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-7142
SELECT + col0 + col2 / col1 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT + 47 AS col0 FROM tab0 cor0
----
47
47
47
query I rowsort
SELECT col1 + ( + col0 + + col0 ) AS col1 FROM tab1
----
138
173
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT ALL - 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT ALL + 54 * cor0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 58a73a56d6839a455d17b09e5ff54471
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + - col2 col2 FROM tab2 AS cor0
----
-4
7
8
query I rowsort
SELECT DISTINCT col2 + - col0 * col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - ( + col2 ) - col1 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7151
SELECT col2 * col2 + - col2 DIV + col1 AS col2 FROM tab0 cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-7151
SELECT col2 * col2 + - col2 / + col1 AS col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL + + ( col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT 90 + - col0 AS col2 FROM tab0
----
1
55
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col0 FROM tab2
----
20
20
20
query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab2
----
71
query I rowsort
SELECT + + 50 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT DISTINCT col1 * + ( col1 ) FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT col1 * + 84 FROM tab1 AS cor0
----
1092
2184
840
query I rowsort
SELECT ALL - - col1 + - ( - col1 ) * col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + + col2 * ( + col1 ) + - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT + - cor0.col2 + ( col0 ) * - cor0.col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL - col0 + - col0 AS col1 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT ALL + + col2 * 24 * + 90 + cor0.col1 AS col1 FROM tab2 AS cor0
----
56219
58351
82097
query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL + 32 * col0 FROM tab1
----
2048
2560
96
query I rowsort
SELECT col1 + ( col2 ) * col0 * - ( + col2 + + col0 ) AS col0 FROM tab1 cor0
----
-1351667
-441398
-9208
onlyif mysql # use DIV operator for integer division
query I rowsort label-7167
SELECT col0 * 66 DIV col1 AS col1 FROM tab0 AS cor0
----
18
23
64
skipif mysql # not compatible
query I rowsort label-7167
SELECT col0 * 66 / col1 AS col1 FROM tab0 AS cor0
----
18
23
64
query I rowsort
SELECT + - cor0.col1 * + col1 + - 78 * col1 FROM tab2 AS cor0
----
-1615
-3379
-8083
query I rowsort
SELECT col1 * + 70 AS col1 FROM tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT - col2 * - col2 + - tab1.col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT ALL - col2 - + col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + col1 + - col1 col2 FROM tab1 cor0
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7173
SELECT DISTINCT + - 29 * col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT + - 29 * col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col2 + col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - - col0 * - col2 * + col2 + col0 * col1 FROM tab0 AS cor0
----
-24072
-590337
3360
query I rowsort
SELECT DISTINCT - col1 - + col2 * col0 * col2 AS col1 FROM tab0 AS cor0
----
-132
-26222
-598527
query I rowsort
SELECT DISTINCT col2 * - col1 + 84 AS col2 FROM tab0 AS cor0
----
-13
-2754
-7378
query I rowsort
SELECT + col1 * + col0 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - col2 + col0 * col0 * col0 AS col0 FROM tab1 AS cor0
----
-27
262087
511904
query I rowsort
SELECT ALL + col2 * 29 + col1 * col0 FROM tab1 cor0
----
1644
2293
3824
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT cor0.col1 + + 92 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT ALL - col0 + cor0.col0 + ( - cor0.col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - col2 * + col2 + + 21 AS col1 FROM tab0
----
-1068
-6703
20
query I rowsort
SELECT - 14 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT - ( 19 ) + col2 * - ( - col2 * col2 ) + ( + 88 ) AS col0 FROM tab0 cor0
----
36006
551437
70
query I rowsort
SELECT ALL - ( col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + - col2 + col2 * + col2 * col2 FROM tab0 AS cor0
----
0
35904
551286
query I rowsort
SELECT + ( - 33 ) * col2 + col2 AS col2 FROM tab2 AS cor0
----
-1216
-832
-864
query I rowsort
SELECT ALL + col0 * 66 + col2 * 90 AS col1 FROM tab0 AS cor0
----
13254
2400
4554
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7191
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 57 + col1 AS col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 57 + col1 AS col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT DISTINCT + - 19 * - col0 AS col1 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT col1 * - 76 FROM tab2 AS cor0
----
-1292
-2356
-4484
query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab0 AS cor0
----
96
query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab2 cor0
----
30
query I rowsort
SELECT ALL 26 * col1 FROM tab1 AS cor0
----
260
338
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col0 FROM tab0 cor0
----
97
97
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7198
SELECT ALL + col0 DIV + 1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL + col0 / + 1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + + col1 - - col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT 53 * 10 + - col0 FROM tab0 AS cor0
----
441
495
506
query I rowsort
SELECT ALL - col2 + + col2 - col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + col0 + - col0 * - col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL - 6 * - cor0.col2 FROM tab0 cor0
----
198
492
6
query I rowsort
SELECT + ( + col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 56 + + ( col0 * col2 ) FROM tab2 cor0
----
2084
245
3058
query I rowsort
SELECT DISTINCT + - col0 * col1 - col2 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - ( + col2 * + col1 ) - - ( 13 ) FROM tab1
----
-1235
-1391
-557
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + cor0.col0 col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + 57 * - 98 FROM tab2, tab1 AS cor0
----
-5586
query I rowsort
SELECT col2 + + col0 * - 73 AS col2 FROM tab1 AS cor0
----
-165
-4615
-5744
query I rowsort
SELECT ALL 58 AS col1 FROM tab0
----
58
58
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( col0 ) col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT - + ( col1 ) * + col2 + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1072
-1347
-449
query I rowsort
SELECT DISTINCT col0 + col0 * col0 * ( col2 ) FROM tab0 AS cor0
----
1260
19032
649611
query I rowsort
SELECT + 82 * - col0 FROM tab1 AS cor0
----
-246
-5248
-6560
query I rowsort
SELECT ALL + 20 * + col1 AS col1 FROM tab2 cor0
----
1180
340
620
onlyif mysql # use DIV operator for integer division
query I rowsort label-7218
SELECT DISTINCT + 21 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT + 21 / col1 AS col2 FROM tab2 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7219
SELECT + cor0.col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-7219
SELECT + cor0.col2 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT - col0 + 46 FROM tab2
----
-32
-33
39
query I rowsort
SELECT 97 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT col2 * col0 * - 59 + col1 AS col2 FROM tab0 AS cor0
----
-1968
-430491
-46642
query I rowsort
SELECT + col2 * col1 + + cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1292
1674
3068
query I rowsort
SELECT - col2 * - col0 * col2 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-7225
SELECT - 10 + 93 DIV + col1 FROM tab2
----
-5
-7
-9
skipif mysql # not compatible
query I rowsort label-7225
SELECT - 10 + 93 / + col1 FROM tab2
----
-5
-7
-9
query I rowsort
SELECT ALL - + ( 2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
query I rowsort
SELECT - + cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + tab1.col0 + - 61 - col1 AS col0 FROM tab1
----
-7
-84
6
query I rowsort
SELECT - + col0 * col2 * - cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-7232
SELECT col1 DIV + CAST( - ( + col0 ) AS SIGNED ) AS col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-7232
SELECT col1 / + CAST ( - ( + col0 ) AS INTEGER ) AS col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT DISTINCT - 61 AS col0 FROM tab2, tab1 AS cor0
----
-61
query I rowsort
SELECT DISTINCT + col1 * - 19 AS col0 FROM tab0
----
-1634
-1729
-1843
query I rowsort
SELECT ALL - + 99 * + 57 + + col0 FROM tab2 AS cor0
----
-5564
-5565
-5636
query I rowsort
SELECT + - 21 * + col1 AS col2 FROM tab1 AS cor0
----
-210
-273
-546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 + + col0 col0 FROM tab2
----
143
144
72
query I rowsort
SELECT col0 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - 71 + col1 AS col2 FROM tab0 AS cor0
----
15
20
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7240
SELECT CAST( - 56 AS SIGNED ) FROM tab2 AS cor0
----
-56
-56
-56
skipif mysql # not compatible
query I rowsort label-7240
SELECT CAST ( - 56 AS INTEGER ) FROM tab2 AS cor0
----
-56
-56
-56
query I rowsort
SELECT ALL + col1 + 68 AS col2 FROM tab2 AS cor0
----
127
85
99
query I rowsort
SELECT + + 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT ALL - col0 + 35 FROM tab0 AS cor0
----
-54
0
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7244
SELECT ALL - ( col2 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL - ( col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - cor1.col1 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT + 28 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT + 69 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7248
SELECT ALL col2 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL col2 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * 70 FROM tab2 AS cor0
----
490
5460
5530
query I rowsort
SELECT + col2 * + col0 - + col0 AS col0 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT ALL ( + 23 + col2 ) FROM tab0
----
105
24
56
query I rowsort
SELECT 41 * ( - col0 ) AS col1 FROM tab1
----
-123
-2624
-3280
query I rowsort
SELECT - ( - 61 ) AS col2 FROM tab2
----
61
61
61
query I rowsort
SELECT 86 * - tab0.col2 * - col1 FROM tab0
----
244068
641732
8342
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7256
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 73 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 73 AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7257
SELECT - + ( - col2 ) DIV ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7257
SELECT - + ( - col2 ) / ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT - col1 * - col2 * ( - col2 ) FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT - - 10 + - col1 AS col2 FROM tab2 AS cor0
----
-21
-49
-7
query I rowsort
SELECT + 61 * + col1 - - col0 * + col0 AS col2 FROM tab2
----
1940
7278
9683
query I rowsort
SELECT ALL 28 * - col2 FROM tab0
----
-2296
-28
-924
onlyif mysql # use DIV operator for integer division
query I rowsort label-7262
SELECT + + 22 DIV + col2 + + cor0.col0 * + 59 AS col2 FROM tab0 AS cor0
----
1416
2087
5251
skipif mysql # not compatible
query I rowsort label-7262
SELECT + + 22 / + col2 + + cor0.col0 * + 59 AS col2 FROM tab0 AS cor0
----
1416
2087
5251
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 + CAST ( col1 AS REAL ) * col2 AS col0 FROM tab0 AS cor0
----
15561
3492
4902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 56 * col1 col2 FROM tab1 AS cor0
----
-31920
-69888
-78624
query I rowsort
SELECT col2 * + 1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL col1 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL col1 + col2 * + cor0.col2 * - col2 FROM tab0 cor0
----
-35851
-551277
96
query I rowsort
SELECT DISTINCT - - col2 * - col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1140
-2496
-2808
query I rowsort
SELECT + + col1 + ( - 17 ) AS col1 FROM tab0 AS cor0
----
69
74
80
query I rowsort
SELECT ALL + - cor0.col2 + - 46 AS col1 FROM tab2 AS cor0
----
-72
-73
-84
query I rowsort
SELECT - - col1 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7272
SELECT ALL + col0 * CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + col1 * + col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
1945
3297
7926
query I rowsort
SELECT - col2 + ( col0 ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7276
SELECT DISTINCT + col0 * CAST( 38 AS SIGNED ) FROM tab1 AS cor0
----
114
2432
3040
skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + col0 * CAST ( 38 AS INTEGER ) FROM tab1 AS cor0
----
114
2432
3040
query I rowsort
SELECT ALL col2 + 42 AS col0 FROM tab2 AS cor0
----
68
69
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( + ( col1 ) ) + col2 * col0 col2 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT ALL + cor0.col1 * tab1.col2 - + cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to e9faf0fc362e8341c30300f35c5d9200
query I rowsort
SELECT DISTINCT 15 FROM tab1 cor0
----
15
query I rowsort
SELECT + - col2 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-7282
SELECT ALL cor0.col2 DIV ( col2 ) 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-7282
SELECT ALL cor0.col2 / ( col2 ) col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - + col1 * - col0 + col1 + - 8 * col2 AS col2 FROM tab0 AS cor0
----
1886
3484
7534
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * 29 AS col0 FROM tab0
----
-2378
-29
-957
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7286
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 * + col2 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 * + col2 AS col2 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT + - col2 + col2 * 74 FROM tab2 cor0
----
1898
1971
2774
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 * - col2 col1 FROM tab2 AS cor0
----
1092
1134
1596
query I rowsort
SELECT DISTINCT col0 + tab0.col2 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + col0 + col2 + + 50 * + col0 AS col0 FROM tab1
----
207
3321
4176
query I rowsort
SELECT col1 + 20 AS col1 FROM tab0
----
106
111
117
query I rowsort
SELECT ALL ( - ( - tab2.col1 ) ) FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL - cor0.col2 * 66 * 25 AS col0 FROM tab1 AS cor0
----
-158400
-89100
-94050
query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7295
SELECT ALL col0 DIV + col1 + + 71 FROM tab0
----
71
71
71
skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL col0 / + col1 + + 71 FROM tab0
----
71
71
71
query I rowsort
SELECT col0 + 68 * 35 FROM tab1
----
2383
2444
2460
onlyif mysql # use DIV operator for integer division
query I rowsort label-7297
SELECT - + 17 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7297
SELECT - + 17 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 66 * + col2 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT DISTINCT - 69 * - 11 AS col0 FROM tab2 AS cor0
----
759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col2 ) col1 FROM tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7301
SELECT DISTINCT - CAST( 44 AS SIGNED ) + - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-44
-45
-62
skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT - CAST ( 44 AS INTEGER ) + - col2 / col0 AS col2 FROM tab1 AS cor0
----
-44
-45
-62
query I rowsort
SELECT ALL cor0.col0 * + col1 + cor0.col2 * + col1 FROM tab2 cor0
----
1054
1989
6136
onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT DISTINCT + col1 DIV + col1 + - col0 + - col1 FROM tab1 AS cor0
----
-28
-73
-92
skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT + col1 / + col1 + - col0 + - col1 FROM tab1 AS cor0
----
-28
-73
-92
query I rowsort
SELECT - 33 * - 44 + col0 AS col0 FROM tab1 AS cor0
----
1455
1516
1532
query I rowsort
SELECT ( col1 ) * + col2 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - col1 * - col2 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + col0 * col0 * col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7308
SELECT ALL - + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL - + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - ( col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col0 * - 89 AS col1 FROM tab1 AS cor0
----
-267
-5696
-7120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * - 6 col1 FROM tab0
----
-168
-245
-623
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + col1 * + col2 col1 FROM tab1
----
1566
4218
8928
query I rowsort
SELECT DISTINCT col2 * + cor0.col1 - 19 FROM tab1 AS cor0
----
1229
1385
551
query I rowsort
SELECT + ( + col1 ) * col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 - + cor0.col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL 37 - + col2 FROM tab1 AS cor0
----
-17
-20
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7317
SELECT col2 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7317
SELECT col2 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT ALL col2 * col0 DIV col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL col2 * col0 / col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col1 + + col0 + + 86 FROM tab1 cor0
----
115
160
179
onlyif mysql # use DIV operator for integer division
query I rowsort label-7320
SELECT DISTINCT + + col2 + ( - col2 ) + col2 DIV - col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT + + col2 + ( - col2 ) + col2 / - col1 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT ALL cor0.col0 + 86 * - col0 FROM tab1 AS cor0
----
-255
-5440
-6800
query I rowsort
SELECT ALL + 60 * - cor2.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 4d2b7e28dde0a27f332e89480655b2e3
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 2c9bc625661696fa1cf187c4d0f703a1
query I rowsort
SELECT DISTINCT col2 * + col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - col0 + - 46 AS col0 FROM tab1 AS cor0
----
-110
-126
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col1 * + ( - col1 * + 47 ) col2 FROM tab2 cor0
----
-13600
-163666
-45198
query I rowsort
SELECT ALL - col1 * + ( 2 * + cor0.col0 ) FROM tab0 AS cor0
----
-16198
-4128
-6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-7328
SELECT ALL + + cor0.col1 + - 62 * ( col2 ) DIV col1 AS col1 FROM tab2 AS cor0
----
-121
-23
32
skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL + + cor0.col1 + - 62 * ( col2 ) / col1 AS col1 FROM tab2 AS cor0
----
-121
-23
32
query I rowsort
SELECT DISTINCT + + col0 - + ( col0 ) * - col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - + col0 * ( + col2 ) * - col1 + ( col2 ) AS col1 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-21
query I rowsort
SELECT + col0 + + col0 + 64 * col1 FROM tab2 AS cor0
----
1246
1998
3932
query I rowsort
SELECT + col1 * + cor0.col0 * 7 FROM tab1 AS cor0
----
4480
546
7280
query I rowsort
SELECT + - col0 - ( col0 ) AS col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + cor0.col2 * 11 FROM tab0 cor0
----
11
363
902
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7337
SELECT + cor0.col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7337
SELECT + cor0.col0 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 * 58 FROM tab1 AS cor0
----
-1508
-580
-754
query I rowsort
SELECT + cor0.col0 * - 97 + + col2 FROM tab2 AS cor0
----
-652
-7540
-7625
query I rowsort
SELECT - - ( + col2 ) + cor0.col1 AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + + ( + col1 ) + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - - cor0.col2 * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-7343
SELECT - ( col2 ) + col2 DIV - col0 col0 FROM tab0 AS cor0
----
-1
-34
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7343
SELECT - ( col2 ) + col2 / - col0 col0 FROM tab0 AS cor0
----
-1
-34
-82
query I rowsort
SELECT DISTINCT 30 FROM tab2, tab2 AS cor0
----
30
query I rowsort
SELECT - col0 + tab0.col1 + - 79 FROM tab0
----
-17
-17
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7346
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7346
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7347
SELECT - cor0.col2 + - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7347
SELECT - cor0.col2 + - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7348
SELECT ALL + cor0.col0 * col2 DIV col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL + cor0.col0 * col2 / col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - cor2.col2 FROM tab0, tab2 cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7350
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + 62 + 64 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
126
query I rowsort
SELECT ALL col1 + col0 * + col1 AS col1 FROM tab2
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-7353
SELECT - - 63 DIV col1 AS col2 FROM tab1 AS cor0
----
2
4
6
skipif mysql # not compatible
query I rowsort label-7353
SELECT - - 63 / col1 AS col2 FROM tab1 AS cor0
----
2
4
6
query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab2 cor0
----
0
query I rowsort
SELECT 4 * col2 AS col1 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT ALL col1 * + col1 * - ( - col2 ) AS col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT - 64 * - 64 AS col1 FROM tab2 AS cor0
----
4096
4096
4096
query I rowsort
SELECT - 4 * - col0 AS col0 FROM tab1 AS cor0
----
12
256
320
query I rowsort
SELECT ALL - cor0.col2 * + ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col0 + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL + ( col2 ) * col0 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT cor0.col2 + - 12 FROM tab1 cor0
----
42
45
84
query I rowsort
SELECT ALL + cor0.col0 * col1 * 78 FROM tab1 AS cor0
----
49920
6084
81120
query I rowsort
SELECT ALL + 35 - col1 AS col0 FROM tab2 AS cor0
----
-24
18
4
query I rowsort
SELECT + 25 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
query I rowsort
SELECT DISTINCT - col1 * + col2 + 8 FROM tab0 AS cor0
----
-2830
-7454
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7367
SELECT + CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7367
SELECT + CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT col1 + cor0.col0 * + col1 + + col2 FROM tab0 AS cor0
----
2183
3493
8272
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + + col2 + 82 FROM tab2 AS cor0
----
108
109
120
query I rowsort
SELECT + + col0 + + ( - col0 ) + + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col2 * + ( col0 ) FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col2 col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7374
SELECT col2 DIV - 75 + - ( col2 ) * - col2 * 60 FROM tab0
----
403439
60
65340
skipif mysql # not compatible
query I rowsort label-7374
SELECT col2 / - 75 + - ( col2 ) * - col2 * 60 FROM tab0
----
403439
60
65340
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - + col2 + 17 * cor0.col0 FROM tab2 AS cor0
----
1300
1305
92
query I rowsort
SELECT - col0 + col1 * col2 AS col1 FROM tab1
----
1168
1401
506
query I rowsort
SELECT + tab2.col2 + tab2.col0 * - col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - col2 * + col0 + col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT - ( col0 ) + - tab1.col2 * col2 * tab1.col1 AS col2 FROM tab1
----
-119888
-32554
-75819
query I rowsort
SELECT col1 + ( col1 ) AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT - col1 * - 96 + col1 * col0 FROM tab0 AS cor0
----
10320
12707
16835
query I rowsort
SELECT 96 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT 43 + + 10 FROM tab1
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-7385
SELECT ALL - ( 96 ) DIV - col1 AS col1 FROM tab0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - ( 96 ) / - col1 AS col1 FROM tab0
----
0
1
1
query I rowsort
SELECT DISTINCT - col2 * + col2 * col0 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT 36 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7388
SELECT - CAST( NULL AS SIGNED ) + 83 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7388
SELECT - CAST ( NULL AS INTEGER ) + 83 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + ( col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7390
SELECT DISTINCT CAST( NULL AS SIGNED ) + 69 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 69 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - - 23 + - col1 AS col2 FROM tab2 AS cor0
----
-36
-8
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 + col0 * col1 col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7393
SELECT ALL + col2 + 19 DIV + col0 FROM tab2 cor0
----
26
29
38
skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL + col2 + 19 / + col0 FROM tab2 cor0
----
26
29
38
query I rowsort
SELECT col2 + - col1 * col2 AS col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT 86 * - col2 + + 16 + - col0 * col2 FROM tab1
----
-15920
-4790
-8534
query I rowsort
SELECT DISTINCT - ( col1 ) - + tab1.col2 AS col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT tab1.col2 + col1 - + ( 32 ) AS col0 FROM tab1
----
35
48
77
query I rowsort
SELECT - col2 + - tab0.col2 * - col2 - col1 FROM tab0
----
-97
6551
970
query I rowsort
SELECT - col2 - - 4 * col2 AS col0 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT ALL + col1 * + 15 * - col2 + + cor0.col1 FROM tab2 AS cor0
----
-12524
-22951
-9673
query I rowsort
SELECT cor0.col1 + - ( col1 ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7402
SELECT - - cor0.col2 DIV - col1 + col2 FROM tab2 AS cor0
----
26
27
36
skipif mysql # not compatible
query I rowsort label-7402
SELECT - - cor0.col2 / - col1 + col2 FROM tab2 AS cor0
----
26
27
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 11 col2 FROM tab0 AS cor0
----
100
35
46
query I rowsort
SELECT + col1 + ( - col2 ) FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - cor0.col0 * col2 + 32 * - col2 AS col2 FROM tab1 cor0
----
-10752
-1890
-5472
query I rowsort
SELECT + 77 * col0 AS col1 FROM tab1
----
231
4928
6160
query I rowsort
SELECT DISTINCT cor0.col0 * col1 + col1 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
1061
2068
6214
query I rowsort
SELECT DISTINCT - - col2 * - col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT + 17 * col0 + + 75 * col2 + col1 * col0 FROM tab1 AS cor0
----
4179
6003
9600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 * - col0 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col0 + + col1 * col1 AS col1 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT - - 14 * col2 + 7 * + col2 FROM tab0 AS cor0
----
1722
21
693
query I rowsort
SELECT + col0 * + 96 AS col1 FROM tab0
----
2304
3360
8544
onlyif mysql # use DIV operator for integer division
query I rowsort label-7414
SELECT - col0 DIV col0 + + col0 DIV col1 col1 FROM tab1 cor0
----
-1
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7414
SELECT - col0 / col0 + + col0 / col1 col1 FROM tab1 cor0
----
-1
5
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7415
SELECT CAST( 14 AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
skipif mysql # not compatible
query I rowsort label-7415
SELECT CAST ( 14 AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT 29 * col0 + 8 * col2 FROM tab2
----
2470
2595
419
query I rowsort
SELECT col2 * + col1 * - ( + col1 ) FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT 17 * col1 FROM tab1
----
170
221
442
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7419
SELECT 43 * col0 + CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7419
SELECT 43 * col0 + CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + - tab2.col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT DISTINCT - 36 * col0 FROM tab1
----
-108
-2304
-2880
query I rowsort
SELECT col0 * - 95 - - col2 FROM tab2
----
-638
-7384
-7467
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7423
SELECT ALL CAST( col2 AS SIGNED ) * - col0 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
26136
35
598436
skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL CAST ( col2 AS INTEGER ) * - col0 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7425
SELECT - + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7425
SELECT - + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + ( - col1 ) * - col0 AS col1 FROM tab0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-7427
SELECT DISTINCT + col2 DIV ( + 13 ) AS col0 FROM tab0
----
0
2
6
skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT + col2 / ( + 13 ) AS col0 FROM tab0
----
0
2
6
query I rowsort
SELECT DISTINCT 48 * 25 FROM tab1, tab2 AS cor0
----
1200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7429
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 FROM tab1
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-7431
SELECT - 87 DIV - col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7431
SELECT - 87 / - col1 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL - ( - col2 ) + col1 + 25 FROM tab2
----
110
80
83
query I rowsort
SELECT DISTINCT 29 + 44 + + tab1.col1 * + col1 * - col0 AS col0 FROM tab1
----
-13447
-1955
-6327
query I rowsort
SELECT ALL + cor0.col1 * - 71 FROM tab2 AS cor0
----
-1207
-2201
-4189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - + 29 * 42 AS col2 FROM tab0 AS cor0
----
-1218
query I rowsort
SELECT ALL - - ( - 82 ) AS col0 FROM tab2 AS cor0
----
-82
-82
-82
query I rowsort
SELECT + - col2 * + 34 AS col1 FROM tab0 AS cor0
----
-1122
-2788
-34
query I rowsort
SELECT DISTINCT + ( + 50 ) FROM tab0 AS cor0
----
50
query I rowsort
SELECT DISTINCT + - 83 AS col1 FROM tab2 AS cor0
----
-83
query I rowsort
SELECT + col2 + cor0.col1 + - cor0.col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7443
SELECT - CAST( 72 AS SIGNED ) - - col0 AS col0 FROM tab0 AS cor0
----
-37
-48
17
skipif mysql # not compatible
query I rowsort label-7443
SELECT - CAST ( 72 AS INTEGER ) - - col0 AS col0 FROM tab0 AS cor0
----
-37
-48
17
query I rowsort
SELECT + col0 + + col0 + col1 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT ALL 82 AS col1 FROM tab0 AS cor0
----
82
82
82
query I rowsort
SELECT DISTINCT - - 19 * + ( col1 ) FROM tab0 AS cor0
----
1634
1729
1843
query I rowsort
SELECT - + col1 * ( col0 ) * + col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col0 FROM tab0 AS cor0
----
-86
-86
-86
query I rowsort
SELECT ALL + 42 AS col0 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT + col2 * col2 + + 47 FROM tab2 cor0
----
1491
723
776
query I rowsort
SELECT col2 * - 87 FROM tab2
----
-2262
-2349
-3306
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7452
SELECT ALL CAST( NULL AS SIGNED ) + + 13 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL CAST ( NULL AS INTEGER ) + + 13 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 45 * - col1 FROM tab2 cor0
----
-1395
-2655
-765
query I rowsort
SELECT - ( col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-7455
SELECT ALL ( + col1 ) * col1 DIV + 98 + + 94 FROM tab1 AS cor0
----
100
95
95
skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL ( + col1 ) * col1 / + 98 + + 94 FROM tab1 AS cor0
----
100
95
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 + col0 ) col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT - 56 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT + 51 * col0 FROM tab2 AS cor0
----
357
3978
4029
query I rowsort
SELECT - col1 * - col0 * + col0 + cor0.col1 FROM tab2 AS cor0
----
106114
1550
359015
query I rowsort
SELECT + + 63 + + col2 * col0 * 3 - + col1 FROM tab2 AS cor0
----
599
6088
9052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT col2 + cor0.col1 - + 54 AS col2 FROM tab1 AS cor0
----
13
26
55
query I rowsort
SELECT - col2 + col0 * + col0 + col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-939
2577
5914
query I rowsort
SELECT - - 11 * - col1 FROM tab1 cor0
----
-110
-143
-286
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7465
SELECT + cor0.col2 * cor0.col2 + ( - cor0.col2 ) * col0 + + CAST( + cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
-1274
-1479
547
skipif mysql # not compatible
query I rowsort label-7465
SELECT + cor0.col2 * cor0.col2 + ( - cor0.col2 ) * col0 + + CAST ( + cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
-1274
-1479
547
query I rowsort
SELECT col2 * - col2 - ( - 70 ) FROM tab2 AS cor0
----
-1374
-606
-659
query I rowsort
SELECT + col2 + + col0 + + 23 * col2 FROM tab1 AS cor0
----
1299
1432
2384
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7468
SELECT ALL col1 + CAST( NULL AS SIGNED ) * + col0 / + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL col1 + CAST ( NULL AS INTEGER ) * + col0 / + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + - col1 + + 6 * 14 * - col2 AS col0 FROM tab1 AS cor0
----
-4562
-4798
-8077
query I rowsort
SELECT + cor0.col1 * ( col0 ) + + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + col0 * col0 + 30 AS col2 FROM tab1 AS cor0
----
39
4126
6430
query I rowsort
SELECT DISTINCT + - col2 + - ( + cor0.col2 ) + - col1 FROM tab1 AS cor0
----
-124
-134
-205
query I rowsort
SELECT ALL col1 * 84 AS col2 FROM tab2 cor0
----
1428
2604
4956
query I rowsort
SELECT ALL - col2 * col2 + col2 * + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( 97 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-5238
-5529
-9312
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 0a3bf4d9642f43f11aad64de0d046e6b
query I rowsort
SELECT 68 + + cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1180
-1336
-502
query I rowsort
SELECT ALL - 8 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2, tab1 AS cor3
----
243 values hashing to 89006b9c941bf373769374137ae230cd
query I rowsort
SELECT - - cor0.col1 + + ( - col2 + - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col2 * col0 + + 82 AS col0 FROM tab0 AS cor0
----
117
7380
874
query I rowsort
SELECT - + cor0.col0 + + 83 FROM tab1 AS cor0
----
19
3
80
query I rowsort
SELECT + col0 + - ( 10 ) FROM tab2 AS cor0
----
-3
68
69
query I rowsort
SELECT ALL 43 AS col0 FROM tab1 AS cor0
----
43
43
43
query I rowsort
SELECT + ( col2 ) + col2 + + 11 * col1 FROM tab2 AS cor0
----
263
395
701
query I rowsort
SELECT - col2 + - col1 * col2 FROM tab0 cor0
----
-2871
-7544
-98
query I rowsort
SELECT - cor0.col0 * - 10 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3ac6b59c2dce1afc73966f18f848b82e
onlyif mysql # use DIV operator for integer division
query I rowsort label-7488
SELECT ALL 13 DIV - ( - col0 ) + + CAST( 28 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
117
52
63
skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL 13 / - ( - col0 ) + + CAST ( 28 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
117
52
63
query I rowsort
SELECT ALL - 7 AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
query I rowsort
SELECT DISTINCT - tab1.col0 + - col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT col1 + col0 * + col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT - + 43 * - col1 FROM tab0 AS cor0
----
3698
3913
4171
query I rowsort
SELECT - + 44 + + col2 AS col2 FROM tab0 cor0
----
-11
-43
38
query I rowsort
SELECT ( col1 ) * + col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7495
SELECT ALL + tab1.col1 DIV + 78 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + tab1.col1 / + 78 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT col2 + 42 AS col0 FROM tab1 AS cor0
----
138
96
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 col2 FROM tab1 cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * 4 col0 FROM tab0 AS cor0
----
140
356
96
query I rowsort
SELECT - - col0 * + ( 9 * + col0 ) + col1 AS col1 FROM tab1 AS cor0
----
107
36874
57613
query I rowsort
SELECT + ( + col2 + 42 ) FROM tab0
----
124
43
75
query I rowsort
SELECT ( col0 + + col0 ) FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-7502
SELECT + 25 DIV + col2 FROM tab0
----
0
0
25
skipif mysql # not compatible
query I rowsort label-7502
SELECT + 25 / + col2 FROM tab0
----
0
0
25
query I rowsort
SELECT + + col2 + col2 + - col1 FROM tab2 AS cor0
----
-7
23
59
query I rowsort
SELECT ALL - + cor0.col2 * ( col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col1 + ( + 98 ) AS col0 FROM tab0 AS cor0
----
184
189
195
query I rowsort
SELECT ALL - col1 * - 43 * - col1 AS col2 FROM tab2 AS cor0
----
-12427
-149683
-41323
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7507
SELECT col1 * CAST( - 33 + + col1 AS SIGNED ) FROM tab0 AS cor0
----
4558
5278
6208
skipif mysql # not compatible
query I rowsort label-7507
SELECT col1 * CAST ( - 33 + + col1 AS INTEGER ) FROM tab0 AS cor0
----
4558
5278
6208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7508
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7508
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col1 + 77 FROM tab0
----
163
168
174
query I rowsort
SELECT ALL col1 * + tab2.col2 + + col0 AS col0 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-7511
SELECT + col2 * + col2 + + col2 - - col1 DIV col0 AS col0 FROM tab0
----
1125
4
6807
skipif mysql # not compatible
query I rowsort label-7511
SELECT + col2 * + col2 + + col2 - - col1 / col0 AS col0 FROM tab0
----
1125
4
6807
onlyif mysql # use DIV operator for integer division
query I rowsort label-7512
SELECT DISTINCT + tab2.col2 DIV - col0 + - col0 * tab2.col0 * ( + col2 * col2 ) + 27 AS col2 FROM tab2
----
-35697
-4112757
-9011977
skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT + tab2.col2 / - col0 + - col0 * tab2.col0 * ( + col2 * col2 ) + 27 AS col2 FROM tab2
----
-35697
-4112757
-9011977
query I rowsort
SELECT - 78 AS col0 FROM tab1
----
-78
-78
-78
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 * + ( cor0.col2 ) + col2 * cor0.col0 FROM tab0 AS cor0
----
-604586
-62
-92862
query I rowsort
SELECT + 41 AS col0 FROM tab2
----
41
41
41
query I rowsort
SELECT ALL + col2 * ( - col0 ) AS col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col2 FROM tab2 AS cor0
----
68
query I rowsort
SELECT ALL 75 FROM tab2 cor0
----
75
75
75
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + col0 * - cor0.col1 + - 5 AS col1 FROM tab1 cor0
----
-1045
-645
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 * col0 * + 91 col1 FROM tab1 AS cor0
----
-58304
-7101
-94720
query I rowsort
SELECT - - col1 * col2 - - cor0.col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + cor0.col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL col0 * tab1.col1 + + col2 * + col2 FROM tab1
----
10256
2994
3889
query I rowsort
SELECT ALL - col2 + + col2 AS col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7528
SELECT ALL col1 + col2 * col0 DIV tab2.col0 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL col1 + col2 * col0 / tab2.col0 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7529
SELECT ALL + cor0.col1 + + col0 * col2 DIV col1 - - col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
6177
6434
86
skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL + cor0.col1 + + col0 * col2 / col1 - - col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
6177
6434
86
query I rowsort
SELECT DISTINCT col2 * col1 + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT col0 + col2 * col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - col0 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT - + col2 * - col0 + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - + col0 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL tab0.col2 * - col2 * + col0 + + col2 FROM tab0
----
-26103
-34
-598354
query I rowsort
SELECT col1 + - col0 + - col0 FROM tab0
----
-87
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 col2 FROM tab0
----
53
9
96
query I rowsort
SELECT - col1 * - col0 - col0 AS col0 FROM tab1
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + - col2 col0 FROM tab1
----
-157
-265
-730
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT cor0.col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT col2 + col0 * col0 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT ALL - 19 * col2 AS col1 FROM tab2 AS cor0
----
-494
-513
-722
query I rowsort
SELECT + 58 * col2 FROM tab0 AS cor0
----
1914
4756
58
query I rowsort
SELECT ALL + 72 - col2 * col0 AS col0 FROM tab2 AS cor0
----
-117
-1956
-2930
query I rowsort
SELECT DISTINCT - + col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT 17 + + cor0.col2 FROM tab1 AS cor0
----
113
71
74
query I rowsort
SELECT + 12 * - col0 AS col1 FROM tab0 AS cor0
----
-1068
-288
-420
query I rowsort
SELECT ALL col1 * col1 + col2 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT 44 * ( + col0 ) FROM tab0
----
1056
1540
3916
query I rowsort
SELECT ALL - col2 + 17 * - col1 FROM tab0
----
-1495
-1629
-1650
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
3
64
80
query I rowsort
SELECT ALL - col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - 31 * - col0 FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT 14 + tab0.col1 FROM tab0
----
100
105
111
query I rowsort
SELECT col2 + - col0 * - col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT tab1.col1 + col2 + + col0 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NULL NOT IN ( - col1 )
----
query I rowsort
SELECT + col0 + col1 * - col1 - - col2 AS col1 FROM tab1
----
-619
21
7
query I rowsort
SELECT col0 + tab0.col1 * col0 + - col2 FROM tab0
----
2055
3429
8106
query I rowsort
SELECT col0 + + col1 * col1 FROM tab2
----
3559
368
968
query I rowsort
SELECT col0 * tab0.col2 AS col2 FROM tab0 WHERE NOT NULL IN ( col2 / - col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE col1 > + col0
----
3
26
54
query I rowsort
SELECT ALL col2 + tab1.col1 * + tab1.col0 AS col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT + tab1.col2 AS col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - tab0.col0 col2 FROM tab0
----
2
62
query I rowsort
SELECT ALL col2 * col0 * + col1 + col2 * col1 AS col1 FROM tab1
----
101088
37050
5616
query I rowsort
SELECT + - cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL + - col1 * col2 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - cor0.col0 - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + col0 * + col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL col0 * col0 + col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-7575
SELECT ALL col1 DIV - col1 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL col1 / - col1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL col2 AS col2 FROM tab0 cor0 WHERE NOT NULL = NULL
----
query I rowsort
SELECT DISTINCT col0 * col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 )
----
query I rowsort
SELECT + col0 + col1 + - cor0.col2 * col0 FROM tab2 AS cor0
----
-151
-1891
-2906
query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT col2 NOT IN ( tab2.col0 / + col1 )
----
query I rowsort
SELECT DISTINCT + col0 * - col1 * - col1 + col0 * col1 FROM tab2
----
24174
276120
6944
query I rowsort
SELECT ALL - col2 * + col1 + - col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT ALL + col2 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NULL <> NULL
----
query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1 )
----
query I rowsort
SELECT DISTINCT tab1.col2 * col2 * col0 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT - col1 * col0 * col1 AS col2 FROM tab0
----
-177504
-329315
-737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-7589
SELECT ALL - ( - col1 ) DIV + col0 AS col2 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL - ( - col1 ) / + col0 AS col2 FROM tab1
----
0
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7590
SELECT - 57 DIV 53 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7590
SELECT - 57 / 53 FROM tab2
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7591
SELECT - col2 + col1 - CAST( NULL AS DECIMAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7591
SELECT - col2 + col1 - CAST ( NULL AS REAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 48 FROM tab0 cor0
----
48
query I rowsort
SELECT ALL - + 85 * col0 * ( col2 + - cor0.col1 ) FROM tab1 AS cor0
----
-255680
-564400
-7140
onlyif mysql # use DIV operator for integer division
query I rowsort label-7594
SELECT + + col0 + col2 DIV col1 + 54 * + col0 AS col0 FROM tab2 cor0
----
385
4290
4347
skipif mysql # not compatible
query I rowsort label-7594
SELECT + + col0 + col2 / col1 + 54 * + col0 AS col0 FROM tab2 cor0
----
385
4290
4347
query I rowsort
SELECT ALL ( 25 * + col1 ) AS col2 FROM tab0
----
2150
2275
2425
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 95 * + col2 col1 FROM tab2
----
-137180
-64220
-69255
query I rowsort
SELECT col2 * + col2 + col1 + - 52 * - col0 FROM tab0
----
11443
1918
2423
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7598
SELECT CAST( NULL AS SIGNED ) + + 97 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7598
SELECT CAST ( NULL AS INTEGER ) + + 97 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7599
SELECT DISTINCT + col0 * ( - col1 ) - + col1 DIV col1 AS col1 FROM tab1
----
-1041
-641
-79
skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT + col0 * ( - col1 ) - + col1 / col1 AS col1 FROM tab1
----
-1041
-641
-79
query I rowsort
SELECT DISTINCT - col0 - + ( col0 ) FROM tab1
----
-128
-160
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7601
SELECT CAST( col2 AS SIGNED ) * tab0.col0 * - ( - tab0.col0 + + col1 ) FROM tab0
----
-14596
-2170
-49104
skipif mysql # not compatible
query I rowsort label-7601
SELECT CAST ( col2 AS INTEGER ) * tab0.col0 * - ( - tab0.col0 + + col1 ) FROM tab0
----
-14596
-2170
-49104
query I rowsort
SELECT ( - col0 ) - + ( col2 ) AS col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + + col0 + - col1 * ( - col2 * col0 ) AS col0 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT ALL - + 84 * + cor0.col0 FROM tab0 AS cor0
----
-2016
-2940
-7476
onlyif mysql # use DIV operator for integer division
query I rowsort label-7605
SELECT ALL - 98 + col0 DIV + col2 FROM tab1 AS cor0
----
-97
-98
-98
skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL - 98 + col0 / + col2 FROM tab1 AS cor0
----
-97
-98
-98
query I rowsort
SELECT - col2 * - col1 + + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0, tab1 cor1
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
query I rowsort
SELECT + + cor0.col1 + + ( col1 ) FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT + tab2.col1 + ( + col2 ) * col1 * tab2.col2 AS col2 FROM tab2
----
22630
24565
39943
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( - col1 ) col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 46 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7612
SELECT DISTINCT - col0 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT - col0 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7613
SELECT DISTINCT - col1 * + CAST( tab1.col2 AS SIGNED ) FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT - col1 * + CAST ( tab1.col2 AS INTEGER ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + cor1.col0 * cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 12930ec3ed2e24e506ebb47d036ed597
query I rowsort
SELECT ALL tab0.col1 * + 45 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 251f303ab224b8b2300c62b3bb8b1f2d
query I rowsort
SELECT ALL + 55 AS col0 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT ALL + 26 * + 25 FROM tab2 AS cor0
----
650
650
650
query I rowsort
SELECT DISTINCT ( 94 + col0 ) * - 74 FROM tab0
----
-13542
-8732
-9546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 + - col1 * col2 + + 22 col2 FROM tab1 AS cor0
----
-1174
-1330
-496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 - col2 * - col1 col1 FROM tab1 AS cor0
----
1286
1442
608
query I rowsort
SELECT ( - cor0.col2 ) * - col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( col2 * ( col0 ) ) + + col0 * col2 * cor0.col1 col0 FROM tab2 AS cor0
----
277836
288192
7182
query I rowsort
SELECT ALL - - col0 + col0 AS col2 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT ALL - - cor0.col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT + col2 * + col2 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL col2 * ( cor0.col0 ) FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col2 col2 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7628
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7629
SELECT - CAST( - col2 AS SIGNED ) col1 FROM tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7629
SELECT - CAST ( - col2 AS INTEGER ) col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - cor0.col0 + ( col2 ) FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ALL 38 * col2 FROM tab2 AS cor0
----
1026
1444
988
query I rowsort
SELECT ALL - ( col1 ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ( col2 * col1 ) FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + - col1 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col1 * + col1 + + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab1, tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7637
SELECT ALL col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 73 + - col2 FROM tab0
----
-9
40
72
query I rowsort
SELECT col0 + ( 13 ) * + col2 AS col1 FROM tab1 AS cor0
----
1328
705
805
query I rowsort
SELECT + col1 * col1 + tab1.col0 FROM tab1
----
164
249
679
query I rowsort
SELECT DISTINCT + ( - tab0.col1 ) AS col0 FROM tab0, tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col1 * - tab1.col0 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - col0 * col0 * cor0.col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT - 31 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT DISTINCT - col1 * + 90 AS col1 FROM tab2 AS cor0
----
-1530
-2790
-5310
query I rowsort
SELECT col1 * + 86 FROM tab0 AS cor0
----
7396
7826
8342
query I rowsort
SELECT - col0 + ( ( - col2 ) ) FROM tab0
----
-171
-36
-57
query I rowsort
SELECT + col0 * 85 + ( - col2 ) FROM tab0
----
2007
2974
7483
query I rowsort
SELECT col2 + 28 * 19 * - col1 FROM tab1
----
-13778
-5263
-6820
query I rowsort
SELECT + - col1 * + col0 * + col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT 96 FROM tab0 cor0
----
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 * + ( + col0 + col1 ) col0 FROM tab2 AS cor0
----
-3536
-3610
-999
query I rowsort
SELECT tab0.col2 * col2 + col2 * - col2 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab2, tab0 cor0
----
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7655
SELECT ALL + + col0 + CAST( + cor0.col1 AS SIGNED ) FROM tab0 cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL + + col0 + CAST ( + cor0.col1 AS INTEGER ) FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - - cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + + col2 * + 0 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - ( 98 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT ALL + cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 67 ) * - tab2.col0 col0 FROM tab2
----
469
5226
5293
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 60 col2 FROM tab2 AS cor0
----
86
87
98
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 35 * col0 AS REAL ) AS col2 FROM tab2
----
245
2730
2765
query I rowsort
SELECT ( col2 ) * + col2 + - 60 AS col0 FROM tab1 AS cor0
----
2856
3189
9156
query I rowsort
SELECT ALL col1 + + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + 94 * ( col1 ) + 34 + - col1 AS col2 FROM tab0 AS cor0
----
8032
8497
9055
query I rowsort
SELECT DISTINCT + 95 + cor0.col1 FROM tab2 AS cor0
----
112
126
154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - + col1 + - col1 * 67 * + col1 FROM tab0 AS cor0
----
-495618
-554918
-630500
query I rowsort
SELECT + col1 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col2 FROM tab1 cor0
----
-43
-43
-43
query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + - col1 + + col2 + - 9 AS col1 FROM tab0 cor0
----
-105
-18
-62
query I rowsort
SELECT DISTINCT 54 * + col2 + - col1 * - 63 + col2 AS col2 FROM tab2 AS cor0
----
3161
3438
5147
query I rowsort
SELECT ALL + 45 + - col1 AS col0 FROM tab2 AS cor0
----
-14
14
28
query I rowsort
SELECT + - cor0.col1 * + cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT 60 + + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
7358
852
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 76 * col1 + ( + 62 + col0 ) col1 FROM tab2
----
1416
2394
4565
query I rowsort
SELECT + - cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - 33 * col2 FROM tab0 AS cor0
----
-1089
-2706
-33
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col0 - + col2 * col2 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT ALL cor0.col1 - + 70 FROM tab0, tab2 AS cor0
----
9 values hashing to e8e0fa8a2864d65bffd87959088a59d7
query I rowsort
SELECT col0 * - col2 * + col0 AS col0 FROM tab2
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-7683
SELECT ALL tab1.col0 DIV 13 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 918ea53afb9c0d4552ed40a96460791d
skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL tab1.col0 / 13 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 918ea53afb9c0d4552ed40a96460791d
query I rowsort
SELECT - 4 * cor0.col0 + + col1 FROM tab0 AS cor0
----
-10
-265
-43
query I rowsort
SELECT - col1 + - cor0.col1 * col1 * cor0.col1 + ( col1 ) AS col0 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT + 31 + 79 * + col0 FROM tab1 cor0
----
268
5087
6351
query I rowsort
SELECT + ( col2 ) + cor0.col2 * col0 * + col1 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT + 43 - + col0 AS col2 FROM tab0 AS cor0
----
-46
19
8
query I rowsort
SELECT - 56 * cor0.col1 + + cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
-1479
-506
-661
query I rowsort
SELECT ALL - tab0.col2 + col1 AS col0 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL col1 + - col1 + + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - tab1.col0 + 51 + tab1.col2 FROM tab1
----
102
44
67
query I rowsort
SELECT - col0 + - ( col0 ) * col1 + + ( 31 + + tab2.col0 ) FROM tab2
----
-1312
-186
-4571
query I rowsort
SELECT - col0 * - 15 AS col2 FROM tab1
----
1200
45
960
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0, tab1 cor1
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe
onlyif mysql # use DIV operator for integer division
query I rowsort label-7696
SELECT + + col1 + + ( col1 ) DIV - ( cor0.col2 + - col0 ) AS col2 FROM tab0 AS cor0
----
104
77
99
skipif mysql # not compatible
query I rowsort label-7696
SELECT + + col1 + + ( col1 ) / - ( cor0.col2 + - col0 ) AS col2 FROM tab0 AS cor0
----
104
77
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7697
SELECT ALL CAST( NULL AS SIGNED ) * - 53 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL CAST ( NULL AS INTEGER ) * - 53 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7698
SELECT + ( col2 ) * col1 * - col1 - - col1 DIV + col0 FROM tab0 AS cor0
----
-244065
-679041
-9407
skipif mysql # not compatible
query I rowsort label-7698
SELECT + ( col2 ) * col1 * - col1 - - col1 / + col0 FROM tab0 AS cor0
----
-244065
-679041
-9407
query I rowsort
SELECT + - col0 + cor0.col1 * col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 * col1 + cor0.col0 AS col0 FROM tab0 cor0
----
636080
753660
912708
onlyif mysql # use DIV operator for integer division
query I rowsort label-7701
SELECT - col0 + col1 DIV - ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7701
SELECT - col0 + col1 / - ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7702
SELECT ALL cor0.col2 * ( col1 ) DIV col0 FROM tab0 AS cor0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL cor0.col2 * ( col1 ) / col0 FROM tab0 AS cor0
----
118
2
83
query I rowsort
SELECT ALL - col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col0 + 37 FROM tab1 AS cor0
----
101
117
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7705
SELECT DISTINCT + + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT + + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - - col2 - + 5 AS col0 FROM tab0 AS cor0
----
-4
28
77
query I rowsort
SELECT ALL 61 * col0 * + tab0.col1 AS col1 FROM tab0
----
125904
207095
494039
query I rowsort
SELECT ALL - col2 + + ( 35 ) * col2 - 40 * 40 FROM tab1
----
1664
236
338
query I rowsort
SELECT col1 * ( - col2 * + col0 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT col0 - 36 * + 49 FROM tab1
----
-1684
-1700
-1761
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT DISTINCT + 67 + - col2 FROM tab1 AS cor0
----
-29
10
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-7713
SELECT 99 * 67 DIV col0 AS col2 FROM tab2 AS cor0
----
83
85
947
skipif mysql # not compatible
query I rowsort label-7713
SELECT 99 * 67 / col0 AS col2 FROM tab2 AS cor0
----
83
85
947
query I rowsort
SELECT 99 * + col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
662
7663
7804
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + col2 * - 79 * + 52 col0 FROM tab2
----
-106787
-110895
-156083
query I rowsort
SELECT ALL - 42 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27
query I rowsort
SELECT ALL + 60 AS col1 FROM tab0 AS cor0
----
60
60
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-7718
SELECT 15 * cor0.col1 DIV col0 FROM tab2 AS cor0
----
11
3
66
skipif mysql # not compatible
query I rowsort label-7718
SELECT 15 * cor0.col1 / col0 FROM tab2 AS cor0
----
11
3
66
query I rowsort
SELECT - cor0.col0 * - col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 45 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 * + col1 col0 FROM tab0 AS cor0
----
-2666
-2821
-3007
query I rowsort
SELECT + ( cor0.col1 ) * + col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL col1 * - cor0.col2 + ( col1 ) FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT col1 * + col0 * - 8 + col1 FROM tab1 AS cor0
----
-5110
-598
-8307
query I rowsort
SELECT + + col1 + - col0 * 43 AS col1 FROM tab0 AS cor0
----
-1408
-3736
-946
query I rowsort
SELECT ALL + col1 + + ( cor0.col2 ) + col0 * - 19 AS col1 FROM tab1 AS cor0
----
-1149
-1411
23
query I rowsort
SELECT ALL - col1 * + 32 + + col1 FROM tab2 AS cor0
----
-1829
-527
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-7728
SELECT DISTINCT + + col1 DIV col1 + 59 + col1 * 43 * - col0 AS col0 FROM tab1 AS cor0
----
-27460
-3294
-44660
skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT + + col1 / col1 + 59 + col1 * 43 * - col0 AS col0 FROM tab1 AS cor0
----
-27460
-3294
-44660
query I rowsort
SELECT DISTINCT + col1 + 44 FROM tab0 AS cor0
----
130
135
141
query I rowsort
SELECT cor0.col2 - - 71 FROM tab2, tab0 AS cor0
----
9 values hashing to c2e19c35331e039b44b587838257a733
query I rowsort
SELECT ALL + col2 * ( - col1 ) * cor0.col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL col2 + 0 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 96 * - ( - col2 ) AS col1 FROM tab1 AS cor0
----
5184
5472
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * + col0 col1 FROM tab0 AS cor0
----
1295
3293
888
onlyif mysql # use DIV operator for integer division
query I rowsort label-7735
SELECT ALL - 2 + tab1.col2 DIV + col2 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - 2 + tab1.col2 / + col2 AS col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ( - 85 ) * - col0 AS col1 FROM tab0 AS cor0
----
2040
2975
7565
query I rowsort
SELECT ALL + 0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7738
SELECT ALL + CAST( NULL AS DECIMAL ) * 5 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + CAST ( NULL AS REAL ) * 5 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7739
SELECT DISTINCT ( col2 ) + - col2 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT ( col2 ) + - col2 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT - col2 * - cor0.col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL - ( cor0.col2 ) * col0 + cor0.col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-7742
SELECT DISTINCT col0 * col0 DIV col0 + + col1 * + col1 FROM tab2 AS cor0
----
3559
368
968
skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT col0 * col0 / col0 + + col1 * + col1 FROM tab2 AS cor0
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col1 FROM tab1 AS cor0
----
16
16
16
query I rowsort
SELECT ALL + col2 - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + col0 * + col2 + ( 64 ) * col0 * col0 FROM tab2 AS cor0
----
3325
391404
402426
query I rowsort
SELECT DISTINCT + col2 * - col1 + - ( col1 ) FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col2 + col2 * col1 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 * - ( col1 ) + col2 col1 FROM tab2 AS cor0
----
119678
51072
5886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 - col2 * col1 col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT - col1 * col2 * + col0 AS col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - 75 + col0 AS col0 FROM tab1
----
-11
-72
5
query I rowsort
SELECT ( col0 ) * col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT tab1.col0 * tab1.col2 * + col0 + - 66 AS col1 FROM tab1
----
233406
420
614334
query I rowsort
SELECT ALL tab2.col2 * - tab2.col2 FROM tab2
----
-1444
-676
-729
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 79b6ae096785aaecea9c1428e4a43e5f
query I rowsort
SELECT ( col1 ) * col1 + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT - ( col0 ) + col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL ( 87 ) FROM tab0
----
87
87
87
query I rowsort
SELECT ALL + + col0 + ( + col1 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - 77 * - col1 + col1 AS col0 FROM tab2
----
1326
2418
4602
query I rowsort
SELECT col2 + col0 + - ( + col0 ) AS col0 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 + col1 + ( + tab1.col0 ) col1 FROM tab1
----
10
55
74
query I rowsort
SELECT ALL 77 * + col1 * + col1 + - col1 * col2 * - col1 AS col2 FROM tab2
----
33235
358543
99944
onlyif mysql # use DIV operator for integer division
query I rowsort label-7766
SELECT ALL + col2 DIV - col1 + col0 * + 84 FROM tab0 AS cor0
----
2016
2940
7476
skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL + col2 / - col1 + col0 * + 84 FROM tab0 AS cor0
----
2016
2940
7476
query I rowsort
SELECT ALL 55 * tab2.col1 + tab2.col2 + col2 FROM tab2
----
1011
1759
3297
query I rowsort
SELECT + 41 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT ALL + 46 * + col0 * - ( - col0 ) + - col1 * + ( + ( - col0 ) * col1 ) + - 9 * + col0 * + col2 FROM tab0
----
1035693
196872
385350
query I rowsort
SELECT DISTINCT + cor0.col0 * - 64 FROM tab2 AS cor0
----
-448
-4992
-5056
query I rowsort
SELECT - cor0.col2 * + col2 + - col2 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT - col0 * col1 + col0 + + col0 AS col0 FROM tab0 AS cor0
----
-2016
-3325
-7921
query I rowsort
SELECT col1 * + col2 + - 27 * col0 AS col1 FROM tab0 AS cor0
----
-848
2190
5059
query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) + + cor0.col2 * - 28 AS col2 FROM tab1 AS cor0
----
-1496
-2519
-836
onlyif mysql # use DIV operator for integer division
query I rowsort label-7775
SELECT col0 DIV col2 + col0 * + cor0.col2 FROM tab0 AS cor0
----
70
7299
792
skipif mysql # not compatible
query I rowsort label-7775
SELECT col0 / col2 + col0 * + cor0.col2 FROM tab0 AS cor0
----
70
7299
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7776
SELECT + col2 + col1 DIV col2 AS col2 FROM tab0 cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-7776
SELECT + col2 + col1 / col2 AS col2 FROM tab0 cor0
----
35
83
98
query I rowsort
SELECT - col0 + + col1 + - col0 FROM tab0 AS cor0
----
-87
27
38
query I rowsort
SELECT + col2 + 39 FROM tab2 AS cor0
----
65
66
77
query I rowsort
SELECT col1 + col0 * - col2 * - col1 AS col2 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT + cor0.col0 + + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT col0 * + ( col2 * col0 ) FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT + col0 + col2 + + ( - cor0.col1 ) FROM tab0 AS cor0
----
-29
-61
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT + col1 DIV 91 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7783
SELECT + col1 / 91 AS col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7784
SELECT + col0 + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7784
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-7785
SELECT ALL + col0 + - 58 DIV - col2 AS col0 FROM tab1 AS cor0
----
4
65
80
skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL + col0 + - 58 / - col2 AS col0 FROM tab1 AS cor0
----
4
65
80
query I rowsort
SELECT + 80 + 5 FROM tab2 AS cor0
----
85
85
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7787
SELECT + - 69 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-6
skipif mysql # not compatible
query I rowsort label-7787
SELECT + - 69 / + col1 FROM tab1 AS cor0
----
-2
-5
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-7788
SELECT - - col1 DIV 85 + - cor0.col2 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-7788
SELECT - - col1 / 85 + - cor0.col2 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT ALL + ( + cor0.col0 ) FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + col1 * 26 FROM tab1
----
260
338
676
query I rowsort
SELECT col0 * - 30 FROM tab1
----
-1920
-2400
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7792
SELECT ( + col1 ) DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7792
SELECT ( + col1 ) / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 1 * cor0.col2 + - col1 FROM tab0 cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7794
SELECT ALL + col0 DIV 95 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL + col0 / 95 AS col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7795
SELECT DISTINCT col1 + col1 DIV cor0.col0 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT col1 + col1 / cor0.col0 FROM tab2 AS cor0
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col2 col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - - col2 * + col1 + - ( + cor0.col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
132
14760
3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-7798
SELECT ALL 9 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL 9 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * col1 + 61 * col2 FROM tab2 AS cor0
----
1864
3661
6188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + tab1.col0 + + 23 FROM tab1, tab0 AS cor0
----
9 values hashing to 6002ead96b6d10917e29f4d5a8b12c7d
query I rowsort
SELECT - + col2 * 86 + 24 * + col0 FROM tab1 AS cor0
----
-3366
-4572
-6336
query I rowsort
SELECT ( + col0 * + col2 ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT + 9 * col2 AS col1 FROM tab2
----
234
243
342
query I rowsort
SELECT DISTINCT + 9 FROM tab1
----
9
query I rowsort
SELECT - tab1.col1 * + col2 + - col1 AS col0 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT ALL - col2 * - col2 + col0 * col1 + - col2 AS col1 FROM tab0 cor0
----
14741
3120
3395
query I rowsort
SELECT DISTINCT - 58 + - col0 * col0 + col0 AS col2 FROM tab1 AS cor0
----
-4090
-6378
-64
query I rowsort
SELECT + 37 * - col0 + 26 AS col2 FROM tab0 cor0
----
-1269
-3267
-862
query I rowsort
SELECT + - col0 * col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * - 13 col1 FROM tab2 AS cor0
----
-204
-372
-708
query I rowsort
SELECT ALL + col0 * + col2 * col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + - cor0.col1 + 16 FROM tab0 AS cor0
----
-70
-75
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-7814
SELECT ALL - col2 + - col0 DIV + cor0.col0 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL - col2 + - col0 / + cor0.col0 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT ALL - col2 + cor0.col1 * + 96 AS col0 FROM tab0 AS cor0
----
8223
8654
9311
query I rowsort
SELECT - cor0.col2 * 85 AS col1 FROM tab2 AS cor0
----
-2210
-2295
-3230
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7817
SELECT DISTINCT - + col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT - + col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * - ( - col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 * - col2 * - ( + cor0.col1 ) + 37 * col2 AS col2 FROM tab0 AS cor0
----
245289
682076
9446
query I rowsort
SELECT DISTINCT col2 + col2 * col2 * col2 FROM tab0 AS cor0
----
2
35970
551450
onlyif mysql # use DIV operator for integer division
query I rowsort label-7821
SELECT ALL + - col1 * cor0.col2 + - col0 * cor0.col2 DIV + 30 AS col1 FROM tab0 AS cor0
----
-2864
-7705
-98
skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL + - col1 * cor0.col2 + - col0 * cor0.col2 / + 30 AS col1 FROM tab0 AS cor0
----
-2864
-7705
-98
query I rowsort
SELECT - - cor0.col2 + + col1 * - col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - col1 - col1 AS col2 FROM tab0 cor0
----
-172
-182
-194
query I rowsort
SELECT col2 * - tab2.col2 * - col2 AS col0 FROM tab2 WHERE NOT - col1 * col0 + + tab2.col2 IN ( - col2 )
----
17576
19683
54872
onlyif mysql # use DIV operator for integer division
query I rowsort label-7825
SELECT - col2 DIV + tab0.col2 + col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-7825
SELECT - col2 / + tab0.col2 + col2 FROM tab0
----
0
32
81
query I rowsort
SELECT ALL + col1 * col2 * - col2 AS col1 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT ALL - tab1.col0 FROM tab1 WHERE + col1 + col2 = - col2 * + col1 + col1 + + tab1.col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * + col0 col0 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-7829
SELECT ALL - tab2.col1 DIV + col1 + col1 FROM tab2
----
16
30
58
skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - tab2.col1 / + col1 + col1 FROM tab2
----
16
30
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7830
SELECT col0 DIV col2 + col2 + - col0 FROM tab1
----
-6
16
51
skipif mysql # not compatible
query I rowsort label-7830
SELECT col0 / col2 + col2 + - col0 FROM tab1
----
-6
16
51
query I rowsort
SELECT - col0 * tab0.col0 + + tab0.col0 + col2 AS col1 FROM tab0
----
-1189
-519
-7750
onlyif mysql # use DIV operator for integer division
query I rowsort label-7832
SELECT ALL col2 + + col0 DIV - col0 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL col2 + + col0 / - col0 FROM tab2
----
25
26
37
query I rowsort
SELECT DISTINCT + col2 + - col1 * col0 AS col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - tab0.col0 + + col1 FROM tab0
----
2
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7835
SELECT + col1 DIV col1 + col1 AS col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7835
SELECT + col1 / col1 + col1 AS col2 FROM tab0
----
87
92
98
query I rowsort
SELECT DISTINCT + col1 + col0 * col0 + + col0 FROM tab2 WHERE + col2 NOT BETWEEN - col2 * col0 AND NULL
----
query I rowsort
SELECT + col2 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND NULL
----
query I rowsort
SELECT ALL col1 - col2 * - col0 AS col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT - 36 * + col2 + col0 + cor0.col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1154
-2886
-4291
onlyif mysql # use DIV operator for integer division
query I rowsort label-7840
SELECT - cor0.col0 DIV + 75 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif mysql # not compatible
query I rowsort label-7840
SELECT - cor0.col0 / + 75 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
query I rowsort
SELECT ALL + 66 FROM tab0 cor0
----
66
66
66
query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE col1 NOT BETWEEN col1 + - col1 AND + col0
----
-54
query I rowsort
SELECT col2 * + col0 * tab0.col1 + col1 AS col0 FROM tab0
----
3492
664209
68198
query I rowsort
SELECT DISTINCT col2 + col0 FROM tab0 WHERE NOT ( col0 + col2 * col0 ) <= ( + col0 + col1 )
----
171
57
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + col1 + - col0 col2 FROM tab0
----
2126
3457
8101
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( - col2 + - col0 * col0 + col2 )
----
query I rowsort
SELECT ALL - + 98 AS col0 FROM tab1 AS cor0
----
-98
-98
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7849
SELECT ALL - ( - col0 ) * + cor0.col0 DIV ( - col0 ) FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL - ( - col0 ) * + cor0.col0 / ( - col0 ) FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + col0 * - col1 + - col2 * - col1 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT - 91 + col2 + 11 AS col0 FROM tab0 AS cor0
----
-47
-79
2
query I rowsort
SELECT DISTINCT + 17 * 54 + col2 AS col1 FROM tab0
----
1000
919
951
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + col2 col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * - col0 + 68 col0 FROM tab1 AS cor0
----
-1532
-1932
-7
query I rowsort
SELECT DISTINCT + col1 + col0 * 24 FROM tab1 AS cor0
----
1546
1933
98
query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab2 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7857
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + tab0.col2 + col2 * col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT - CAST ( NULL AS REAL ) + tab0.col2 + col2 * col2 FROM tab0
----
NULL
query I rowsort
SELECT + 37 + 46 + col0 FROM tab2
----
161
162
90
query I rowsort
SELECT DISTINCT + 82 + - col1 FROM tab1
----
56
69
72
query I rowsort
SELECT - 71 + col1 FROM tab1
----
-45
-58
-61
query I rowsort
SELECT DISTINCT - + 78 * + col2 + - col2 AS col1 FROM tab2 AS cor0
----
-2054
-2133
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col1 FROM tab0 AS cor0
----
51
query I rowsort
SELECT ALL + - 26 - - col2 FROM tab1 AS cor0
----
28
31
70
query I rowsort
SELECT ALL + cor0.col2 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-7865
SELECT ALL - col0 DIV col0 + 57 col2 FROM tab2 AS cor0
----
56
56
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL - col0 / col0 + 57 col2 FROM tab2 AS cor0
----
56
56
56
query I rowsort
SELECT - 45 AS col1 FROM tab1 AS cor0
----
-45
-45
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7867
SELECT DISTINCT col2 DIV col2 + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT col2 / col2 + col1 / col1 AS col0 FROM tab0 AS cor0
----
2
query I rowsort
SELECT ALL - cor0.col2 * - col1 - col1 AS col0 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT - col0 * + 40 - + col0 AS col2 FROM tab1
----
-123
-2624
-3280
query I rowsort
SELECT ALL 3 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT - col2 * + 63 * col0 AS col0 FROM tab0 AS cor0
----
-2205
-459774
-49896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col0 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT DISTINCT 8 * + 93 FROM tab0 AS cor0
----
744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * ( cor0.col2 ) col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL 17 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7876
SELECT ALL + 12 + col0 * + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL + 12 + col0 * + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( col1 ) * - col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT + ( - cor0.col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 28 * + col1 AS col1 FROM tab1 AS cor0
----
-280
-364
-728
query I rowsort
SELECT DISTINCT - 28 * 48 FROM tab1 AS cor0
----
-1344
query I rowsort
SELECT DISTINCT 54 * 68 FROM tab0 cor0
----
3672
query I rowsort
SELECT - + 28 * + col0 + cor0.col0 + - ( + 16 ) AS col0 FROM tab1 AS cor0
----
-1744
-2176
-97
query I rowsort
SELECT + + 47 FROM tab2 cor0
----
47
47
47
query I rowsort
SELECT ALL + - col2 + - col1 + col0 FROM tab2 cor0
----
-51
-7
24
query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT col1 * - col2 - + col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT - cor0.col0 - col1 * - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - 94 - + col1 FROM tab0 AS cor0
----
-180
-185
-191
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + col1 col0 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT - - 81 AS col0 FROM tab2 AS cor0
----
81
81
81
query I rowsort
SELECT + - 27 * + col1 + col0 FROM tab0 AS cor0
----
-2298
-2368
-2584
query I rowsort
SELECT 30 * + col2 FROM tab1 cor0
----
1620
1710
2880
query I rowsort
SELECT 1 + - col1 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT + tab2.col1 + col2 * col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT col0 * cor0.col2 + + col2 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT col1 * - tab1.col2 AS col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7897
SELECT ALL + ( cor0.col2 ) DIV cor0.col1 + col0 DIV cor0.col1 - - col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL + ( cor0.col2 ) / cor0.col1 + col0 / cor0.col1 - - col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7898
SELECT ALL - CAST( - ( + col0 ) AS SIGNED ) + cor0.col1 col0 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL - CAST ( - ( + col0 ) AS INTEGER ) + cor0.col1 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT 46 FROM tab1, tab2 AS cor0
----
46
query I rowsort
SELECT ALL 53 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-7902
SELECT - 22 DIV - tab0.col0 + col1 * col1 AS col0 FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-7902
SELECT - 22 / - tab0.col0 + col1 * col1 AS col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col1 * col2 * col1 + col2 * - col0 FROM tab1
----
-23904
-36666
-9348
query I rowsort
SELECT ALL 19 + col1 AS col1 FROM tab2
----
36
50
78
query I rowsort
SELECT DISTINCT 30 + col1 FROM tab1
----
40
43
56
query I rowsort
SELECT - 71 + col2 AS col0 FROM tab2
----
-33
-44
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7907
SELECT ALL - col1 * col0 * + col0 + + col1 DIV col0 AS col1 FROM tab2
----
-106097
-1515
-358956
skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL - col1 * col0 * + col0 + + col1 / col0 AS col1 FROM tab2
----
-106097
-1515
-358956
query I rowsort
SELECT ALL - 61 * col2 + - col2 * col2 FROM tab1
----
-15072
-6210
-6726
query I rowsort
SELECT - ( 20 ) FROM tab1 AS cor0
----
-20
-20
-20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7910
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col1 + + col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col1 + + col2 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - 66 + - col2 FROM tab0 AS cor0
----
-148
-67
-99
query I rowsort
SELECT DISTINCT + 67 - 27 AS col2 FROM tab1 AS cor0
----
40
query I rowsort
SELECT ALL - col1 + + cor0.col2 * col0 - + col1 AS col1 FROM tab2 AS cor0
----
127
1910
2968
query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab0, tab0 cor0
----
82
query I rowsort
SELECT ALL 17 AS col1 FROM tab2
----
17
17
17
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( - col1 + + col1 * col1 )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * col0 + + col1 + - col0 * col2 NOT IN ( + col1 * + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT tab1.col0 - col0 * + col0 * + col1 FROM tab1
----
-231
-40896
-83120
onlyif mysql # use DIV operator for integer division
query I rowsort label-7919
SELECT + col2 * col0 DIV + col1 FROM tab1
----
364
590
6
skipif mysql # not compatible
query I rowsort label-7919
SELECT + col2 * col0 / + col1 FROM tab1
----
364
590
6
query I rowsort
SELECT ALL col0 * col2 * tab1.col2 + col2 + + col0 AS col0 FROM tab1
----
208057
737456
8805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + tab2.col0 + col2 * col2 col0 FROM tab2
----
1540
767
813
onlyif mysql # use DIV operator for integer division
query I rowsort label-7922
SELECT - col2 DIV - col1 + col2 * col0 AS col0 FROM tab2
----
189
2028
3004
skipif mysql # not compatible
query I rowsort label-7922
SELECT - col2 / - col1 + col2 * col0 AS col0 FROM tab2
----
189
2028
3004
query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND col2
----
query I rowsort
SELECT ALL col0 + - tab1.col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + - col2 * tab1.col2 * - tab1.col0 FROM tab1
----
207926
737267
8722
query I rowsort
SELECT - tab2.col1 + col1 FROM tab2 WHERE ( - col1 ) IN ( + tab2.col1 + - col1 )
----
query I rowsort
SELECT + cor0.col2 * - col2 * col0 - + col0 FROM tab2 AS cor0
----
-114155
-5110
-52806
query I rowsort
SELECT - cor0.col0 * - cor0.col2 + col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-7929
SELECT - col1 DIV - col0 + + col0 FROM tab0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-7929
SELECT - col1 / - col0 + + col0 FROM tab0
----
27
37
90
query I rowsort
SELECT + + col1 + col1 + - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + col1 + - col2 * - col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL col1 * 2 + - col0 * col1 FROM tab0
----
-1892
-3201
-7917
query I rowsort
SELECT - col2 * col2 + col2 + col0 * 96 FROM tab0
----
1248
1902
3360
query I rowsort
SELECT ALL + col1 + ( + tab2.col2 ) * col0 FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-7935
SELECT DISTINCT - col2 DIV + tab1.col2 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT - col2 / + tab1.col2 FROM tab1
----
-1
query I rowsort
SELECT DISTINCT tab2.col0 * + ( - 58 + + col0 ) AS col2 FROM tab2
----
-357
1560
1659
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7937
SELECT tab1.col0 + + CAST( NULL AS DECIMAL ) / 58 col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7937
SELECT tab1.col0 + + CAST ( NULL AS REAL ) / 58 col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - col1 + + col2 + - 91 AS col0 FROM tab1
----
-44
-63
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7939
SELECT DISTINCT col0 * col2 + 87 DIV tab1.col0 + 61 AS col0 FROM tab1
----
252
3710
7742
skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT col0 * col2 + 87 / tab1.col0 + 61 AS col0 FROM tab1
----
252
3710
7742
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 * + 74 + tab2.col0 col2 FROM tab2
----
2002
2005
2891
query I rowsort
SELECT DISTINCT 26 + + col0 FROM tab2 AS cor0
----
104
105
33
query I rowsort
SELECT ALL - + col0 * + 26 * col2 FROM tab0 AS cor0
----
-189748
-20592
-910
query I rowsort
SELECT DISTINCT + col1 * - 66 + cor0.col0 * - cor0.col2 AS col0 FROM tab0 cor0
----
-13304
-6437
-6468
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT - col0 + + col0 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7945
SELECT - col0 + + col0 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - cor0.col2 * + 49 AS col2 FROM tab0 AS cor0
----
-1617
-4018
-49
query I rowsort
SELECT 16 + col1 * col1 FROM tab1 AS cor0
----
116
185
692
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * col0 * - col0 col2 FROM tab2 AS cor0
----
1421
176436
180989
query I rowsort
SELECT + col1 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7950
SELECT DISTINCT + CAST( col1 AS SIGNED ) * - cor0.col2 + CAST( - 12 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1102
-1161
-1846
skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * - cor0.col2 + CAST ( - 12 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1102
-1161
-1846
query I rowsort
SELECT DISTINCT + 38 AS col1 FROM tab2 AS cor0
----
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * - 66 col1 FROM tab2 AS cor0
----
-3828
-3828
-3828
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7953
SELECT + ( col2 ) + col1 * - CAST( + col2 + - col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7953
SELECT + ( col2 ) + col1 * - CAST ( + col2 + - col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 56 * col0 - col0 AS col2 FROM tab0 AS cor0
----
-1368
-1995
-5073
onlyif mysql # use DIV operator for integer division
query I rowsort label-7955
SELECT DISTINCT + cor0.col0 + col2 DIV - ( + col1 ) AS col0 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT + cor0.col0 + col2 / - ( + col1 ) AS col0 FROM tab2 AS cor0
----
7
77
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 col0 FROM tab0 cor0
----
2
62
query I rowsort
SELECT ALL - cor0.col2 * + col2 * 7 - col0 * col0 AS col1 FROM tab1 AS cor0
----
-20421
-26839
-70912
query I rowsort
SELECT + - ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 + - col0 * + col0 FROM tab2 AS cor0
----
-4797
-5408
680
query I rowsort
SELECT ALL - col2 * - cor0.col0 AS col1 FROM tab0 cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7961
SELECT DISTINCT - + col0 + - CAST( NULL AS SIGNED ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT - + col0 + - CAST ( NULL AS INTEGER ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col2 - + ( - cor0.col2 ) FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - 38 * - cor0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
1026
1444
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( cor0.col0 AS REAL ) col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL col2 + ( cor0.col2 + - col2 ) FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col2 FROM tab2
----
-96
query I rowsort
SELECT - - col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col0 * + 70 * col2 AS col0 FROM tab1 AS cor0
----
11340
255360
537600
query I rowsort
SELECT ALL col2 + 88 AS col0 FROM tab2 AS cor0
----
114
115
126
query I rowsort
SELECT col1 * ( cor0.col0 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + - col1 + ( - 21 ) AS col2 FROM tab1 AS cor0
----
-31
-34
-47
query I rowsort
SELECT ALL cor0.col0 * - 15 FROM tab2 AS cor0
----
-105
-1170
-1185
query I rowsort
SELECT DISTINCT + col0 * + col1 - + 19 AS col2 FROM tab1 AS cor0
----
1021
59
621
query I rowsort
SELECT - cor0.col2 * col1 + - cor0.col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL col0 * 79 FROM tab1 AS cor0
----
237
5056
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + 93 col0 FROM tab1 AS cor0
----
193
262
769
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7977
SELECT DISTINCT + col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + cor0.col1 * - ( + col2 + col1 ) col1 FROM tab1 AS cor0
----
-1404
-2054
-660
query I rowsort
SELECT ALL - cor0.col2 - 20 AS col1 FROM tab1 AS cor0
----
-116
-74
-77
query I rowsort
SELECT - col1 - col1 * col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
3298
664027
68026
query I rowsort
SELECT ALL - col0 * 81 AS col1 FROM tab2 cor0
----
-567
-6318
-6399
onlyif mysql # use DIV operator for integer division
query I rowsort label-7982
SELECT DISTINCT - cor0.col0 DIV 70 + col2 * col0 AS col2 FROM tab1 cor0
----
162
3648
7679
skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT - cor0.col0 / 70 + col2 * col0 AS col2 FROM tab1 cor0
----
162
3648
7679
skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * - 38 * + col2 + + col1 / - CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
-107845
-283557
-3687
query I rowsort
SELECT ALL - + col2 * cor0.col1 + + 80 - + col1 AS col2 FROM tab2 AS cor0
----
-1513
-583
-788
query I rowsort
SELECT col0 + col0 * - col2 * col0 AS col1 FROM tab1 AS cor0
----
-233408
-483
-614320
query I rowsort
SELECT DISTINCT col0 + - 35 AS col1 FROM tab2
----
-28
43
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7987
SELECT - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7987
SELECT - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 + - cor0.col1 col1 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7989
SELECT - CAST( NULL AS SIGNED ) * col2 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7989
SELECT - CAST ( NULL AS INTEGER ) * col2 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + 4 ) * - col1 + cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
1085
357
3717
query I rowsort
SELECT - col0 + col2 * ( + col0 * 65 ) FROM tab1
----
10527
237056
499120
query I rowsort
SELECT ALL + col0 + - ( col1 * col0 ) FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT cor0.col1 * col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - col0 * col2 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 47906197307eee6829150d762058792a
query I rowsort
SELECT 3 * - cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to f0090d86c44a9f34679d0fb2f73ed31d
query I rowsort
SELECT - + col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + + 46 AS col2 FROM tab1 AS cor0
----
46
query I rowsort
SELECT 77 * col1 AS col2 FROM tab0 cor0
----
6622
7007
7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + tab0.col0 col0 FROM tab0
----
101
36
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-8001
SELECT col1 DIV + col0 col0 FROM tab1 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8001
SELECT col1 / + col0 col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ( + 33 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT DISTINCT - - 28 - cor0.col0 FROM tab1 cor0
----
-36
-52
25
query I rowsort
SELECT - 11 * col2 FROM tab0
----
-11
-363
-902
onlyif mysql # use DIV operator for integer division
query I rowsort label-8005
SELECT DISTINCT 52 DIV 90 + col2 DIV + ( - col1 ) AS col2 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT 52 / 90 + col2 / + ( - col1 ) AS col2 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT ALL - col2 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8007
SELECT + col0 DIV - ( + col0 + - 71 ) FROM tab1 AS cor0
----
-8
0
9
skipif mysql # not compatible
query I rowsort label-8007
SELECT + col0 / - ( + col0 + - 71 ) FROM tab1 AS cor0
----
-8
0
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8008
SELECT ALL 34 DIV ( col2 * + col2 ) - + 11 col0 FROM tab0 AS cor0
----
-11
-11
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL 34 / ( col2 * + col2 ) - + 11 col0 FROM tab0 AS cor0
----
-11
-11
23
query I rowsort
SELECT col2 * + 34 AS col2 FROM tab2 cor0
----
1292
884
918
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 * - 87 col1 FROM tab0 AS cor0
----
-2088
-3045
-7743
query I rowsort
SELECT DISTINCT + 82 + + 0 + col0 AS col0 FROM tab1 AS cor0
----
146
162
85
query I rowsort
SELECT ALL + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - 42 + col1 * col2 FROM tab0 cor0
----
2796
55
7420
query I rowsort
SELECT + 11 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
107
65
68
query I rowsort
SELECT + cor0.col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + - 95 * col1 FROM tab0 AS cor0
----
-8170
-8645
-9215
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT - col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8019
SELECT DISTINCT + cor0.col0 DIV col0 + 74 col0 FROM tab1 AS cor0
----
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT + cor0.col0 / col0 + 74 col0 FROM tab1 AS cor0
----
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-8020
SELECT ALL + col0 - col0 * + ( - col1 ) DIV col1 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + col0 - col0 * + ( - col1 ) / col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col1 * 49 AS col0 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT ALL 64 FROM tab1, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
onlyif mysql # use DIV operator for integer division
query I rowsort label-8023
SELECT ALL - col0 + 33 + 55 DIV + col0 FROM tab0 AS cor0
----
-1
-56
11
skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - col0 + 33 + 55 / + col0 FROM tab0 AS cor0
----
-1
-56
11
query I rowsort
SELECT DISTINCT col1 * + col0 + 44 FROM tab1 AS cor0
----
1084
122
684
query I rowsort
SELECT ALL + - col2 * + col0 + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT col1 * 30 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT ALL + tab2.col1 * col2 + 8 AS col1 FROM tab2
----
1542
654
845
query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
4
query I rowsort
SELECT col1 + - 42 FROM tab0
----
44
49
55
query I rowsort
SELECT - col0 * - col0 + + col1 AS col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT - tab0.col2 + tab0.col1 AS col0 FROM tab0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8032
SELECT col0 + + CAST( NULL AS SIGNED ) * - ( + tab2.col2 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8032
SELECT col0 + + CAST ( NULL AS INTEGER ) * - ( + tab2.col2 ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 58 * 62 + col2 AS col2 FROM tab1 cor0
----
-3500
-3539
-3542
query I rowsort
SELECT + ( + col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - 99 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7
query I rowsort
SELECT ALL cor0.col2 + 32 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 19f7ee62d7b7a77c5c1a4f8a082e2ea7
query I rowsort
SELECT ALL ( + col1 + col0 ) AS col2 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 + + col0 col1 FROM tab2 AS cor0
----
-1397
-550
-799
query I rowsort
SELECT - ( col0 ) * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + - ( + col0 ) * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col0 * col2 + col0 + col1 AS col0 FROM tab2
----
-151
-1891
-2906
query I rowsort
SELECT - tab0.col2 * + cor0.col0 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to b6c6c1b3967245d500b5bbd13326e94e
query I rowsort
SELECT - col1 + - ( - col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-8044
SELECT - col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8044
SELECT - col2 / - col0 AS col2 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8045
SELECT - tab0.col2 * - col2 DIV + ( - col2 ) AS col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8045
SELECT - tab0.col2 * - col2 / + ( - col2 ) AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT col0 * + col0 * col2 AS col1 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT - tab0.col2 * - col2 AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - - col1 + + 65 AS col1 FROM tab0 AS cor0
----
151
156
162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8049
SELECT ALL + + col0 * - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL + + col0 * - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - col1 * + 74 FROM tab1 AS cor0
----
-1924
-740
-962
query I rowsort
SELECT + + col1 * 20 + col0 * col2 * + ( + cor0.col2 * col0 ) FROM tab1 AS cor0
----
13308104
26764
58982660
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8052
SELECT + col0 * - ( col1 * cor0.col2 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8052
SELECT + col0 * - ( col1 * cor0.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 + cor0.col2 * ( - 43 ) col2 FROM tab1 AS cor0
----
-2322
-2451
-4128
onlyif mysql # use DIV operator for integer division
query I rowsort label-8054
SELECT DISTINCT + col2 DIV col1 col0 FROM tab2 AS cor0
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT + col2 / col1 col0 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT + cor0.col2 * col0 + col2 + + 32 FROM tab1 AS cor0
----
248
3737
7808
query I rowsort
SELECT DISTINCT - + 30 AS col1 FROM tab0 AS cor0
----
-30
query I rowsort
SELECT - - ( col0 ) * + col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - ( + col2 ) * 93 AS col0 FROM tab2 AS cor0
----
-2418
-2511
-3534
query I rowsort
SELECT + col1 * col0 * col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL - 59 * col0 FROM tab1 AS cor0
----
-177
-3776
-4720
query I rowsort
SELECT ALL + col0 * cor0.col0 + ( 15 ) FROM tab0 AS cor0
----
1240
591
7936
query I rowsort
SELECT 15 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
20145
3255
69030
onlyif mysql # use DIV operator for integer division
query I rowsort label-8063
SELECT + ( + ( - tab1.col2 ) ) DIV col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-8063
SELECT + ( + ( - tab1.col2 ) ) / col0 FROM tab1
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8064
SELECT ALL + - 52 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-52
0
skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL + - 52 / col2 AS col1 FROM tab0 AS cor0
----
-1
-52
0
query I rowsort
SELECT DISTINCT col0 + tab2.col1 - - col0 AS col0 FROM tab2
----
175
215
45
query I rowsort
SELECT col2 * + tab2.col0 - col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT ALL + tab2.col0 * col1 + + 51 * + col0 AS col2 FROM tab2
----
5372
574
8580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8068
SELECT DISTINCT ( col2 ) + CAST( col0 AS SIGNED ) * + col1 AS col0 FROM tab2
----
1381
244
4628
skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT ( col2 ) + CAST ( col0 AS INTEGER ) * + col1 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL col0 * - col0 + 11 * col2 FROM tab0
----
-1214
-213
-7019
onlyif mysql # use DIV operator for integer division
query I rowsort label-8070
SELECT col0 DIV - tab0.col0 - + ( col2 ) FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-8070
SELECT col0 / - tab0.col0 - + ( col2 ) FROM tab0
----
-2
-34
-83
query I rowsort
SELECT ALL + + 94 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT DISTINCT col2 + col2 * col2 * - col1 FROM tab2
----
-22572
-24510
-39858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col2 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8074
SELECT ALL - col1 DIV + col0 + 54 AS col1 FROM tab2
----
50
54
54
skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL - col1 / + col0 + 54 AS col1 FROM tab2
----
50
54
54
query I rowsort
SELECT ALL ( col0 ) + ( tab2.col0 ) AS col2 FROM tab2
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8076
SELECT ALL tab0.col2 * - CAST( NULL AS SIGNED ) * 82 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL tab0.col2 * - CAST ( NULL AS INTEGER ) * 82 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL tab2.col0 / + CAST ( + col0 AS REAL ) FROM tab2
----
1
1
1
query I rowsort
SELECT ALL 20 AS col0 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT 8 + + col1 * - cor0.col0 * - cor0.col1 AS col1 FROM tab1 cor0
----
13528
2036
6408
query I rowsort
SELECT ALL + col1 * + 59 AS col0 FROM tab1
----
1534
590
767
query I rowsort
SELECT + col0 * 86 * col2 FROM tab1 cor0
----
13932
313728
660480
onlyif mysql # use DIV operator for integer division
query I rowsort label-8082
SELECT + col2 DIV - 32 AS col2 FROM tab1 AS cor0
----
-1
-1
-3
skipif mysql # not compatible
query I rowsort label-8082
SELECT + col2 / - 32 AS col2 FROM tab1 AS cor0
----
-1
-1
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8083
SELECT DISTINCT col2 DIV 13 FROM tab2
----
2
skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT col2 / 13 FROM tab2
----
2
query I rowsort
SELECT 39 FROM tab0, tab0 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-8085
SELECT + col2 + - 78 DIV + col0 AS col2 FROM tab2 AS cor0
----
16
25
38
skipif mysql # not compatible
query I rowsort label-8085
SELECT + col2 + - 78 / + col0 AS col2 FROM tab2 AS cor0
----
16
25
38
query I rowsort
SELECT ALL ( + col2 ) - col1 AS col2 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT col2 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( - col1 * + col2 ) + 32 * col2 col1 FROM tab1 AS cor0
----
-2484
-34656
-96768
query I rowsort
SELECT - + ( + col1 ) * + col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 86 * 78 FROM tab2 AS cor0
----
6708
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 * + 36 AS col1 FROM tab2 AS cor0
----
-1368
-936
-972
query I rowsort
SELECT + - col2 * + col2 * - col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL ( col0 ) * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8096
SELECT col1 DIV col1 + - col1 AS col0 FROM tab1
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-8096
SELECT col1 / col1 + - col1 AS col0 FROM tab1
----
-12
-25
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8097
SELECT DISTINCT - CAST( col0 AS SIGNED ) col0 FROM tab2
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT - CAST ( col0 AS INTEGER ) col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL - + col1 * - 3 * cor0.col1 FROM tab2 AS cor0
----
10443
2883
867
onlyif mysql # use DIV operator for integer division
query I rowsort label-8099
SELECT - 78 DIV col0 AS col2 FROM tab1 cor0
----
-1
-26
0
skipif mysql # not compatible
query I rowsort label-8099
SELECT - 78 / col0 AS col2 FROM tab1 cor0
----
-1
-26
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8100
SELECT ALL CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8100
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-8101
SELECT DISTINCT + 0 DIV + col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT + 0 / + col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + 82 + + col2 * + cor0.col1 FROM tab0 AS cor0
----
179
2920
7544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col2 col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27
query I rowsort
SELECT - - ( col0 ) - + ( col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8107
SELECT ALL + 80 DIV + col0 + 54 FROM tab2 cor0
----
55
55
65
skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL + 80 / + col0 + 54 FROM tab2 cor0
----
55
55
65
query I rowsort
SELECT ALL + + col0 + - col1 * + 16 FROM tab2 AS cor0
----
-193
-489
-866
onlyif mysql # use DIV operator for integer division
query I rowsort label-8109
SELECT + ( cor0.col1 ) * col2 DIV + col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8109
SELECT + ( cor0.col1 ) * col2 / + col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - - col0 * + col2 + + 5 FROM tab1 AS cor0
----
167
3653
7685
query I rowsort
SELECT ALL + ( + col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - cor0.col1 - - col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL 26 * col0 AS col1 FROM tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT + col2 * cor0.col0 + 20 AS col2 FROM tab1 AS cor0
----
182
3668
7700
query I rowsort
SELECT - 91 + - tab1.col0 * tab1.col2 FROM tab1
----
-253
-3739
-7771
query I rowsort
SELECT + cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT col2 * + col2 + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL - col0 * - col0 + ( cor0.col0 ) FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL col1 - + ( - col1 * + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - - cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8121
SELECT ALL - col1 DIV col0 + - col0 * col2 + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-134
-7390
-881
skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL - col1 / col0 + - col0 * col2 + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-134
-7390
-881
query I rowsort
SELECT DISTINCT + + col2 + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - - col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col2 * - col0 * 86 AS col1 FROM tab1 AS cor0
----
-13932
-313728
-660480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8125
SELECT ALL - + col0 + CAST( NULL AS SIGNED ) + col2 / col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL - + col0 + CAST ( NULL AS INTEGER ) + col2 / col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8126
SELECT - - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8126
SELECT - - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col0 + + 92 FROM tab0 AS cor0
----
3
57
68
query I rowsort
SELECT DISTINCT + cor0.col0 + 59 AS col0 FROM tab0 AS cor0
----
148
83
94
query I rowsort
SELECT - - col1 * ( ( col1 ) ) + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL col2 * 20 + col0 AS col0 FROM tab2 AS cor0
----
547
598
839
query I rowsort
SELECT ALL - col0 - + cor0.col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - + col2 * - 42 AS col1 FROM tab1 cor0
----
2268
2394
4032
onlyif mysql # use DIV operator for integer division
query I rowsort label-8133
SELECT ALL + col2 + 13 DIV - 85 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL + col2 + 13 / - 85 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - + col1 * 15 AS col1 FROM tab0 cor0
----
-1290
-1365
-1455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8135
SELECT ALL col0 + - CAST( 58 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-23
-34
31
skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL col0 + - CAST ( 58 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-23
-34
31
query I rowsort
SELECT ALL + col1 * - 35 FROM tab2 AS cor0
----
-1085
-2065
-595
onlyif mysql # use DIV operator for integer division
query I rowsort label-8137
SELECT DISTINCT - col2 DIV col1 FROM tab2 cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT - col2 / col1 FROM tab2 cor0
----
-2
0
query I rowsort
SELECT DISTINCT + col1 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - col0 + + 40 AS col2 FROM tab1
----
-24
-40
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-8140
SELECT - 31 * col0 + + col2 DIV col0 AS col1 FROM tab1
----
-1984
-2479
-75
skipif mysql # not compatible
query I rowsort label-8140
SELECT - 31 * col0 + + col2 / col0 AS col1 FROM tab1
----
-1984
-2479
-75
query I rowsort
SELECT ALL 83 * col2 AS col1 FROM tab2
----
2158
2241
3154
query I rowsort
SELECT DISTINCT - 19 * - col0 FROM tab1
----
1216
1520
57
query I rowsort
SELECT - 60 AS col0 FROM tab0
----
-60
-60
-60
query I rowsort
SELECT DISTINCT col2 * - ( + 91 ) FROM tab1
----
-4914
-5187
-8736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8145
SELECT + col1 * + CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8145
SELECT + col1 * + CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + + col0 * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 3 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343
query I rowsort
SELECT + col0 * - col0 + col2 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT - col2 + - ( - col0 ) * ( + ( col2 ) ) FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT + ( - col1 ) + col1 * + ( - 54 ) AS col1 FROM tab2 cor0
----
-1705
-3245
-935
onlyif mysql # use DIV operator for integer division
query I rowsort label-8151
SELECT ALL col2 DIV ( col1 ) + cor0.col0 + col1 AS col0 FROM tab1 cor0
----
100
31
79
skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL col2 / ( col1 ) + cor0.col0 + col1 AS col0 FROM tab1 cor0
----
100
31
79
query I rowsort
SELECT DISTINCT 64 * - col0 AS col1 FROM tab1 AS cor0
----
-192
-4096
-5120
query I rowsort
SELECT + - ( + col2 ) * col1 * col0 + - col0 AS col1 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT + cor0.col2 + col1 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT 99 * + col0 + col0 * col1 * - col1 FROM tab0 AS cor0
----
-175128
-325850
-728198
query I rowsort
SELECT DISTINCT + tab2.col1 * col0 + 74 * + tab2.col2 AS col0 FROM tab2
----
2215
4155
6526
query I rowsort
SELECT ALL + tab2.col0 * + col1 + col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT - 27 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-2214
-27
-891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - cor0.col2 * cor0.col1 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8161
SELECT 72 * col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8161
SELECT 72 * col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 10 * - col2 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1140
-1944
-2208
query I rowsort
SELECT + + cor0.col2 + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - + col0 * 12 AS col1 FROM tab2 AS cor0
----
-84
-936
-948
query I rowsort
SELECT + col2 * 84 FROM tab1 AS cor0
----
4536
4788
8064
query I rowsort
SELECT DISTINCT - - cor0.col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8167
SELECT ALL + col2 + - col2 DIV col1 + - col1 * col2 col0 FROM tab1 AS cor0
----
-1159
-1352
-518
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL + col2 + - col2 / col1 + - col1 * col2 col0 FROM tab1 AS cor0
----
-1159
-1352
-518
query I rowsort
SELECT DISTINCT - col2 * - col2 + col0 AS col0 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT tab0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + col1 + + 34 * col0 AS col1 FROM tab1 AS cor0
----
128
2186
2733
query I rowsort
SELECT DISTINCT - + col1 + + col2 AS col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - 97 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT - + col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT 25 * col1 AS col0 FROM tab2
----
1475
425
775
onlyif mysql # use DIV operator for integer division
query I rowsort label-8175
SELECT ALL + cor0.col1 + - col1 DIV col2 FROM tab0 cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + cor0.col1 + - col1 / col2 FROM tab0 cor0
----
0
84
90
query I rowsort
SELECT DISTINCT - + cor0.col0 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL col1 + + col2 * + col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + tab0.col0 * - 69 FROM tab0
----
-1656
-2415
-6141
query I rowsort
SELECT col1 + - col2 + + col1 FROM tab0
----
100
139
193
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8180
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 - + col1 * - ( + col0 ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 - + col1 * - ( + col0 ) FROM tab1
----
NULL
query I rowsort
SELECT 49 - col1 * col0 AS col2 FROM tab0
----
-2015
-3346
-8050
query I rowsort
SELECT DISTINCT col2 * + ( col2 ) - + col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL + - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - col1 + 0 AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - + col0 + - 5 AS col0 FROM tab2 AS cor0
----
-12
-83
-84
query I rowsort
SELECT ALL + col2 * col1 + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1140
2496
2808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col1 * - col2 * col1 col0 FROM tab2
----
-10965
-25916
-90447
query I rowsort
SELECT + 51 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT ALL - - 89 + - col0 AS col1 FROM tab2 AS cor0
----
10
11
82
query I rowsort
SELECT + - col0 * - col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - col1 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-8193
SELECT ALL - 76 * col0 DIV col2 col1 FROM tab1 AS cor0
----
-4
-63
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL - 76 * col0 / col2 col1 FROM tab1 AS cor0
----
-4
-63
-85
query I rowsort
SELECT + + col2 * col2 + - ( cor0.col1 ) * - col0 AS col2 FROM tab2 AS cor0
----
2787
5278
946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8195
SELECT - CAST( - col1 AS SIGNED ) FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8195
SELECT - CAST ( - col1 AS INTEGER ) FROM tab1
----
10
13
26
query I rowsort
SELECT ALL cor0.col1 - - col1 AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL + + 48 AS col1 FROM tab2 AS cor0
----
48
48
48
query I rowsort
SELECT col1 + col1 * ( 30 ) AS col1 FROM tab1 cor0
----
310
403
806
query I rowsort
SELECT ALL - cor0.col0 * - cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8200
SELECT - 53 + - col1 * CAST( col1 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-205432
-29844
-4966
skipif mysql # not compatible
query I rowsort label-8200
SELECT - 53 + - col1 * CAST ( col1 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-205432
-29844
-4966
query I rowsort
SELECT - ( col0 ) * col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8202
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab0
----
NULL
query I rowsort
SELECT - col0 * col2 - - col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT ALL col1 * + col1 * col1 AS col1 FROM tab2
----
205379
29791
4913
query I rowsort
SELECT ALL - col0 * - tab1.col1 + - col0 AS col2 FROM tab1
----
576
75
960
query I rowsort
SELECT - + 16 * tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 8d14cb72756144d7ad1dc118acc86f39
query I rowsort
SELECT - cor0.col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort
SELECT ALL + 77 * - col1 + + CAST ( + col2 + + col1 AS REAL ) AS col1 FROM tab1
----
-1922
-703
-892
query I rowsort
SELECT - col2 + + col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + col0 * col1 + + ( ( + col0 ) + + col2 ) * col1 AS col0 FROM tab1
----
1560
1850
3328
query I rowsort
SELECT + tab0.col1 * + col0 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 20 * + col2 FROM tab2
----
-520
-540
-760
query I rowsort
SELECT DISTINCT - col1 + col2 * ( + 29 ) FROM tab1 AS cor0
----
1540
1643
2771
query I rowsort
SELECT + col0 * - col1 + col2 * - col2 FROM tab0 AS cor0
----
-14823
-3153
-3396
onlyif mysql # use DIV operator for integer division
query I rowsort label-8215
SELECT - col1 * ( - ( + col2 ) ) DIV + col0 FROM tab2 AS cor0
----
119
19
8
skipif mysql # not compatible
query I rowsort label-8215
SELECT - col1 * ( - ( + col2 ) ) / + col0 FROM tab2 AS cor0
----
119
19
8
query I rowsort
SELECT ALL - + col1 + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL col1 * 18 FROM tab0 AS cor0
----
1548
1638
1746
query I rowsort
SELECT ALL + col2 * - ( 30 ) AS col2 FROM tab2
----
-1140
-780
-810
query I rowsort
SELECT - cor1.col1 * - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * - ( col1 + + col2 * col0 ) FROM tab1 AS cor0
----
-234176
-567
-615520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 77 * + cor0.col2 col1 FROM tab2 AS cor0
----
118118
49742
64449
query I rowsort
SELECT - col2 * col2 * 40 AS col0 FROM tab0 AS cor0
----
-268960
-40
-43560
query I rowsort
SELECT - - col2 * col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-207936
-737280
-8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * + col2 col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col2 - + ( col0 ) * col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT + + cor0.col1 + + col0 * + cor0.col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL - col1 * col2 + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8228
SELECT - CAST( NULL AS SIGNED ) * + col1 + - col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8228
SELECT - CAST ( NULL AS INTEGER ) * + col1 + - col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8229
SELECT - 98 * - col0 + col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8229
SELECT - 98 * - col0 + col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8230
SELECT DISTINCT + ( + col1 ) DIV - tab1.col2 + + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT + ( + col1 ) / - tab1.col2 + + col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8231
SELECT 81 DIV - col1 AS col2 FROM tab1
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-8231
SELECT 81 / - col1 AS col2 FROM tab1
----
-3
-6
-8
query I rowsort
SELECT ( + 29 ) + col1 + - col1 AS col1 FROM tab2 AS cor0
----
29
29
29
query I rowsort
SELECT ALL + cor0.col1 + col1 AS col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - + ( col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT col0 + + 38 AS col2 FROM tab1 AS cor0
----
102
118
41
query I rowsort
SELECT - - 45 + col1 AS col2 FROM tab0 AS cor0
----
131
136
142
query I rowsort
SELECT ALL ( + 24 ) AS col2 FROM tab2 AS cor0
----
24
24
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-8238
SELECT - 97 * col0 * - col0 + - ( + 65 ) - col1 DIV + cor0.col2 FROM tab0 AS cor0
----
118663
55805
768271
skipif mysql # not compatible
query I rowsort label-8238
SELECT - 97 * col0 * - col0 + - ( + 65 ) - col1 / + cor0.col2 FROM tab0 AS cor0
----
118663
55805
768271
query I rowsort
SELECT ALL cor0.col0 + 2 + + col0 AS col2 FROM tab0 AS cor0
----
180
50
72
query I rowsort
SELECT - 77 + - 85 * - col1 FROM tab2 AS cor0
----
1368
2558
4938
query I rowsort
SELECT - 0 + cor0.col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8242
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + 79 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT - CAST ( NULL AS REAL ) + + 79 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL - col0 - - 91 FROM tab2 AS cor0
----
12
13
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8244
SELECT + CAST( 48 AS SIGNED ) * - col0 + + col0 AS col0 FROM tab0 cor0
----
-1128
-1645
-4183
skipif mysql # not compatible
query I rowsort label-8244
SELECT + CAST ( 48 AS INTEGER ) * - col0 + + col0 AS col0 FROM tab0 cor0
----
-1128
-1645
-4183
query I rowsort
SELECT ALL - col2 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - 75 + col2 + col0 * col2 FROM tab1 AS cor0
----
141
3630
7701
query I rowsort
SELECT ALL col0 * col0 + col0 * 96 FROM tab1 AS cor0
----
10240
14080
297
query I rowsort
SELECT ALL - 41 * cor0.col2 FROM tab0 AS cor0
----
-1353
-3362
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8250
SELECT 94 DIV col0 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-33
-7297
-789
skipif mysql # not compatible
query I rowsort label-8250
SELECT 94 / col0 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-33
-7297
-789
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 + - col1 col2 FROM tab1 AS cor0
----
30
43
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-8252
SELECT col2 DIV - cor0.col2 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8252
SELECT col2 / - cor0.col2 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - cor0.col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT + tab1.col1 + 97 + + col0 AS col0 FROM tab1
----
126
171
190
query I rowsort
SELECT DISTINCT - col1 * col2 + col2 * col0 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT + - col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - - col1 + + col2 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + + ( cor0.col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - + 34 + - 59 * - col1 AS col1 FROM tab0 AS cor0
----
5040
5335
5689
query I rowsort
SELECT DISTINCT + - ( 70 ) * col1 AS col0 FROM tab0 AS cor0
----
-6020
-6370
-6790
query I rowsort
SELECT - - col2 * + cor0.col0 AS col1 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8263
SELECT col0 + + col2 DIV - col1 FROM tab1 cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-8263
SELECT col0 + + col2 / - col1 FROM tab1 cor0
----
1
59
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8264
SELECT - CAST( + ( + col1 ) AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-8264
SELECT - CAST ( + ( + col1 ) AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + - 43 + 7 AS col1 FROM tab2 AS cor0
----
-36
-36
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-8266
SELECT + 43 * - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-43
-43
-43
skipif mysql # not compatible
query I rowsort label-8266
SELECT + 43 * - col2 / + col2 AS col0 FROM tab0 AS cor0
----
-43
-43
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col2 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL ( col0 ) * col1 + col1 * col0 * - col1 FROM tab2 AS cor0
----
-21488
-266916
-6510
query I rowsort
SELECT ALL + + col2 + 40 - + col2 * col0 FROM tab2 AS cor0
----
-122
-1962
-2924
query I rowsort
SELECT DISTINCT ( 60 ) * tab0.col1 AS col1 FROM tab0
----
5160
5460
5820
onlyif mysql # use DIV operator for integer division
query I rowsort label-8271
SELECT ALL col1 * - col2 + + col0 DIV - col0 + col2 * col0 FROM tab2
----
-649
2355
493
skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL col1 * - col2 + + col0 / - col0 + col2 * col0 FROM tab2
----
-649
2355
493
query I rowsort
SELECT 59 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT DISTINCT + col1 * col1 + col1 + + tab2.col2 * - col2 FROM tab2
----
-1138
263
2864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8274
SELECT + + col0 * CAST( + col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
158
1969
2985
skipif mysql # not compatible
query I rowsort label-8274
SELECT + + col0 * CAST ( + col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT col2 * - 20 + - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-1086
-1268
-2080
onlyif mysql # use DIV operator for integer division
query I rowsort label-8276
SELECT + tab1.col0 DIV - col1 AS col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-8276
SELECT + tab1.col0 / - col1 AS col1 FROM tab1
----
-6
-6
0
query I rowsort
SELECT DISTINCT col2 * col0 * - 51 AS col2 FROM tab2 AS cor0
----
-103428
-153102
-9639
query I rowsort
SELECT DISTINCT tab0.col2 * - 16 FROM tab0
----
-1312
-16
-528
query I rowsort
SELECT - - col0 * col2 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT col0 * - 79 * col2 AS col1 FROM tab1
----
-12798
-288192
-606720
onlyif mysql # use DIV operator for integer division
query I rowsort label-8281
SELECT - col1 + 50 DIV col1 + col0 FROM tab2 AS cor0
----
-23
19
64
skipif mysql # not compatible
query I rowsort label-8281
SELECT - col1 + 50 / col1 + col0 FROM tab2 AS cor0
----
-23
19
64
query I rowsort
SELECT + - col2 * - 90 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
3185
656909
71304
query I rowsort
SELECT + + col2 * 30 + col0 FROM tab2 AS cor0
----
1219
817
858
query I rowsort
SELECT col2 * - tab2.col1 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + col0 - tab1.col1 AS col0 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8286
SELECT ALL 80 DIV tab0.col0 + + col0 AS col1 FROM tab0
----
27
37
89
skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL 80 / tab0.col0 + + col0 AS col1 FROM tab0
----
27
37
89
query I rowsort
SELECT cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + cor0.col2 + + 14 FROM tab1 AS cor0
----
110
68
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + col0 col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - ( 6 ) * + col2 AS col0 FROM tab1 AS cor0
----
-324
-342
-576
query I rowsort
SELECT cor0.col2 * col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col1 FROM tab0 AS cor0
----
24
24
24
query I rowsort
SELECT - + cor0.col0 - 49 FROM tab0 AS cor0
----
-138
-73
-84
query I rowsort
SELECT col2 - 66 AS col2 FROM tab0 AS cor0
----
-33
-65
16
query I rowsort
SELECT col0 + - cor0.col0 * + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT + col0 - - ( 68 * + col1 ) AS col1 FROM tab0 AS cor0
----
5872
6277
6631
query I rowsort
SELECT DISTINCT - + col1 + ( col0 ) AS col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL col1 + + 57 * + cor0.col2 FROM tab0 AS cor0
----
154
1967
4765
query I rowsort
SELECT ( + tab0.col0 * + 58 ) AS col2 FROM tab0
----
1392
2030
5162
query I rowsort
SELECT ALL - col0 * col2 * cor0.col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT - - col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - + col2 + col1 * ( cor0.col0 * - col1 + ( col0 ) ) FROM tab1 cor0
----
-12576
-2004
-5817
onlyif mysql # use DIV operator for integer division
query I rowsort label-8303
SELECT ALL cor0.col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL cor0.col1 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8304
SELECT - cor0.col0 * col1 DIV - ( - col1 ) col1 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8304
SELECT - cor0.col0 * col1 / - ( - col1 ) col1 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 + CAST ( col2 AS REAL ) * - col2 FROM tab2 cor0
----
-1406
-650
-702
query I rowsort
SELECT - 41 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query I rowsort
SELECT ALL - - col0 * - 43 + - col2 * + col0 AS col2 FROM tab2 cor0
----
-490
-5382
-6399
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8308
SELECT + col0 * - CAST( + col0 * col0 AS SIGNED ) FROM tab2 AS cor0
----
-343
-474552
-493039
skipif mysql # not compatible
query I rowsort label-8308
SELECT + col0 * - CAST ( + col0 * col0 AS INTEGER ) FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT ALL - + col1 * col1 AS col2 FROM tab1 cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-8310
SELECT - cor0.col0 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8310
SELECT - cor0.col0 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8311
SELECT + + cor0.col1 * CAST( col2 AS SIGNED ) DIV col2 col2 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8311
SELECT + + cor0.col1 * CAST ( col2 AS INTEGER ) / col2 col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL col0 * 46 + + col0 + col1 FROM tab0 AS cor0
----
1214
1742
4274
query I rowsort
SELECT DISTINCT + + cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - 71 + - col2 + col2 FROM tab2
----
-71
-71
-71
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
query I rowsort
SELECT ALL + col0 - col1 * + col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col1 * - col2 + - col0 * + ( - col0 ) FROM tab0 cor0
----
-2262
1128
459
query I rowsort
SELECT + col0 * + col1 + col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab0, tab2 AS cor0
----
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8320
SELECT ALL - 99 DIV - col0 col2 FROM tab1 AS cor0
----
1
1
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL - 99 / - col0 col2 FROM tab1 AS cor0
----
1
1
33
query I rowsort
SELECT DISTINCT + col2 * 73 * + col2 + col0 * + col2 AS col0 FROM tab1 cor0
----
213030
240825
680448
query I rowsort
SELECT DISTINCT col1 * cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL + 3 + col0 FROM tab1 AS cor0
----
6
67
83
query I rowsort
SELECT + - col1 * + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * - cor0.col2 col0 FROM tab1 AS cor0
----
-3294
-3477
-5856
query I rowsort
SELECT DISTINCT - col1 * col0 + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + 5 * col2 FROM tab2 AS cor0
----
130
135
190
query I rowsort
SELECT - + col0 * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8329
SELECT + + 45 DIV col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8329
SELECT + + 45 / col1 FROM tab2 AS cor0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 + col1 col2 FROM tab2 AS cor0
----
124
82
96
query I rowsort
SELECT - 96 * col2 FROM tab2
----
-2496
-2592
-3648
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 cor0, tab1 AS cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
onlyif mysql # use DIV operator for integer division
query I rowsort label-8333
SELECT ( col0 ) + - col0 DIV - 41 FROM tab2
----
7
79
80
skipif mysql # not compatible
query I rowsort label-8333
SELECT ( col0 ) + - col0 / - 41 FROM tab2
----
7
79
80
query I rowsort
SELECT DISTINCT col1 + - tab0.col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT DISTINCT 61 * 67 + col1 FROM tab0
----
4173
4178
4184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - - col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT cor0.col2 * col1 * + col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT DISTINCT + + col1 * col1 + + 34 FROM tab1 cor0
----
134
203
710
onlyif mysql # use DIV operator for integer division
query I rowsort label-8340
SELECT DISTINCT cor0.col0 DIV cor0.col1 FROM tab0, tab1, tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT cor0.col0 / cor0.col1 FROM tab0, tab1, tab1 AS cor0
----
0
6
query I rowsort
SELECT + col1 + + col2 * col1 + + col2 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT - col2 * col0 + - col2 * - col0 * - col1 FROM tab2 AS cor0
----
-121680
-54036
-6048
query I rowsort
SELECT ALL - 97 + col1 AS col1 FROM tab1
----
-71
-84
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8344
SELECT ALL - cor0.col0 * - cor0.col1 * CAST( NULL AS SIGNED ) + 61 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL - cor0.col0 * - cor0.col1 * CAST ( NULL AS INTEGER ) + 61 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8345
SELECT ( col1 * + CAST( 75 AS SIGNED ) + - col2 ) FROM tab0
----
6417
6743
7274
skipif mysql # not compatible
query I rowsort label-8345
SELECT ( col1 * + CAST ( 75 AS INTEGER ) + - col2 ) FROM tab0
----
6417
6743
7274
onlyif mysql # use DIV operator for integer division
query I rowsort label-8346
SELECT - col2 DIV - tab0.col1 + - col2 AS col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8346
SELECT - col2 / - tab0.col1 + - col2 AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT tab0.col2 * + 95 AS col2 FROM tab0
----
3135
7790
95
query I rowsort
SELECT DISTINCT col2 * - 95 AS col2 FROM tab1
----
-5130
-5415
-9120
query I rowsort
SELECT col2 + 20 FROM tab0
----
102
21
53
query I rowsort
SELECT ALL - + 45 * - col1 FROM tab2 cor0
----
1395
2655
765
query I rowsort
SELECT - col2 - + col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL col1 * ( - col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - - 86 - col0 * col2 AS col2 FROM tab2 AS cor0
----
-103
-1942
-2916
query I rowsort
SELECT 16 * + col1 AS col1 FROM tab1 AS cor0
----
160
208
416
query I rowsort
SELECT tab0.col2 + ( col1 ) AS col2 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8356
SELECT col1 DIV col1 + col2 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-8356
SELECT col1 / col1 + col2 FROM tab2
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col2 FROM tab1, tab2 cor0
----
72
query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 + col0 col1 FROM tab1
----
164
249
679
query I rowsort
SELECT ALL + tab1.col1 * - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e4fd9d16116443b7eee5ff68e1d13137
onlyif mysql # use DIV operator for integer division
query I rowsort label-8361
SELECT CAST( - col2 AS SIGNED ) DIV + col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8361
SELECT CAST ( - col2 AS INTEGER ) / + col2 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - tab2.col1 + 95 + col1 AS col2 FROM tab2
----
95
95
95
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col0 FROM tab0 AS cor0
----
26
query I rowsort
SELECT + 98 + - 33 AS col1 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT + - 83 AS col2 FROM tab0 cor0
----
-83
query I rowsort
SELECT + ( - ( col1 ) ) * + cor0.col1 - 50 * col1 * + 44 FROM tab2 AS cor0
----
-133281
-37689
-69161
query I rowsort
SELECT ALL + col2 * 86 + - col1 * - 0 FROM tab0 AS cor0
----
2838
7052
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8370
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 58 * - 91 - + col0 FROM tab1 AS cor0
----
-5281
-5342
-5358
query I rowsort
SELECT - col0 + - col0 AS col2 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT - + col2 * + ( cor0.col0 + + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-14596
-1584
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8374
SELECT ALL cor0.col0 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL cor0.col0 / cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - 71 * + col1 FROM tab0 AS cor0
----
-6106
-6461
-6887
query I rowsort
SELECT 23 * col0 - - col1 * col2 FROM tab0 AS cor0
----
3390
902
9509
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8377
SELECT DISTINCT + CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL 51 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT ALL 71 FROM tab2, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT col1 * ( 93 ) AS col1 FROM tab1
----
1209
2418
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-8381
SELECT - col0 DIV + ( + col1 ) + col0 DIV + 67 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8381
SELECT - col0 / + ( + col1 ) + col0 / + 67 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8382
SELECT cor0.col2 + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-8382
SELECT cor0.col2 + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + + 66 + - cor0.col0 * col0 * col1 FROM tab1 AS cor0
----
-168
-40894
-83134
onlyif mysql # use DIV operator for integer division
query I rowsort label-8384
SELECT - ( 38 ) DIV - col1 + + col0 FROM tab1 AS cor0
----
4
67
82
skipif mysql # not compatible
query I rowsort label-8384
SELECT - ( 38 ) / - col1 + + col0 FROM tab1 AS cor0
----
4
67
82
query I rowsort
SELECT - - 58 * + 44 FROM tab0 cor0
----
2552
2552
2552
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 + cor0.col1 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to fb74c8f2464a93efd66a3095f1538204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8387
SELECT ALL - - CAST( col1 AS SIGNED ) * + cor0.col2 + CAST( + 93 AS SIGNED ) FROM tab0 cor0
----
190
2931
7555
skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL - - CAST ( col1 AS INTEGER ) * + cor0.col2 + CAST ( + 93 AS INTEGER ) FROM tab0 cor0
----
190
2931
7555
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col2 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - 60 + col0 * col2 * col2 + col1 FROM tab1 cor0
----
207886
737233
8714
query I rowsort
SELECT 79 * - col0 AS col1 FROM tab0 cor0
----
-1896
-2765
-7031
onlyif mysql # use DIV operator for integer division
query I rowsort label-8392
SELECT ALL ( cor0.col1 ) DIV col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL ( cor0.col1 ) / col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT + 6 * - col0 + ( col1 ) AS col2 FROM tab0 AS cor0
----
-113
-443
-58
query I rowsort
SELECT - - 54 AS col2 FROM tab0 AS cor0
----
54
54
54
query I rowsort
SELECT ALL + col2 * 50 FROM tab1
----
2700
2850
4800
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 * + col1 AS REAL ) FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col1 FROM tab1 AS cor0
----
22
22
22
query I rowsort
SELECT + cor0.col1 * ( + col1 ) + col0 AS col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - col1 + - col2 + - ( - col2 ) * + col1 FROM tab1
----
1139
1324
503
query I rowsort
SELECT ALL col1 * - cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + cor0.col0 * - ( cor0.col2 ) * + col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - col1 + - 97 * ( + cor0.col2 ) FROM tab1 cor0
----
-5264
-5539
-9325
onlyif mysql # use DIV operator for integer division
query I rowsort label-8403
SELECT DISTINCT col2 - 79 DIV col1 AS col1 FROM tab2 AS cor0
----
25
34
skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT col2 - 79 / col1 AS col1 FROM tab2 AS cor0
----
25
34
query I rowsort
SELECT DISTINCT - - col1 * 44 * col1 + - col1 + col1 AS col0 FROM tab0 AS cor0
----
325424
364364
413996
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8405
SELECT - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8405
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col1 + 16 FROM tab1 AS cor0
----
26
29
42
query I rowsort
SELECT ALL - col2 + 98 * col2 * col2 FROM tab1 cor0
----
285714
318345
903072
query I rowsort
SELECT ALL + 40 AS col0 FROM tab2
----
40
40
40
query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab0, tab2, tab2 AS cor0
----
-40
query I rowsort
SELECT DISTINCT - tab2.col1 AS col1 FROM tab1, tab0, tab0 AS cor0, tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + col0 * col0 * col1 AS col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT cor0.col1 + - 93 * col2 FROM tab1 AS cor0
----
-4996
-5291
-8915
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to d865c68b86e66898eeac28f450e48e70
query I rowsort
SELECT - - col0 + - col0 * col1 * col1 AS col2 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT - + col1 - + col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT ALL - col1 * col1 - col2 AS col2 FROM tab0
----
-7429
-8363
-9410
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 39615739daa2056ffb6e430a8ff0bfc8
query I rowsort
SELECT ALL - col1 * cor0.col1 - - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL - col0 * + cor0.col2 + 27 FROM tab2 AS cor0
----
-162
-2001
-2975
query I rowsort
SELECT DISTINCT - - col1 * col2 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL - 30 FROM tab2, tab0 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab0, tab1 AS cor0, tab2, tab0 cor1
----
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8423
SELECT col2 * - tab0.col0 + ( + col2 ) * tab0.col2 DIV - ( - 70 ) AS col2 FROM tab0
----
-35
-7202
-777
skipif mysql # not compatible
query I rowsort label-8423
SELECT col2 * - tab0.col0 + ( + col2 ) * tab0.col2 / - ( - 70 ) AS col2 FROM tab0
----
-35
-7202
-777
query I rowsort
SELECT - 4 + - 32 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8425
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - 67 FROM tab1, tab0 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT DISTINCT + ( + 5 ) + + col0 FROM tab2 cor0
----
12
83
84
query I rowsort
SELECT ALL - 48 * col1 * + col2 AS col1 FROM tab1 AS cor0
----
-27360
-59904
-67392
onlyif mysql # use DIV operator for integer division
query I rowsort label-8429
SELECT DISTINCT + col1 + - 48 DIV col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT + col1 + - 48 / col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8430
SELECT CAST( - col0 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158
skipif mysql # not compatible
query I rowsort label-8430
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 88 * - col2 * - col0 col0 FROM tab1 AS cor0
----
14256
321024
675840
query I rowsort
SELECT ALL - ( ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + ( + 35 ) FROM tab0, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT col2 + - 57 FROM tab1
----
-3
0
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-8435
SELECT col0 * col2 + col2 DIV + col0 FROM tab1
----
180
3648
7681
skipif mysql # not compatible
query I rowsort label-8435
SELECT col0 * col2 + col2 / + col0 FROM tab1
----
180
3648
7681
query I rowsort
SELECT ( tab2.col1 * + col1 + col0 * col1 ) AS col1 FROM tab2
----
1178
1632
8083
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8437
SELECT DISTINCT - CAST( ( - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT - CAST ( ( - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT 51 + col0 FROM tab1 cor0
----
115
131
54
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL + ( col1 ) - col0 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( col1 ) ) + 87 col1 FROM tab0 AS cor0
----
-10
-4
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col0 FROM tab1 AS cor0
----
41
query I rowsort
SELECT + col2 * 1 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL ( cor0.col2 ) + col1 * + 90 FROM tab2 cor0
----
1568
2817
5336
query I rowsort
SELECT DISTINCT - 45 + col1 - col2 * + col2 * - col2 FROM tab1
----
157445
185158
884704
query I rowsort
SELECT col0 + - col0 * + col0 AS col0 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT 59 + + col0 AS col2 FROM tab0
----
148
83
94
query I rowsort
SELECT col0 + col1 * + 44 - 14 * col2 AS col0 FROM tab1
----
-294
-692
391
query I rowsort
SELECT - 81 * + col1 - 68 * + col2 FROM tab2
----
-3961
-4347
-6547
query I rowsort
SELECT 3 * cor0.col0 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT + col0 + col2 + col0 AS col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT DISTINCT - col1 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL - col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8454
SELECT col0 DIV + CAST( - col2 * col2 AS SIGNED ) + + 58 FROM tab0 AS cor0
----
23
58
58
skipif mysql # not compatible
query I rowsort label-8454
SELECT col0 / + CAST ( - col2 * col2 AS INTEGER ) + + 58 FROM tab0 AS cor0
----
23
58
58
query I rowsort
SELECT - - col0 + + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-17
141
97
query I rowsort
SELECT DISTINCT col0 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 * + col1 + - 21 + - col2 FROM tab0 AS cor0
----
2010
3373
7996
query I rowsort
SELECT + + col2 * 53 FROM tab1 cor0
----
2862
3021
5088
query I rowsort
SELECT - + col0 + + cor0.col1 * col1 - - col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + - cor0.col1 * - col0 * - col1 - - col0 AS col0 FROM tab2 AS cor0
----
-22752
-271440
-6720
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 * + col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-8462
SELECT ALL col1 DIV CAST( 79 AS SIGNED ) + cor0.col1 * 78 * col0 AS col0 FROM tab0 AS cor0
----
160993
264811
631723
skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL col1 / CAST ( 79 AS INTEGER ) + cor0.col1 * 78 * col0 AS col0 FROM tab0 AS cor0
----
160993
264811
631723
query I rowsort
SELECT DISTINCT col2 + col2 + col0 FROM tab1 AS cor0
----
111
178
272
onlyif mysql # use DIV operator for integer division
query I rowsort label-8464
SELECT ALL col2 - - 49 DIV - col2 FROM tab0 AS cor0
----
-48
32
82
skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL col2 - - 49 / - col2 FROM tab0 AS cor0
----
-48
32
82
query I rowsort
SELECT col1 + - 42 FROM tab0 AS cor0
----
44
49
55
query I rowsort
SELECT DISTINCT - col2 * ( + col2 ) * col0 + 23 FROM tab2 AS cor0
----
-114053
-5080
-52705
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8467
SELECT - CAST( + col0 AS SIGNED ) - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-8467
SELECT - CAST ( + col0 AS INTEGER ) - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + col0 + ( - col2 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + + ( col2 ) - col1 * + col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + 4 + + col0 FROM tab1 AS cor0
----
68
7
84
query I rowsort
SELECT ALL - col1 * + 9 * + col0 FROM tab1 AS cor0
----
-5760
-702
-9360
query I rowsort
SELECT DISTINCT col0 * 79 + col2 AS col2 FROM tab0
----
1929
2766
7113
query I rowsort
SELECT ALL tab0.col2 + - 22 * 95 AS col0 FROM tab0
----
-2008
-2057
-2089
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * col2 col0 FROM tab0 cor0
----
1518
3772
46
query I rowsort
SELECT ALL - 22 * col2 + 79 + col1 AS col1 FROM tab2 AS cor0
----
-434
-484
-740
query I rowsort
SELECT DISTINCT - + 68 * - col2 + ( - 4 ) FROM tab0 AS cor0
----
2240
5572
64
query I rowsort
SELECT DISTINCT + 89 * cor0.col1 - - 83 AS col0 FROM tab0 AS cor0
----
7737
8182
8716
query I rowsort
SELECT ALL + 41 * + col1 + col0 * col1 * + cor0.col1 + col0 AS col0 FROM tab2 cor0
----
23607
274015
8005
query I rowsort
SELECT DISTINCT - 76 + - cor0.col0 + ( - col2 ) FROM tab0 AS cor0
----
-112
-133
-247
query I rowsort
SELECT ALL + 63 + - col2 AS col2 FROM tab2 AS cor0
----
25
36
37
query I rowsort
SELECT + col0 * - cor0.col2 FROM tab0 cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col2 + col1 + col1 * col1 col0 FROM tab0 AS cor0
----
1648
6393
9505
query I rowsort
SELECT ALL + 67 + + col1 AS col1 FROM tab0 AS cor0
----
153
158
164
query I rowsort
SELECT ALL 32 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT ALL - ( + col2 ) * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + col2 * + cor0.col2 * 37 AS col1 FROM tab0 cor0
----
-248788
-37
-40293
query I rowsort
SELECT + 50 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT - ( col2 ) - tab0.col2 AS col1 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT ALL + col1 + col0 * 8 AS col1 FROM tab2 AS cor0
----
649
683
87
query I rowsort
SELECT ALL - 80 AS col0 FROM tab1 AS cor0
----
-80
-80
-80
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL col1 * 56 * tab1.col2 + + 66 FROM tab1
----
31986
69954
78690
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + tab2.col1 col0 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL col1 * 77 + + col0 FROM tab2
----
1388
2394
4621
query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab0, tab0 AS cor0
----
-74
query I rowsort
SELECT ALL 28 AS col1 FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT ALL 78 FROM tab0, tab0 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL + 26 * col2 AS col1 FROM tab2
----
676
702
988
query I rowsort
SELECT - - cor0.col0 - + col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + 0 * - col0 + col0 * col2 + col2 AS col1 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT + col0 * col1 - - col0 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8502
SELECT col2 * cor0.col2 - + col2 DIV + ( col1 ) FROM tab0 cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-8502
SELECT col2 * cor0.col2 - + col2 / + ( col1 ) FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - 65 * col0 FROM tab1 AS cor0
----
-195
-4160
-5200
query I rowsort
SELECT + - 4 * col2 FROM tab2 AS cor0
----
-104
-108
-152
query I rowsort
SELECT DISTINCT + col1 + col1 * 8 AS col0 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT + col0 * - ( - col1 ) + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - col0 + col0 * - 2 + + col2 AS col1 FROM tab0 AS cor0
----
-104
-185
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-8508
SELECT ALL - col1 DIV + 37 + + 63 AS col1 FROM tab1 cor0
----
63
63
63
skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL - col1 / + 37 + + 63 AS col1 FROM tab1 cor0
----
63
63
63
query I rowsort
SELECT DISTINCT col2 * 49 + 89 + col1 FROM tab1 AS cor0
----
2761
2892
4806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 + - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + col0 + 54 FROM tab1 AS cor0
----
118
134
57
query I rowsort
SELECT DISTINCT + col1 + 75 AS col1 FROM tab1 AS cor0
----
101
85
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-8513
SELECT - CAST( + col0 AS SIGNED ) DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8513
SELECT - CAST ( + col0 AS INTEGER ) / col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8514
SELECT col2 DIV + ( - col0 * col2 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8514
SELECT col2 / + ( - col0 * col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( - col0 ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - + 63 AS col0 FROM tab0 cor0
----
-63
-63
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-8517
SELECT ALL - - 51 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL - - 51 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT + + col2 * col2 + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL + - ( - col0 ) * - col2 + - 18 * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-1472
-150
-8865
query I rowsort
SELECT ALL 90 + - col1 FROM tab1 AS cor0
----
64
77
80
query I rowsort
SELECT - ( col1 ) + + col0 * - col1 FROM tab1 AS cor0
----
-104
-1053
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-8522
SELECT DISTINCT + - cor0.col2 DIV + ( - col1 * 74 ) col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT + - cor0.col2 / + ( - col1 * 74 ) col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - ( + col2 ) * col0 + + col2 * - col0 FROM tab1 AS cor0
----
-15360
-324
-7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-8524
SELECT DISTINCT col1 DIV col0 - - col2 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT col1 / col0 - - col2 FROM tab0 AS cor0
----
3
36
83
query I rowsort
SELECT DISTINCT - ( - 77 + col2 ) AS col1 FROM tab0
----
-5
44
76
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT - 8 * cor0.col0 FROM tab1 AS cor0
----
-24
-512
-640
query I rowsort
SELECT ALL + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - ( - col0 ) - col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + - cor0.col2 + + col0 AS col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT col0 * - col0 + + col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1197
-1224
513
query I rowsort
SELECT + col2 + + 27 * + cor0.col1 FROM tab0 AS cor0
----
2355
2539
2620
query I rowsort
SELECT + - col1 + + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8534
SELECT ALL - 44 DIV - tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - 44 / - tab1.col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col0 FROM tab0
----
-48
-48
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 * + ( 82 ) col1 FROM tab1
----
-102336
-115128
-46740
query I rowsort
SELECT - 91 - cor0.col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to ad02af49448bb4029cc364e37d8b78e8
query I rowsort
SELECT ALL + col1 + col2 * col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL - ( col2 ) + cor0.col1 * col0 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 col2 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT DISTINCT - - 33 + - col2 FROM tab2 AS cor0
----
-5
6
7
query I rowsort
SELECT ALL - - col2 + - col2 * col0 * 43 AS col2 FROM tab1 AS cor0
----
-156807
-330144
-6912
query I rowsort
SELECT - - cor0.col0 * - col0 + col0 FROM tab2 cor0
----
-42
-6006
-6162
query I rowsort
SELECT - tab1.col1 - col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + cor0.col0 - cor0.col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - col0 * col2 + - ( + ( col0 ) + ( col1 ) ) FROM tab0 AS cor0
----
-167
-7478
-902
query I rowsort
SELECT col0 - + col2 AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT 3 * + col0 + col0 FROM tab2 AS cor0
----
28
312
316
onlyif mysql # use DIV operator for integer division
query I rowsort label-8549
SELECT ALL col0 * col1 + ( + 94 ) DIV + tab2.col0 + col2 AS col2 FROM tab2
----
1382
257
4629
skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL col0 * col1 + ( + 94 ) / + tab2.col0 + col2 AS col2 FROM tab2
----
1382
257
4629
query I rowsort
SELECT + - 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT + col2 + - col1 * - 34 + + 70 AS col2 FROM tab2
----
1151
2102
686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 col0 FROM tab1, tab0 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8553
SELECT DISTINCT - col1 DIV col0 + + 72 FROM tab0
----
69
70
71
skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT - col1 / col0 + + 72 FROM tab0
----
69
70
71
query I rowsort
SELECT DISTINCT - col0 + + 17 * col0 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT ALL + col2 * col1 + + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + 26 - col1 FROM tab1 cor0
----
0
13
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8558
SELECT + CAST( NULL AS SIGNED ) + - cor1.col0 col2 FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8558
SELECT + CAST ( NULL AS INTEGER ) + - cor1.col0 col2 FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL - 43 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT col1 + + 45 FROM tab1
----
55
58
71
query I rowsort
SELECT - ( 96 ) + col0 AS col0 FROM tab1
----
-16
-32
-93
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT - - col1 * cor0.col0 FROM tab1 cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8564
SELECT - + CAST( NULL AS SIGNED ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8564
SELECT - + CAST ( NULL AS INTEGER ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 28 * col2 - col2 AS col0 FROM tab1 AS cor0
----
-1566
-1653
-2784
query I rowsort
SELECT tab1.col1 FROM tab0, tab2 cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL + col2 + + col0 * - col1 * - ( + col1 ) FROM tab1 AS cor0
----
13616
2082
6457
query I rowsort
SELECT ALL - ( - col0 ) * - col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT cor0.col1 * + col2 AS col2 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8570
SELECT DISTINCT col1 DIV - col0 FROM tab1 cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT col1 / - col0 FROM tab1 cor0
----
-8
0
query I rowsort
SELECT + 75 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
onlyif mysql # use DIV operator for integer division
query I rowsort label-8572
SELECT - cor1.col2 DIV cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d39dd9bba46f9276c3236eafeb1032c9
skipif mysql # not compatible
query I rowsort label-8572
SELECT - cor1.col2 / cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d39dd9bba46f9276c3236eafeb1032c9
query I rowsort
SELECT DISTINCT col1 * col2 + - col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT col1 * + col1 + col2 * - col2 FROM tab1 AS cor0
----
-2240
-3149
-9047
query I rowsort
SELECT ALL col0 * col1 * 6 FROM tab2 AS cor0
----
1302
27612
8058
query I rowsort
SELECT col2 * cor0.col0 + + 92 FROM tab2 AS cor0
----
2120
281
3094
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 34 + col2 col0 FROM tab0 cor0
----
1155
2870
35
query I rowsort
SELECT DISTINCT - - cor0.col0 + + col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8579
SELECT - col0 DIV + col0 + ( col0 ) FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-8579
SELECT - col0 / + col0 + ( col0 ) FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT + + ( 54 ) AS col0 FROM tab2 AS cor0
----
54
54
54
query I rowsort
SELECT 20 * - 79 FROM tab0 AS cor0
----
-1580
-1580
-1580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * 9 col2 FROM tab2 AS cor0
----
-855
query I rowsort
SELECT ALL + - 67 AS col0 FROM tab2 AS cor0
----
-67
-67
-67
query I rowsort
SELECT ALL - col0 * + cor0.col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT col0 + - cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + + col0 * + 90 FROM tab2 AS cor0
----
630
7020
7110
query I rowsort
SELECT + 63 * + col1 FROM tab1 AS cor0
----
1638
630
819
onlyif mysql # use DIV operator for integer division
query I rowsort label-8589
SELECT + 44 DIV + col0 FROM tab2 cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-8589
SELECT + 44 / + col0 FROM tab2 cor0
----
0
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 21 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1
query I rowsort
SELECT - - col1 * ( col1 ) AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1
-33
-82
query I rowsort
SELECT - cor1.col0 * 39 + - cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d24ebb62e71e64a19ffe6a560334f0d8
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT + col1 * + 10 AS col2 FROM tab2 cor0
----
170
310
590
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 80 + - col2 * + col2 col2 FROM tab1 cor0
----
-2996
-3329
-9296
query I rowsort
SELECT ALL 7 * + col1 AS col2 FROM tab0
----
602
637
679
query I rowsort
SELECT DISTINCT - 86 FROM tab0, tab2, tab1 AS cor0, tab1
----
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8600
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
query I rowsort
SELECT col1 * + col0 * + col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
119730
51113
5866
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + ( + col1 ) col1 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-8603
SELECT + - col0 + - col1 DIV - col2 + col2 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-8603
SELECT + - col0 + - col1 / - col2 + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - col1 * - cor0.col1 + + col2 * - cor0.col1 FROM tab2 AS cor0
----
-357
124
1947
query I rowsort
SELECT + 47 * - col1 AS col2 FROM tab1 AS cor0
----
-1222
-470
-611
query I rowsort
SELECT + col2 + - col2 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - 65 AS col1 FROM tab0
----
-65
-65
-65
query I rowsort
SELECT + + col0 * - col0 + - 18 AS col0 FROM tab0 AS cor0
----
-1243
-594
-7939
onlyif mysql # use DIV operator for integer division
query I rowsort label-8609
SELECT 14 DIV 55 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-8609
SELECT 14 / 55 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT + col0 * ( col0 ) FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL + col0 * + 30 AS col1 FROM tab1 AS cor0
----
1920
2400
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8612
SELECT cor0.col1 + CAST( NULL AS DECIMAL ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8612
SELECT cor0.col1 + CAST ( NULL AS REAL ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8613
SELECT col1 * - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8613
SELECT col1 * - col1 / col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - + col2 * - ( + 70 ) AS col2 FROM tab0 AS cor0
----
2310
5740
70
query I rowsort
SELECT DISTINCT - - col1 + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-8616
SELECT + cor0.col2 DIV - 16 FROM tab1 AS cor0
----
-3
-3
-6
skipif mysql # not compatible
query I rowsort label-8616
SELECT + cor0.col2 / - 16 FROM tab1 AS cor0
----
-3
-3
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8617
SELECT ALL col2 * CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL col2 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col2 + col2 - 6 col1 FROM tab0 AS cor0
----
-4
1116
6800
query I rowsort
SELECT - col0 + + 75 * col0 AS col2 FROM tab2 AS cor0
----
518
5772
5846
query I rowsort
SELECT ALL + cor0.col2 * - 15 FROM tab2 cor0
----
-390
-405
-570
query I rowsort
SELECT ALL + 43 + - col2 + + col2 FROM tab2 AS cor0
----
43
43
43
query I rowsort
SELECT DISTINCT - col2 * - col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8623
SELECT DISTINCT + 16 DIV + col2 + - col2 * - 84 * col1 FROM tab0 AS cor0
----
238392
626808
8164
skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT + 16 / + col2 + - col2 * - 84 * col1 FROM tab0 AS cor0
----
238392
626808
8164
query I rowsort
SELECT - col0 * - col1 + ( col0 ) * - col1 * col1 AS col0 FROM tab0 AS cor0
----
-175440
-325920
-728910
query I rowsort
SELECT DISTINCT 15 + + col1 * 20 AS col1 FROM tab2 AS cor0
----
1195
355
635
skipif mysql # not compatible
query I rowsort
SELECT col0 + + col1 + CAST ( - col1 AS REAL ) * + col0 * col0 FROM tab2 cor0
----
-106001
-1481
-358819
query I rowsort
SELECT DISTINCT + - 8 AS col1 FROM tab0 AS cor0
----
-8
query I rowsort
SELECT DISTINCT 81 * cor0.col0 + + 90 FROM tab1 cor0
----
333
5274
6570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 * col0 * col1 col2 FROM tab0 AS cor0
----
-152775
-364455
-92880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col2 FROM tab2 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL + col2 - + col2 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 + col2 * tab2.col1 AS col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL col2 * - tab0.col0 + - tab0.col2 * + tab0.col1 AS col1 FROM tab0
----
-132
-14760
-3630
query I rowsort
SELECT col0 + - tab1.col1 * + col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT col1 + - col2 * - col0 FROM tab2 WHERE ( NULL ) <= NULL
----
query I rowsort
SELECT ALL col0 * + tab0.col2 + - tab0.col0 * - tab0.col2 AS col1 FROM tab0
----
14596
1584
70
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> col0 + tab1.col2 * col2
----
query I rowsort
SELECT ALL - 81 + 47 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
query I rowsort
SELECT + ( col0 ) * + col1 + col1 * - col0 * col1 + - col2 FROM tab1 AS cor0
----
-12576
-2004
-5817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8640
SELECT - ( + col0 ) * + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-8640
SELECT - ( + col0 ) * + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8641
SELECT ALL + - CAST( 87 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL + - CAST ( 87 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col1 + col0 * CAST ( col2 AS REAL ) col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL + 1 + col0 AS col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT + tab1.col2 + - tab1.col1 * col2 + col2 FROM tab1
----
-1056
-1296
-456
query I rowsort
SELECT col0 + col1 + col1 * col2 FROM tab0
----
229
2948
7642
query I rowsort
SELECT DISTINCT col1 * + col0 FROM tab2 WHERE + col1 * + col1 * col0 < ( - col2 - + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8647
SELECT + col0 + - cor0.col2 + col0 DIV 65 AS col2 FROM tab2 AS cor0
----
-20
42
53
skipif mysql # not compatible
query I rowsort label-8647
SELECT + col0 + - cor0.col2 + col0 / 65 AS col2 FROM tab2 AS cor0
----
-20
42
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT col1 * + col1 + col1 - tab0.col0 DIV col2 FROM tab0
----
7482
8371
9471
skipif mysql # not compatible
query I rowsort label-8648
SELECT col1 * + col1 + col1 - tab0.col0 / col2 FROM tab0
----
7482
8371
9471
onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT DISTINCT col0 DIV + col1 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT col0 / + col1 AS col2 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8650
SELECT DISTINCT col2 DIV - tab2.col0 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT col2 / - tab2.col0 FROM tab2
----
-3
0
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - col1 * col0 )
----
query I rowsort
SELECT col1 * - col1 + col2 * - col0 * col2 AS col0 FROM tab0 WHERE NULL IN ( col0 )
----
query I rowsort
SELECT DISTINCT - col2 * + col0 - + tab1.col2 * + col0 AS col1 FROM tab1
----
-15360
-324
-7296
query I rowsort
SELECT DISTINCT col1 * col0 + cor0.col2 * - col1 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT ALL col0 * col0 - col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT ALL - col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> cor0.col1
----
query I rowsort
SELECT DISTINCT col2 + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 + col1 * - col1 col2 FROM tab0 AS cor0
----
-7515
-8454
-9507
query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 * cor0.col0 + - col1 * col1 FROM tab1 AS cor0
----
-652
483
775
query I rowsort
SELECT cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL col2 - + col1 * - col0 * + col1 FROM tab1 AS cor0
----
13616
2082
6457
query I rowsort
SELECT DISTINCT cor0.col0 - col1 * - col1 AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL - col1 * col0 + col1 FROM tab2
----
-1326
-186
-4543
query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 NOT BETWEEN col0 AND NULL
----
query I rowsort
SELECT col0 + col0 FROM tab0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - col0 IN ( - col2 )
----
10
13
26
query I rowsort
SELECT DISTINCT + col0 * col0 + col0 FROM tab2
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8668
SELECT tab2.col1 DIV tab2.col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8668
SELECT tab2.col1 / tab2.col1 FROM tab2
----
1
1
1
query I rowsort
SELECT DISTINCT col1 * + tab0.col1 + - col1 AS col2 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT tab1.col0 + + col2 * col1 AS col0 FROM tab1
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 col0 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col0 * + col0 col2 FROM tab2
----
-6110
-6279
-76
query I rowsort
SELECT - col1 + + col1 * col0 AS col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT - ( - col1 ) * + col1 + col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT 80 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 cor2, tab1 AS cor3
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * col0 + col1 * + col0 col1 FROM tab0
----
1272
3360
801
query I rowsort
SELECT DISTINCT 18 FROM tab0, tab2, tab0 AS cor0
----
18
query I rowsort
SELECT 82 + - 30 AS col2 FROM tab0
----
52
52
52
query I rowsort
SELECT ALL - - col0 + - cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - 75 + col1 AS col2 FROM tab2 AS cor0
----
-16
-44
-58
query I rowsort
SELECT 46 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT ALL ( + col1 ) + - col0 + - tab2.col0 FROM tab2
----
-141
-97
17
query I rowsort
SELECT + 24 + col0 AS col0 FROM tab2
----
102
103
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-8685
SELECT 38 + col2 + col2 DIV col1 FROM tab1
----
100
141
94
skipif mysql # not compatible
query I rowsort label-8685
SELECT 38 + col2 + col2 / col1 FROM tab1
----
100
141
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-8686
SELECT col0 DIV col1 + col0 + + col1 AS col0 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-8686
SELECT col0 / col1 + col0 + + col1 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + 5 FROM tab1, tab2, tab0 AS cor0
----
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8688
SELECT - 86 * + col0 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8688
SELECT - 86 * + col0 - - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col2 + + col0 + col1 FROM tab2
----
11
111
58
query I rowsort
SELECT ALL col2 + col1 + - col1 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 + + col0 col2 FROM tab2
----
-7
-79
-8
query I rowsort
SELECT cor0.col0 * col0 + col0 FROM tab0 AS cor0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + 37 col2 FROM tab2 AS cor0
----
-22
20
6
query I rowsort
SELECT - col2 + col1 * - col1 AS col1 FROM tab2 cor0
----
-327
-3507
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * 13 * - col1 col0 FROM tab0 AS cor0
----
-107653
-122317
-96148
onlyif mysql # use DIV operator for integer division
query I rowsort label-8697
SELECT ALL - col1 DIV - ( - col0 ) col0 FROM tab2 AS cor0
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL - col1 / - ( - col0 ) col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT + cor0.col2 * tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to e8cccfbaf514cde36022d227725713e6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8699
SELECT - + cor0.col0 * + CAST( - 9 AS SIGNED ) FROM tab1 AS cor0
----
27
576
720
skipif mysql # not compatible
query I rowsort label-8699
SELECT - + cor0.col0 * + CAST ( - 9 AS INTEGER ) FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT + - col1 * ( + cor0.col2 ) + - col2 AS col2 FROM tab2 cor0
----
-1560
-684
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + 12 * + col1 col0 FROM tab2 AS cor0
----
166
345
682
query I rowsort
SELECT cor0.col1 + cor0.col0 + + col1 FROM tab2 cor0
----
113
196
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8703
SELECT - CAST( + col2 AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8703
SELECT - CAST ( + col2 AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 - + col0 col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ( 31 ) * col0 FROM tab2 cor0
----
217
2418
2449
onlyif mysql # use DIV operator for integer division
query I rowsort label-8706
SELECT + + col2 + 55 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
31
82
skipif mysql # not compatible
query I rowsort label-8706
SELECT + + col2 + 55 / - col0 AS col2 FROM tab0 AS cor0
----
0
31
82
query I rowsort
SELECT - col0 + - 46 FROM tab1 AS cor0
----
-110
-126
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-8708
SELECT DISTINCT col1 DIV + 87 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT col1 / + 87 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8709
SELECT col2 + 9 DIV - col0 AS col2 FROM tab1 AS cor0
----
51
57
96
skipif mysql # not compatible
query I rowsort label-8709
SELECT col2 + 9 / - col0 AS col2 FROM tab1 AS cor0
----
51
57
96
query I rowsort
SELECT + 33 * col0 + - col0 AS col0 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT ALL + + col0 + col0 * col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL - + cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-8713
SELECT DISTINCT - tab2.col2 DIV + 79 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT - tab2.col2 / + 79 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col1 * + col2 col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT - col0 * col1 * + col2 AS col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab1, tab1 AS cor0
----
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8717
SELECT CAST( NULL AS SIGNED ) * + 1 * col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8717
SELECT CAST ( NULL AS INTEGER ) * + 1 * col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + + col2 + - col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - + col0 - - ( - 73 ) AS col2 FROM tab0 AS cor0
----
-108
-162
-97
query I rowsort
SELECT ALL col1 * + col1 + 28 FROM tab2
----
317
3509
989
query I rowsort
SELECT col2 * + 44 AS col2 FROM tab2
----
1144
1188
1672
query I rowsort
SELECT DISTINCT - + cor0.col0 + 93 * - col1 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
-142799
-60174
-77879
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6a63085e8cab6f97591fd0a6b6ffff07
query I rowsort
SELECT ALL + col2 + 93 FROM tab1 AS cor0
----
147
150
189
onlyif mysql # use DIV operator for integer division
query I rowsort label-8725
SELECT ALL + - col0 + col2 DIV - cor0.col1 + col2 col0 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL + - col0 + col2 / - cor0.col1 + col2 col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT col0 - - col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT col2 * col0 AS col2 FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN col0 * col1 + + col0 AND - col2 - + col0 OR ( col1 ) > ( + col0 )
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8728
SELECT - - col2 * col2 + + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
2916
3250
9216
skipif mysql # not compatible
query I rowsort label-8728
SELECT - - col2 * col2 + + col0 / col2 AS col0 FROM tab1 AS cor0
----
2916
3250
9216
query I rowsort
SELECT + col1 * col2 + + col2 - + col2 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col2 + col2 * - tab1.col2 - col0 * col2 FROM tab1
----
-16800
-3024
-6840
query I rowsort
SELECT - col1 * col0 + col1 + col1 FROM tab0
----
-1892
-3201
-7917
onlyif mysql # use DIV operator for integer division
query I rowsort label-8732
SELECT DISTINCT - col1 - + col2 DIV + col0 FROM tab1
----
-10
-14
-44
skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT - col1 - + col2 / + col0 FROM tab1
----
-10
-14
-44
query I rowsort
SELECT ALL col1 * - col1 - col2 FROM tab0
----
-7429
-8363
-9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-8734
SELECT + col1 * + col1 * tab0.col2 + + col0 DIV col1 col2 FROM tab0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8734
SELECT + col1 * + col1 * tab0.col2 + + col0 / col1 col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT + col0 * col1 + col2 * - col1 * + col0 AS col0 FROM tab2
----
-115050
-49691
-5642
query I rowsort
SELECT + col1 - + col0 * col1 AS col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT + col1 * + col2 + - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-8738
SELECT - col2 DIV + cor0.col1 + - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-8738
SELECT - col2 / + cor0.col1 + - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + - col1 * - col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + col2 * cor0.col1 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + col0 + cor0.col2 * - col0 + col2 FROM tab0 AS cor0
----
-7127
-735
1
query I rowsort
SELECT DISTINCT 43 * col1 AS col1 FROM tab2
----
1333
2537
731
query I rowsort
SELECT - col2 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-8744
SELECT cor0.col1 * col2 + + col1 DIV col1 + + col1 FROM tab2 AS cor0
----
1594
664
869
skipif mysql # not compatible
query I rowsort label-8744
SELECT cor0.col1 * col2 + + col1 / col1 + + col1 FROM tab2 AS cor0
----
1594
664
869
onlyif mysql # use DIV operator for integer division
query I rowsort label-8745
SELECT - tab0.col2 DIV tab0.col2 + col0 + + tab0.col0 FROM tab0
----
177
47
69
skipif mysql # not compatible
query I rowsort label-8745
SELECT - tab0.col2 / tab0.col2 + col0 + + tab0.col0 FROM tab0
----
177
47
69
query I rowsort
SELECT ALL - col0 - + tab2.col0 * tab2.col1 AS col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT 31 * col1 AS col0 FROM tab1
----
310
403
806
query I rowsort
SELECT - cor0.col0 + + col0 * - col2 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT + tab0.col2 + col0 * - col0 AS col0 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT + ( + col1 ) * col1 + + 45 FROM tab1 AS cor0
----
145
214
721
query I rowsort
SELECT ALL 11 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT + 34 * - tab0.col2 + 5 FROM tab0
----
-1117
-2783
-29
query I rowsort
SELECT ALL - 68 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 * - col1 + - col1 + col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - col2 * 12 - + 30 * + col2 AS col0 FROM tab1 cor0
----
-2268
-2394
-4032
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col1 col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + col1 * - 75 AS col2 FROM tab2 AS cor0
----
-1275
-2325
-4425
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8759
SELECT ALL - - col0 * + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL - - col0 * + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT + cor0.col0 * - 62 FROM tab2 AS cor0
----
-434
-4836
-4898
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8761
SELECT - col2 * CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8761
SELECT - col2 * CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8762
SELECT ALL - col0 + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL - col0 + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * col1 + - col0 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8764
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) - cor0.col0 / col1 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) - cor0.col0 / col1 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col2 * ( 66 ) AS col0 FROM tab2 AS cor0
----
1716
1782
2508
query I rowsort
SELECT + col2 * ( + col1 * col2 ) FROM tab1 cor0
----
119808
32490
75816
query I rowsort
SELECT DISTINCT - col2 * - ( - col0 + + col0 * - col2 ) AS col1 FROM tab2 AS cor0
----
-117078
-5292
-54756
onlyif mysql # use DIV operator for integer division
query I rowsort label-8768
SELECT DISTINCT - col1 * ( + 16 ) DIV col1 AS col1 FROM tab0 cor0
----
-16
skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - col1 * ( + 16 ) / col1 AS col1 FROM tab0 cor0
----
-16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8769
SELECT - CAST( NULL AS SIGNED ) + - tab0.col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8769
SELECT - CAST ( NULL AS INTEGER ) + - tab0.col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 76 + + col2 FROM tab2
----
102
103
114
query I rowsort
SELECT ( col2 * + col0 ) + - col0 AS col2 FROM tab2
----
182
1950
2923
query I rowsort
SELECT DISTINCT + cor0.col2 * - 45 FROM tab1 AS cor0
----
-2430
-2565
-4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8773
SELECT + ( + ( - col0 ) ) DIV + 83 - col0 * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-8773
SELECT + ( + ( - col0 ) ) / + 83 - col0 * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8774
SELECT ALL - col0 + ( + col2 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - col0 + ( + col2 ) / - col2 AS col1 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT DISTINCT - col0 * col1 + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT ( 72 ) + col1 AS col2 FROM tab1 AS cor0
----
82
85
98
query I rowsort
SELECT col1 * + 26 + + col0 AS col1 FROM tab0 cor0
----
2260
2455
2557
query I rowsort
SELECT DISTINCT + 89 * - col1 AS col0 FROM tab0 AS cor0
----
-7654
-8099
-8633
query I rowsort
SELECT ALL - - ( + col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 53 + col1 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-653
-7154
115
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col1 FROM tab0 AS cor0
----
31
query I rowsort
SELECT ALL - 10 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8783
SELECT + 26 * - col1 + 71 * 39 DIV col2 AS col2 FROM tab1 AS cor0
----
-212
-310
-625
skipif mysql # not compatible
query I rowsort label-8783
SELECT + 26 * - col1 + 71 * 39 / col2 AS col2 FROM tab1 AS cor0
----
-212
-310
-625
query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col1 * col0 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT ALL 63 + - col2 AS col2 FROM tab0 AS cor0
----
-19
30
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8786
SELECT DISTINCT 54 DIV - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT 54 / - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL col1 * - cor0.col0 + 7 * 42 AS col1 FROM tab1 AS cor0
----
-346
-746
216
query I rowsort
SELECT - 23 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5
query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL 6 * - col2 AS col1 FROM tab0 cor0
----
-198
-492
-6
query I rowsort
SELECT ( col2 ) + 70 + col0 AS col0 FROM tab1 AS cor0
----
127
191
246
query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT 68 FROM tab0 cor0
----
68
68
68
query I rowsort
SELECT - 98 AS col0 FROM tab0 cor0
----
-98
-98
-98
query I rowsort
SELECT + - ( - col0 ) - col1 * - col0 * + col0 AS col2 FROM tab1 AS cor0
----
237
41024
83280
query I rowsort
SELECT + col0 * col0 + - col2 FROM tab2 AS cor0
----
22
6058
6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8797
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab2 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 88 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT - 69 * col1 - col0 AS col2 FROM tab2 AS cor0
----
-1252
-2146
-4149
query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab1 AS cor0
----
41
query I rowsort
SELECT ALL + 44 AS col1 FROM tab0 AS cor0
----
44
44
44
query I rowsort
SELECT - col0 + + 91 FROM tab2 AS cor0
----
12
13
84
query I rowsort
SELECT col2 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c
query I rowsort
SELECT ALL ( - col0 ) + col1 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT col2 + col0 * + tab1.col0 AS col0 FROM tab1
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-8807
SELECT col0 DIV 29 + - col2 * col2 DIV - col0 FROM tab0
----
1
45
78
skipif mysql # not compatible
query I rowsort label-8807
SELECT col0 / 29 + - col2 * col2 / - col0 FROM tab0
----
1
45
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8808
SELECT 32 DIV col1 AS col0 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8808
SELECT 32 / col1 AS col0 FROM tab2
----
0
1
1
query I rowsort
SELECT DISTINCT + tab1.col0 + - tab1.col0 AS col2 FROM tab1
----
0
query I rowsort
SELECT col1 * - tab0.col0 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT 77 * 13 + - tab2.col0 * + ( + 62 + + col1 ) AS col2 FROM tab2
----
-5240
-8437
350
query I rowsort
SELECT DISTINCT - + ( col0 ) * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 87 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT - ( ( + col0 ) ) + ( 25 ) FROM tab2 AS cor0
----
-53
-54
18
query I rowsort
SELECT DISTINCT - 1 FROM tab2, tab1 AS cor0
----
-1
query I rowsort
SELECT + col2 * - 4 * col0 AS col1 FROM tab1
----
-14592
-30720
-648
query I rowsort
SELECT + - cor0.col1 * ( 21 ) - - col1 FROM tab1 AS cor0
----
-200
-260
-520
query I rowsort
SELECT - cor0.col2 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc
query I rowsort
SELECT + 46 + - col0 * - col1 FROM tab1 AS cor0
----
1086
124
686
query I rowsort
SELECT + 49 AS col2 FROM tab1 AS cor0
----
49
49
49
query I rowsort
SELECT tab1.col2 + + col1 - + tab1.col0 FROM tab1
----
29
3
77
query I rowsort
SELECT 23 - - col1 AS col1 FROM tab1
----
33
36
49
query I rowsort
SELECT DISTINCT + 86 + 49 * - col0 AS col0 FROM tab1
----
-3050
-3834
-61
query I rowsort
SELECT ALL - - col0 * + 71 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT + + 70 + col1 * col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
1190
151
774
query I rowsort
SELECT - 38 + col2 * col1 + col2 FROM tab0 AS cor0
----
2833
60
7506
query I rowsort
SELECT + col1 * cor0.col0 * col1 + - col1 FROM tab2 AS cor0
----
22814
271459
6696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col1 + + col2 + 52 col2 FROM tab0 AS cor0
----
2149
3448
8233
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 97 * - col2 col1 FROM tab1 AS cor0
----
5238
5529
9312
query I rowsort
SELECT 68 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT - 62 * cor0.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to b21d1d37c3db6a4e07190c0d0ffc71e8
query I rowsort
SELECT + - 30 * col2 AS col1 FROM tab2 AS cor0
----
-1140
-780
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-8833
SELECT - col0 DIV + col2 + + 36 * col1 + col1 FROM tab0 AS cor0
----
3182
3366
3554
skipif mysql # not compatible
query I rowsort label-8833
SELECT - col0 / + col2 + + 36 * col1 + col1 FROM tab0 AS cor0
----
3182
3366
3554
query I rowsort
SELECT - + cor0.col0 * cor0.col0 + + col2 AS col2 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT + col1 + + col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8836
SELECT + col2 + col0 / + col1 + col2 / CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8836
SELECT + col2 + col0 / + col1 + col2 / CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + 88 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-10406
-15470
-8633
onlyif mysql # use DIV operator for integer division
query I rowsort label-8838
SELECT + col1 DIV + 39 - col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8838
SELECT + col1 / + 39 - col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 40 * - col2 * - ( + col1 * col0 ) FROM tab2
----
2041360
234360
4786080
query I rowsort
SELECT ALL - col2 + 65 FROM tab0 AS cor0
----
-17
32
64
query I rowsort
SELECT DISTINCT tab2.col1 + col2 + 35 FROM tab2
----
120
90
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 * + col1 + col2 col0 FROM tab0
----
636089
753653
912674
query I rowsort
SELECT DISTINCT - col2 + - ( col0 ) AS col2 FROM tab0 cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8844
SELECT ALL col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8846
SELECT ALL col2 DIV - 19 AS col1 FROM tab1
----
-2
-3
-5
skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL col2 / - 19 AS col1 FROM tab1
----
-2
-3
-5
query I rowsort
SELECT + col0 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8848
SELECT - col2 * - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-8848
SELECT - col2 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT + + col1 + - cor0.col0 * cor0.col1 + 63 FROM tab0 AS cor0
----
-1915
-3235
-7945
query I rowsort
SELECT ALL - 64 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1407
-281
-4666
query I rowsort
SELECT ALL + col1 + 82 - - tab0.col1 FROM tab0
----
254
264
276
query I rowsort
SELECT ALL + col0 + 48 AS col0 FROM tab2 AS cor0
----
126
127
55
query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab1 AS cor0
----
-42
query I rowsort
SELECT ALL col2 * col0 * + cor0.col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT col2 + - 82 - - cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2888
3224
9230
query I rowsort
SELECT ALL 76 * - col0 FROM tab0 cor0
----
-1824
-2660
-6764
onlyif mysql # use DIV operator for integer division
query I rowsort label-8858
SELECT DISTINCT col2 * col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-80
-9
0
skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT col2 * col0 / - col1 AS col0 FROM tab0 AS cor0
----
-80
-9
0
query I rowsort
SELECT ALL col2 * 32 - + 83 AS col2 FROM tab0
----
-51
2541
973
onlyif mysql # use DIV operator for integer division
query I rowsort label-8860
SELECT + tab2.col0 DIV + tab2.col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8860
SELECT + tab2.col0 / + tab2.col0 FROM tab2
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8861
SELECT col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8861
SELECT col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - tab2.col2 - 98 AS col1 FROM tab2
----
-124
-125
-136
query I rowsort
SELECT - col1 * + col0 * ( col0 * + 59 ) + - col2 FROM tab0
----
-2922657
-42527931
-7010676
query I rowsort
SELECT DISTINCT - 24 + col0 FROM tab0 cor0
----
0
11
65
query I rowsort
SELECT DISTINCT - 23 + + col0 FROM tab2 AS cor0
----
-16
55
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 + + cor0.col1 col0 FROM tab1 AS cor0
----
104
88
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-8867
SELECT ALL + col1 DIV + col0 - col0 * - 45 FROM tab1 AS cor0
----
143
2880
3600
skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + col1 / + col0 - col0 * - 45 FROM tab1 AS cor0
----
143
2880
3600
query I rowsort
SELECT - col2 * + cor0.col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col2 * + 87 + col0 FROM tab0
----
122
2895
7223
onlyif mysql # use DIV operator for integer division
query I rowsort label-8870
SELECT DISTINCT + col2 DIV - col1 + col0 + - 97 AS col2 FROM tab0
----
-62
-73
-8
skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT + col2 / - col1 + col0 + - 97 AS col2 FROM tab0
----
-62
-73
-8
query I rowsort
SELECT ( 13 ) AS col0 FROM tab2
----
13
13
13
query I rowsort
SELECT DISTINCT 54 * 12 FROM tab1
----
648
query I rowsort
SELECT cor0.col2 * + 80 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 22b9425e09ee8bd0a2a63c6f914fa897
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8874
SELECT col2 + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8874
SELECT col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 50 + col0 * + col2 FROM tab1 AS cor0
----
112
3598
7630
query I rowsort
SELECT - + 16 FROM tab0 cor0
----
-16
-16
-16
query I rowsort
SELECT DISTINCT - col2 * + col0 + col2 AS col2 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL cor0.col0 * col2 - col0 * + ( col0 * + col0 ) FROM tab1 AS cor0
----
-258496
-504320
135
query I rowsort
SELECT ALL - - 57 * col0 FROM tab1 AS cor0
----
171
3648
4560
query I rowsort
SELECT DISTINCT - col0 * col1 + - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-16198
-4128
-6790
query I rowsort
SELECT ALL - - ( - 78 ) AS col1 FROM tab2 AS cor0
----
-78
-78
-78
query I rowsort
SELECT - col1 + 44 AS col1 FROM tab1 AS cor0
----
18
31
34
query I rowsort
SELECT ALL + 24 + col2 * + col2 FROM tab2 AS cor0
----
1468
700
753
query I rowsort
SELECT ALL - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * col1 col1 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT DISTINCT + 37 * col2 + + col0 * ( col0 ) * - cor0.col0 + col0 FROM tab0 AS cor0
----
-12579
-42803
-701846
query I rowsort
SELECT DISTINCT tab0.col1 * - tab0.col2 + - 78 * - col0 FROM tab0
----
-520
-966
2633
query I rowsort
SELECT ALL - 4 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT ALL tab1.col1 * 68 + - col0 + - col2 * - col2 FROM tab1
----
10020
3865
4681
query I rowsort
SELECT col0 * - 47 * col0 FROM tab1
----
-192512
-300800
-423
query I rowsort
SELECT - col0 + - 26 FROM tab2
----
-104
-105
-33
query I rowsort
SELECT DISTINCT + col1 + - ( cor0.col1 * - 4 ) - + col2 * col1 AS col0 FROM tab1 AS cor0
----
-1183
-1274
-520
query I rowsort
SELECT ALL - ( 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 64 col1 FROM tab2 cor0
----
64
64
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + cor0.col1 col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT col0 + - col0 - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + col1 - + tab0.col0 * col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col2 + col1 * ( col0 * + col1 ) FROM tab1 cor0
----
13616
2082
6457
query I rowsort
SELECT ALL col1 * col1 + col1 * - col0 * col2 + - col0 FROM tab2 AS cor0
----
-116249
-4905
-50824
query I rowsort
SELECT ALL col1 * + ( col1 ) + col2 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - + col1 + 59 FROM tab2 AS cor0
----
0
28
42
query I rowsort
SELECT DISTINCT - 23 * cor1.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-1472
-1840
-69
query I rowsort
SELECT col1 * col1 * 72 AS col1 FROM tab1
----
12168
48672
7200
query I rowsort
SELECT - col2 * 10 + col2 AS col2 FROM tab2 AS cor0
----
-234
-243
-342
query I rowsort
SELECT DISTINCT + col1 + + ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col2 * + ( 48 ) + + col0 FROM tab1 cor0
----
-2589
-2672
-4528
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-8908
SELECT DISTINCT + - col0 + + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT + - col0 + + col0 / col1 AS col1 FROM tab1 AS cor0
----
-3
-58
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8909
SELECT + cor0.col2 * + CAST( + 38 AS SIGNED ) AS col0 FROM tab1 cor0
----
2052
2166
3648
skipif mysql # not compatible
query I rowsort label-8909
SELECT + cor0.col2 * + CAST ( + 38 AS INTEGER ) AS col0 FROM tab1 cor0
----
2052
2166
3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-8910
SELECT ALL col2 DIV 73 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL col2 / 73 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab1, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT DISTINCT + col2 * 43 + + 54 FROM tab0 cor0
----
1473
3580
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8913
SELECT ALL + col1 + + col2 DIV - 28 AS col0 FROM tab0 AS cor0
----
85
89
97
skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL + col1 + + col2 / - 28 AS col0 FROM tab0 AS cor0
----
85
89
97
query I rowsort
SELECT + - col0 * + col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - col1 * + ( col2 ) + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - + col0 * - col1 + + 1 + col0 FROM tab2 AS cor0
----
1423
225
4681
query I rowsort
SELECT - col1 * - 14 AS col1 FROM tab0 AS cor0
----
1204
1274
1358
query I rowsort
SELECT DISTINCT - - cor0.col1 * 47 + col0 FROM tab0 AS cor0
----
4066
4366
4594
query I rowsort
SELECT + col2 * - 20 * + col2 FROM tab2 cor0
----
-13520
-14580
-28880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( cor0.col2 ) + col1 col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - col1 + + 31 * col0 FROM tab2 AS cor0
----
186
2359
2432
query I rowsort
SELECT - col0 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT + ( + 50 ) * + cor0.col2 + 84 * + col2 AS col2 FROM tab0 AS cor0
----
10988
134
4422
query I rowsort
SELECT DISTINCT - - 68 AS col2 FROM tab1 AS cor0
----
68
query I rowsort
SELECT + 33 FROM tab0 cor0
----
33
33
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-8926
SELECT - + 65 + + 35 DIV + cor0.col0 FROM tab0 AS cor0
----
-64
-64
-65
skipif mysql # not compatible
query I rowsort label-8926
SELECT - + 65 + + 35 / + cor0.col0 FROM tab0 AS cor0
----
-64
-64
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + col1 col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL - col1 * + col2 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8929
SELECT DISTINCT + cor0.col0 + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT + cor0.col0 + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * cor0.col0 + 39 FROM tab2 AS cor0
----
6123
6280
88
query I rowsort
SELECT ALL - 50 AS col1 FROM tab1
----
-50
-50
-50
query I rowsort
SELECT ALL 98 * col0 AS col1 FROM tab1
----
294
6272
7840
query I rowsort
SELECT + - col0 * col1 * - col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + - col0 + ( ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + col0 * + tab2.col1 + col2 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT - - col1 * - 45 AS col2 FROM tab2 AS cor0
----
-1395
-2655
-765
query I rowsort
SELECT col0 * + 73 FROM tab0 AS cor0
----
1752
2555
6497
query I rowsort
SELECT + tab2.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT ( + col2 ) AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT 32 + - col1 AS col0 FROM tab0
----
-54
-59
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8941
SELECT - col0 + + col1 DIV col0 FROM tab2
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-8941
SELECT - col0 + + col1 / col0 FROM tab2
----
-3
-78
-79
query I rowsort
SELECT - + 70 + - col2 * + 34 AS col1 FROM tab0 AS cor0
----
-104
-1192
-2858
query I rowsort
SELECT DISTINCT + 16 + col2 * col1 FROM tab2 AS cor0
----
1550
662
853
onlyif mysql # use DIV operator for integer division
query I rowsort label-8944
SELECT DISTINCT 7 * 6 DIV col0 AS col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT 7 * 6 / col0 AS col0 FROM tab0
----
0
1
query I rowsort
SELECT + ( 4 ) FROM tab0
----
4
4
4
query I rowsort
SELECT - col2 + col1 + - 65 FROM tab1
----
-112
-148
-93
query I rowsort
SELECT + ( col0 ) * tab2.col1 * + tab2.col1 - col1 * + col2 FROM tab2
----
22185
269984
5890
query I rowsort
SELECT + col2 + col0 - + tab1.col0 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT + 5 - + tab0.col2 FROM tab0
----
-28
-77
4
query I rowsort
SELECT DISTINCT col1 * tab2.col0 - 59 FROM tab2
----
1284
158
4543
query I rowsort
SELECT DISTINCT + 72 - + col1 * + col0 FROM tab0
----
-1992
-3323
-8027
query I rowsort
SELECT DISTINCT - 73 * tab1.col0 FROM tab1, tab0, tab2 AS cor0
----
-219
-4672
-5840
query I rowsort
SELECT 81 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT - 1 * col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab2
----
96
query I rowsort
SELECT - - ( - cor0.col1 ) + ( + cor0.col1 ) * col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT cor0.col2 - - col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL - tab2.col1 * col0 AS col0 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8959
SELECT - col0 DIV - CAST( ( - col0 ) * + CAST( - col1 AS SIGNED ) AS SIGNED ) col2 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8959
SELECT - col0 / - CAST ( ( - col0 ) * + CAST ( - col1 AS INTEGER ) AS INTEGER ) col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8960
SELECT + col0 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8960
SELECT + col0 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col1 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT 83 * 40 AS col2 FROM tab1 AS cor0
----
3320
3320
3320
query I rowsort
SELECT + cor0.col1 + cor0.col2 * col0 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8964
SELECT DISTINCT - CAST( 25 AS SIGNED ) FROM tab2, tab2 cor0
----
-25
skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT - CAST ( 25 AS INTEGER ) FROM tab2, tab2 cor0
----
-25
query I rowsort
SELECT + col2 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + - 72 * - col0 AS col0 FROM tab0 AS cor0
----
1728
2520
6408
query I rowsort
SELECT ALL 98 AS col1 FROM tab0
----
98
98
98
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c
query I rowsort
SELECT ALL col1 * - ( tab2.col1 ) AS col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT col1 * col0 - tab2.col1 * - 93 FROM tab2
----
10089
2924
3100
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col1 FROM tab0 cor0
----
-81
-81
-81
query I rowsort
SELECT DISTINCT + + col0 * + 59 + - cor0.col1 * col0 * + 18 + col2 FROM tab2 AS cor0
----
-19475
-3466
-78208
query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab2, tab1 cor0
----
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8974
SELECT 38 * 24 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-11
-11
-130
skipif mysql # not compatible
query I rowsort label-8974
SELECT 38 * 24 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-11
-11
-130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8975
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT ALL 58 DIV - col1 FROM tab2 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL 58 / - col1 FROM tab2 AS cor0
----
-1
-3
0
query I rowsort
SELECT ALL - col1 * col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 79 * col0 + 44 AS col0 FROM tab2 AS cor0
----
597
6206
6285
query I rowsort
SELECT + 62 * col1 AS col0 FROM tab0 AS cor0
----
5332
5642
6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-8981
SELECT ALL + 84 DIV - col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL + 84 / - col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col0 col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT - 87 + col1 FROM tab1 AS cor0
----
-61
-74
-77
query I rowsort
SELECT DISTINCT 48 * + col1 FROM tab0 AS cor0
----
4128
4368
4656
query I rowsort
SELECT ALL 66 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT DISTINCT + col1 * col0 * col0 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-8987
SELECT + + 53 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8987
SELECT + + 53 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab2
----
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-8989
SELECT DISTINCT + col2 * col2 DIV + col1 AS col1 FROM tab1
----
112
324
708
skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT + col2 * col2 / + col1 AS col1 FROM tab1
----
112
324
708
query I rowsort
SELECT ALL ( + 75 ) * tab0.col1 AS col2 FROM tab0
----
6450
6825
7275
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( - col1 ) col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL - col0 + 72 FROM tab2 AS cor0
----
-6
-7
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8993
SELECT - - cor0.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-8993
SELECT - - cor0.col2 / ( ( col1 ) ) col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col1 col2 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8995
SELECT - cor0.col0 DIV ( col2 + col0 ) AS col2 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8995
SELECT - cor0.col0 / ( col2 + col0 ) AS col2 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( - cor0.col0 * col0 ) + ( cor0.col2 ) + col1 col1 FROM tab2 cor0
----
-1265
-158099
-237103
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - 5 col1 FROM tab0 AS cor0
----
165
410
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 22 + - col1 + - col0 col2 FROM tab2 AS cor0
----
116
1579
1642
query I rowsort
SELECT DISTINCT - + col1 * 69 + + ( cor0.col2 ) * + col1 FROM tab2 AS cor0
----
-1302
-2537
-527
query I rowsort
SELECT col0 + 37 FROM tab1 AS cor0
----
101
117
40
query I rowsort
SELECT DISTINCT + col0 - - 44 AS col2 FROM tab0 AS cor0
----
133
68
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9002
SELECT DISTINCT - col1 DIV - 7 + - col2 * - cor0.col0 FROM tab2 AS cor0
----
193
2036
3004
skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT - col1 / - 7 + - col2 * - cor0.col0 FROM tab2 AS cor0
----
193
2036
3004
query I rowsort
SELECT + + col2 * + col0 AS col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9004
SELECT - col1 * col1 + + col1 DIV + col1 + - col0 FROM tab0 AS cor0
----
-7419
-8369
-9443
skipif mysql # not compatible
query I rowsort label-9004
SELECT - col1 * col1 + + col1 / + col1 + - col0 FROM tab0 AS cor0
----
-7419
-8369
-9443
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col2 * + col2 + - 14 * col0 AS col2 FROM tab0
----
-489
5478
753
query I rowsort
SELECT col1 * 27 - col2 * + col0 FROM tab1
----
-3378
-7329
540
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + col0 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col0 * col2 * tab0.col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + col1 * - col0 + - tab2.col0 * + tab2.col2 * + col0 FROM tab2
----
-1540
-162786
-238501
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 * col1 + + col0 * + col1 col1 FROM tab1
----
-15184
-36426
-5060
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 col2 FROM tab0
----
-53
-9
-96
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9014
SELECT col2 DIV col2 + col2 + col1 FROM tab1 AS cor0
----
110
68
81
skipif mysql # not compatible
query I rowsort label-9014
SELECT col2 / col2 + col2 + col1 FROM tab1 AS cor0
----
110
68
81
query I rowsort
SELECT - col1 * tab0.col1 + + col1 * col1 + + tab0.col1 / col1 FROM tab0 WHERE ( - col2 + col0 * + tab0.col2 ) IN ( col1 * + col2 + col0 )
----
query I rowsort
SELECT - col0 + + col2 AS col0 FROM tab1 WHERE NULL > ( col0 )
----
query I rowsort
SELECT DISTINCT + col1 * - col1 * tab2.col0 AS col2 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT - col1 * - col0 AS col1 FROM tab0 WHERE NULL NOT IN ( + col2 / tab0.col2 )
----
query I rowsort
SELECT DISTINCT + col1 + - tab1.col1 + col2 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT col1 + tab1.col0 * col0 AS col1 FROM tab1
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-9021
SELECT DISTINCT - col1 * col0 * col1 + - tab0.col0 DIV - tab0.col0 + + col2 FROM tab0
----
-177470
-329313
-736926
skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT - col1 * col0 * col1 + - tab0.col0 / - tab0.col0 + + col2 FROM tab0
----
-177470
-329313
-736926
query I rowsort
SELECT DISTINCT col1 + col0 + col2 * + col2 AS col2 FROM tab2
----
1540
767
813
query I rowsort
SELECT - col0 + col1 * - col0 + col2 AS col1 FROM tab0
----
-2055
-3429
-8106
query I rowsort
SELECT col0 * - col1 * - col0 AS col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT + col1 FROM tab2 WHERE NULL >= ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9026
SELECT tab1.col2 DIV - tab1.col1 + col2 * col1 AS col2 FROM tab1
----
1241
1402
565
skipif mysql # not compatible
query I rowsort label-9026
SELECT tab1.col2 / - tab1.col1 + col2 * col1 AS col2 FROM tab1
----
1241
1402
565
query I rowsort
SELECT - col1 * + col1 * col0 + - col0 AS col1 FROM tab0
----
-177528
-329350
-737098
query I rowsort
SELECT DISTINCT + col1 * - col0 + col2 * + col1 + tab0.col0 AS col2 FROM tab0
----
-3263
-548
798
query I rowsort
SELECT ALL tab1.col0 * col2 + - col2 * + col2 + col1 * + tab1.col0 FROM tab1
----
-2676
-496
1039
onlyif mysql # use DIV operator for integer division
query I rowsort label-9030
SELECT col2 DIV - tab2.col0 + + col1 * col2 AS col0 FROM tab2
----
1534
646
834
skipif mysql # not compatible
query I rowsort label-9030
SELECT col2 / - tab2.col0 + + col1 * col2 AS col0 FROM tab2
----
1534
646
834
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + + cor0.col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-9033
SELECT DISTINCT + - col0 DIV col2 col0 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT + - col0 / col2 col0 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 + col2 col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col0 * col2 * + cor0.col0 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
-233372
-614231
190
query I rowsort
SELECT ALL + col0 - + col0 * col1 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-9038
SELECT ALL - + col1 + col0 * col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
-21
-23
-27
skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL - + col1 + col0 * col1 / - col2 AS col1 FROM tab1 AS cor0
----
-21
-23
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-9039
SELECT DISTINCT + col0 + col0 DIV col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT + col0 + col0 / col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + cor0.col2 + col2 * - col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT col1 + col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( cor0.col1 * col1 * col0 + col1 + - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9042
SELECT tab0.col1 DIV + tab0.col1 + tab0.col0 col1 FROM tab0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9042
SELECT tab0.col1 / + tab0.col1 + tab0.col0 col1 FROM tab0
----
25
36
90
query I rowsort
SELECT cor0.col2 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col1 )
----
query I rowsort
SELECT DISTINCT - col0 + + col2 * - col0 AS col2 FROM tab2 cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL + cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 * ( col0 + col2 ) col1 FROM tab1 cor0
----
1274
1485
2368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col1 FROM tab2
----
53
53
53
query I rowsort
SELECT 34 AS col0 FROM tab2
----
34
34
34
query I rowsort
SELECT ALL + 3 AS col2 FROM tab0
----
3
3
3
query I rowsort
SELECT - col0 * + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - col2 + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col1 FROM tab2 WHERE col1 BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL + col1 + + col2 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT col2 - + col1 AS col2 FROM tab2
----
-33
-4
21
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= + col2 + col0 * col1
----
query I rowsort
SELECT tab2.col0 * - col0 + - col2 AS col2 FROM tab2
----
-6110
-6279
-76
query I rowsort
SELECT + col1 * + col2 + - tab2.col2 AS col1 FROM tab2
----
1508
608
810
query I rowsort
SELECT + col1 / + col1 + col2 AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( tab2.col2 )
----
query I rowsort
SELECT DISTINCT + tab1.col1 + - col2 AS col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT col1 * - col0 * col1 NOT IN ( - tab2.col0 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= col2
----
query I rowsort
SELECT ALL col2 + + col1 FROM tab1 WHERE NOT col0 NOT IN ( tab1.col2 * + col0 )
----
query I rowsort
SELECT DISTINCT col1 + + col2 * + tab0.col1 * col2 FROM tab0
----
194
611975
93740
query I rowsort
SELECT ALL ( + cor0.col1 ) * cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - col1 + col1 * 32 AS col0 FROM tab1 AS cor0
----
310
403
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9067
SELECT ALL - - col0 + - col2 * CAST( + 10 AS SIGNED ) FROM tab2 cor0
----
-182
-263
-301
skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL - - col0 + - col2 * CAST ( + 10 AS INTEGER ) FROM tab2 cor0
----
-182
-263
-301
query I rowsort
SELECT - cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 * cor0.col1 * 43 col1 FROM tab2 AS cor0
----
23392
42656
81184
query I rowsort
SELECT + - col0 + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9071
SELECT col2 * - CAST( + cor0.col1 AS SIGNED ) 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-9071
SELECT col2 * - CAST ( + cor0.col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9072
SELECT - col1 + col2 DIV + 31 AS col2 FROM tab0
----
-85
-89
-97
skipif mysql # not compatible
query I rowsort label-9072
SELECT - col1 + col2 / + 31 AS col2 FROM tab0
----
-85
-89
-97
query I rowsort
SELECT DISTINCT cor0.col2 + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col2 * + 59 + col1 + + cor0.col0 * + col0 * col1 FROM tab2 AS cor0
----
108356
3143
360549
query I rowsort
SELECT - col0 * tab0.col2 * col1 FROM tab0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - 33 * 36 FROM tab1 AS cor0
----
-1188
-1188
-1188
query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 col1 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9081
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9082
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - col2 ) + + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - - 97 * + col0 FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT ALL + col0 * 64 FROM tab1
----
192
4096
5120
query I rowsort
SELECT ALL + ( col2 ) + + ( + col1 ) * + col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL col1 * col0 + + col0 + col1 FROM tab1 AS cor0
----
107
1133
714
query I rowsort
SELECT ALL + 31 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT - ( 12 ) FROM tab2
----
-12
-12
-12
query I rowsort
SELECT - 13 AS col0 FROM tab0
----
-13
-13
-13
query I rowsort
SELECT DISTINCT ( col1 + - 60 ) * col0 * col1 AS col1 FROM tab1
----
-2652
-32000
-48880
query I rowsort
SELECT DISTINCT - 37 * + col2 AS col0 FROM tab1
----
-1998
-2109
-3552
onlyif mysql # use DIV operator for integer division
query I rowsort label-9093
SELECT - cor0.col0 DIV col0 + + col2 AS col0 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-9093
SELECT - cor0.col0 / col0 + + col2 AS col0 FROM tab2 AS cor0
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * col1 + + 16 col2 FROM tab2
----
-1518
-630
-821
query I rowsort
SELECT ALL 46 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT ALL 49 + - col0 AS col1 FROM tab1
----
-15
-31
46
query I rowsort
SELECT ALL col1 * - col2 * col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col1 * col1 col2 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL + - col0 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT ( + col0 ) + + col1 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL - tab0.col1 + + col1 FROM tab0
----
0
0
0
query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + col1 AND NOT NULL <= col0
----
query I rowsort
SELECT + col1 + col2 * - col0 AS col1 FROM tab1
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - col1 * + col1 - col2 * - col2 * col0 FROM tab2 AS cor0
----
113787
4142
49247
query I rowsort
SELECT ALL + col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + col1 col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT - - col0 + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - - col1 * col2 - - col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-9110
SELECT DISTINCT col0 DIV 19 - col0 * - col0 FROM tab0
----
1226
577
7925
skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT col0 / 19 - col0 * - col0 FROM tab0
----
1226
577
7925
query I rowsort
SELECT DISTINCT + col2 + col2 - + col1 AS col0 FROM tab2
----
-7
23
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9112
SELECT - col0 DIV tab1.col1 + - col1 - col1 FROM tab1
----
-26
-32
-52
skipif mysql # not compatible
query I rowsort label-9112
SELECT - col0 / tab1.col1 + - col1 - col1 FROM tab1
----
-26
-32
-52
query I rowsort
SELECT 67 * col1 + + col0 + tab1.col1 AS col0 FROM tab1
----
1771
744
964
query I rowsort
SELECT ( tab1.col0 ) * + tab1.col2 + col2 + tab1.col1 AS col2 FROM tab1
----
242
3715
7789
query I rowsort
SELECT DISTINCT 15 - col2 * col0 FROM tab0
----
-20
-7283
-777
query I rowsort
SELECT ALL col1 - - tab1.col0 FROM tab1
----
29
74
93
query I rowsort
SELECT + 72 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
onlyif mysql # use DIV operator for integer division
query I rowsort label-9118
SELECT col0 * + 64 + col2 DIV col2 FROM tab0
----
1537
2241
5697
skipif mysql # not compatible
query I rowsort label-9118
SELECT col0 * + 64 + col2 / col2 FROM tab0
----
1537
2241
5697
query I rowsort
SELECT DISTINCT - col2 * + col1 + col1 * - col1 - - col0 AS col2 FROM tab2
----
-1791
-4937
-856
query I rowsort
SELECT + 48 - 79 AS col1 FROM tab2
----
-31
-31
-31
query I rowsort
SELECT + col0 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col1 FROM tab1
----
40
40
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-9123
SELECT ( - col2 + + col2 ) DIV tab0.col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9123
SELECT ( - col2 + + col2 ) / tab0.col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - + 38 * col2 - col1 AS col0 FROM tab1 AS cor0
----
-2078
-2176
-3661
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col0 col1 FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col1 FROM tab1 AS cor0
----
-94
-94
-94
query I rowsort
SELECT DISTINCT - + 39 + col2 * col0 FROM tab2 cor0
----
150
1989
2963
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 - col1 col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL - 89 - col2 * - col0 AS col1 FROM tab1 AS cor0
----
3559
73
7591
query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 + col2 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col2 + col1 * + col2 + col2 FROM tab2 cor0
----
1586
722
891
query I rowsort
SELECT DISTINCT + + ( + col2 ) + - col1 * - col1 * - col0 FROM tab0 AS cor0
----
-177471
-329314
-736927
query I rowsort
SELECT 23 + col0 AS col0 FROM tab1 cor0
----
103
26
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 29 - col0 * col1 * + col0 col0 FROM tab0 AS cor0
----
-118854
-49565
-720840
query I rowsort
SELECT ALL col1 * col2 + - tab2.col0 - + col1 AS col2 FROM tab2
----
1397
550
799
query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL + + 49 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1274
1323
1862
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + + cor0.col2 col1 FROM tab2 AS cor0
----
73
74
85
query I rowsort
SELECT ALL cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 41 * col1 FROM tab2
----
1271
2419
697
query I rowsort
SELECT DISTINCT - ( col1 + col1 * 23 ) FROM tab1
----
-240
-312
-624
query I rowsort
SELECT ( - 54 ) AS col1 FROM tab1
----
-54
-54
-54
query I rowsort
SELECT col1 + - 36 FROM tab0
----
50
55
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-9145
SELECT ALL col1 DIV + 48 col1 FROM tab2
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL col1 / + 48 col1 FROM tab2
----
0
0
1
query I rowsort
SELECT + 96 + + col1 FROM tab1
----
106
109
122
query I rowsort
SELECT ALL + + ( 82 ) * col0 + - 7 + + 75 AS col2 FROM tab0 AS cor0
----
2036
2938
7366
query I rowsort
SELECT ALL + cor0.col0 + 26 + cor0.col1 FROM tab1 AS cor0
----
100
119
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col0 FROM tab0
----
5
5
5
query I rowsort
SELECT DISTINCT + tab2.col1 * col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - + ( + col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT col2 + + 40 * - col0 FROM tab0 cor0
----
-1399
-3478
-927
query I rowsort
SELECT + col0 - col0 * 15 * - 54 FROM tab1 cor0
----
2433
51904
64880
query I rowsort
SELECT DISTINCT - + 35 + col0 FROM tab0 cor0
----
-11
0
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-9155
SELECT DISTINCT - cor0.col1 * col0 + 43 DIV + col0 FROM tab1 AS cor0
----
-1040
-64
-640
skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - cor0.col1 * col0 + 43 / + col0 FROM tab1 AS cor0
----
-1040
-64
-640
query I rowsort
SELECT + col1 * col1 + ( + 35 ) AS col1 FROM tab2 AS cor0
----
324
3516
996
query I rowsort
SELECT + - col0 * col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + + 45 - col0 AS col1 FROM tab2 AS cor0
----
-33
-34
38
query I rowsort
SELECT ALL - + col0 + col2 AS col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT 69 * col0 AS col2 FROM tab2 AS cor0
----
483
5382
5451
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - + 87 * col0 AS col0 FROM tab2 AS cor0
----
-609
-6786
-6873
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9163
SELECT ALL col1 + - col0 * - CAST( col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
35
4106
6413
skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL col1 + - col0 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 40 + cor0.col0 col1 FROM tab2 AS cor0
----
118
119
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9165
SELECT ALL + + 47 + - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL + + 47 + - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * + col2 + + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT 25 * + 65 * col0 - col1 * 79 AS col1 FROM tab0
----
137436
32206
49212
query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab0, tab0 AS cor0
----
60
query I rowsort
SELECT + cor0.col2 + - col0 * col0 AS col0 FROM tab1 cor0
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9170
SELECT ALL col1 DIV - 93 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL col1 / - 93 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - + col0 + - col0 * - col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL + - col1 * + col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT 5 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
5
query I rowsort
SELECT DISTINCT - - col1 + + cor0.col2 * + col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * col2 * - col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - + col1 * - ( col0 * col2 ) AS col0 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - + col1 + + ( - col2 ) + - col1 AS col0 FROM tab0 AS cor0
----
-195
-205
-264
onlyif mysql # use DIV operator for integer division
query I rowsort label-9179
SELECT ALL col0 * + col0 + col0 DIV col1 col2 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL col0 * + col0 + col0 / col1 col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - cor0.col1 * ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + + cor0.col1 + col0 * col2 AS col2 FROM tab1 cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 5 + col1 col1 FROM tab1 AS cor0
----
-244
-275
-467
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT col0 + ( - col1 ) FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col1 * col1 + - col0 * - col0 FROM tab0 AS cor0
----
10634
16202
7972
query I rowsort
SELECT ALL cor0.col0 * 31 AS col0 FROM tab2 AS cor0
----
217
2418
2449
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT - 57 AS col1 FROM tab0, tab2 AS cor0
----
-57
query I rowsort
SELECT + col0 * col1 * + col0 + - col2 AS col1 FROM tab0
----
118824
49503
720729
query I rowsort
SELECT DISTINCT + col2 * ( 78 ) AS col0 FROM tab1
----
4212
4446
7488
query I rowsort
SELECT DISTINCT - ( 88 ) * + col1 AS col0 FROM tab0 AS cor0
----
-7568
-8008
-8536
query I rowsort
SELECT + ( col0 ) * cor0.col2 + col1 + - col2 FROM tab0 AS cor0
----
131
7307
845
query I rowsort
SELECT + + 84 * - 66 FROM tab1 AS cor0
----
-5544
-5544
-5544
query I rowsort
SELECT + 65 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9195
SELECT + CAST( col0 AS SIGNED ) * + col0 + + 15 FROM tab0 AS cor0
----
1240
591
7936
skipif mysql # not compatible
query I rowsort label-9195
SELECT + CAST ( col0 AS INTEGER ) * + col0 + + 15 FROM tab0 AS cor0
----
1240
591
7936
query I rowsort
SELECT - + col0 + col1 * - col0 * 28 FROM tab0 cor0
----
-226861
-57816
-95095
query I rowsort
SELECT ALL cor0.col1 + 89 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac1e8fdf9d96b42a43490dceb2539808
query I rowsort
SELECT - 40 * - col2 AS col1 FROM tab2 AS cor0
----
1040
1080
1520
query I rowsort
SELECT DISTINCT + - 43 + - col1 AS col2 FROM tab2 cor0
----
-102
-60
-74
query I rowsort
SELECT 80 + - col0 * ( col0 ) * tab0.col2 + 34 FROM tab0
----
-1111
-18894
-649408
query I rowsort
SELECT + + col1 + - col2 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-2719
-7289
1
query I rowsort
SELECT + - col0 * 97 + - 19 FROM tab1 AS cor0
----
-310
-6227
-7779
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 * col0 col1 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - tab1.col0 * - 79 FROM tab1, tab0 AS cor0
----
237
5056
6320
query I rowsort
SELECT col2 * + ( col0 + tab1.col0 ) AS col2 FROM tab1
----
15360
324
7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-9206
SELECT col2 + ( - col1 ) DIV col2 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9206
SELECT col2 + ( - col1 ) / col2 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - col2 + ( - col0 ) FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL col0 + - col1 * 12 FROM tab2 cor0
----
-125
-365
-630
query I rowsort
SELECT ALL + col0 * + 29 FROM tab2 AS cor0
----
203
2262
2291
onlyif mysql # use DIV operator for integer division
query I rowsort label-9211
SELECT - col2 * - 95 + col0 DIV - col0 col1 FROM tab2 AS cor0
----
2469
2564
3609
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9211
SELECT - col2 * - 95 + col0 / - col0 col1 FROM tab2 AS cor0
----
2469
2564
3609
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9212
SELECT ALL - col1 + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - col1 + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col2 + col0 * + 1 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9214
SELECT + 45 DIV col0 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9214
SELECT + 45 / col0 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT - 84 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-246
-3732
-7764
query I rowsort
SELECT - col0 * cor0.col1 + ( - 95 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
-10234
-12610
-16744
query I rowsort
SELECT DISTINCT + cor0.col2 - + 53 FROM tab1 AS cor0
----
1
4
43
query I rowsort
SELECT DISTINCT + col0 * col1 + - col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-9219
SELECT + - col2 DIV - col2 AS col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9219
SELECT + - col2 / - col2 AS col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT - col1 * + col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9222
SELECT - - 88 DIV 93 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9222
SELECT - - 88 / 93 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 - 28 AS col1 FROM tab2
----
-106
-107
-35
query I rowsort
SELECT + + 39 AS col0 FROM tab0 AS cor0
----
39
39
39
query I rowsort
SELECT + - cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT - 92 + cor0.col1 FROM tab1 AS cor0
----
-66
-79
-82
query I rowsort
SELECT ( - 40 ) + - col0 AS col0 FROM tab1 cor0
----
-104
-120
-43
query I rowsort
SELECT - col2 + + cor0.col2 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + + 14 * col1 + 35 AS col0 FROM tab0 AS cor0
----
1239
1309
1393
onlyif mysql # use DIV operator for integer division
query I rowsort label-9230
SELECT ALL cor0.col0 DIV - col1 col1 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL cor0.col0 / - col1 col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT - 26 + - col1 FROM tab1 AS cor0
----
-36
-39
-52
query I rowsort
SELECT ALL 65 FROM tab1 cor0
----
65
65
65
query I rowsort
SELECT + 1 * - col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 87 col0 FROM tab1 AS cor0
----
87
query I rowsort
SELECT + col2 + 75 AS col1 FROM tab2
----
101
102
113
onlyif mysql # use DIV operator for integer division
query I rowsort label-9236
SELECT - col1 * col0 DIV + col2 AS col2 FROM tab0
----
-3395
-62
-98
skipif mysql # not compatible
query I rowsort label-9236
SELECT - col1 * col0 / + col2 AS col2 FROM tab0
----
-3395
-62
-98
query I rowsort
SELECT ALL + col2 + + cor0.col0 * 94 FROM tab2 AS cor0
----
685
7358
7464
query I rowsort
SELECT ALL - col0 + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT ALL - col2 * - cor0.col2 + 25 FROM tab2 AS cor0
----
1469
701
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-9240
SELECT DISTINCT - col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT - col0 / - col1 AS col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL - ( col1 ) + - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT col1 + col1 * 94 FROM tab2 AS cor0
----
1615
2945
5605
query I rowsort
SELECT DISTINCT col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL col2 * col2 + col1 * col0 FROM tab2
----
2787
5278
946
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 + - col1 col1 FROM tab2
----
30
58
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9247
SELECT col2 - + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9247
SELECT col2 - + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 97 - col0 AS col0 FROM tab2
----
18
19
90
query I rowsort
SELECT - ( + col1 ) * - 30 AS col0 FROM tab1
----
300
390
780
query I rowsort
SELECT ALL - 7 * - col2 + col0 * col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
208335
737952
9126
query I rowsort
SELECT ALL + col2 + - col1 * + 82 FROM tab0
----
-7019
-7380
-7953
query I rowsort
SELECT DISTINCT cor0.col1 + - ( - 97 ) AS col1 FROM tab1, tab1 AS cor0
----
107
110
123
query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL - 18 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
query I rowsort
SELECT - - ( + col2 ) AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL 1 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT ALL - 28 * + col0 FROM tab0 AS cor0
----
-2492
-672
-980
query I rowsort
SELECT DISTINCT col2 + 59 AS col2 FROM tab1 AS cor0
----
113
116
155
query I rowsort
SELECT ALL - col2 * - 32 * col1 FROM tab1 AS cor0
----
18240
39936
44928
query I rowsort
SELECT ALL + - 61 + col2 FROM tab2 AS cor0
----
-23
-34
-35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9261
SELECT ALL CAST( + col2 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL CAST ( + col2 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + - col0 + 44 FROM tab1 AS cor0
----
-20
-36
41
query I rowsort
SELECT DISTINCT - + col1 - + col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL - ( col0 ) + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-9265
SELECT DISTINCT col0 DIV - col0 - + cor0.col1 AS col0 FROM tab2 cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT col0 / - col0 - + cor0.col1 AS col0 FROM tab2 cor0
----
-18
-32
-60
query I rowsort
SELECT ALL - 22 * - col1 FROM tab0 AS cor0
----
1892
2002
2134
query I rowsort
SELECT ALL 40 * - ( col0 ) * ( 0 ) - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col2 col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - + col0 + 82 FROM tab1 AS cor0
----
18
2
79
query I rowsort
SELECT DISTINCT 60 + ( cor1.col2 ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
86
87
98
query I rowsort
SELECT + + cor0.col0 * + 85 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT 83 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT DISTINCT - col2 * - 63 AS col1 FROM tab0
----
2079
5166
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9274
SELECT - col1 * - CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9274
SELECT - col1 * - CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9275
SELECT DISTINCT col0 DIV 16 AS col0 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT col0 / 16 AS col0 FROM tab2
----
0
4
query I rowsort
SELECT ALL - col2 * + col2 + - 16 FROM tab1 AS cor0
----
-2932
-3265
-9232
query I rowsort
SELECT DISTINCT col0 + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - + col2 * ( + 69 ) FROM tab2 AS cor0
----
-1794
-1863
-2622
onlyif mysql # use DIV operator for integer division
query I rowsort label-9279
SELECT ALL 37 DIV + 46 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL 37 / + 46 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT - + col0 + - ( col0 ) AS col2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT 37 + + col1 * - col2 AS col1 FROM tab0
----
-2801
-60
-7425
query I rowsort
SELECT ALL 7 * 77 + col1 AS col0 FROM tab2
----
556
570
598
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * 75 + - col1 col1 FROM tab0
----
-22
2389
6059
onlyif mysql # use DIV operator for integer division
query I rowsort label-9284
SELECT DISTINCT ( + col2 ) DIV col2 + tab1.col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT ( + col2 ) / col2 + tab1.col1 FROM tab1
----
11
14
27
query I rowsort
SELECT tab2.col0 + ( col2 ) FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + col1 * - col2 * col1 + 87 AS col2 FROM tab1
----
-16137
-36417
-5613
query I rowsort
SELECT ALL ( 91 ) * + col0 AS col1 FROM tab0 cor0
----
2184
3185
8099
query I rowsort
SELECT ALL ( - col0 + - col1 ) * ( 79 ) AS col0 FROM tab2
----
-10823
-3002
-7584
query I rowsort
SELECT ALL + + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - col2 + col1 + + cor0.col0 FROM tab2 cor0
----
11
111
58
query I rowsort
SELECT - col1 + - col1 * - 34 AS col0 FROM tab1 AS cor0
----
330
429
858
query I rowsort
SELECT DISTINCT - + col1 * col0 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col2 FROM tab2
----
94
query I rowsort
SELECT 68 * - col0 FROM tab2 AS cor0
----
-476
-5304
-5372
query I rowsort
SELECT ALL - + cor0.col1 * - cor0.col2 + + col1 * ( + col0 ) * ( col2 ) - - cor0.col2 FROM tab1 AS cor0
----
101184
37107
5670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col2 * + col0 col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL 95 AS col2 FROM tab1
----
95
95
95
query I rowsort
SELECT DISTINCT + 96 * - col2 * - 78 AS col2 FROM tab2
----
194688
202176
284544
query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab0
----
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-9301
SELECT - col2 DIV - col0 col1 FROM tab2
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9301
SELECT - col2 / - col0 col1 FROM tab2
----
0
0
3
query I rowsort
SELECT col1 * col1 + col0 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
3413
3595
9465
query I rowsort
SELECT + col1 * + col1 * 34 + + col0 * - col0 * - col0 FROM tab1 AS cor0
----
23011
265544
517746
query I rowsort
SELECT - + col0 + + 64 AS col0 FROM tab2 AS cor0
----
-14
-15
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9305
SELECT - - col0 + col0 * 78 DIV col0 AS col1 FROM tab2 cor0
----
156
157
85
skipif mysql # not compatible
query I rowsort label-9305
SELECT - - col0 + col0 * 78 / col0 AS col1 FROM tab2 cor0
----
156
157
85
query I rowsort
SELECT + col1 + - 78 AS col1 FROM tab2 AS cor0
----
-19
-47
-61
query I rowsort
SELECT + + ( + col0 ) * + col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - - 89 * col0 AS col0 FROM tab2 AS cor0
----
623
6942
7031
query I rowsort
SELECT ALL ( - col2 ) * col0 + + 60 * - 79 FROM tab0 AS cor0
----
-12038
-4775
-5532
query I rowsort
SELECT ALL + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 54 + cor0.col0 FROM tab0 AS cor0
----
143
78
89
query I rowsort
SELECT cor0.col2 + 10 FROM tab0 AS cor0
----
11
43
92
query I rowsort
SELECT 38 * + col0 FROM tab1 cor0
----
114
2432
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9314
SELECT + CAST( NULL AS DECIMAL ) * col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9314
SELECT + CAST ( NULL AS REAL ) * col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9315
SELECT - - 90 DIV + ( col0 + + col2 ) AS col2 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9315
SELECT - - 90 / + ( col0 + + col2 ) AS col2 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT - - cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + 64 + col0 * col0 - col2 FROM tab1 AS cor0
----
19
4103
6368
query I rowsort
SELECT + - 43 FROM tab0, tab2 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9319
SELECT - ( + 13 ) DIV + col0 FROM tab1
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-9319
SELECT - ( + 13 ) / + col0 FROM tab1
----
-4
0
0
query I rowsort
SELECT - - col1 + 51 AS col1 FROM tab1 AS cor0
----
61
64
77
query I rowsort
SELECT DISTINCT 24 + + 99 * col2 FROM tab2 AS cor0
----
2598
2697
3786
query I rowsort
SELECT ALL col1 + - col2 + + col0 FROM tab1 cor0
----
-25
-3
17
query I rowsort
SELECT + ( - col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - ( - col2 ) - - col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL + - col1 + 97 AS col2 FROM tab0 cor0
----
0
11
6
query I rowsort
SELECT ALL + + 90 + col0 FROM tab0 AS cor0
----
114
125
179
query I rowsort
SELECT DISTINCT + col2 - + ( + 66 ) AS col0 FROM tab1
----
-12
-9
30
query I rowsort
SELECT DISTINCT - col1 - - 64 * - col1 AS col0 FROM tab1
----
-1690
-650
-845
query I rowsort
SELECT ALL - col2 + - col1 * - col2 AS col1 FROM tab1
----
1152
1350
513
query I rowsort
SELECT - 70 + 4 AS col0 FROM tab0
----
-66
-66
-66
query I rowsort
SELECT ALL col0 * 88 * col2 + col0 AS col2 FROM tab0
----
3115
642313
69720
query I rowsort
SELECT - 93 * col0 FROM tab0
----
-2232
-3255
-8277
onlyif mysql # use DIV operator for integer division
query I rowsort label-9333
SELECT DISTINCT - - col0 * - col0 + cor0.col2 DIV + 89 + col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839
skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT - - col0 * - col0 + cor0.col2 / + 89 + col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT + - col2 + 39 * + col0 FROM tab0 AS cor0
----
1364
3389
903
onlyif mysql # use DIV operator for integer division
query I rowsort label-9335
SELECT DISTINCT - col1 * - 71 + col2 DIV + 41 col0 FROM tab2 AS cor0
----
1207
2201
4189
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT - col1 * - 71 + col2 / + 41 col0 FROM tab2 AS cor0
----
1207
2201
4189
query I rowsort
SELECT ALL col2 + 96 * col0 FROM tab1 AS cor0
----
342
6201
7776
query I rowsort
SELECT DISTINCT + - cor0.col1 * - col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9338
SELECT ALL CAST( + col0 AS SIGNED ) - col2 * + ( + ( col1 ) + 35 * - col1 ) AS col2 FROM tab0 AS cor0
----
253797
3333
96516
skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL CAST ( + col0 AS INTEGER ) - col2 * + ( + ( col1 ) + 35 * - col1 ) AS col2 FROM tab0 AS cor0
----
253797
3333
96516
onlyif mysql # use DIV operator for integer division
query I rowsort label-9339
SELECT - cor0.col0 + - 16 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9339
SELECT - cor0.col0 + - 16 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT cor0.col1 * 21 + col0 * ( col1 ) FROM tab0 AS cor0
----
10010
3870
5432
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 85 AS REAL ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1105
-2210
-850
query I rowsort
SELECT ALL - 22 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9343
SELECT 62 DIV - col2 - + 0 FROM tab1
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9343
SELECT 62 / - col2 - + 0 FROM tab1
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9344
SELECT DISTINCT - + col0 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT - + col0 / cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT - col2 * + ( - 80 + col0 ) FROM tab1 AS cor0
----
0
4158
912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9346
SELECT - col0 + CAST( NULL AS SIGNED ) * ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9346
SELECT - col0 + CAST ( NULL AS INTEGER ) * ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - cor0.col1 + 69 AS col1 FROM tab0 AS cor0
----
155
160
166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9348
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9349
SELECT - col2 + + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-9349
SELECT - col2 + + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + col2 * + col2 AS col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT col0 * 74 FROM tab2 AS cor0
----
518
5772
5846
onlyif mysql # use DIV operator for integer division
query I rowsort label-9352
SELECT ALL + col0 DIV 99 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL + col0 / 99 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9353
SELECT ALL col1 DIV CAST( - col2 * + cor0.col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL col1 / CAST ( - col2 * + cor0.col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2
0
0
query I rowsort
SELECT - cor0.col0 + 65 * + 76 AS col1 FROM tab2 cor0
----
4861
4862
4933
query I rowsort
SELECT ALL - - col1 * 43 FROM tab2 AS cor0
----
1333
2537
731
query I rowsort
SELECT ALL + - col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 + + ( - 82 ) * cor0.col2 FROM tab1 AS cor0
----
-4454
-4684
-7885
onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT DISTINCT col0 DIV ( + cor0.col0 ) FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT col0 / ( + cor0.col0 ) FROM tab1 cor0
----
1
query I rowsort
SELECT + col1 * col0 * 45 FROM tab0 cor0
----
152775
364455
92880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * col2 col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + col0 * col0 + + col1 + - ( ( - col2 ) ) * + cor0.col2 FROM tab2 AS cor0
----
6819
7702
809
query I rowsort
SELECT DISTINCT col2 + - 56 FROM tab0 AS cor0
----
-23
-55
26
query I rowsort
SELECT - + col2 * + col2 * col2 FROM tab1 cor0
----
-157464
-185193
-884736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9365
SELECT + cor0.col2 * CAST( 18 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to f3762691e4a423c4281dd8ce8a25a896
skipif mysql # not compatible
query I rowsort label-9365
SELECT + cor0.col2 * CAST ( 18 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to f3762691e4a423c4281dd8ce8a25a896
query I rowsort
SELECT DISTINCT col0 * col0 + + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT - col1 + tab1.col1 - 28 AS col1 FROM tab1
----
-28
query I rowsort
SELECT + 76 + 79 FROM tab2 cor0
----
155
155
155
query I rowsort
SELECT + 72 * - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 884210196ea24c411d12a2542ff07f6b
query I rowsort
SELECT ALL 71 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9371
SELECT DISTINCT + col1 * + col2 + + CAST( NULL AS SIGNED ) / - col0 + + col2 * + 19 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT + col1 * + col2 + + CAST ( NULL AS INTEGER ) / - col0 + + col2 * + 19 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT 19 * + col1 FROM tab1 AS cor0
----
190
247
494
query I rowsort
SELECT DISTINCT - - 7 FROM tab1 cor0
----
7
query I rowsort
SELECT - + col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + 82 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
82
query I rowsort
SELECT ALL - + ( - col1 ) * + 60 + col0 * + col0 FROM tab2 AS cor0
----
1909
7261
9624
onlyif mysql # use DIV operator for integer division
query I rowsort label-9377
SELECT ALL + 46 DIV col0 + ( col0 ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
93
skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL + 46 / col0 + ( col0 ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
93
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
86
91
97
query I rowsort
SELECT DISTINCT 38 FROM tab2, tab1 cor0, tab1 AS cor1
----
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9380
SELECT DISTINCT col0 + col0 + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
123
153
4
skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT col0 + col0 + col2 / - col1 AS col2 FROM tab1 AS cor0
----
123
153
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-9382
SELECT ALL + tab0.col1 DIV - col0 AS col1 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL + tab0.col1 / - col0 AS col1 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT ALL col1 + 0 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT cor0.col1 + 27 * - 7 AS col1 FROM tab2 AS cor0
----
-130
-158
-172
query I rowsort
SELECT DISTINCT + 36 AS col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-9386
SELECT + 11 DIV - ( col2 ) FROM tab0 AS cor0
----
-11
0
0
skipif mysql # not compatible
query I rowsort label-9386
SELECT + 11 / - ( col2 ) FROM tab0 AS cor0
----
-11
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9387
SELECT - + col0 + col1 DIV - col0 FROM tab0 AS cor0
----
-27
-37
-90
skipif mysql # not compatible
query I rowsort label-9387
SELECT - + col0 + col1 / - col0 FROM tab0 AS cor0
----
-27
-37
-90
query I rowsort
SELECT ALL - - ( + ( col0 ) ) + ( col2 ) * + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT + ( col0 ) * col1 + + ( + ( + col2 ) * col1 ) FROM tab2 AS cor0
----
1054
1989
6136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - 42 + + col1 FROM tab0 cor0
----
44
49
55
query I rowsort
SELECT + + cor0.col2 + + cor0.col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - col2 * 42 AS col2 FROM tab0
----
-1386
-3444
-42
query I rowsort
SELECT + 66 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT ALL - 6 * cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to 10a425095e1461e78db46c3bfe438e36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 13 col1 FROM tab2
----
1014
1027
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 * col1 col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT - - 63 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT + 89 + col0 FROM tab1
----
153
169
92
query I rowsort
SELECT ALL - 1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT ALL + col2 + ( tab0.col0 ) FROM tab0
----
171
36
57
query I rowsort
SELECT col0 * - 12 + 43 AS col0 FROM tab2
----
-41
-893
-905
query I rowsort
SELECT DISTINCT - 22 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-22
query I rowsort
SELECT ALL - col0 * + 41 FROM tab2 cor0
----
-287
-3198
-3239
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9405
SELECT - cor0.col0 + CAST( 87 AS SIGNED ) col0 FROM tab0 AS cor0
----
-2
52
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9405
SELECT - cor0.col0 + CAST ( 87 AS INTEGER ) col0 FROM tab0 AS cor0
----
-2
52
63
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL + col2 - 77 * 40 FROM tab2 AS cor0
----
-3042
-3053
-3054
query I rowsort
SELECT ALL - col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + col0 * ( col0 ) - + col0 FROM tab0 AS cor0
----
1190
552
7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( + cor0.col1 ) + col1 * - col2 * col2 col0 FROM tab2 AS cor0
----
-22816
-25891
-44486
query I rowsort
SELECT - - col2 * + 97 + col1 FROM tab0 AS cor0
----
194
3287
8045
query I rowsort
SELECT DISTINCT - + col2 * + 88 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
-249711
-656574
-8535
query I rowsort
SELECT ALL - col0 * 83 - + cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-14849
-3002
-4830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9415
SELECT CAST( NULL AS DECIMAL ) * col0 + col1 * ( - col1 ) + col2 * - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9415
SELECT CAST ( NULL AS REAL ) * col0 + col1 * ( - col1 ) + col2 * - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 77 col1 FROM tab1
----
-3
13
74
query I rowsort
SELECT DISTINCT + col1 * - 62 * - col0 AS col1 FROM tab2
----
13454
285324
83266
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9418
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) * 62 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) * 62 AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9419
SELECT - - col1 DIV + col1 col2 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9419
SELECT - - col1 / + col1 col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL tab2.col2 * - ( col1 * + col1 ) FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT - col1 + - 93 FROM tab2 AS cor0
----
-110
-124
-152
query I rowsort
SELECT + ( 95 ) AS col0 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT - + 54 * + col1 FROM tab2 AS cor0
----
-1674
-3186
-918
query I rowsort
SELECT - + col1 - - cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - 80 + + 93 AS col0 FROM tab2 AS cor0
----
13
13
13
query I rowsort
SELECT col2 * 8 FROM tab0 AS cor0
----
264
656
8
query I rowsort
SELECT + ( col1 ) * - col2 + ( col1 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1079
-470
-728
query I rowsort
SELECT cor0.col1 - - col2 * col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - 49 * + col0 + - col0 FROM tab2 AS cor0
----
-350
-3900
-3950
query I rowsort
SELECT ALL - 62 + + col1 * col0 FROM tab0 AS cor0
----
2002
3333
8037
onlyif mysql # use DIV operator for integer division
query I rowsort label-9431
SELECT DISTINCT + + 28 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT + + 28 / + col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 61 * col0 FROM tab2 cor0
----
-427
-4758
-4819
query I rowsort
SELECT + + 11 * col2 AS col2 FROM tab1 AS cor0
----
1056
594
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9434
SELECT - 29 + col0 * + CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9434
SELECT - 29 + col0 * + CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + cor0.col1 col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col2 + - col1 * col1 * col0 FROM tab2 AS cor0
----
-22793
-271492
-6700
query I rowsort
SELECT ALL - tab2.col1 * - col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + col1 + + 53 AS col1 FROM tab1 AS cor0
----
63
66
79
query I rowsort
SELECT - col0 * - col1 + ( 97 ) AS col2 FROM tab0 AS cor0
----
2161
3492
8196
query I rowsort
SELECT DISTINCT - - col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - col2 + col0 * 24 FROM tab0 AS cor0
----
2054
543
839
query I rowsort
SELECT DISTINCT - - col2 * col1 + + col0 FROM tab0 AS cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL + col2 * cor0.col0 + + col2 AS col1 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT + - col0 * + cor0.col1 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT - col0 * + col2 - - 44 AS col0 FROM tab0 AS cor0
----
-7254
-748
9
query I rowsort
SELECT DISTINCT + col0 * col0 + - ( 54 ) * col0 AS col0 FROM tab0 AS cor0
----
-665
-720
3115
query I rowsort
SELECT - 91 + col1 AS col0 FROM tab1 AS cor0
----
-65
-78
-81
query I rowsort
SELECT + ( 22 ) FROM tab1
----
22
22
22
query I rowsort
SELECT + - 96 + - 9 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c0af328d38b82a55707e7cbb373586e8
query I rowsort
SELECT DISTINCT - col0 * col1 * col2 + - cor0.col0 FROM tab1 cor0
----
-36544
-4215
-99920
query I rowsort
SELECT - ( col2 + col1 ) * - tab1.col1 FROM tab1
----
1417
2080
670
query I rowsort
SELECT - col0 * col2 - 26 FROM tab0 AS cor0
----
-61
-7324
-818
query I rowsort
SELECT ALL col1 - col2 * + col2 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT ALL + - col1 * + ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + col0 + - ( + 73 ) AS col2 FROM tab2
----
-66
5
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 55 col0 FROM tab2 cor0
----
114
72
86
query I rowsort
SELECT DISTINCT 14 FROM tab1, tab0 AS cor0, tab0 cor1
----
14
query I rowsort
SELECT 47 + + col1 AS col2 FROM tab2
----
106
64
78
query I rowsort
SELECT ALL 4 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT 92 * + 69 AS col1 FROM tab0 cor0
----
6348
6348
6348
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9462
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - + 41 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT + CAST ( NULL AS REAL ) - + 41 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col0 * + col2 + + col0 * - 44 AS col2 FROM tab1 cor0
----
30
4160
832
query I rowsort
SELECT ALL - cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 col1 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT DISTINCT + - 12 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
312
324
456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9467
SELECT DISTINCT CAST( + 69 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
483
5382
5451
skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT CAST ( + 69 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT + 26 * + col0 + - col1 AS col0 FROM tab2 AS cor0
----
151
1969
2037
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT DISTINCT - - 27 + - col0 AS col1 FROM tab2 AS cor0
----
-51
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 2 col2 FROM tab2 cor0
----
-2
query I rowsort
SELECT DISTINCT 93 * + col2 - + ( 77 ) FROM tab0 AS cor0
----
16
2992
7549
query I rowsort
SELECT ALL - + ( col2 ) * ( ( col2 ) + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - col1 + + col2 * 97 AS col1 FROM tab1 AS cor0
----
5212
5519
9299
query I rowsort
SELECT - - 2 + + col1 * ( + col0 ) * col2 AS col2 FROM tab1 AS cor0
----
36482
4214
99842
onlyif mysql # use DIV operator for integer division
query I rowsort label-9477
SELECT - 2 + col1 DIV tab1.col2 FROM tab1
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-9477
SELECT - 2 + col1 / tab1.col2 FROM tab1
----
-2
-2
-2
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23
query I rowsort
SELECT ALL + col1 + ( - col2 ) * col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT - col1 + ( - col0 ) AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL - cor0.col1 * 91 AS col2 FROM tab2 AS cor0
----
-1547
-2821
-5369
onlyif mysql # use DIV operator for integer division
query I rowsort label-9482
SELECT + + col0 DIV + col1 + col1 col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9482
SELECT + + col0 / + col1 + col1 col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + 23 ) col0 FROM tab0 cor0
----
23
23
23
query I rowsort
SELECT - col0 + + 87 FROM tab2 AS cor0
----
8
80
9
query I rowsort
SELECT ALL col1 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - 96 + cor0.col0 FROM tab2 AS cor0
----
-17
-18
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9487
SELECT + col1 DIV - col1 + + cor0.col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-9487
SELECT + col1 / - col1 + + cor0.col2 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT ALL 73 * - col0 FROM tab1 AS cor0
----
-219
-4672
-5840
query I rowsort
SELECT - ( - 95 ) * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
2313
3326
8537
query I rowsort
SELECT ALL ( + col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + - col2 * ( col1 ) * - cor0.col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ALL 85 * col0 + - col0 * - col0 FROM tab1 AS cor0
----
13200
264
9536
onlyif mysql # use DIV operator for integer division
query I rowsort label-9493
SELECT DISTINCT + col1 DIV - col1 + + tab0.col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT + col1 / - col1 + + tab0.col2 FROM tab0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 + col2 col2 FROM tab0
----
119
173
98
query I rowsort
SELECT col0 - 56 FROM tab1
----
-53
24
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9496
SELECT col0 * + CAST( + 98 AS SIGNED ) FROM tab2
----
686
7644
7742
skipif mysql # not compatible
query I rowsort label-9496
SELECT col0 * + CAST ( + 98 AS INTEGER ) FROM tab2
----
686
7644
7742
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * tab2.col0 col1 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT DISTINCT col0 DIV 31 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT col0 / 31 FROM tab2
----
0
2
query I rowsort
SELECT ALL + 87 FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT - 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT 46 * + 18 FROM tab2, tab0 AS cor0
----
9 values hashing to 8cd0cb28502924528a7168f879163b5a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col2 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col0 * + col2 - + 24 AS col2 FROM tab1 AS cor0
----
138
3624
7656
query I rowsort
SELECT ALL - + col1 + cor0.col0 * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
-2009
-213
-2940
query I rowsort
SELECT DISTINCT - col1 * - 77 * col2 FROM tab0 AS cor0
----
218526
574574
7469
query I rowsort
SELECT ALL + col0 * + col1 * - col0 + cor0.col2 + + 97 * col1 FROM tab0 AS cor0
----
-109415
-41161
-711902
query I rowsort
SELECT ( - col0 ) + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * + col0 * col1 FROM tab0 AS cor0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to a42c42e56e75960d97c09dd731d99c01
query I rowsort
SELECT + + 9 * col1 + cor0.col1 * col1 FROM tab0 AS cor0
----
10282
8170
9100
query I rowsort
SELECT DISTINCT - 52 * col1 + col0 FROM tab0 AS cor0
----
-4448
-4643
-5009
query I rowsort
SELECT DISTINCT + + 30 * - col0 FROM tab1 AS cor0
----
-1920
-2400
-90
query I rowsort
SELECT ALL ( col1 + + tab1.col0 ) * - col1 FROM tab1
----
-1209
-740
-754
query I rowsort
SELECT DISTINCT 68 + cor0.col2 AS col1 FROM tab0, tab1, tab1 cor0
----
122
125
164
query I rowsort
SELECT ALL + 83 + col0 + + ( 25 ) AS col1 FROM tab1 AS cor0
----
111
172
188
onlyif mysql # use DIV operator for integer division
query I rowsort label-9516
SELECT - + col0 * + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9516
SELECT - + col0 * + col0 / - col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - 65 + col2 FROM tab2 AS cor0
----
-27
-38
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-9518
SELECT + + col2 + - col1 DIV - col1 AS col2 FROM tab2 cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-9518
SELECT + + col2 + - col1 / - col1 AS col2 FROM tab2 cor0
----
27
28
39
query I rowsort
SELECT - cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9520
SELECT col1 * + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9520
SELECT col1 * + col0 / col0 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + - ( + col1 ) col1 FROM tab1
----
156
650
90
query I rowsort
SELECT DISTINCT - 15 * + tab0.col2 FROM tab0
----
-1230
-15
-495
query I rowsort
SELECT DISTINCT col0 * - tab0.col0 AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT + col0 + + col2 * + col2 FROM tab0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-9525
SELECT + - col0 DIV - 78 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9525
SELECT + - col0 / - 78 AS col1 FROM tab1 AS cor0
----
0
0
1
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to a9068b700464993db9fae6f630605fde
onlyif mysql # use DIV operator for integer division
query I rowsort label-9527
SELECT + col1 DIV 67 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9527
SELECT + col1 / 67 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9528
SELECT DISTINCT + - col1 DIV 6 AS col0 FROM tab2 AS cor0
----
-2
-5
-9
skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT + - col1 / 6 AS col0 FROM tab2 AS cor0
----
-2
-5
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9529
SELECT col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9529
SELECT col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + ( ( + col1 ) ) + + ( + cor0.col0 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col0 + - 7 + - col2 AS col0 FROM tab0 AS cor0
----
-16
0
27
query I rowsort
SELECT DISTINCT tab1.col1 * - col2 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL - + col0 * 84 AS col0 FROM tab2 AS cor0
----
-588
-6552
-6636
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9534
SELECT CAST( NULL AS SIGNED ) * ( - col2 * col2 ) - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9534
SELECT CAST ( NULL AS INTEGER ) * ( - col2 * col2 ) - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 99 + - cor0.col1 FROM tab2 AS cor0
----
40
68
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col2 FROM tab0, tab2 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - tab1.col0 * tab1.col1 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT 88 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT ALL - 23 FROM tab0
----
-23
-23
-23
query I rowsort
SELECT 13 * + col0 AS col2 FROM tab2
----
1014
1027
91
query I rowsort
SELECT ALL - 65 * + tab0.col0 AS col2 FROM tab0
----
-1560
-2275
-5785
query I rowsort
SELECT + col0 * - 37 * col1 FROM tab1
----
-23680
-2886
-38480
query I rowsort
SELECT - ( - col2 ) + + 90 FROM tab1 AS cor0
----
144
147
186
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + col1 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT 58 * - cor0.col1 + cor0.col1 FROM tab0 cor0
----
-4902
-5187
-5529
query I rowsort
SELECT 24 + - col0 FROM tab0
----
-11
-65
0
query I rowsort
SELECT 85 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9548
SELECT ALL CAST( NULL AS SIGNED ) / tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL CAST ( NULL AS INTEGER ) / tab2.col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 48 * + col0 FROM tab0
----
1152
1680
4272
query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab1, tab1 cor0
----
21
query I rowsort
SELECT ALL - - 32 AS col0 FROM tab0 AS cor0
----
32
32
32
query I rowsort
SELECT ALL - + col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + ( - 70 ) * - col0 AS col2 FROM tab2 cor0
----
490
5460
5530
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + cor0.col0 + + cor0.col0 * cor0.col1 col2 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT ALL + + 76 * cor0.col1 * + cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
22002
264582
73063
query I rowsort
SELECT DISTINCT 58 + + col2 - ( - col0 ) * col2 AS col1 FROM tab0 AS cor0
----
7438
883
94
query I rowsort
SELECT 58 * col1 FROM tab2 AS cor0
----
1798
3422
986
query I rowsort
SELECT ALL - ( col2 ) * + ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col2 col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - - ( col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - 55 AS col0 FROM tab0
----
-55
-55
-55
query I rowsort
SELECT - 58 * col2 AS col0 FROM tab0 AS cor0
----
-1914
-4756
-58
query I rowsort
SELECT DISTINCT - 57 * + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-406
-4524
-4582
query I rowsort
SELECT col0 * ( 47 * + cor0.col0 ) + col2 FROM tab2 AS cor0
----
2330
285974
293365
query I rowsort
SELECT ALL + col0 * 79 AS col1 FROM tab2 AS cor0
----
553
6162
6241
query I rowsort
SELECT DISTINCT col2 + - 72 AS col0 FROM tab2 cor0
----
-34
-45
-46
query I rowsort
SELECT ALL - - col2 * ( - col2 * cor0.col2 ) FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT DISTINCT + col0 + - 32 FROM tab2 AS cor0
----
-25
46
47
query I rowsort
SELECT col2 * + 31 + 70 FROM tab1 AS cor0
----
1744
1837
3046
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9571
SELECT - - col1 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9571
SELECT - - col1 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9572
SELECT ALL - col1 DIV + col1 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL - col1 / + col1 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab0, tab1, tab2 AS cor0
----
-2
query I rowsort
SELECT ALL ( col1 ) * + tab2.col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL - + col2 + - cor0.col1 * - 9 FROM tab1 AS cor0
----
180
21
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-9576
SELECT + col0 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9576
SELECT + col0 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT + + 98 AS col2 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT - - col1 * - ( - col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col0 * col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL + col1 + - col0 * col1 AS col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL - 37 * ( - col0 * + col0 + - 30 ) FROM tab1 AS cor0
----
1443
152662
237910
query I rowsort
SELECT - cor0.col1 + + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT + col0 * ( - col1 + col0 ) FROM tab1 AS cor0
----
-69
3456
5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9585
SELECT ALL + col2 + - col1 + + col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2944
3296
9299
skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + col2 + - col1 + + col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2944
3296
9299
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 68 col2 FROM tab0 AS cor0
----
-68
-68
-68
query I rowsort
SELECT DISTINCT - + 66 + + cor0.col0 AS col0 FROM tab2 cor0
----
-59
12
13
query I rowsort
SELECT ALL - col0 * + cor0.col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 70 col1 FROM tab1 AS cor0
----
-70
-70
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 + cor0.col2 + col0 col2 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT DISTINCT col2 * col1 - col1 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9592
SELECT col1 - - CAST( + col0 AS SIGNED ) col0 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9592
SELECT col1 - - CAST ( + col0 AS INTEGER ) col0 FROM tab0
----
110
132
180
query I rowsort
SELECT - 11 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202
query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab0
----
-87
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * - ( col1 * + CAST ( col2 AS REAL ) ) AS col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT + col2 * tab1.col1 + + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT - 66 + 87 FROM tab1
----
21
21
21
query I rowsort
SELECT DISTINCT + 21 + col2 AS col0 FROM tab2 AS cor0
----
47
48
59
query I rowsort
SELECT DISTINCT + 42 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
142
211
718
query I rowsort
SELECT ALL + + cor0.col1 + + col2 * cor0.col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + col0 * - col2 + + col1 * - col2 FROM tab2 AS cor0
----
-1026
-3562
-3648
query I rowsort
SELECT DISTINCT + col1 * + 30 AS col0 FROM tab2 AS cor0
----
1770
510
930
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
onlyif mysql # use DIV operator for integer division
query I rowsort label-9604
SELECT + 64 DIV - 97 AS col0 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9604
SELECT + 64 / - 97 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - 18 * - 95 FROM tab1 AS cor0
----
1710
1710
1710
onlyif mysql # use DIV operator for integer division
query I rowsort label-9606
SELECT DISTINCT + - col2 DIV + ( col1 ) FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT + - col2 / + ( col1 ) FROM tab1 cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9607
SELECT DISTINCT tab0.col0 * + col1 - col2 DIV - col1 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT tab0.col0 * + col1 - col2 / - col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 * - 27 + col1 FROM tab1 AS cor0
----
-260
-338
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-9609
SELECT DISTINCT col1 - + tab2.col0 DIV 70 FROM tab2
----
16
31
58
skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT col1 - + tab2.col0 / 70 FROM tab2
----
16
31
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9610
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col2 * cor0.col2 - col0 FROM tab0 cor0
----
-34
1065
6635
query I rowsort
SELECT ALL ( col1 ) + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + cor0.col1 - col0 * ( 82 * - col0 ) FROM tab1 AS cor0
----
335882
524813
764
query I rowsort
SELECT col2 * col1 + col2 FROM tab1
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 + - col1 * ( - col0 ) * - col1 col0 FROM tab0
----
-177418
-329218
-736918
query I rowsort
SELECT + col0 + - 28 FROM tab0 AS cor0
----
-4
61
7
query I rowsort
SELECT DISTINCT + col0 * ( + 16 ) FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-9619
SELECT DISTINCT + col0 DIV + 87 + col1 FROM tab0 AS cor0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT + col0 / + 87 + col1 FROM tab0 AS cor0
----
86
92
97
query I rowsort
SELECT ALL - cor0.col0 * - ( - col0 * - col2 ) AS col2 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 49 + 21 col0 FROM tab0 AS cor0
----
-1155
-1694
-4340
query I rowsort
SELECT ALL 80 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT ALL + col0 * tab0.col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col0 * + tab1.col1 * col0 AS col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT - - 52 AS col2 FROM tab0 AS cor0
----
52
52
52
query I rowsort
SELECT ( + tab2.col1 ) AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - + cor0.col1 * col2 - 90 * + 16 FROM tab0 AS cor0
----
-1537
-4278
-8902
query I rowsort
SELECT DISTINCT + 5 * col2 + - col1 + + cor0.col1 FROM tab1 cor0
----
270
285
480
query I rowsort
SELECT + - 4 AS col0 FROM tab2 AS cor0
----
-4
-4
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9630
SELECT DISTINCT - col0 DIV + ( col0 ) FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT - col0 / + ( col0 ) FROM tab0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9631
SELECT + col1 * ( - 65 * - col0 ) + - col1 DIV - 35 AS col1 FROM tab2
----
14105
299131
87295
skipif mysql # not compatible
query I rowsort label-9631
SELECT + col1 * ( - 65 * - col0 ) + - col1 / - 35 AS col1 FROM tab2
----
14105
299131
87295
onlyif mysql # use DIV operator for integer division
query I rowsort label-9632
SELECT 84 DIV + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb
skipif mysql # not compatible
query I rowsort label-9632
SELECT 84 / + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb
query I rowsort
SELECT + col0 + + 22 * - 95 * col1 AS col1 FROM tab1 AS cor0
----
-20836
-27090
-54337
query I rowsort
SELECT + col2 + 69 AS col1 FROM tab0 AS cor0
----
102
151
70
query I rowsort
SELECT ALL cor0.col2 * + 23 AS col1 FROM tab2 AS cor0
----
598
621
874
query I rowsort
SELECT - col2 * + 45 FROM tab2 AS cor0
----
-1170
-1215
-1710
query I rowsort
SELECT ALL - col2 + - col1 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ( - cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT 58 + col1 * col1 FROM tab2 cor0
----
1019
347
3539
query I rowsort
SELECT + 27 + 54 FROM tab0 AS cor0
----
81
81
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9641
SELECT DISTINCT CAST( + ( col2 ) AS SIGNED ) + + col0 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT CAST ( + ( col2 ) AS INTEGER ) + + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + + 85 AS col1 FROM tab2 AS cor0
----
85
query I rowsort
SELECT ALL + 2 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL col0 + - cor0.col2 * - col2 AS col1 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT ALL - - ( - 98 ) FROM tab2 AS cor0
----
-98
-98
-98
query I rowsort
SELECT ALL col1 * - 49 FROM tab1
----
-1274
-490
-637
query I rowsort
SELECT + 37 + col0 * col2 * col0 AS col0 FROM tab0 AS cor0
----
1262
19045
649559
query I rowsort
SELECT - 80 * + col1 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1439
-2487
-4798
query I rowsort
SELECT ( 47 ) + + col0 AS col0 FROM tab1
----
111
127
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-9650
SELECT DISTINCT col2 + - col0 + + col2 DIV + col2 col1 FROM tab0
----
-33
-6
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT col2 + - col0 + + col2 / + col2 col1 FROM tab0
----
-33
-6
10
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) + col2 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT + col0 + ( col1 ) FROM tab2
----
137
38
96
query I rowsort
SELECT - + col2 * 78 AS col1 FROM tab1 AS cor0
----
-4212
-4446
-7488
query I rowsort
SELECT ALL + cor1.col2 FROM tab1, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
onlyif mysql # use DIV operator for integer division
query I rowsort label-9655
SELECT ( col2 ) DIV - cor0.col0 col0 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9655
SELECT ( col2 ) / - cor0.col0 col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT ALL + + 94 AS col2 FROM tab1 AS cor0
----
94
94
94
query I rowsort
SELECT DISTINCT + col0 - col2 * col2 * + ( col2 ) FROM tab1 AS cor0
----
-157461
-185129
-884656
query I rowsort
SELECT - + col2 * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + ( col2 ) * 18 FROM tab2 cor0
----
468
486
684
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) + 39 + + col1 FROM tab0 cor0
----
149
171
219
query I rowsort
SELECT ( + col2 ) * + tab2.col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT ( col1 * + col1 + - col1 ) FROM tab2
----
272
3422
930
query I rowsort
SELECT - - cor0.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL col2 * + col0 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT + 9 AS col0 FROM tab0
----
9
query I rowsort
SELECT col0 + + col2 * + cor0.col1 FROM tab2 AS cor0
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 3 - col2 * - cor0.col2 col1 FROM tab0 cor0
----
1059
3
6645
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9668
SELECT + col2 + - CAST( 98 AS SIGNED ) - col1 AS col1 FROM tab2 AS cor0
----
-102
-131
-77
skipif mysql # not compatible
query I rowsort label-9668
SELECT + col2 + - CAST ( 98 AS INTEGER ) - col1 AS col1 FROM tab2 AS cor0
----
-102
-131
-77
query I rowsort
SELECT col1 * 85 - col1 FROM tab1 AS cor0
----
1092
2184
840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9670
SELECT DISTINCT col0 DIV tab2.col0 + tab2.col2 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT col0 / tab2.col0 + tab2.col2 FROM tab2
----
27
28
39
query I rowsort
SELECT - - col1 - + 16 FROM tab2 cor0
----
1
15
43
query I rowsort
SELECT ALL - 29 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e
query I rowsort
SELECT + tab0.col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT tab1.col2 * col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - - col0 * - col2 + + ( col2 ) * ( - 45 ) AS col2 FROM tab1 cor0
----
-12000
-2592
-6213
skipif mysql # not compatible
query I rowsort
SELECT + col1 * CAST ( col0 AS REAL ) + col2 / + cor0.col1 FROM tab1 AS cor0
----
1047
645
80
query I rowsort
SELECT col2 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * - CAST ( - col0 AS REAL ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT col1 + - col0 * - col2 * col0 AS col0 FROM tab2
----
1354
158243
237175
query I rowsort
SELECT ALL + 27 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT col0 * - col2 * 64 + + 59 AS col2 FROM tab0 AS cor0
----
-2181
-467013
-50629
query I rowsort
SELECT ALL - col1 * 81 AS col1 FROM tab2 AS cor0
----
-1377
-2511
-4779
onlyif mysql # use DIV operator for integer division
query I rowsort label-9684
SELECT ALL + col0 * 45 + 94 DIV - col2 FROM tab1 AS cor0
----
134
2879
3600
skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL + col0 * 45 + 94 / - col2 FROM tab1 AS cor0
----
134
2879
3600
query I rowsort
SELECT DISTINCT - cor0.col1 * - ( col1 ) + - col0 AS col0 FROM tab1 AS cor0
----
36
673
89
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 - col1 * 77 AS col2 FROM tab0 AS cor0
----
-6622
-7007
-7469
query I rowsort
SELECT - col0 * + 71 + 27 * - col0 FROM tab0 AS cor0
----
-2352
-3430
-8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-9689
SELECT DISTINCT + - col1 - + col1 DIV - col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT + - col1 - + col1 / - col1 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT DISTINCT - col2 - 18 FROM tab0 AS cor0
----
-100
-19
-51
query I rowsort
SELECT DISTINCT col0 * 98 FROM tab0 cor0
----
2352
3430
8722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 * - col0 col2 FROM tab2 AS cor0
----
1326
186
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col2 * - 28 col0 FROM tab0 AS cor0
----
-2385
-63
-948
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9694
SELECT DISTINCT + cor0.col1 + - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2
62
skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT + cor0.col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL cor0.col2 + + 31 FROM tab1 AS cor0
----
127
85
88
query I rowsort
SELECT ALL - cor0.col2 * 61 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
173032
455091
5820
query I rowsort
SELECT - + ( + col2 ) * - col0 + - 90 * - cor0.col2 * + col1 FROM tab0 AS cor0
----
256212
678878
8765
query I rowsort
SELECT + - ( + col1 ) * col0 + + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-1226
-183
-4498
onlyif mysql # use DIV operator for integer division
query I rowsort label-9699
SELECT ( - 20 ) - - col0 DIV col1 FROM tab2
----
-16
-19
-20
skipif mysql # not compatible
query I rowsort label-9699
SELECT ( - 20 ) - - col0 / col1 FROM tab2
----
-16
-19
-20
query I rowsort
SELECT ALL + - 71 FROM tab0 cor0
----
-71
-71
-71
query I rowsort
SELECT col2 - 87 AS col2 FROM tab2 cor0
----
-49
-60
-61
query I rowsort
SELECT ALL + ( 66 ) AS col0 FROM tab1 AS cor0
----
66
66
66
query I rowsort
SELECT ALL - col1 * - col1 * col0 AS col1 FROM tab2 AS cor0
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-9704
SELECT 2 DIV + col1 - - col0 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9704
SELECT 2 / + col1 - - col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col0 * - col1 + + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + col0 + col2 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
2132
223
3119
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9707
SELECT + - CAST( 67 AS SIGNED ) FROM tab1 AS cor0
----
-67
-67
-67
skipif mysql # not compatible
query I rowsort label-9707
SELECT + - CAST ( 67 AS INTEGER ) FROM tab1 AS cor0
----
-67
-67
-67
query I rowsort
SELECT - col1 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT ( - col2 ) * + col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT ALL + ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - 46 + + col2 FROM tab1 cor0
----
11
50
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9712
SELECT ( cor0.col2 ) * CAST( - col2 AS SIGNED ) * col1 + col2 FROM tab0 AS cor0
----
-611802
-93621
-96
skipif mysql # not compatible
query I rowsort label-9712
SELECT ( cor0.col2 ) * CAST ( - col2 AS INTEGER ) * col1 + col2 FROM tab0 AS cor0
----
-611802
-93621
-96
query I rowsort
SELECT ALL col1 + cor0.col1 - - col2 AS col2 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT + col2 + col2 * + 28 * - col1 FROM tab2 AS cor0
----
-18050
-23409
-42926
query I rowsort
SELECT DISTINCT + + 35 AS col1 FROM tab0 AS cor0
----
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-9716
SELECT - col1 + + col0 DIV col0 FROM tab2 cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-9716
SELECT - col1 + + col0 / col0 FROM tab2 cor0
----
-16
-30
-58
query I rowsort
SELECT - 80 * col0 FROM tab0 AS cor0
----
-1920
-2800
-7120
query I rowsort
SELECT DISTINCT 65 * - col1 FROM tab0 cor0
----
-5590
-5915
-6305
query I rowsort
SELECT + + 43 + + col0 FROM tab2 cor0
----
121
122
50
query I rowsort
SELECT DISTINCT - 62 - col0 FROM tab1
----
-126
-142
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9721
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9722
SELECT DISTINCT - col2 + col0 * 82 DIV col1 FROM tab1 cor0
----
-45
408
467
skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT - col2 + col0 * 82 / col1 FROM tab1 cor0
----
-45
408
467
query I rowsort
SELECT DISTINCT 72 + col0 * + 88 AS col0 FROM tab0 AS cor0
----
2184
3152
7904
onlyif mysql # use DIV operator for integer division
query I rowsort label-9724
SELECT DISTINCT + - col1 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT + - col1 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT + + 68 + - col2 AS col0 FROM tab1 AS cor0
----
-28
11
14
query I rowsort
SELECT + - col1 * + cor0.col0 + 45 - - col1 FROM tab1 AS cor0
----
-585
-7
-982
query I rowsort
SELECT ALL - + col0 * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab1 cor0
----
0
query I rowsort
SELECT + - col0 + col1 + col0 AS col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9730
SELECT - - ( + cor0.col1 ) + ( col0 * - col2 ) - CAST( 17 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
-1054
-4607
-9299
skipif mysql # not compatible
query I rowsort label-9730
SELECT - - ( + cor0.col1 ) + ( col0 * - col2 ) - CAST ( 17 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
-1054
-4607
-9299
query I rowsort
SELECT DISTINCT - ( col2 ) + ( cor0.col0 ) * - col1 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-9732
SELECT - col0 DIV col1 + - col1 AS col1 FROM tab1 AS cor0
----
-16
-19
-26
skipif mysql # not compatible
query I rowsort label-9732
SELECT - col0 / col1 + - col1 AS col1 FROM tab1 AS cor0
----
-16
-19
-26
query I rowsort
SELECT DISTINCT - col0 * + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - + col1 + + col2 FROM tab2 cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col0 FROM tab1 AS cor0
----
30
query I rowsort
SELECT ALL - - 62 AS col0 FROM tab1 AS cor0
----
62
62
62
query I rowsort
SELECT ALL - - col0 + col2 * - ( + col0 * col2 ) FROM tab2 AS cor0
----
-113997
-5096
-52650
query I rowsort
SELECT + + col1 * + cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL + col2 - + col2 * - col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT DISTINCT col1 + + col1 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL + col1 + - col1 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - - 38 FROM tab1 cor0
----
38
38
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + - col2 col0 FROM tab2 AS cor0
----
-1482
-702
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-9744
SELECT + + col1 + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-9744
SELECT + + col1 + col2 / col0 AS col1 FROM tab1 AS cor0
----
10
14
44
query I rowsort
SELECT - col0 + + col1 + + col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - 47 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
query I rowsort
SELECT DISTINCT - 22 + - col1 * col1 FROM tab0
----
-7418
-8303
-9431
query I rowsort
SELECT ALL + 55 * 37 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
2042
2113
2114
query I rowsort
SELECT DISTINCT - col2 * + col2 + + cor0.col0 * 37 * + col1 FROM tab0 cor0
----
125614
292939
75279
query I rowsort
SELECT DISTINCT + 66 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
66
query I rowsort
SELECT + ( - tab1.col1 + + col0 ) AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL 71 FROM tab2, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT 65 * - col0 - + col1 FROM tab2
----
-486
-5129
-5152
query I rowsort
SELECT DISTINCT + + ( - 93 ) AS col0 FROM tab0 cor0
----
-93
query I rowsort
SELECT + + cor0.col2 * + col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL - cor2.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT DISTINCT - + 77 FROM tab0 AS cor0
----
-77
query I rowsort
SELECT - - col2 * 51 + col1 FROM tab2 AS cor0
----
1385
1408
1955
query I rowsort
SELECT col2 * 56 AS col2 FROM tab2 AS cor0
----
1456
1512
2128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 + + cor0.col0 * + col0 col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-9761
SELECT + cor0.col0 DIV col2 col1 FROM tab1 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9761
SELECT + cor0.col0 / col2 col1 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT + + cor0.col2 + col2 + + col1 AS col1 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT + 27 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT ALL - col0 * + 77 FROM tab2
----
-539
-6006
-6083
query I rowsort
SELECT ALL cor0.col2 * 0 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - tab0.col0 * - tab0.col2 FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9767
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab2, tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col0 - col2 * 14 * col0 FROM tab1 AS cor0
----
-107440
-2265
-51008
query I rowsort
SELECT - col1 * col1 + - col2 * cor0.col0 FROM tab2 AS cor0
----
-1150
-3291
-5509
query I rowsort
SELECT ALL tab1.col2 + + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT 75 * + tab2.col2 AS col1 FROM tab2
----
1950
2025
2850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * col1 col0 FROM tab1
----
13520
2028
6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9773
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9773
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9774
SELECT col1 * - col1 * CAST( - 91 AS SIGNED ) FROM tab2
----
26299
316771
87451
skipif mysql # not compatible
query I rowsort label-9774
SELECT col1 * - col1 * CAST ( - 91 AS INTEGER ) FROM tab2
----
26299
316771
87451
query I rowsort
SELECT - 43 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
-1333
-3435
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-9776
SELECT ALL - + ( cor0.col0 ) DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL - + ( cor0.col0 ) / + col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + cor0.col2 * 22 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5882b1cc77f7fddcb836ab4ba56964df
query I rowsort
SELECT ALL + cor0.col1 + 76 FROM tab0, tab0 AS cor0
----
9 values hashing to 7e4a32c05e5f2160573496438bab669e
query I rowsort
SELECT 75 + + col0 AS col1 FROM tab0 AS cor0
----
110
164
99
query I rowsort
SELECT col2 * 98 + - cor0.col0 FROM tab1 AS cor0
----
5289
5522
9328
query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab0, tab2 AS cor0
----
35
query I rowsort
SELECT + col0 - + col0 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9783
SELECT col0 + + col1 DIV + col1 col1 FROM tab2
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9783
SELECT col0 + + col1 / + col1 col1 FROM tab2
----
79
8
80
query I rowsort
SELECT - col0 + ( - col2 ) * tab1.col1 AS col1 FROM tab1
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-9785
SELECT ALL + col2 + - col1 DIV 91 AS col0 FROM tab0
----
0
33
81
skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL + col2 + - col1 / 91 AS col0 FROM tab0
----
0
33
81
query I rowsort
SELECT DISTINCT col2 + + ( tab0.col1 ) FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - + col1 + 40 AS col1 FROM tab1 AS cor0
----
14
27
30
query I rowsort
SELECT ALL - cor0.col2 - col0 * - col1 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT - - col1 * col0 + col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-9790
SELECT col1 + CAST( col1 AS SIGNED ) DIV + col2 col1 FROM tab0 AS cor0
----
194
88
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9790
SELECT col1 + CAST ( col1 AS INTEGER ) / + col2 col1 FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT DISTINCT col1 * 25 + col0 * col0 AS col2 FROM tab1 AS cor0
----
4346
659
6725
query I rowsort
SELECT - col1 + cor0.col1 * + col1 AS col0 FROM tab1 AS cor0
----
156
650
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9793
SELECT ALL col2 * col2 DIV col0 AS col2 FROM tab0
----
0
45
75
skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL col2 * col2 / col0 AS col2 FROM tab0
----
0
45
75
query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) AS col1 FROM tab1, tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + ( ( col0 ) ) * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + cor0.col0 * - 13 FROM tab2 AS cor0
----
-1014
-1027
-91
query I rowsort
SELECT + + col2 - - col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9798
SELECT DISTINCT + - col0 * col0 + CAST( NULL AS SIGNED ) + col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT + - col0 * col0 + CAST ( NULL AS INTEGER ) + col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT cor0.col1 + + col1 FROM tab1 cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col0 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col2 FROM tab0
----
40
40
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-9802
SELECT 61 DIV - col0 FROM tab1
----
-20
0
0
skipif mysql # not compatible
query I rowsort label-9802
SELECT 61 / - col0 FROM tab1
----
-20
0
0
query I rowsort
SELECT - col2 - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - ( - col2 ) + 61 FROM tab2 AS cor0
----
87
88
99
query I rowsort
SELECT ALL + col1 - - col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + col2 + - 31 FROM tab1
----
23
26
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-9807
SELECT 26 DIV col1 AS col2 FROM tab1
----
1
2
2
skipif mysql # not compatible
query I rowsort label-9807
SELECT 26 / col1 AS col2 FROM tab1
----
1
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9808
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 59 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 59 FROM tab0 AS cor0
----
NULL
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9810
SELECT + CAST( NULL AS SIGNED ) / - col0 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9810
SELECT + CAST ( NULL AS INTEGER ) / - col0 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9811
SELECT - col1 DIV + 43 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9811
SELECT - col1 / + 43 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + ( 29 ) * - cor0.col0 FROM tab0 AS cor0
----
-1015
-2581
-696
query I rowsort
SELECT 71 * + col2 + col2 * - ( col1 ) FROM tab0 AS cor0
----
-1640
-26
-495
query I rowsort
SELECT DISTINCT 52 + col1 FROM tab0 AS cor0
----
138
143
149
query I rowsort
SELECT DISTINCT col2 + - col0 - + 40 * col0 FROM tab1
----
-2567
-3184
-69
query I rowsort
SELECT - col0 + - 86 - col0 FROM tab0 AS cor0
----
-134
-156
-264
query I rowsort
SELECT + 75 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to 3384246e49f3e69ba32c165b88111fee
query I rowsort
SELECT col2 + 69 AS col2 FROM tab0
----
102
151
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 * - tab2.col0 ) + ( - tab2.col0 ) col1 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT - 34 * + col1 + - col2 FROM tab2
----
-1081
-2032
-616
query I rowsort
SELECT 71 + col2 * col2 AS col0 FROM tab0
----
1160
6795
72
query I rowsort
SELECT DISTINCT + ( - 66 ) + col0 * - 78 * - ( col0 ) + - 96 AS col1 FROM tab0
----
44766
617676
95388
query I rowsort
SELECT - 62 + - col2 FROM tab0
----
-144
-63
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9824
SELECT col2 * 67 DIV + col2 - + col0 * - col2 col1 FROM tab0
----
102
7365
859
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9824
SELECT col2 * 67 / + col2 - + col0 * - col2 col1 FROM tab0
----
102
7365
859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 40 col1 FROM tab0
----
-42
39
7
query I rowsort
SELECT ALL col2 + col2 * + tab1.col2 + col2 AS col1 FROM tab1
----
3024
3363
9408
query I rowsort
SELECT + col2 * col0 + + col0 * 95 FROM tab2 cor0
----
10507
854
9438
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT cor0.col2 + col1 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col0 * 54 - - col1 AS col2 FROM tab1 AS cor0
----
-136
-3446
-4307
onlyif mysql # use DIV operator for integer division
query I rowsort label-9831
SELECT + col1 * ( 15 ) + col2 DIV ( ( + col2 ) ) FROM tab1 AS cor0
----
151
196
391
skipif mysql # not compatible
query I rowsort label-9831
SELECT + col1 * ( 15 ) + col2 / ( ( + col2 ) ) FROM tab1 AS cor0
----
151
196
391
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9832
SELECT col0 * + CAST( col2 AS SIGNED ) + + col1 * CAST( NULL AS SIGNED ) + 53 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9832
SELECT col0 * + CAST ( col2 AS INTEGER ) + + col1 * CAST ( NULL AS INTEGER ) + 53 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 - + 69 * 34 AS col1 FROM tab1
----
-2250
-2289
-2292
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9834
SELECT ALL + - col2 * CAST( col2 AS SIGNED ) * col0 + col1 FROM tab1 AS cor0
----
-207926
-737267
-8722
skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL + - col2 * CAST ( col2 AS INTEGER ) * col0 + col1 FROM tab1 AS cor0
----
-207926
-737267
-8722
query I rowsort
SELECT DISTINCT + cor0.col2 * 37 AS col0 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT ALL col2 + + 98 * + 10 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
1014
1084
1097
query I rowsort
SELECT DISTINCT - cor0.col1 * + 43 FROM tab1 AS cor0
----
-1118
-430
-559
query I rowsort
SELECT DISTINCT col2 * 94 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
5073
5294
8944
onlyif mysql # use DIV operator for integer division
query I rowsort label-9839
SELECT ALL + col1 DIV + 32 + cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + col1 / + 32 + cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - col1 * col1 + col0 + col1 AS col2 FROM tab1 AS cor0
----
-26
-647
-76
query I rowsort
SELECT - + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - col0 + - ( + col0 ) * + col1 FROM tab0
----
-2088
-3430
-8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 - 43 col1 FROM tab2, tab2 AS cor0
----
39
query I rowsort
SELECT DISTINCT + col0 * + 99 + col2 AS col1 FROM tab1 AS cor0
----
351
6393
8016
query I rowsort
SELECT col1 - - ( + col0 ) * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + ( ( - cor0.col0 ) ) + + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL 59 * 74 AS col2 FROM tab2 AS cor0
----
4366
4366
4366
onlyif mysql # use DIV operator for integer division
query I rowsort label-9849
SELECT - ( cor0.col0 ) - + col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-9849
SELECT - ( cor0.col0 ) - + col2 / - cor0.col0 FROM tab2 AS cor0
----
-4
-78
-79
query I rowsort
SELECT DISTINCT - cor0.col2 - col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-9851
SELECT ALL + + 27 + + col0 DIV + col0 FROM tab2 AS cor0
----
28
28
28
skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL + + 27 + + col0 / + col0 FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT 11 - cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 360874c6ca8f262db38e77231be74bdd
query I rowsort
SELECT - col2 + + cor0.col1 AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT col0 - + col2 * - col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col1 * col1 + + col1 * - 74 FROM tab1 AS cor0
----
-1248
-640
-793
query I rowsort
SELECT DISTINCT + + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + - 12 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-1032
-1092
-1164
query I rowsort
SELECT - 0 * col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + - col1 * 16 FROM tab1 cor0
----
-224
-288
-419
query I rowsort
SELECT + 55 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 * col1 col2 FROM tab2 AS cor0
----
1302
2478
714
query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + 27 * - col1 AS col1 FROM tab1 AS cor0
----
-270
-351
-702
query I rowsort
SELECT DISTINCT - 25 * col0 AS col1 FROM tab2 AS cor0
----
-175
-1950
-1975
query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab0 AS cor0
----
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9866
SELECT + ( - col1 ) DIV col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9866
SELECT + ( - col1 ) / col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + + col2 * cor0.col2 + col0 * + 21 AS col1 FROM tab2 cor0
----
2314
3103
876
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 * col0 col1 FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT DISTINCT - 22 * + col1 FROM tab0 AS cor0
----
-1892
-2002
-2134
query I rowsort
SELECT DISTINCT col1 * col0 + col0 * - col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - - col1 * - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col2 + - 33 FROM tab1 AS cor0
----
-129
-87
-90
query I rowsort
SELECT + 66 * 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 197090422f4f7e9b4d11dbf5ff4d16c5
query I rowsort
SELECT ALL - - col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + - col1 * + col0 + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-101
-586
-973
query I rowsort
SELECT - col1 + col2 - col2 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - col0 + - cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT - col2 + - col0 + col0 FROM tab1 AS cor0 WHERE ( col2 + + col0 ) <> col2 OR NOT ( NULL ) < NULL
----
-54
-57
-96
query I rowsort
SELECT col1 * cor0.col0 + - col1 * col2 AS col0 FROM tab2 cor0
----
-620
3068
697
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * col1 >= NULL
----
query I rowsort
SELECT col1 * - col1 + col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL 0 AS col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9883
SELECT col1 DIV + col1 AS col1 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9883
SELECT col1 / + col1 AS col1 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT ALL + col2 + col2 * - col0 AS col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT + tab2.col2 + col0 + - col0 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT col2 * - col0 + col1 * col2 * - col2 AS col1 FROM tab1
----
-127488
-36138
-75978
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col0 + col1 * - col0 + + col0 ) AND NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + + col0 + - col1 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
-2073
-3361
-8092
query I rowsort
SELECT col2 * col0 * col0 AS col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT DISTINCT - col2 + + col0 + + col0 FROM tab2
----
-13
120
130
onlyif mysql # use DIV operator for integer division
query I rowsort label-9891
SELECT DISTINCT + col1 DIV - col2 + col1 FROM tab0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT + col1 / - col2 + col1 FROM tab0
----
0
84
90
query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9893
SELECT + col1 * + col1 DIV - col1 AS col0 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9893
SELECT + col1 * + col1 / - col1 AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - col0 * - col0 + + col2 - col2 * - col0 FROM tab0 WHERE + col1 BETWEEN col0 AND NULL AND NOT col0 * + col0 BETWEEN + col1 * - col2 AND col2 - tab0.col0
----
query I rowsort
SELECT DISTINCT + - col2 + + col1 AS col0 FROM tab2 cor0
----
-21
33
4
query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( col1 + - tab1.col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 + cor0.col0 col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT col0 * - tab2.col0 + + col1 FROM tab2 WHERE ( - col2 ) > col0 * col1
----
query III rowsort
SELECT * FROM tab1 WHERE + col1 <> col1 + + col0 * col0 + + col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT 42 - tab0.col1 * ( - col0 ) AS col0 FROM tab0
----
2106
3437
8141
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9901
SELECT col2 + + col2 * CAST( 67 AS SIGNED ) AS col2 FROM tab1
----
3672
3876
6528
skipif mysql # not compatible
query I rowsort label-9901
SELECT col2 + + col2 * CAST ( 67 AS INTEGER ) AS col2 FROM tab1
----
3672
3876
6528
onlyif mysql # use DIV operator for integer division
query I rowsort label-9902
SELECT + 10 DIV - col2 + col1 DIV ( + tab1.col2 ) + col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9902
SELECT + 10 / - col2 + col1 / ( + tab1.col2 ) + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ( col2 ) * + ( tab1.col0 ) AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL 10 * col2 - + col1 FROM tab2
----
201
239
363
query I rowsort
SELECT - col2 * col2 + - col1 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT - - 59 + + col1 FROM tab2 AS cor0
----
118
76
90
query I rowsort
SELECT DISTINCT - tab0.col1 + - col1 - col1 AS col1 FROM tab0
----
-258
-273
-291
query I rowsort
SELECT + col0 + - col0 * col1 AS col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT ALL - col2 * - col2 + + col2 * col0 FROM tab2
----
2704
4446
918
query I rowsort
SELECT + col0 / col0 + - col1 AS col1 FROM tab1 WHERE ( col2 ) BETWEEN ( - col2 ) AND ( - col0 )
----
query I rowsort
SELECT DISTINCT tab2.col0 + + col0 * + col0 AS col0 FROM tab2
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-9912
SELECT DISTINCT + col1 + - col0 DIV + col0 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT + col1 + - col0 / + col0 FROM tab1
----
12
25
9
query I rowsort
SELECT DISTINCT - col2 * tab2.col1 + col0 AS col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT ALL - col0 * - tab2.col0 + + col2 * col1 FROM tab2
----
6887
7618
886
query I rowsort
SELECT + col0 + + col2 + col2 FROM tab2
----
130
155
61
query I rowsort
SELECT DISTINCT tab1.col2 + col1 AS col1 FROM tab1
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9917
SELECT + tab0.col0 DIV tab0.col0 + + col1 * - col1 - col1 * + tab0.col1 * + col0 FROM tab0
----
-184899
-338723
-745289
skipif mysql # not compatible
query I rowsort label-9917
SELECT + tab0.col0 / tab0.col0 + + col1 * - col1 - col1 * + tab0.col1 * + col0 FROM tab0
----
-184899
-338723
-745289
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NULL > NULL
----
query I rowsort
SELECT ALL col1 + + col1 * col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT col0 + - col1 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT tab2.col1 * - col1 * col0 + + col0 + + col1 FROM tab2
----
-22735
-271381
-6689
query I rowsort
SELECT col0 / + col0 AS col1 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND NULL
----
query I rowsort
SELECT ALL col0 + + col0 * tab2.col2 AS col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT + col2 + - col2 * col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT ALL + col2 * - col1 * - col0 + - col2 * + col0 * + col1 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - tab0.col2 + col2 * col0 AS col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT DISTINCT - 85 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
-2184
-2268
-3192
query I rowsort
SELECT cor0.col1 + + col0 * + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + col1 + col1 * ( cor0.col1 ) FROM tab2 AS cor0
----
306
3540
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * + col0 col1 FROM tab1 AS cor0
----
1120
42
896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab0.col1 * - col2 col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT col1 + + col1 + + col0 FROM tab1
----
106
55
84
query I rowsort
SELECT col0 * - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT + 13 * col2 AS col1 FROM tab0 cor0
----
1066
13
429
query I rowsort
SELECT + - 24 * + cor0.col2 * 84 AS col0 FROM tab1 AS cor0
----
-108864
-114912
-193536
query I rowsort
SELECT ALL - col2 + - 46 FROM tab0 AS cor0
----
-128
-47
-79
skipif mysql # not compatible
query I rowsort
SELECT - col1 * CAST ( - 2 AS REAL ) + + cor0.col2 + - col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col2 + col0 - col0 AS col2 FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9939
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9940
SELECT - col0 DIV ( 66 ) + col2 FROM tab0 AS cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-9940
SELECT - col0 / ( 66 ) + col2 FROM tab0 AS cor0
----
1
33
81
query I rowsort
SELECT ALL - col2 + 12 FROM tab2 AS cor0
----
-14
-15
-26
query I rowsort
SELECT + col0 + + col1 + col0 * col0 FROM tab1 AS cor0
----
38
4170
6493
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9943
SELECT ALL - cor0.col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL - cor0.col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9944
SELECT DISTINCT col0 + tab0.col1 * col2 DIV col1 - - col1 DIV col1 FROM tab0
----
172
37
58
skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT col0 + tab0.col1 * col2 / col1 - - col1 / col1 FROM tab0
----
172
37
58
query I rowsort
SELECT + ( col0 ) + + col0 + ( - col1 + col0 ) FROM tab2
----
-10
175
220
query I rowsort
SELECT DISTINCT - col1 - + col0 * tab0.col1 AS col0 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT + ( - col1 ) + col2 + - tab1.col1 FROM tab1
----
2
37
70
query I rowsort
SELECT DISTINCT + tab0.col2 * col1 * - col2 + 79 AS col0 FROM tab0
----
-18
-611805
-93575
query I rowsort
SELECT - col0 + col2 + 5 AS col1 FROM tab1
----
-2
21
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-9950
SELECT ALL - col1 DIV col0 - + col1 * col1 FROM tab1
----
-100
-169
-684
skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL - col1 / col0 - + col1 * col1 FROM tab1
----
-100
-169
-684
query I rowsort
SELECT ALL col0 * + 34 + + col1 FROM tab2 AS cor0
----
269
2703
2711
query I rowsort
SELECT DISTINCT 42 * + col0 + col0 + ( col1 ) AS col0 FROM tab0 AS cor0
----
1118
1602
3918
onlyif mysql # use DIV operator for integer division
query I rowsort label-9953
SELECT DISTINCT col2 DIV - col1 - + col2 DIV ( col0 + col0 ) AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT col2 / - col1 - + col2 / ( col0 + col0 ) AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-9955
SELECT ALL col2 + - col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL col2 + - col2 / cor0.col2 AS col1 FROM tab0 AS cor0
----
0
32
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9956
SELECT DISTINCT - col1 * + ( col2 ) * + CAST( + 46 * - col1 + cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
11159016
30571814
429419
skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT - col1 * + ( col2 ) * + CAST ( + 46 * - col1 + cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
11159016
30571814
429419
query I rowsort
SELECT DISTINCT col2 + tab0.col1 * col2 AS col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - col1 + 88 FROM tab0
----
-3
-9
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9959
SELECT ALL - col0 + CAST( col2 + col2 AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL - col0 + CAST ( col2 + col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + col1 + + col0 * tab1.col0 AS col0 FROM tab1
----
4196
6569
685
query I rowsort
SELECT DISTINCT col1 * - 43 FROM tab1
----
-1118
-430
-559
query I rowsort
SELECT DISTINCT tab2.col0 * 26 AS col1 FROM tab2
----
182
2028
2054
query I rowsort
SELECT - ( 88 ) - + col2 * col0 * + ( - tab2.col1 * + col2 ) AS col0 FROM tab2
----
158105
1939204
3110864
query I rowsort
SELECT - - col0 * + 20 FROM tab0 AS cor0
----
1780
480
700
query I rowsort
SELECT + ( 61 ) * + col2 FROM tab2 cor0
----
1586
1647
2318
query I rowsort
SELECT DISTINCT - ( col2 ) + + col0 * col2 FROM tab2 cor0
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-9967
SELECT ( cor0.col1 ) DIV col1 col0 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9967
SELECT ( cor0.col1 ) / col1 col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + 71 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( cor0.col0 ) + + col0 col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL ( 35 + - col1 ) AS col2 FROM tab0
----
-51
-56
-62
query I rowsort
SELECT DISTINCT col1 + + col1 * col2 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT ( col0 ) * - col1 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9974
SELECT 23 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9974
SELECT 23 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 87 * col0 * col2 FROM tab2 AS cor0
----
16443
176436
261174
onlyif mysql # use DIV operator for integer division
query I rowsort label-9976
SELECT DISTINCT - col2 + col2 DIV cor0.col0 FROM tab0 cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT - col2 + col2 / cor0.col0 FROM tab0 cor0
----
-1
-32
-82
query I rowsort
SELECT - + ( col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL 27 + + col1 * + col1 FROM tab1 AS cor0
----
127
196
703
query I rowsort
SELECT DISTINCT 37 * + col0 FROM tab0 cor0
----
1295
3293
888
query I rowsort
SELECT ALL col2 + 50 * - col0 FROM tab0
----
-1167
-1749
-4368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + col1 col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT + col0 + col0 * ( col2 ) * col2 AS col2 FROM tab0
----
26160
598525
70
query I rowsort
SELECT ALL col0 + 29 AS col0 FROM tab1
----
109
32
93
query I rowsort
SELECT + ( - tab2.col0 ) FROM tab2, tab1 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + + col2 + col1 col1 FROM tab2 AS cor0
----
-5999
-6186
9
query I rowsort
SELECT ALL - + col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col2 * - ( - col2 ) + + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT - col0 * 63 - 46 FROM tab0 AS cor0
----
-1558
-2251
-5653
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9989
SELECT DISTINCT + col1 * CAST( - 31 AS SIGNED ) FROM tab2 AS cor0
----
-1829
-527
-961
skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT + col1 * CAST ( - 31 AS INTEGER ) FROM tab2 AS cor0
----
-1829
-527
-961
query I rowsort
SELECT - - col2 + - col2 * - col0 + col2 * col1 FROM tab2 AS cor0
----
1053
3588
3686
onlyif mysql # use DIV operator for integer division
query I rowsort label-9991
SELECT DISTINCT + - col0 DIV 31 + 51 col0 FROM tab2 AS cor0
----
49
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT + - col0 / 31 + 51 col0 FROM tab2 AS cor0
----
49
51
query I rowsort
SELECT ALL - tab0.col0 * + col2 + - col0 FROM tab0
----
-70
-7387
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9993
SELECT ALL - col2 - - CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642
skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - col2 - - CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT ALL col0 + col1 * col2 * + col1 + - col0 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT cor0.col1 * - ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - - col1 + + ( col1 ) + - col1 AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9997
SELECT ALL - CAST( col1 AS SIGNED ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - CAST ( col1 AS INTEGER ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL ( col0 ) + - col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - col0 + - 28 AS col2 FROM tab1 AS cor0
----
-108
-31
-92