query-33abce8b19860546a57b6d604704e960

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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?WQsitelink (GROUP_CONCAT(?FAlang;separator=", ") AS ?FAlanguages)  WHERE {
  ?item wdt:P31 wd:Q5.
  ?item wdt:P21 wd:Q6581072 .
  ?FAsitelink # There is a Wikipedia Featured article
     schema:about ?item;
     schema:inLanguage ?FAlang;
     wikibase:badge wd:Q17437796 . # Sitelink is badged as a Featured Article
  FILTER REGEX(STR(?FAsitelink), ".wikipedia.org/wiki/") .

  ?WQsitelink # And a sitelink to a frwq page
     schema:about ?item ;
     schema:isPartOf <https://fr.wikiquote.org/>.  

    SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" } .
} GROUP BY ?item ?itemLabel ?WQsitelink

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?FAlang"):::projected v5("?FAlanguages") v1("?FAsitelink") v4("?WQsitelink"):::projected v2("?item"):::projected c5(["wd:Q6581072"]):::iri c11([https://fr.wikiquote.org/]):::iri c13(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c15(["fr,en"]):::literal c9(["wd:Q17437796"]):::iri f0[["regex(str(?FAsitelink),'.wikipedia.org/wiki/')"]] f0 --> v1 v2 --"wdt:P31"--> c3 v2 --"wdt:P21"--> c5 v1 --"schema:about"--> v2 v1 --"schema:inLanguage"--> v3 v1 --"wikibase:badge"--> c9 v4 --"schema:about"--> v2 v4 --"schema:isPartOf"--> c11 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end bind2[/"?FAlang"/] v3 --o bind2 bind2 --as--o v5