let's say that I have some clauses, two of which are the following:
has_basket('Sarah', 'bigBasket','apple','grape').
has_basket('Sarah', 'bigBasket','orange','berry').
How can I write a rule named
all_baskets(S,L).
which will give me the list of all the baskets that person S has in the following form? for example
all_baskets('Sarah',L).
will give us:
L=[['bigBasket','apple','grape], ['bigBasket','orange','berry']]