On 07/10/2021 12:30, Élie Roux wrote:
if you take this expression
WHERE
{
{
bdr:MW23703_1183 ?instp ?insto . # 200ms alone
} union {
bdr:MW23703_1183 :hasTitle ?t . ?t ?tp ?to . #245ms alone
} union {
bdr:MW23703_1183 :partOf+ ?ancestor . ?ancestor :hasPart
?ancestorPart . # 200ms alone
}
}
separate it into three distinct queries and aggregate the results with
respective (count(*) as ?count) select bindings, what numbers result?
first bgp: 16
second: 26
third: 2636 (same with count unique)
The patterns are not connected.
Ovaerll, it whether the WHERE answer is 16*26*2636 rows (all one BGP) or
16+26+2636 rows (union).
Andy
Best,