Overview The filter clause in Heap allows you to limit the results of your query to a specific subset based…