query-4492ac12af2e76d84112c5974325f98e
US laws where the United States Public Law (P3837) citation disagrees with legislated by (P467)
Use at
- https://query.wikidata.org/sparql
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/>
SELECT ?law ?pl ?plterm ?normalterm WHERE
{
?law wdt:P31 wd:Q476068.
?law wdt:P3837 ?pl.
BIND (STRBEFORE(?pl, "-") as ?congstr).
?plterm p:P31 ?termprop.
?termprop ps:P31 wd:Q15238777.
?termprop pq:P642 wd:Q11268.
?termprop pq:P1545 ?congstr.
?law wdt:P467 ?normalterm.
FILTER (?normalterm != ?plterm)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?congstr")
v3("?law"):::projected
v1("?normalterm"):::projected
v4("?pl"):::projected
v2("?plterm"):::projected
v6("?termprop")
c6(["wd:Q15238777"]):::iri
c2(["wd:Q476068"]):::iri
c8(["wd:Q11268"]):::iri
f0[["?normalterm != ?plterm"]]
f0 --> v1
f0 --> v2
v3 --"p:direct/P31"--> c2
v3 --"p:direct/P3837"--> v4
bind1[/"substring-before(?pl,'-')"/]
v4 --o bind1
bind1 --as--o v5
v2 --"p:P31"--> v6
v6 --"p:statement/P31"--> c6
v6 --"p:qualifier/P642"--> c8
v6 --"p:qualifier/P1545"--> v5
v3 --"p:direct/P467"--> v1