query-03dd86eb5ece80c45fab973f4884123c
Bean49Bot 3) logs • contribs • talk (Bean49 Operator: )xtools • User rights • User rights log • Block log • SUL • new lexemes • new items • contribs • talk (Bean49Bot Add parent astronomical body to asteroid belt asteroids, required by multiple constraints. Task/s: Code: Function details:. I would add it for asteroid belt asteroids which don't have it. (P397)parent astronomical body require (P2244)periapsis and (P2243)apoapsis Multiple constraints like of ]reply[00:36, 10 January 2023 (UTC)) talk (Bean49. --Special:Diff/1808043122Sample edit:
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item WHERE {
?item wdt:P31 wd:Q3863;
wdt:P196 wd:Q2179;
wdt:P716 _:b3.
FILTER(NOT EXISTS { ?item wdt:P397 _:b1. })
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
a2((" "))
a1((" "))
c5(["wd:Q2179"]):::iri
c3(["wd:Q3863"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P397"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"wdt:P397"--> a1
v1 --"wdt:P31"--> c3
v1 --"wdt:P196"--> c5
v1 --"wdt:P716"--> a2