What is the {located in the administrative territorial entity} and the {capital of} of {Lagos} ?
What is found within the authoritative regional substance and capital of Lagos?
What is located in the administrative territorial entity and capital of Lagos?
SELECT ?b ?w WHERE { resource:Lagos property:located_in_the_administrative_territorial_entity ?b . resource:Lagos property:capital_of ?w }
 SELECT ?ans_1 ?ans_2 WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8673> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_1. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8673> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_2. } 
SELECT ?ans_1 ?ans_2 WHERE { wd:Q8673 wdt:P131 ?ans_1 . wd:Q8673 wdt:P1376 ?ans_2 }
Lagos Nigeria Lagos Southern Nigeria Protectorate Lagos First Nigerian Republic Lagos Colony and Protectorate of Nigeria Lagos Federation of Nigeria