fixed a bug in iterating over SPARQL results, now SPARQL results do not directly iterate over the result set, instead return a list (to avoid having several result sets open at the same time)