Question: Which President of the United States was James A. Garfield?
Paraphrase: Which number US president was James A. Garfield ?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q34597 p:P39 ?s . ?s ps:P39 wd:Q11696 . ?s pq:P1545 ?value}