Allowing templatized queries