small changes to queries, and updated sparql interface