Question: How many MTV Video Music Award were given to a person who was Selena Gomez's partner until 2012 ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "MTV Video Music Award" . ?e <winner> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_1 <partner> ?e_2 . ?e_2 <pred:name> "Selena Gomez" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <partner> ; <pred:fact_t> ?e_2 ] <end_time> ?qpv . ?qpv <pred:year> 2012 .   }
Program:
function: Find
inputs: Selena Gomez
function: Relate
dependencies: 0
inputs: partner
backward
function: QFilterYear
dependencies: 1
inputs: end time
2012
=
function: FilterConcept
dependencies: 2
inputs: human
function: Relate
dependencies: 3
inputs: winner
backward
function: FilterConcept
dependencies: 4
inputs: MTV Video Music Award
function: Count
dependencies: 5