Open main menu

User:YULdigitalpreservation/Whales

OrcasEdit

The following query uses these:

  • Properties: instance of (P31)    
    1 SELECT ?item ?itemLabel ?itemAltLabel
    2 WHERE 
    3 {
    4   ?item wdt:P31 wd:Q26843.
    5   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
    6 }
    

Orcas that have date of passingEdit

The following query uses these:

  • Properties: instance of (P31)    , date of death (P570)    
    1 SELECT ?item ?itemLabel ?itemAltLabel ?deathdate
    2 WHERE 
    3 {
    4   ?item wdt:P31 wd:Q26843.
    5   ?item wdt:P570 ?deathdate.
    6   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
    7 }
    

Member of pod and optional motherEdit

The following query uses these:

  • Properties: instance of (P31)    , member of (P463)    , mother (P25)    
    1 SELECT ?item ?itemLabel ?pod ?podLabel ?mother ?motherLabel
    2 WHERE 
    3 {
    4   ?item wdt:P31 wd:Q26843.
    5   ?item wdt:P463 ?pod. 
    6   OPTIONAL {?item wdt:P25 ?mother.}
    7   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
    8 }
    

MothersEdit

The following query uses these:

  • Properties: instance of (P31)    , mother (P25)    
    1 SELECT ?item ?itemLabel  ?mother ?motherLabel
    2 WHERE 
    3 {
    4   ?item wdt:P31 wd:Q26843.
    5   OPTIONAL {?item wdt:P25 ?mother.}
    6   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
    7 }