What is the {office building} with the {MAX(floors above ground)} whose {instance of} is {skyscraper}  ?
What is the tallest skyscraper with offices?
which office building with the highest floors above ground whose instance is skyscraper?
SELECT ?y WHERE { ?y rdf:type ontology:office_building . ?y property:floors_above_ground ?k . ?y rdf:type ontology:skyscraper }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1021645>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q1021645 . ?ent wdt:P1101 ?obj . ?ent wdt:P31 wd:Q11303 } ORDER BY DESC(?obj)LIMIT 5 
Willis Tower Willis Tower Empire State Building 875 North Michigan Avenue One World Trade Center