Test query with Ors condition