What is {educated at} of {Nancy Pelosi} that is {academic major} is {political science} ?
Where did Nancy Pelosi major in political science ?
Where did Nancy Pelosi major in political science ?
SELECT ?e WHERE { ?t property:educated_at ?e . resource:Nancy_Pelosi property:educated_at ?t . ?t property:academic_major resource:political_science }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q170581> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P812> <http://wikidata.dbpedia.org/resource/Q36442>
} 

SELECT ?obj WHERE { wd:Q170581 p:P69 ?s . ?s ps:P69 ?obj . ?s pq:P812 wd:Q36442 }