outline for query