What is the {medium mountain stage} with the {MIN(event distance)} whose {general classification of race participants} is {Nairo Quintana}  ?
The Nairo Quintana, a general classification of racers, participates on what medium mountain stage with the lowest event distance?
What is the medium mountain stage with the lowest event distance whose general classification of race participants is Nairo Quintana ?
SELECT ?x WHERE { ?x property:general_classification_of_race_participants resource:Nairo_Quintana . ?x property:event_distance ?h . ?x rdf:type ontology:medium_mountain_stage }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q20680270>.

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

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q20680270 . ?ent wdt:P3157 ?obj . ?ent wdt:P2321 wd:Q511856} ORDER BY ASC(?obj)LIMIT 5 
2019 Paris-Nice, stage 8 2019 Critérium du Dauphiné, stage 8 Tour de l'Ain 2020, stage 2 Tour de l'Ain 2020, stage 3 2018 Colombia Oro y Paz Stage 4