Adapt convictionsPerCategory query to new model