Inquiries engine for Refinery CMS (extracted from the core)