attempt to handle complex queries