query-8e6180d1f411884ea2787cd3f993b95c

rq turtle/ttl

Description: Finds family name items that are linked to a dab using different from,

but which don't have the correct criterion.

QuickStatements: https://tools.wmflabs.org/quickstatements/#/batch/4287

SELECT ?item ?dab WHERE { ?item wdt:P31 wd:Q101352. ?item p:P1889 ?dabStatement. ?dabStatement ps:P1889 ?dab. MINUS {?dabStatement pq:P1013 wd:Q27924673} MINUS {?item wdt:P31 wd:Q777342} #?dabStatement pq:P1013 ?crit. # uncomment to find items with the wrong criterion ?dab wdt:P31 wd:Q4167410. }

LIMIT 10

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
# Description: Finds family name items that are linked to a dab using different from,
#              but which don't have the correct criterion.
# QuickStatements: https://tools.wmflabs.org/quickstatements/#/batch/4287

SELECT ?item ?dab
WHERE 
{
  ?item wdt:P31 wd:Q101352.
  ?item p:P1889 ?dabStatement.
  ?dabStatement ps:P1889 ?dab.
  MINUS {?dabStatement pq:P1013 wd:Q27924673}
  MINUS {?item wdt:P31 wd:Q777342}
  #?dabStatement pq:P1013 ?crit. # uncomment to find items with the *wrong* criterion
  ?dab wdt:P31 wd:Q4167410.
}
#LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?dab"):::projected v2("?dabStatement") v1("?item"):::projected c2(["wd:Q101352"]):::iri c8(["wd:Q4167410"]):::iri c7(["wd:Q777342"]):::iri c6(["wd:Q27924673"]):::iri v1 --"p:direct/P31"--> c2 v1 --"p:P1889"--> v2 v2 --"p:statement/P1889"--> v3 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"p:qualifier/P1013"--> c6 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"p:direct/P31"--> c7 end v3 --"p:direct/P31"--> c8