query-414aa6c3659e7103ecb1a24f25446ea1
Propertiesinstance of (P31)director (P57)publication date (P577)genre (P136)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemDescription WHERE {
?item wdt:P31 wd:Q11424 .
?item wdt:P57 ?dir .
?item wdt:P577 ?date .
FILTER(NOT EXISTS { ?item wdt:P136 wd:Q336144 .})
FILTER EXISTS { ?war schema:about ?item . ?war schema:inLanguage "ar" }
FILTER EXISTS { ?war schema:about ?dir . ?war schema:inLanguage "ar" }
OPTIONAL {?item schema:description ?itemDescription filter(lang(?itemDescription) = "ar")}
FILTER(!BOUND(?itemDescription))
SERVICE wikibase:label { bd:serviceParam wikibase:language "ar"}
}
LIMIT 200
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?date")
v3("?dir")
v4("?item"):::projected
v1("?itemDescription"):::projected
v2("?war")
c5(["wd:Q336144"]):::iri
c3(["ar"]):::literal
c12(["bd:serviceParam"]):::iri
c7(["wd:Q11424"]):::iri
f0[["not bound(?itemDescription)"]]
f0 --> v1
f1[[" "]]
subgraph f1e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:inLanguage"--> e0c3
e0v2("?dir"):::projected
e0v1("?war"):::projected
e0c3(["ar"]):::literal
end
f1--EXISTS--> f1e0
f1 --> v2
f1 --> c1
f1 --> v3
f1 --> c2
f1 --> c3
v2 --"schema:about"--> v3
v2 --"schema:inLanguage"--> c3
f2[[" "]]
subgraph f2e1["Exists Clause"]
e1v1 --"schema:about"--> e1v2
e1v1 --"schema:inLanguage"--> e1c3
e1v2("?item"):::projected
e1v1("?war"):::projected
e1c3(["ar"]):::literal
end
f2--EXISTS--> f2e1
f2 --> v2
f2 --> c1
f2 --> v4
f2 --> c2
f2 --> c3
v2 --"schema:about"--> v4
v2 --"schema:inLanguage"--> c3
f3[["not "]]
subgraph f3e2["Exists Clause"]
e2v1 --"wdt:P136"--> e2c2
e2v1("?item"):::projected
e2c2(["wd:Q336144"]):::iri
end
f3--EXISTS--> f3e2
f3 --> v4
f3 --> c4
f3 --> c5
v4 --"wdt:P136"--> c5
v4 --"wdt:P31"--> c7
v4 --"wdt:P57"--> v3
v4 --"wdt:P577"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:description".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c3
end