Add spec to verify chain-able of query
change behavior of condition