The query takes 00:00:00.078 seconds to run.
Both #LOV and #NOV only return the # of appointments for a given patient, so they could contain a hundred records each, but generally it would be far less than that.
There are 1,902,333 records in the appointments table, and it grows by about 600...