What is {shape} of {marble}, that has {is not} is {ball} ?
"What is { shape } of { marble }, the { is not } of which is { ball }?"
"What is {shape} of {marble}, whose {is not} is {ball} ?"
SELECT ?z WHERE { resource:marble property:shape ?z . ?z property:different_from resource:ball }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q200199> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1419>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1889> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q838611> . }
SELECT ?answer WHERE { wd:Q200199 wdt:P1419 ?answer . ?answer wdt:P1889 wd:Q838611}