Selected query: check if solutionis a resource