Question: Who served as both the 17th US president and the vice president for Lincoln?
Answer(s):
answer: Andrew Johnson

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.0gzh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0gzh ns:government.us_president.vice_president ?x .
?x ns:government.us_president.presidency_number "17" . 
}