What you're querying there is not a history of queries executed, it's the plan cache which contains some info on execution history. Plans that aren't cached don't appear in there, it's cleared any time SQL restarts or the database restarts, plans can be removed or replaced for a variety of reasons.
If you need a history of queries executed, set up an extended events or SQL Trace session (warning, it'll be huge volumes of data)
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass