Say I have this knowledge base:
step('pancakes', 1, 'mix butter and sugar in a bowl', [butter, sugar], [bowl]).
step('pancakes', 2, 'add eggs', [eggs], []).
step('pancakes', 3, 'mix flour and baking powder', [flour, baking powder], []).
How do I make a predicate that retrieves all the ingredients for all the steps of the recipe?
So if I would make a rule retrieveIngredients(X,Y).
and ask retrieveIngredients('pancakes',Y).
, how would I be able to make it retrieve Y = ['butter','eggs','flour', 'baking powder'].
?