(select (order (bgp (triple ?:s ?::o1) (triple ?:s ?::o2)) ((+ ?::o1 ?::o2))) (?:s))