query-ec00614fefef0c8a6e40163266b339f7

rq turtle/ttl

20:58, 3 November 2020 (UTC)) talk (Hispano76 Hi, it's been almost 9 months since my last application. And I'd like to add the women's items that have been created since April. This is so I can add them to my personal wikirepository. Is that possible? so that I don't have to go through the 3000+ items from women born in Mexico one by one. Greetings. --

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
# by Jura1, 2020-11-03
#defaultView:AreaChart
SELECT ?date ?cumulativecount 
{

    {   SELECT ?milestonep (COUNT(?item) as ?cumulativecount)
        WHERE
        {
          { SELECT ?item {    ?item wdt:P21 wd:Q6581072 . ?item wdt:P27 wd:Q96 . }  LIMIT 190000 }
          BIND( xsd:integer( substr(str(?item), 33)) as ?qid)
          wd:Q38074555 p:P1114 ?milestonep .
          ?milestonep ps:P1114 ?milestone .
          FILTER( ?milestone > ?qid ) 
        }
        GROUP BY ?milestonep
    }          
    ?milestonep pq:P585 ?date
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?cumulativecount"):::projected v6("?date"):::projected v3("?item") v1("?milestone") v4("?milestonep") v4("?qid") c5(["wd:Q38074555"]):::iri c4(["wd:Q96"]):::iri c2(["wd:Q6581072"]):::iri f0[["?milestone > ?qid"]] f0 --> v1 f0 --> v4 v3 --"p:direct/P21"--> c2 v3 --"p:direct/P27"--> c4 bind1[/"http://www.w3.org/2001/XMLSchema#integer(substring(str(?item),'33^^xsd:integer'))"/] v3 --o bind1 bind1 --as--o v4 c5 --"p:P1114"--> v4 v4 --"p:statement/P1114"--> v1 bind3[/"count(?item)"/] v3 --o bind3 bind3 --as--o v5 v4 --"p:qualifier/P585"--> v6