goals.add(query);
Set<Substitution> answers = new HashSet<Substitution>();
Set<GdlSentence> alreadyAsking = new HashSet<GdlSentence>();
ask(goals, new KnowledgeBase(context), new Substitution(), ProverCache.createSingleThreadedCache(),
new VariableRenamer(), askOne, answers, alreadyAsking);
Set<GdlSentence> results = new HashSet<GdlSentence>();
for (Substitution theta : answers)
{
results.add(Substituter.substitute(query, theta));