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