index querying returns a set of matching triples