Add example of writing complex query.