For a small part of my master thesis I need to retrieve a dataset from SEDE that contains all questions as well as the related multiple answers (and if possible also comments) with the tag "text-mining" in order to put questions and related answers (and likely also the comments) in a corpus.
My created queries won't work and SEDE is sometimes just not executing the commands due to a time lack. I already tried the adapted suggestions from SEDE but there is nothing sufficient.
SELECT P.Id, P.ParentId, P.CreationDate, P.ViewCount, P.Title, P.Body, P.Tags, P.PostTypeId FROM Posts as P WHERE P.PostTypeId = 1 OR P.PostTypeId = 2 AND P.tags LIKE '%<text-mining>%'
Here only questions were returned (PostTypeId = 1). I think that might depend on the absence of tags for Type 2 (answers) but how can I retrieve a dataset including both - questions and related answers?