First version for prototype for batch query.