/sbin/ifquery is in ifupdown 0.7.47.2ubuntu4.
This file is owned by root:root, with mode 0o777.
It is a symlink to /sbin/ifup
/sbin/ifup