query-71b9c5d132bb0e33d9dbe9a2d0e802cf
title: Which compounds labelled as terpenoid (Q426694) were found in Aspergillus (Q335130) spp., between 2010 and 2020, with related references? SELECT ?compound ?compound_inchi (GROUP_CONCAT(DISTINCT ?isolation_reference; SEPARATOR = "|") AS ?isolation_references) (GROUP_CONCAT(DISTINCT ?reference_title; SEPARATOR = "|") AS ?references_titles) WHERE { VALUES ?taxon { wd:Q335130 } VALUES ?chemical_class { wd:Q426694 } ?compound wdt:P235 ?compound_id; wdt:P234 ?compound_inchi; ((wdt:P31|wdt:P279)/(wdt:P279)) ?compound_class; p:P703 ?statement. ?statement wikibase:rank wikibase:NormalRank. ?statement (ps:P703/(wdt:P171)) ?taxon; (prov:wasDerivedFrom/pr:P248) ?isolation_reference. ?isolation_reference wdt:P1476 ?reference_title; wdt:P577 ?reference_date. FILTER(((YEAR(?reference_date)) >= 2010 ) && ((YEAR(?reference_date)) <= 2020 )) FILTER(?compound_class = ?chemical_class) } GROUP BY ?compound ?compound_inchi
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
#title: Which compounds labelled as terpenoid (Q426694) were found in Aspergillus (Q335130) spp., between 2010 and 2020, with related references?
SELECT ?compound ?compound_inchi (GROUP_CONCAT(DISTINCT ?isolation_reference; SEPARATOR = "|") AS ?isolation_references) (GROUP_CONCAT(DISTINCT ?reference_title; SEPARATOR = "|") AS ?references_titles) WHERE {
VALUES ?taxon {
wd:Q335130
}
VALUES ?chemical_class {
wd:Q426694
}
?compound wdt:P235 ?compound_id;
wdt:P234 ?compound_inchi;
((wdt:P31|wdt:P279)/(wdt:P279*)) ?compound_class;
p:P703 ?statement.
?statement wikibase:rank wikibase:NormalRank.
?statement (ps:P703/(wdt:P171*)) ?taxon;
(prov:wasDerivedFrom/pr:P248) ?isolation_reference.
?isolation_reference wdt:P1476 ?reference_title;
wdt:P577 ?reference_date.
FILTER(((YEAR(?reference_date)) >= 2010 ) && ((YEAR(?reference_date)) <= 2020 ))
FILTER(?compound_class = ?chemical_class)
}
GROUP BY ?compound ?compound_inchi