I need to search for Wikipedia pages that contain some specific words in their full text. To improve the results I want to limit the results to pages describing entities that are instances of a specific entity.
For searching the full text I can use the Wikipedia APIs, using the query action and the search generator.
For filtering instances of a given entity I can use the Wikidata APIs and a SPARQL query.
Is there a way to execute both operations in a single query that applies both filters?
No, those have completely separate search backends that do not interact. The Wikidata API uses SQL queries; the search API uses Elasticsearch; the SPARQL service uses Blazegraph.