Fork of https://github.com/oxigraph/oxigraph.git for the purpose of NextGraph project
 
 
 
 
 
 
oxigraph/testsuite/oxigraph-tests/sparql/lateral/subselect_inside_optional.rq

6 lines
152 B

PREFIX ex: <http://example.org/>
SELECT ?s ?o WHERE {
?s a ex:T.
OPTIONAL { LATERAL {SELECT ?s ?o WHERE { ?s ex:p ?o } ORDER BY ?o LIMIT 2} }
}