Question: What position did Abdülmecid I hold on July, 2 1839?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q174772 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1839')) }