updated queries to also look into recently ended terms