Filter by boolean and data
https://stackoverflow.com/q/55754978