query-b2d235e2b61e3f3675a25b9be846f7a8

rq turtle/ttl

Ancient Greek comedies SELECT ?play ?authorLabel ?playLabel ?genreLabel ?title WHERE { ?play wdt:P31 wd:Q25379 . { ?play wdt:P136 wd:Q1100736 } UNION { ?play wdt:P136 ?instance . ?instance wdt:P279 wd:Q1100736 . } ?play wdt:P50 ?author . ?play wdt:P136 ?genre . ?play wdt:P1476 ?title . SERVICE wikibase:label { bd:serviceParam wikibase:language "it,grc" }
} ORDER BY ?authorLabel

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#>
#Ancient Greek comedies
SELECT ?play ?authorLabel ?playLabel ?genreLabel ?title
WHERE {
  ?play wdt:P31 wd:Q25379 .
  { ?play wdt:P136 wd:Q1100736 }
  UNION { ?play wdt:P136 ?instance .
  ?instance wdt:P279 wd:Q1100736 . }
  ?play wdt:P50 ?author .
  ?play wdt:P136 ?genre .
  ?play wdt:P1476 ?title .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "it,grc" }    
} ORDER BY ?authorLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?author") v1("?authorLabel"):::projected v5("?genre") v3("?instance") v2("?play"):::projected v6("?title"):::projected c4(["wd:Q1100736"]):::iri c2(["wd:Q25379"]):::iri c11(["it,grc"]):::literal c9(["bd:serviceParam"]):::iri v2 --"wdt:P31"--> c2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P136"--> v3 v3 --"wdt:P279"--> c4 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P136"--> c4 end union0r <== or ==> union0l end v2 --"wdt:P50"--> v4 v2 --"wdt:P136"--> v5 v2 --"wdt:P1476"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end