I haven't committed a batch yet; is there any way to query that information before I have done that? Can I include gifts from batches that haven't been committed in my query? My query is missing information from a batch that hasn't been committed yet.
Queries work by searching information that is in your database. While the information in a batch is saved in that batch, it is not actually in your database and cannot be queried.