Did you know ... Search Documentation:
Average of solutions - calling a Prolog goal (version 2)