Text this: Multiset semantics in SPARQL, Relational Algebra and Datalog