query-80221c37c5047f380a77eaa78370b3cd
Pairs of gastropod names that are a recombination and its protonym, and both have site links on English Wikipedia
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?recombination ?taxonname ?ocitem ?octaxonname
WHERE
{
?recombination wdt:P171+ wd:Q4867740. #Gastropoda
?recombination p:P225 ?name.
?name ps:P225 ?taxonname.
?ocitem wdt:P2868 wd:Q14192851. #Role of protonym
?ocitem p:P225 ?ocname.
?ocname ps:P225 ?octaxonname.
?ocitem p:P2868 ?protonym.
?protonym pq:P642 ?recombination.
?sitelink schema:about ?recombination;
schema:isPartOf <https://en.wikipedia.org/>;
schema:name [].
?sitelink2 schema:about ?ocitem;
schema:isPartOf <https://en.wikipedia.org/>;
schema:name [].
} LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?name")
v4("?ocitem"):::projected
v5("?ocname")
v6("?octaxonname"):::projected
v7("?protonym")
v1("?recombination"):::projected
v8("?sitelink")
v9("?sitelink2")
v3("?taxonname"):::projected
a1((" "))
a2((" "))
c11([https://en.wikipedia.org/]):::iri
c2(["wd:Q4867740"]):::iri
c6(["wd:Q14192851"]):::iri
v1 --"p:direct/P171"--> c2
v1 --"p:P225"--> v2
v2 --"p:statement/P225"--> v3
v4 --"p:direct/P2868"--> c6
v4 --"p:P225"--> v5
v5 --"p:statement/P225"--> v6
v4 --"p:P2868"--> v7
v7 --"p:qualifier/P642"--> v1
v8 --"schema:about"--> v1
v8 --"schema:isPartOf"--> c11
v8 --"schema:name"--> a1
v9 --"schema:about"--> v4
v9 --"schema:isPartOf"--> c11
v9 --"schema:name"--> a2