extended examples to include where clause