adds new functionality to telein query
adds test for new functionality