Please refer to Factforge Endpoint to execute this query. The subquery doesn't return any results. ?myVar
will be projected out to the containing query, and then joined with the triple pattern ?myVar ?p ?o.
. But as there are no results from the inner select, the join should result in nothing. However, this is not the case when executing the query. Isn't this a bug?
SELECT
?myVar ?p ?o
WHERE
{
{
SELECT ?myVar
WHERE {
?myVar <http://www.example.com/arbitraryNonExistent> ?xx.
}
GROUP BY ?myVar
}
?myVar ?p ?o.
}
LIMIT 10