Add default query to the visualize app state

Closes #1826