Similar Items: Strongly-Normalizing Higher-Order Relational Queries