Tracing construct query result