what is the {member of political party} for {Catalonia} has {head of government} as {Francesc Macià i Llussà} ?
Which political party does Francesc Macia i Llussa belong to?
What is the political party for Francesc Macia i Llussa?
SELECT ?f WHERE { ?v property:member_of_political_party ?f . ?v property:head_of_government resource:Francesc_Macià_i_Llussà . resource:Catalonia property:head_of_government ?v }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5705> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P6> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1806213> .
?statement <http://www.wikidata.org/entity/P102> ?value. 
} 

SELECT ?value WHERE { wd:Q5705 p:P6 ?s . ?s ps:P6 wd:Q1806213 . ?s pq:P102 ?value}