Make example code valid

The query parameters must be in a hash bucket called 'query'