(select (leftjoin (bgp (triple ?:p ?:o)) (bgp (triple ?:o ?:v))) (?:v))