Custom fact query