Fixed typo & horizontal scrolling

The first example was out of sync with the code.

I also updated the 3 code blocks, so the query is fully shown without scrolling.