I made my SPARQL query below in the Wikidata Query Service and got the responses which is different from what I am expected. The query below is intended to extract the all countries that are member of OECD Organization for Economic Co-operation and Development. Actually the count of members should be 35. but the query results is only 16. For example, the country Spain is the member of OECD as well, and in the wikidata page, Spain is properly written so. In fact, Spain is instanceof(P031) country(Q6256), and has OECD(Q41550) item as object in the memberof (P463) property in the wikidata page. To my best understanding, Spain should be in the result set, but isn't in fact shown in my query result. I am very confused now to try to find out what parts in the query I should modify to the the proper answer. (I'd like to fix the query from the general SPARQL point of view as long as I can.)
Would you somebody help and correct the query below to get the proper 35 countries? Thank you for your kind help in advance.
SELECT ?s ?sLabel ?p
WHERE {
BIND(wd:Q41550 AS ?o)
BIND(wdt:P31 AS ?instanceof)
BIND(wd:Q6256 AS ?class)
#template
?s ?p ?o.
?s ?instanceof ?class
SERVICE wikibase:label {
bd:serviceParam wikibase:language "ko,[AUTO_LANGUAGE]" .
}
}