query-fb2fe51937f024f1e82b5f0772b3ecdf
People born on Independence day PREFIX xsd: http://www.w3.org/2001/XMLSchema# PREFIX schema: http://schema.org/
SELECT ?personItem ?wikis ?person ?personDescription ?date ?Occupation ?Gender ?image
(IF(BOUND(?personDescription), CONCAT(?person, " (", ?personDescription, ")"), ?person) AS ?title)
WHERE {
{
SELECT ?personItem ?date ?occupationItem ?genderItem (SAMPLE(?image) AS ?image) (COUNT(DISTINCT ?article) AS ?wikis)
WHERE {
?personItem wdt:P569 ?date.
?personItem wdt:P18 ?image.
?personItem wdt:P21 ?genderItem.
?personItem wdt:P106 ?occupationItem.
?personItem wdt:P27 wd:Q668 .
OPTIONAL {
?article schema:about ?personItem.
FILTER((SUBSTR(STR(?article), 12, 19)) = "wikipedia.org/wiki/")
}
FILTER(((DATATYPE(?date)) = xsd:dateTime) && ((MONTH(?date)) = 8) && ((DAY(?date)) = 15))
}
GROUP BY ?personItem ?date ?occupationItem ?genderItem
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?personItem schema:description ?personDescription.
?personItem rdfs:label ?person.
?occupationItem rdfs:label ?Occupation.
?genderItem rdfs:label ?Gender.
}
}
ORDER BY DESC(?rank)
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#People born on Independence day
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX schema: <http://schema.org/>
SELECT ?personItem ?wikis ?person ?personDescription ?date ?Occupation ?Gender ?image
(IF(BOUND(?personDescription), CONCAT(?person, " (", ?personDescription, ")"), ?person) AS ?title)
WHERE {
{
SELECT ?personItem ?date ?occupationItem ?genderItem (SAMPLE(?image) AS ?image) (COUNT(DISTINCT ?article) AS ?wikis)
WHERE {
?personItem wdt:P569 ?date.
?personItem wdt:P18 ?image.
?personItem wdt:P21 ?genderItem.
?personItem wdt:P106 ?occupationItem.
?personItem wdt:P27 wd:Q668 .
OPTIONAL {
?article schema:about ?personItem.
FILTER((SUBSTR(STR(?article), 12, 19)) = "wikipedia.org/wiki/")
}
FILTER(((DATATYPE(?date)) = xsd:dateTime) && ((MONTH(?date)) = 8) && ((DAY(?date)) = 15))
}
GROUP BY ?personItem ?date ?occupationItem ?genderItem
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?personItem schema:description ?personDescription.
?personItem rdfs:label ?person.
?occupationItem rdfs:label ?Occupation.
?genderItem rdfs:label ?Gender.
}
}
ORDER BY DESC(?rank)