enable a timeout option to be passed to the query method

I was getting timeouts for a long-running analysis task, so I added this option.