/usr/bin/hp-query is in hplip 3.12.6-3.1+deb7u1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/bin/../share/hplip/query.py
/usr/bin/../share/hplip/query.py