what is the {has edition} for {Formicidae} has {Dewey Decimal Classification} as {595.796} ?
What is the date that Formicidae was established in the Dewey Decimal system?
Formicidae has a Dewey Decimal Classification of 595.796, when was that established?
SELECT ?k WHERE { ?d property:edition ?k . ?d property:Dewey_Decimal_Classification ?u . FILTER ( ?u = 595.796 ) . resource:Ant property:Dewey_Decimal_Classification ?d }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7386> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1036> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <595.796> .
?statement <http://www.wikidata.org/entity/P747> ?value. 
} 

SELECT ?value WHERE { wd:Q7386 p:P1036 ?s . ?s ps:P1036 ?x filter(contains(?x , '595.796')) . ?s pq:P747 ?value}