[lite] handle single and multi query