PREFIX foaf: PREFIX ex: SELECT ?X ?H FROM WHERE { ?X a foaf:Person. ?X foaf:homepage ?H . ?X ex:age ?A FILTER( ?A > 30 ) }