query.execute takes in the accept type as an argument, while query.executeInTransaction takes in an options object with the accept type (and nothing else, for ex: { accept: 'text/turtle' }. This seems a bit strange as the options object for query.executeInTransaction seems to take nothing else.