found way to use prolog queries in file