Give me {metropolis} that {category for films shot at this location} {Category:Films shot in Karachi} and which that starts with {'k'}
Which metropolis was categorized and shot in Karachi with letter K?
Which metropolis starts with letter K and was categorized and shot in Karachi ?
SELECT DISTINCT ?e WHERE { ?e property:category_for_films_shot_at_this_location resource:Category:Films_shot_in_Karachi . FILTER ( STRSTARTS ( LCASE ( ?e ) , 'k' ) ) . ?e rdf:type ontology:Metropolis }
SELECT DISTINCT ?sbj ?sbj_label { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q200250>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1740> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q19359121>. ?sbj rdfs:label ?sbj_label . FILTER(STRSTARTS(lcase(?sbj_label), 'k')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q200250 . ?sbj wdt:P1740 wd:Q19359121 . ?sbj rdfs:label ?sbj_label . FILTER(STRSTARTS(lcase(?sbj_label), 'k')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Karachi Karachi