What is the {profession} with the {MAX(base salary)} whose {relevant qualification} is {certificate of aptitude for secondary school teaching}  ?
what is the largest earning salary career that needs a certificate op aptiude for secondary school teaching
What is the highest paying job that requires a certificate op aptiude for secondary school teaching
SELECT ?y WHERE { ?y property:base_salary ?v . ?y rdf:type ontology:profession . ?y property:relevant_qualification resource:certificate_of_aptitude_for_secondary_school_teaching }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q28640>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q28640 . ?ent wdt:P3618 ?obj . ?ent wdt:P4968 wd:Q2946825 } ORDER BY DESC(?obj)LIMIT 5 
high school teacher high school teacher