Add nix query helper function: nq