What is {name after} of {Sierpinski triangle}, that has {ethnicity} is {Poles} ?
"Which is {name after} of {Sierpinski triangle}, whose {ethnicity} is {Poles} ?"
SELECT ?answer WHERE { wd:Q663365 wdt:P138 ?answer . ?answer wdt:P172 wd:Q1026}
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q663365> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P138>. ?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/P172> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1026> . }
"Which is {name after} of {Sierpinski triangle}, whose {ethnicity} is {Poles} ?"