Translating active_record_querying.mg