query-fb9eccb779d9b4f9a020c7b6b9ea1e64

rq turtle/ttl

Propertiesinstance of (P31)sex or gender (P21)

Use at

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#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT ?item ?itemLabel ?items WHERE {
  ?item wdt:P31 wd:Q5.
  ?item wdt:P21 wd:Q6581097.
  BIND(xsd:integer(STRAFTER(STR(?item), "Q")) AS ?items)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr". }
  FILTER(?items > 56000000)
}
ORDER BY ?item

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v3("?items"):::projected c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,fr"]):::literal c3(["wd:Q5"]):::iri c5(["wd:Q6581097"]):::iri f0[["?items > '56000000^^xsd:integer'"]] f0 --> v3 v1 --"wdt:P31"--> c3 v1 --"wdt:P21"--> c5 bind1[/"http://www.w3.org/2001/XMLSchema#integer(substring-after(str(?item),'Q'))"/] v1 --o bind1 bind1 --as--o v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end