prefix terms: prefix rdf: select ?X ?T ?A from where { ?X rdf:type ?T . ?X terms:age ?A }