Adds variable wity_query in template