Yes, here is a SPARQL query that will find the past colleges of all the secretaries of the treasury:

PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

SELECT ?secretary ?college WHERE {
  ?secretary a dbo:SecretaryOfTheTreasury ;
            dbo:almaMater ?college .
}
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence