What is the {piano cycle} with the {MIN(number of parts of a work of art)} whose {has parts of the class} is {variation}  ?
What is the least amount of varied artwork pieces within a piano cycle?
Which is the piano cycle with the lowest number of parts of a work of art, whose parts of the class is variation?
SELECT ?f WHERE { ?f property:number_of_parts_of_this_work ?e . ?f rdf:type ontology:piano_cycle . ?f property:has_parts_of_the_class resource:theme_and_variations . }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1746056>.

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

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q1746056 . ?ent wdt:P2635 ?obj . ?ent wdt:P2670 wd:Q214981. } ORDER BY ASC(?obj)LIMIT 5 
Six variations on a Swiss song for piano or harp Theme et Variations Nine Variations on "Lison dormait", K.264/315d Theme and Variations Eroica Variations