add query.chain method