add query dependency