sparql query reordering for performance