User:Charles Matthews/Name queries
Jump to navigation
Jump to search
Try it!
Try it!
#Check for family name etc. in place of given name
SELECT ?item
WHERE {?item wdt:P735 wd:Q27235787}
#Middle name finder. Check for string in label of human, not at end of label. Nationality condition to limit search.
SELECT ?item ?itemLabel ?test
WHERE {?item wdt:P31 wd:Q5;
wdt:P27 wd:Q174193.
?item rdfs:label ?itemLabel .
FILTER (lang(?itemLabel) = "en")
FILTER(CONTAINS(str(?itemLabel), 'Burrowes'))
BIND(STRENDS(str(?itemLabel), 'Burrowes') AS ?test)
}
LIMIT 5