What is {together with} and {earliest date} of {{Alexander Pushkin} has {residence} as {Ulyanovsk}}
Alexander Pushkin moved to Ulyanovsk in what year?
When did Alexander Pushkin move to Ulyanovsk?
SELECT ?v ?i WHERE { ?m property:together_with ?v . ?m property:residence resource:Ulyanovsk . ?m property:earliest_date ?i . resource:Alexander_Pushkin property:residence ?m }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7200> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P551> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q5627>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q7200 p:P551 ?s . ?s ps:P551 wd:Q5627 . ?s pq:P1706 ?value1 . ?s pq:P1319 ?value2 }