Similar Items: Executable First-Order Queries in the Logic of Information Flows