What is {head of state} of {South Australia} that is {start time} is {1952-0-0} ?
In 1952, who was the new head of state of South Australia?
Who is the head of state of South Australia who started in the year 1952?
SELECT ?m WHERE { ?s property:start_time ?q . resource:South_Australia property:head_of_state ?s . ?s property:head_of_state ?m . FILTER ( CONTAINS ( YEAR ( ?q ) , '1952' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q35715> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P35> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1952-0-0>
} 

SELECT ?obj WHERE { wd:Q35715 p:P35 ?s . ?s ps:P35 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1952')) }