Make sure you are using the right parameter names...the ones in the above are not properly defined. For example starttime should really be StartDate.
Parameters supported by the Query template interface are listed here:
http://help.sap.com/saphelp_mii140sp02/helpdata/en/4c/d57d68f29560c6e10000000a15822d/content.htm
Sam