I have the following query
SELECT ?animal ?timePregnant WHERE {
wd:Q15083 wdt:P3063 ?timePregnant .
SERVICE wikibase:label
{bd:serviceParam wikibase:language "en"}
}
How do I make sure that it returns giraffe and 457 days? At the moment it is only returning an empty label for animal and then 457 for the days.
SELECT ?animal ?timePregnant WHERE {
?animal wdt:P3063 ?timePregnant .
SERVICE wikibase:label
{bd:serviceParam wikibase:language "en"}
}
I thought about trying something like this but for this it returns all entities. I need to add a second constraint but I do not know how I set the constraint that ?animal is Q15083.
What is the constraint needed?