Added spec for Query.