How long was Joseph Lyons a member of the Australian Labor Party?
SELECT ?value1 ?value2 WHERE { wd:Q370966 p:P102 ?s . ?s ps:P102 wd:Q216082 . ?s pq:P582 ?value1 . ?s pq:P580 ?value2 }
joseph lyons: Q370966 australian labor party: Q216082