Did you know ... Search Documentation:
SWI-Prolog owl logoINNER JOIN in an aggregation sub-query