A simple text query program