Did {Ronald_Reagan} {military rank} {captain}?
When Ronald Reagan was in the military, was he a captain?
Was Ronald Reagan a captain in the military rank?
ASK WHERE { resource:Ronald_Reagan property:military_rank resource:captain }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9960> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P410> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q2937293>. } 
ASK WHERE { wd:Q9960 wdt:P410 wd:Q2937293 }