I'm querying the query store DMVs directly but the object_id in the query_store_query DMV is returning a value that can't be found. It isn't 0 so why does it return a value that doesn't seem to exist? Could this be due to the fact some queries are coming from Entity Framework and is creating temporary objects? Clutching at straws here. Any help is appreciated.