Did you know? SWI-Prolog has extensive GIS SupportSearch Documentation:
Carnival in the NetherlandsPredicate select/3