Add fact querying to session