Hi,
Tile Packages (TPK) do not support queries. It is a file which contains bundles of pre-rendered map image tiles, essentially disconnected from the source data.
Instead you should consider using the QueryTask in conjunction with a LocalMapService started from a Map Package (MPK).
Cheers
Mike