Try this query with and without the limit clause at the end on Wikidata endpoint.
With LIMIT clause here, and without LIMIT clause here here.
Now see the difference... I think that the reason for this is the ?duration
variable in the projection of the first subquery, which indeed has no bindings and not in the domain of the solution mapping. Now I think here there is definitely a bug in Blazergraph. But the question anyways is: if we project on a variable that doesn't exist in the domain of the solution, and then use the variable for joining (as with ?duration
in the example), what should the behaviour be? Ignore the variable or treat it as unbound variable?
SELECT ?film ?duration
WHERE
{
{
select ?film ?duration
where
{?film <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424>.}
}
{
select ?film ?duration
where
{?film <http://www.wikidata.org/prop/direct/P2047> ?duration .}
}
}
#limit 1000