When was Alastair Cook was relieved from the sports team Bedfordshire county cricket club?
SELECT ?value WHERE { wd:Q500551 p:P54 ?s . ?s ps:P54 wd:Q4879239 . ?s pq:P582 ?value}
alastair cook: Q500551 bedfordshire county cricket club: Q4879239