SWI-Prolog Did You Know Did you know? CQL makes dealing with SQL easier Search Documentation:
Predicate list_to_set/2