“…In the case of logic programming with sets, an input may be a set whose elements may be sets too and so on. Various models and languages for dealing with complex values in databases have been proposed, for example, Abiteboul and Kanellakis [1989], Abiteboul and Grumbach [1988], Kifer and Wu [1993], Kifer et al [1995], Abiteboul and Beeri [1995], Buneman et al [1995], Suciu [1997], Greco et al [1995], Libkin et al [1996], and Abiteboul et al [1995]. The functional approach to such languages dominates the logic programming one.…”