SELECT DISTINCT ?uri WHERE { ?uri <http://dbpedia.org/ontology/militaryUnit> <http://dbpedia.org/resource/VMF-155> . ?uri <http://dbpedia.org/ontology/militaryUnit> <http://dbpedia.org/resource/VMF-218> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Senator>}
Which senator served in military units VMF-155 and VMF-218?
SELECT DISTINCT ?z WHERE { ?z property:military_unit resource:V_M_F-155 . ?z property:military_unit resource:V_M_F-218 . ?z rdf:type ontology:Senator }
John Glenn
The senator whose military units are VMF-155 and VMF-218 is [John Glenn].
[John Glenn] served in military units VMF-155 and VMF-218.