sparql queries used for detection