(select (order (bgp (triple ?:s ?:o)) ((str ?:o))) (?:s))