Wired Query implementation