updated the query example
minor adjustments