Key attribute and query method