query correctly uses the specified item
name attribute can be excluded from queries
optional attributes can be used in queries