On server side, return starting and ending objects together, so we can demultiplex outputs of a query on multiple input objects