query-2e6cff5603d73803abc9274df49b8682
title: Which compounds corresponding to a given mass ± 10ppm are found in which organism(s)? SELECT DISTINCT ?compound ?mf ?inchi (GROUP_CONCAT(?taxon_name; SEPARATOR = ", ") AS ?organism) WITH { SELECT ?compound WHERE { VALUES ?query { "524.1765"^^xsd:decimal } VALUES ?ppm { "10"^^xsd:decimal } ?compound wdt:P2067 ?mass. FILTER((?mass > (?query - ((?ppm * "0.000001"^^xsd:decimal) * ?query))) && (?mass < (?query + ((?ppm * "0.000001"^^xsd:decimal) * ?query)))) } } AS %compounds WHERE { INCLUDE %compounds ?compound (wdt:P703/wdt:P225) ?taxon_name; wdt:P234 ?inchi; wdt:P274 ?mf. } GROUP BY ?compound ?mf ?inchi LIMIT 10000 title: Which compounds corresponding to a given mass ± 10ppm are found in which organism(s)? SELECT DISTINCT ?compound ?mf ?inchi (GROUP_CONCAT(?taxon_name; SEPARATOR = ", ") AS ?organism) WITH { SELECT ?compound WHERE { VALUES ?query { "524.1765"^^xsd:decimal } VALUES ?ppm { "10"^^xsd:decimal } ?compound wdt:P2067 ?mass. FILTER((?mass > (?query - ((?ppm * "0.000001"^^xsd:decimal) * ?query))) && (?mass < (?query + ((?ppm * "0.000001"^^xsd:decimal) * ?query)))) } } AS %compounds WHERE { INCLUDE %compounds ?compound (wdt:P703/wdt:P225) ?taxon_name; wdt:P234 ?inchi; wdt:P274 ?mf. } GROUP BY ?compound ?mf ?inchi LIMIT 10000 title: Which compounds corresponding to a given mass ± 10ppm are found in which organism(s)? SELECT DISTINCT ?compound ?mf ?inchi (GROUP_CONCAT(?taxon_name; SEPARATOR = ", ") AS ?organism) WITH { SELECT ?compound WHERE { VALUES ?query { "524.1765"^^xsd:decimal } VALUES ?ppm { "10"^^xsd:decimal } ?compound wdt:P2067 ?mass. FILTER((?mass > (?query - ((?ppm * "0.000001"^^xsd:decimal) * ?query))) && (?mass < (?query + ((?ppm * "0.000001"^^xsd:decimal) * ?query)))) } } AS %compounds WHERE { INCLUDE %compounds ?compound (wdt:P703/wdt:P225) ?taxon_name; wdt:P234 ?inchi; wdt:P274 ?mf. } GROUP BY ?compound ?mf ?inchi LIMIT 10000 title: Which compounds corresponding to a given mass ± 10ppm are found in which organism(s)? SELECT DISTINCT ?compound ?mf ?inchi (GROUP_CONCAT(?taxon_name; SEPARATOR = ", ") AS ?organism) WITH { SELECT ?compound WHERE { VALUES ?query { "524.1765"^^xsd:decimal } VALUES ?ppm { "10"^^xsd:decimal } ?compound wdt:P2067 ?mass. FILTER((?mass > (?query - ((?ppm * "0.000001"^^xsd:decimal) * ?query))) && (?mass < (?query + ((?ppm * "0.000001"^^xsd:decimal) * ?query)))) } } AS %compounds WHERE { INCLUDE %compounds ?compound (wdt:P703/wdt:P225) ?taxon_name; wdt:P234 ?inchi; wdt:P274 ?mf. } GROUP BY ?compound ?mf ?inchi LIMIT 10000 title: Which compounds corresponding to a given mass ± 10ppm are found in which organism(s)? SELECT DISTINCT ?compound ?mf ?inchi (GROUP_CONCAT(?taxon_name; SEPARATOR = ", ") AS ?organism) WITH { SELECT ?compound WHERE { VALUES ?query { "524.1765"^^xsd:decimal } VALUES ?ppm { "10"^^xsd:decimal } ?compound wdt:P2067 ?mass. FILTER((?mass > (?query - ((?ppm * "0.000001"^^xsd:decimal) * ?query))) && (?mass < (?query + ((?ppm * "0.000001"^^xsd:decimal) * ?query)))) } } AS %compounds WHERE { INCLUDE %compounds ?compound (wdt:P703/wdt:P225) ?taxon_name; wdt:P234 ?inchi; wdt:P274 ?mf. } GROUP BY ?compound ?mf ?inchi LIMIT 10000 title: Which compounds corresponding to a given mass ± 10ppm are found in which organism(s)? SELECT DISTINCT ?compound ?mf ?inchi (GROUP_CONCAT(?taxon_name; SEPARATOR = ", ") AS ?organism) WITH { SELECT ?compound WHERE { VALUES ?query { "524.1765"^^xsd:decimal } VALUES ?ppm { "10"^^xsd:decimal } ?compound wdt:P2067 ?mass. FILTER((?mass > (?query - ((?ppm * "0.000001"^^xsd:decimal) * ?query))) && (?mass < (?query + ((?ppm * "0.000001"^^xsd:decimal) * ?query)))) } } AS %compounds WHERE { INCLUDE %compounds ?compound (wdt:P703/wdt:P225) ?taxon_name; wdt:P234 ?inchi; wdt:P274 ?mf. } GROUP BY ?compound ?mf ?inchi LIMIT 10000
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
#title: Which compounds corresponding to a given mass ± 10ppm are found in which organism(s)?
SELECT DISTINCT ?compound ?mf ?inchi (GROUP_CONCAT(?taxon_name; SEPARATOR = ", ") AS ?organism) WHERE {
{
SELECT ?compound WHERE {
VALUES ?query {
"524.1765"^^xsd:decimal
}
VALUES ?ppm {
"10"^^xsd:decimal
}
?compound wdt:P2067 ?mass.
FILTER((?mass > (?query - ((?ppm * "0.000001"^^xsd:decimal) * ?query))) && (?mass < (?query + ((?ppm * "0.000001"^^xsd:decimal) * ?query))))
}
} ?compound (wdt:P703/wdt:P225) ?taxon_name;
wdt:P234 ?inchi;
wdt:P274 ?mf.
}
GROUP BY ?compound ?mf ?inchi
LIMIT 10000
Query found at
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/de
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/en
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/fr
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/it
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/nl
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/ru