Simple Question (Direct)
Simple Question
Q3591410
P69
Q3914
USER
Which school is the alma mater of Eric Wenger ?
(Q3591410,P69,c(Q3914))
action filter_type
action find
entity Q3591410
relation P69
type Q3914
['Q3591410', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?x WHERE { resource:Q3591410 property:P69 ?x . ?x rdf:type ontology:Q3914 }
Eric Wenger
action filter_type
action find
entity Eric Wenger
relation educated at
type school
['Eric Wenger', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?x WHERE { resource:Eric_Wenger property:educated_at ?x . ?x rdf:type ontology:school }
[]
school
Q1135990
SYSTEM
École nationale supérieure des arts décoratifs
Q1135990
(Q3591410,P69,c(Q3914))
action filter_type
action find
entity Q3591410
relation P69
type Q3914
[ANSWER] is the alma mater of Eric Wenger
['Q3591410', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?x WHERE { resource:Q3591410 property:P69 ?x . ?x rdf:type ontology:Q3914 }
École nationale supérieure des arts décoratifs
École nationale supérieure des arts décoratifs is the alma mater of Eric Wenger
École nationale supérieure des arts décoratifs
action filter_type
action find
entity Eric Wenger
relation educated at
type school
['Eric Wenger', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?x WHERE { resource:Eric_Wenger property:educated_at ?x . ?x rdf:type ontology:school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3591410
P106
Q12737077
USER
Which occupation is the profession of Eric Wenger ?
(Q3591410,P106,c(Q12737077))
action filter_type
action find
entity Q3591410
relation P106
type Q12737077
['Q3591410', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q3591410 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Eric Wenger
action filter_type
action find
entity Eric Wenger
relation occupation
type occupation
['Eric Wenger', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Eric_Wenger property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q81096
SYSTEM
engineer
Q81096
(Q3591410,P106,c(Q12737077))
action filter_type
action find
entity Q3591410
relation P106
type Q12737077
The [ANSWER] is the profession of Eric Wenger
['Q3591410', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q3591410 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
engineer
The engineer is the profession of Eric Wenger
engineer
action filter_type
action find
entity Eric Wenger
relation occupation
type occupation
['Eric Wenger', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Eric_Wenger property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q110443
Q12737077
USER
And how about Willi Hörter?
(Q110443,P106,c(Q12737077))
action filter_type
action find
entity Q110443
relation P106
type Q12737077
['Q110443', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q110443 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Willi Hörter
action filter_type
action find
entity Willi Hörter
relation occupation
type occupation
['Willi Hörter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Willi_Hörter property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q110443,P106,c(Q12737077))
action filter_type
action find
entity Q110443
relation P106
type Q12737077
[ANSWER]
['Q110443', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q110443 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
politician
politician
action filter_type
action find
entity Willi Hörter
relation occupation
type occupation
['Willi Hörter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Willi_Hörter property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q81096 Q1986550
P106
Q502895
USER
How many people have the profession of engineer and geomatics engineering ?
(c(Q502895),P106,Q81096) (c(Q502895),P106,Q1986550)
action count
action intersection
action filter_type
action find_reverse
entity Q81096
relation P106
type Q502895
action filter_type
action find_reverse
entity Q1986550
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q81096'] [{'concept': 'Q502895'}, 'P106', 'Q1986550']
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:P106 resource:Q81096 . ?w rdf:type ontology:Q502895 . ?w property:P106 resource:Q1986550 . ?w rdf:type ontology:Q502895 }
engineer geomatics engineering
action count
action intersection
action filter_type
action find_reverse
entity engineer
relation occupation
type common name
action filter_type
action find_reverse
entity geomatics engineering
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'engineer'] [{'concept': 'common name'}, 'occupation', 'geomatics engineering']
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:occupation resource:engineer . ?w rdf:type ontology:common_name . ?w property:occupation resource:geomatics_engineering . ?w rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q1225382 Q4747271
(c(Q502895),P106,Q81096) (c(Q502895),P106,Q1986550)
action count
action intersection
action filter_type
action find_reverse
entity Q81096
relation P106
type Q502895
action filter_type
action find_reverse
entity Q1986550
relation P106
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q81096'] [{'concept': 'Q502895'}, 'P106', 'Q1986550']
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:P106 resource:Q81096 . ?w rdf:type ontology:Q502895 . ?w property:P106 resource:Q1986550 . ?w rdf:type ontology:Q502895 }
Pierre Jacotin Ammon
2
action count
action intersection
action filter_type
action find_reverse
entity engineer
relation occupation
type common name
action filter_type
action find_reverse
entity geomatics engineering
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'engineer'] [{'concept': 'common name'}, 'occupation', 'geomatics engineering']
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:occupation resource:engineer . ?w rdf:type ontology:common_name . ?w property:occupation resource:geomatics_engineering . ?w rdf:type ontology:common_name }
[]