Question: Which political party did both Andrew Johnson and Bennett Ratliff belonged to?
Answer(s):
answer: Republican 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:government.political_party.politicians_in_this_party ?c .
?c ns:government.political_party_tenure.politician ns:m.0100b6fp . 
}