query-31ec6c8baa4fda62d7f1637e345154d9
Overcoming timeout
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#defaultView:LineChart
# Scholarly articles as a function of gender
SELECT ?age (COUNT(?gender) as ?count) (SAMPLE(?genderLabel) AS ?genderLabel ) WHERE {
?article wdt:P31 wd:Q13442814 .
?article wdt:P577 ?date .
?article wdt:P50 ?author .
?author wdt:P569 ?dob .
?author wdt:P21 ?gender .
?gender rdfs:label ?genderLabel .
FILTER((LANG(?genderLabel)) = "en")
bind( 1000+year(?date)-year(?dob) as ?age_num )
bind( SUBSTR(str(?age_num),1,4) as ?age )
FILTER(year(?date)>=2000)
FILTER(BOUND(?age_num))
FILTER(?age_num<=1100)
FILTER(?age_num>=1000)
}
GROUP BY ?genderLabel ?age