query-0372d46a1fc6e9588a2f96a420804144
Note: indentation and other whitespaces don’t actually matter – they just make it more readable. You can also write this as: Note: indentation and other whitespaces don’t actually matter – they just make it more readable. You can also write this as: Note: indentation and other whitespaces don’t actually matter – they just make it more readable. You can also write this as: Note: indentation and other whitespaces don’t actually matter – they just make it more readable. You can also write this as: Note: indentation and other whitespaces don’t actually matter – they just make it more readable. You can also write this as: Note: indentation and other whitespaces don’t actually matter – they just make it more readable. You can also write this as: Note: indentation and other whitespaces don’t actually matter – they just make it more readable. You can also write this as: Note: indentation and other whitespaces don’t actually matter – they just make it more readable. You can also write this as: Note: indentation and other whitespaces don’t actually matter – they just make it more readable. You can also write this as: Note: indentation and other whitespaces don’t actually matter – they just make it more readable. You can also write this as:
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?child ?childLabel
WHERE
{
?child wdt:P22 wd:Q1339;
wdt:P25 wd:Q57487;
wdt:P106 wd:Q36834, wd:Q486748.
# both occupations in one line
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial
- https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/da
- https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/en-gb
- https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/lb
- https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/ru
- https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/sv
- https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/szl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/tr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial/uk