query: SELECT (CONCAT('{  "P570"    :   [', GROUP_CONCAT( CONCAT('"', ?highlight_term, '"'); separator=","),'] } ') as ?terms)
  WHERE
  { 
  	SELECT DISTINCT ?highlight_term 
  	{
    		VALUES ?item { wd:Q309481 wd:Q4 wd:Q132821 wd:Q844482 wd:Q2438528 wd:Q149086 wd:Q10737 wd:Q173387 wd:Q201676 wd:Q39614 wd:Q18658526 wd:Q750652 wd:Q48422 wd:Q207315 wd:Q18748141 wd:Q18658526 wd:Q18857007 wd:Q16938214 }
    		{ ?item rdfs:label ?term } UNION { ?item skos:altLabel ?term }
    		BIND(lcase(str(?term)) as ?highlight_term )
  	}
  	ORDER BY DESC(strlen(?highlight_term))
  }