What is {head of government} of {Tamil Nadu} that is {followed by} is {O. Panneerselvam} ?
Name the head of the Government of Tamil Nadu before O.Panneerselvam?
Who was the head of the government of Tamil Nadu before O. Panneerselvam?
SELECT ?c WHERE { ?q property:followed_by resource:O._Panneerselvam . ?q property:head_of_government ?c . resource:Tamil_Nadu property:head_of_government ?q }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1445> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P156> <http://wikidata.dbpedia.org/resource/Q3523238>
} 

SELECT ?obj WHERE { wd:Q1445 p:P6 ?s . ?s ps:P6 ?obj . ?s pq:P156 wd:Q3523238 }