What is the {earthquake} with the {MAX(aftershocks)} whose {located in the administrative territorial entity} is {Kamouraska Regional County Municipality}  ?
Which Kamouraskas' earthquake has had the most aftershocks?
What earthquake in Kamouraskas had the most aftershocks?
SELECT ?b WHERE { ?b property:aftershocks ?i . ?b rdf:type ontology:earthquake . ?b property:located_in_the_administrative_territorial_entity resource:Kamouraska_Regional_County_Municipality }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q7944>.

?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/P2320>.
?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/P131> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q178178> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q7944 . ?ent wdt:P2320 ?obj . ?ent wdt:P131 wd:Q178178 } ORDER BY DESC(?obj)LIMIT 5 
1925 Charlevoix–Kamouraska earthquake