what is the {end time} for {Fergie} has {record label} as {Interscope Records} ?
When was Fergie completed his record name in Interscope records?
When was Fergie completed his record label in Interscope records?
SELECT ?g WHERE { resource:Fergie property:record_label ?c . ?c property:end_time ?g . ?c property:record_label resource:Interscope_Records }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q180004> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P264> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q231694> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q180004 p:P264 ?s . ?s ps:P264 wd:Q231694 . ?s pq:P582 ?value}