Added method split query in QueryTemplate