Implements relational query on hives out
Implements relational message query