Use gid= e.g :
I read that #gid and od6 are not connected, and the only way to get the od6 that links to the #gid, is to loop through all the #gid values to find the matching sheet.
I suspect there is no way to add "gid" into the query string, as there is no way to merge data from more than one source with the query, or none that I have seen.