Dynamic query interpretation in relational databases