Question: To which political party founded prior to 1854 did Andrew Johnson belong?
Answer(s):
answer: Democratic Party

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.0rmg)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0rmg ns:government.politician.party ?y .
?y ns:government.political_party_tenure.party ?x .
?x ns:organization.organization.date_founded ?num .
FILTER (?num < "1854"^^xsd:dateTime) . 
}