Query of % correct based on arel conditional