@Daniel_Mietchen wanted to find scientific articles about the Zika virus without a corresponding “main subject” statement. This query (link) does the job:
SELECT DISTINCT ?item WHERE { hint:Query hint:optimizer "None". SERVICE wikibase:mwapi { bd:serviceParam wikibase:api "Search"; wikibase:endpoint "www.wikidata.org"; mwapi:srsearch "zika haswbstatement:P31=Q13442814". ?title wikibase:apiOutput mwapi:title. } BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item) MINUS { ?item wdt:P921 wd:Q202864. } }
(It now only returns very few results, because @Daniel_Mietchen added the missing “main subjects” statements with QuickStatements. Originally it was a bit over 150 items.)
However, when you add some LIMIT (link), the query suddenly returns many more results – it seems like the MINUS is being ignored for some reason.