insert data {
GRAPH <http://jakub/graph> {
<http://id/1> <http://example.com/ont#label> "1" .
<http://id/1> <http://example.com/ont#label> "x" .
<http://id/2> <http://example.com/ont#label> "2" .
}
}
Select only one random solution if there are more matches:
select ?s sample(?o)
from <http://jakub/graph>
where {
?s ?p ?o.
}