You can find all options like query,list etc. in the bottom of the panel.
If you want to write a query select query by pressing the specified key(PF6 generally)
Then in the query panel write your query and press PF2(or type run in the command line)
it shows you the results.
I think it will help you. If you hav eany doubts feel free to ask.
You write query in a PS and give that ps as input to the SPUFI and another PS as out put.