What is {member of political party} of {Imre Nagy} that is {start time} is {1948-0-0} ?
Name the political party that Imre Nagy was a member of in 1948.
Which political party was Imre Nagy a member in 1948?
SELECT ?n WHERE { ?a property:member_of_political_party ?n . ?a property:start_time ?n . resource:Imre_Nagy property:member_of_political_party ?a . FILTER ( CONTAINS ( YEAR ( ?n ) , '1948' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q177917> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P102> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1948-0-0>
} 

SELECT ?obj WHERE { wd:Q177917 p:P102 ?s . ?s ps:P102 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1948')) }