I am trying to define a predicate looks like "run(ABC, DE)" where ABC is the functor of one of the predicates and DE is its component.
run(ABC, DE) :- ....................
ab(ff).
cc(dd).
ee(ll).
Basically, I am trying to choose ABC as a functor that I want to choose in the database and get the value of DE as its component. For example,
?- run(ab, DE).
DE = ff.
Help plz