I\'m trying to generate a filter for SQL alchemy DB. I\'m able to run the query correctly and get the desired result however I need to get the requests correctly and format it a