Include the view and context json in shared query template