Optimized dbpedia query