what is the {duration} for {Lionel Messi} has {convicted of} as {tax fraud} ?
How long was Lionel Messi's sentence for tax fraud?
For how long was Lionel Messi convicted of tax fraud?
SELECT ?w WHERE { ?r property:duration ?w . ?r property:convicted_of resource:tax_fraud . resource:Lionel_Messi property:convicted_of ?r }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q615> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1399> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3806932> .
?statement <http://www.wikidata.org/entity/P2047> ?value. 
} 

SELECT ?value WHERE { wd:Q615 p:P1399 ?s . ?s ps:P1399 wd:Q3806932 . ?s pq:P2047 ?value}