Forgive my example if it does not make sense. I\'m going to try with a simplified one to encourage more participation.
Consider a table like the following:
You could use something like that:
select * from foo where dt between now()- interval '7 months' and now()+ interval '3 months'
This and this may help you.