What is {county seat of} of {Jerusalem}, that has {etymology} is {Tribe of Judah} ?
Name Jerusalem's county seat with a name originating from the Tribe of Judah.
What is the county seat of Jerusalem, whose name originates from the Tribe of Judah.
SELECT ?p WHERE { resource:Jerusalem property:capital_of ?p . ?p property:named_after resource:Tribe_of_Judah }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1218> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P138> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q913564> . }
SELECT ?answer WHERE { wd:Q1218 wdt:P1376 ?answer . ?answer wdt:P138 wd:Q913564}