refactoring: creating a scoped query for extracting the cards where a given user spent effort