I am trying to run the join query with a filter using SQLAlchemy but the condition for the joined table is not working and I am getting all the records for joined table.