What is {position held} of {Andrew Jackson} that is {electoral district} is {Tennessee's 1st congressional district} ?
What position did Andrew Jackson hold in the Electoral District in Tennessee's 1st Congressional District?
WHAT IS HELD POSITION OF ANDREW JACKSON THAT IS ELECTORAL DISTRICT IS TENNESSEE'S 1ST CONGRESSIONAL DISTRICT
SELECT ?n WHERE { ?h property:electoral_district resource:Tennessee's_1st_congressional_district . ?h property:position_held ?n . resource:Andrew_Jackson property:position_held ?h }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11817> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P768> <http://wikidata.dbpedia.org/resource/Q7699986>
} 

SELECT ?obj WHERE { wd:Q11817 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P768 wd:Q7699986 }