query-2561d733c33eccbacf5edb1d9a8cb182

rq turtle/ttl

Group Graph Patterns … Regina Susanna Bach… Leopold Augustus Bach… composer and chapelmaster Carl Philipp Emanuel Bach… organist and musician, composer Johann Gottfried Bernhard Bach… Johann Christoph Bach… composer and pianist, musician Gottfried Heinrich Bach… independent publisher and music arranger, musician, pianist, organist, composer Wilhelm Friedemann Bach… Maria Sophia Bach… Christiana Sophia Enrietta Bach… Christian Gottlieb Bach… Johanna Carolina Bach… music arranger and pianist, composer Johann Christian Bach… musician and chapelmaster, organist, concertmaster, composer Johann Christoph Friedrich Bach… Johann August Abraham Bach… Christiana Dorothea Bach… Elisabeth Juliana Friderica Bach… Ernestus Andreas Bach… Regina Johanna Bach… Christiana Benedicta Louisa… Catharina Dorothea Bachschool teacher and virtuoso, music educator, musicologist, concertmaster, choir director, conductor, violinist, harpsichordist, organist, composer, Thomaskantor, chapelmaster Johann Sebastian Bach ? (Q57487)Maria Barbara Bach had two wives. How can we see the children of Johann Sebastian Bach with his first wife, (Q1339)Johann Sebastian Bach The simplest way to do this is to add a second triple with that restriction:

Use at

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.     # Child  has father  Johann Sebastian Bach.
  ?child wdt:P25 wd:Q57487.    # Child  has mother     Maria Barbara Bach.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?child"):::projected c2(["wd:Q1339"]):::iri c6(["bd:serviceParam"]):::iri c4(["wd:Q57487"]):::iri c8(["en"]):::literal v1 --"wdt:P22"--> c2 v1 --"wdt:P25"--> c4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end