User:YULdigitalpreservation/Whales
New page for Southern Resident data
Orcas edit
The following query uses these:
- Items: orca (Q26843)
- Properties: instance of (P31)
SELECT ?item ?itemLabel ?itemAltLabel WHERE { ?item wdt:P31 wd:Q26843. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
Orcas that have date of passing edit
The following query uses these:
- Items: orca (Q26843)
- Properties: instance of (P31) , date of death (P570)
SELECT ?item ?itemLabel ?itemAltLabel ?deathdate WHERE { ?item wdt:P31 wd:Q26843. ?item wdt:P570 ?deathdate. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
Member of pod and optional mother edit
The following query uses these:
- Items: orca (Q26843)
- Properties: instance of (P31) , member of (P463) , mother (P25)
SELECT ?item ?itemLabel ?pod ?podLabel ?mother ?motherLabel WHERE { ?item wdt:P31 wd:Q26843. ?item wdt:P463 ?pod. OPTIONAL {?item wdt:P25 ?mother.} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
Mothers edit
The following query uses these:
- Items: orca (Q26843)
- Properties: instance of (P31) , mother (P25)
SELECT ?item ?itemLabel ?mother ?motherLabel WHERE { ?item wdt:P31 wd:Q26843. OPTIONAL {?item wdt:P25 ?mother.} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }