postgresql7.3 select count(et.task_id) as counter from evaluation_tasksi et where et.grade_item_id = :grade_item_id and content_revision__is_live(et.task_id) = true