What is {borders} of {Senegal}, that has {member of} is {AFRISTAT} ?
What borders Senegal and however could be a part of AFRISTAT?
What borders Senegal and yet is a member of AFRISTAT?
SELECT ?w WHERE { ?w property:member_of resource:AFRISTAT . resource:Senegal property:shares_border_with ?w }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1041> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47>. ?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/P463> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3348506> . }
SELECT ?answer WHERE { wd:Q1041 wdt:P47 ?answer . ?answer wdt:P463 wd:Q3348506}
Mali Guinea Guinea-Bissau Mauritania