add split qid query function