query-a733e1478eab21f08ab978c1b0ad654b

rq turtle/ttl

Mulitple Eye colors of entities with a AniDB Character ID. select distinct ?AniDB_character_ID ?item ?itemLabel ?eye_color ?eye_colorLabel ?second_eye_color ?second_eye_colorLabel where { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?item wdt:P5648 ?AniDB_character_ID. ?item wdt:P1340 ?eye_color, ?second_eye_color filter(?eye_color != ?second_eye_color) . }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Mulitple Eye colors of entities with a AniDB Character ID.
select distinct ?AniDB_character_ID ?item ?itemLabel ?eye_color ?eye_colorLabel ?second_eye_color ?second_eye_colorLabel where { 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?item wdt:P5648 ?AniDB_character_ID.
  ?item wdt:P1340 ?eye_color, ?second_eye_color
  filter(?eye_color != ?second_eye_color) .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?AniDB_character_ID"):::projected v1("?eye_color"):::projected v3("?item"):::projected v2("?second_eye_color"):::projected c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?eye_color != ?second_eye_color"]] f0 --> v1 f0 --> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v3 --"wdt:P5648"--> v4 v3 --"wdt:P1340"--> v1 v3 --"wdt:P1340"--> v2