What is the {sport tour} with the {MAX(number of losses)} whose {sport} is {rugby union}  ?
Which rugby team has lost the most matches?
What rugby team has the highest number of losses?
SELECT ?i WHERE { ?i property:sport resource:rugby_union . ?i rdf:type ontology:sports_tour . ?i property:number_of_losses ?a }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q50846468>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q50846468 . ?ent wdt:P1356 ?obj . ?ent wdt:P641 wd:Q5849 } ORDER BY DESC(?obj)LIMIT 5 
1924 British Lions tour to South Africa 1908 British Lions tour to New Zealand and Australia 2005 British and Irish Lions tour to New Zealand 2001 British and Irish Lions tour to Australia 2009 British and Irish Lions tour to South Africa