What is the {triangular number} with the {MIN(numeric value)} whose {instance of} is {composite number}  ?
What least triangular number has an occasion of which composite number?
What minimum triangular number has an instance of which composite number?
SELECT ?y WHERE { ?y property:numeric_value ?x . ?y rdf:type ontology:triangular_number . ?y rdf:type ontology:composite_number }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q245102>.

?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/P1181>.
?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/Q50707> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q245102 . ?ent wdt:P1181 ?obj . ?ent wdt:P31 wd:Q50707} ORDER BY ASC(?obj)LIMIT 5 
6 10 15 21 28