What is the {watercourse} with the {MAX(length)} whose {country} is {Lithuania}  ?
What is the name of the watercourse with the hightest length whose country is lithuania?
What is the watercourse with the highest length whose country is Lithuania ?
SELECT ?o WHERE { ?o rdf:type ontology:watercourse . ?o property:length ?f . ?o property:country resource:Lithuania }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q355304>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q355304 . ?ent wdt:P2043 ?obj . ?ent wdt:P17 wd:Q37 } ORDER BY DESC(?obj)LIMIT 5 
Jara-Šetekšna Tenenys Akmena Siesartis Virinta