what is the {serial number} for {Andrei Gromyko} has {award received} as {Order of Lenin} ?
How many awards has the Order of Lenin given to Andrei Gromyko?
What number of awards has Andrei Gromyko received from the Order of Lenin?
SELECT ?d WHERE { resource:Andrei_Gromyko property:award_received ?v . ?v property:award_received resource:Order_of_Lenin . ?v property:serial_number ?d }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q184267> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P166> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q185493> .
?statement <http://www.wikidata.org/entity/P2598> ?value. 
} 

SELECT ?value WHERE { wd:Q184267 p:P166 ?s . ?s ps:P166 wd:Q185493 . ?s pq:P2598 ?value}