what is the {instance of} for {Philip IV of France} has {date of birth} as {1268-1-1} ?
give me the position details of Philip IV of France born in 1268?
What was the position of Philip IV of France who was born in1268?
SELECT ?o WHERE { ?g property:date_of_birth ?r . ?g rdf:type ?o . FILTER ( CONTAINS ( YEAR ( ?r ) , '1268' ) ) . resource:Philip_IV_of_France property:date_of_birth ?g }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q130969> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P569> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <1268-1-1> .
?statement <http://www.wikidata.org/entity/P31> ?value. 
} 

SELECT ?value WHERE { wd:Q130969 p:P569 ?s . ?s ps:P569 ?x filter(contains(YEAR(?x),'1268')) . ?s pq:P31 ?value}