mediq query updated final