Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
You can query for P580 (start time) qualifiers on P4033 (Mastodon address) statements like this: p:P4033 ?mastoStatement. ?mastoStatement pq:P580 ?joinedfediverse. Note the use of p: instead o...
Answer
#1: Initial revision
You can query for P580 (start time) qualifiers on P4033 (Mastodon address) statements like this: ``` p:P4033 ?mastoStatement. ?mastoStatement pq:P580 ?joinedfediverse. ``` Note the use of `p:` instead of `wdt:`. Your full query would be: ``` SELECT ?politicianLabel ?partyLabel ?mastodon ?joinedfediverse { ?politician wdt:P31 wd:Q5; # instance of human wdt:P106 wd:Q82955; # occupation politician wdt:P27 wd:Q183; # country of citizenship Germany p:P4033 ?mastoStatement. ?mastoStatement a wikibase:BestRank; ps:P4033 ?mastodon. # Mastodon address OPTIONAL {?mastoStatement pq:P580 ?joinedfediverse.} # start time of Mastodon address OPTIONAL {?politician wdt:P102 ?party.} # member of political party SERVICE wikibase:label { bd:serviceParam wikibase:language "de". } # labels in German language } ``` [Try it!](https://w.wiki/Af$o)