SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/property/type> <http://dbpedia.org/resource/NASA> . ?uri <http://dbpedia.org/property/mission> <http://dbpedia.org/resource/Gemini_8> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Astronaut>}
Which  NASA astronaut was on mission Gemini 8?
SELECT DISTINCT ?l WHERE { ?l property:mission resource:Gemini_8 . ?l rdf:type ontology:Astronaut . ?l property:type resource:N_A_S_A }
Neil Armstrong, David Scott
The astronaut which is in NASA and mission is Gemini 8 are [Neil Armstrong, David Scott].
NASA astronauts on the mission Gemini 8 are [Neil Armstrong, David Scott].