query-013eef31e9cbb2afc3594779156c1c22
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (count(?runway) as ?runways) (sample(?quantity) as ?quantity) WHERE {
?item wdt:P31 wd:Q644371.
optional {?item wdt:P529 ?runway.}
optional {?item wdt:P1114 ?quantity.}
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
} group by ?item ?itemLabel having (?runways=1) order by ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?itemLabel"):::projected
v6("?quantity"):::projected
v4("?runway"):::projected
v6("?runways")
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c3(["wd:Q644371"]):::iri
f0[["?runways = '1^^xsd:integer'"]]
f0 --> v6
v3 --"wdt:P31"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P529".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1114".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind3[/"count(?runway)"/]
v4 --o bind3
bind3 --as--o v6
bind4[/"sample(?quantity)"/]
v6 --o bind4
bind4 --as--o v6