what is the {follows} for {1} has {instance of} as {decagonal number} ?
Generate a list of decagonal numbers.
Are are the list of decagonal numbers?
SELECT ?d WHERE { resource:1 rdf:type ?m . ?m rdf:type ontology:decagonal_number . ?m property:follows ?d }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q199> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q663029> .
?statement <http://www.wikidata.org/entity/P155> ?value. 
} 

SELECT ?value WHERE { wd:Q199 p:P31 ?s . ?s ps:P31 wd:Q663029 . ?s pq:P155 ?value}