Sample query application

(needs help)