When querying on gifts with a specific Package, use the field Packages > Package ID.

See What is the difference between the Appeals, Packages and Packages fields in query for additional information.