Question: What association football club has Kevin James (whose position is midfielder) as a teammate, having a score of 2 points?
Choices:
Greenock Morton F.C.
Boston United F.C.
Yeovil Town F.C.
Puerto Rico Islanders
Walsall F.C.
Middlesbrough F.C.
Grimsby Town F.C.
Crawley Town F.C.
Charlton Athletic F.C.
Stade Brestois 29
Program:
function: Find
inputs: midfielder
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: Kevin James
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of sports team
forward
function: QFilterNum
dependencies: 4
inputs: number of points/goals/set scored
2
=
function: FilterConcept
dependencies: 5
inputs: association football club
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "association football club" . ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:name> "Kevin James" . ?e_1 <position_played_on_team_/_speciality> ?e_2 . ?e_2 <pred:name> "midfielder" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <member_of_sports_team> ; <pred:fact_t> ?e ] <number_of_points/goals/set_scored> ?qpv . ?qpv <pred:unit> "1" . ?qpv <pred:value> "2"^^xsd:double .  }
Answer: Crawley Town F.C.