renamed filtering query function, cleaned up comment example