Did you know? CQL makes dealing with SQL easierSearch Documentation:
SWI-Prolog owl logoPredicate all_distinct/1