What minimum triangular number has an instance of which composite number?
select ?ent where { ?ent wdt:P31 wd:Q245102 . ?ent wdt:P1181 ?obj . ?ent wdt:P31 wd:Q50707} ORDER BY ASC(?obj)LIMIT 5 
triangular number: Q245102 composite number: Q50707