Question :
Suppose a Prolog database exists that gives information about the parts in an automobile engine. Predicates of big, small, and part-of are included.
a. Write a query to find all small items that are part of other items.
b. Write a query to find all big items that have small subitems.
c. Formulate a recursive rule to define component-of.