What is the {prefectural assembly} with the {MAX(number of seats)} whose {applies to jurisdiction} is {Mie Prefecture}  ?
What Mie Prefecture assembly has the highest number of seats?
What is the prefectural assembly with the  highest number of seats whose applies to jurisdiction is Mie Prefecture?
SELECT ?j WHERE { ?j property:number_of_seats ?m . ?j property:applies_to_jurisdiction resource:Mie_Prefecture . ?j rdf:type ontology:prefectural_assembly }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q28362371>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1342>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1001> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q128196> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q28362371 . ?ent wdt:P1342 ?obj . ?ent wdt:P1001 wd:Q128196 } ORDER BY DESC(?obj)LIMIT 5 
Mie Prefectural Assembly