Question: What is the name of the party that Julia Gillard a member of and is based on the ideology of social democracy?
Answer(s):
answer: Australian Labor Party

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.02kx9r)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02kx9r ns:government.politician.party ?y .
?y ns:government.political_party_tenure.party ?x .
?x ns:government.political_party.ideology ns:m.06qnz . 
}