query-e753b596820d23117dd1959cb98b83b7

rq turtle/ttl

two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } two chemical compounds with the same CAS registry number SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE { ?compound1 wdt:P231 ?cas . ?compound2 wdt:P231 ?cas . FILTER (?compound1 != ?compound2) SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#two chemical compounds with the same CAS registry number
SELECT DISTINCT ?cas ?compound1 ?compound1Label ?compound2 ?compound2Label WHERE {
  ?compound1 wdt:P231 ?cas .
  ?compound2 wdt:P231 ?cas .
  FILTER (?compound1 != ?compound2)
  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; v3("?cas"):::projected v1("?compound1"):::projected v2("?compound2"):::projected c3(["bd:serviceParam"]):::iri c5(["en"]):::literal f0[["?compound1 != ?compound2"]] f0 --> v1 f0 --> v2 v1 --"wdt:P231"--> v3 v2 --"wdt:P231"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end