metric query wip