query-b9990019b923c53aaffef88cfbfce519

rq turtle/ttl

Common ingredient of Malaysian cuisine

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart
#title:Common ingredients of Malaysian cuisine
SELECT ?ingredienteLabel (COUNT (?ingrediente) AS ?count)
WHERE
{
  ?sandwich wdt:P361?/wdt:P279* wd:Q772247;
            wdt:P527 ?ingrediente.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY  ?ingredienteLabel
ORDER BY DESC (?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count") v3("?ingrediente"):::projected v2("?sandwich") a1((" ")) c6(["bd:serviceParam"]):::iri c3(["wd:Q772247"]):::iri c8(["en"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P361"--> a1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; end union0r <== or ==> union0l end a1 --"wdt:P279"--> c3 v2 --"wdt:P527"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind1[/"count(?ingrediente)"/] v3 --o bind1 bind1 --as--o v4