display: >-
  Show me distinct <b>matrix materials</b> containing {{id_1}} as a filler material, ranked by the count of research articles linked to that material combination, as well as a list of the DOIs of the respective research articles.
options:
  id_1:
    silica: '"Silicon dioxide"'
    multi-wall CNTs: '"Multi-wall carbon nanotubes"'
    barium titanate: '"Barium titanate"'
    titania: '"Titanium dioxide"'
    graphene: '"Graphene"'
    carbon black: '"Carbon black"'
    alumina: '"Aluminium oxide"'
    graphite: '"Graphite"'
    silver: '"Silver"'
    graphene oxide: '"Graphene oxide"'
    zinc oxide: '"Zinc oxide"'
    montmorillonite: '"Montmorillonite"'
    reduced graphene oxide: '"Reduced graphene oxide"'
    single-wall CNTs: '"Single-wall carbon nanotubes"'
SPARQL: |
  PREFIX sio: <http://semanticscience.org/resource/>
  PREFIX nm: <http://nanomine.org/ns/>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  PREFIX dct: <http://purl.org/dc/terms/>
  SELECT DISTINCT ?Matrix (COUNT(DISTINCT ?doi) AS ?DOI_Count) (GROUP_CONCAT(DISTINCT ?doi ; SEPARATOR=", ") AS ?ListOfDOIs) WHERE {
    ?Sample a nm:PolymerNanocomposite ;
            sio:hasComponentPart [ sio:hasRole [ a nm:Filler ] ;
                                   a [ rdfs:label {{id_1}} ] ] ,
                                 [ sio:hasRole [ a nm:Matrix ] ;
                                   a [ rdfs:label ?Matrix ] ] .
    ?doi a dct:BibliographicResource ;
         sio:hasPart ?Sample .
    FILTER(!REGEX(STR(?doi), "unpublished"))
  }
  GROUP BY ?Matrix
  ORDER BY DESC (?DOI_Count)