A simple query program