Simple Question (Direct)
Simple Question
Q1378462
P17
Q15617994
USER
Which administrative territory is Héry a part of ?
(Q1378462,P17,c(Q15617994))
action filter_type
action find
entity Q1378462
relation P17
type Q15617994
['Q1378462', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q1378462 property:P17 ?p }
Héry
action filter_type
action find
entity Héry
relation country
type designation for an administrative territorial entity
['Héry', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Héry property:country ?p }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1378462,P17,c(Q15617994))
action filter_type
action find
entity Q1378462
relation P17
type Q15617994
The [ANSWER] is Héry a part of
['Q1378462', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q1378462 property:P17 ?p }
France
The France is Héry a part of
France
action filter_type
action find
entity Héry
relation country
type designation for an administrative territorial entity
['Héry', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Héry property:country ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P6
Q502895
USER
Who are the heads of the government of that administrative territory ?
(Q142,P6,c(Q502895))
action filter_type
action find
entity Q142
relation P6
type Q502895
['Q142', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q142 property:P6 ?w . ?w rdf:type ontology:Q502895 }
France
action filter_type
action find
entity France
relation head of government
type common name
['France', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:France property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]
common name
Q10287 Q7711
SYSTEM
Manuel Valls, Jean-Marc Ayrault
Q10287 Q7711
(Q142,P6,c(Q502895))
action filter_type
action find
entity Q142
relation P6
type Q502895
The heads of the government of that administrative territory are President [ANSWERS]
['Q142', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q142 property:P6 ?w . ?w rdf:type ontology:Q502895 }
Manuel Valls Jean-Marc Ayrault
The heads of the government of that administrative territory are President Manuel Valls and Jean-Marc Ayrault
Manuel Valls Jean-Marc Ayrault
action filter_type
action find
entity France
relation head of government
type common name
['France', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:France property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1628400 Q142
P6
Q502895
USER
Or Olivares?
OR((Q142,P6,c(Q502895)), (Q1628400,P6,c(Q502895)))
action filter_type
action union
action find
entity Q142
relation P6
action find
entity Q1628400
relation P6
type Q502895
{'OR': [['Q142', 'P6', {'concept': 'Q502895'}], ['Q1628400', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . { ?p property:P6 ?c . VALUES ( ?p ) { ( resource:Q1628400 ) ( resource:Q142 ) } } }
Olivares France
action filter_type
action union
action find
entity France
relation head of government
action find
entity Olivares
relation head of government
type common name
{'OR': [['France', 'head of government', {'concept': 'common name'}], ['Olivares', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . { ?p property:head_of_government ?c . VALUES ( ?p ) { ( resource:Olivares ) ( resource:France ) } } }
[]
common name
Q10287 Q14118610 Q7711
SYSTEM
Manuel Valls, Isidoro Ramos Garcia, Jean-Marc Ayrault
Q10287 Q14118610 Q7711
OR((Q142,P6,c(Q502895)), (Q1628400,P6,c(Q502895)))
action filter_type
action union
action find
entity Q142
relation P6
action find
entity Q1628400
relation P6
type Q502895
[ANSWERS]
{'OR': [['Q142', 'P6', {'concept': 'Q502895'}], ['Q1628400', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . { ?p property:P6 ?c . VALUES ( ?p ) { ( resource:Q1628400 ) ( resource:Q142 ) } } }
Manuel Valls Isidoro Ramos Garcia Jean-Marc Ayrault
Manuel Valls Isidoro Ramos Garcia Jean-Marc Ayrault
action filter_type
action union
action find
entity France
relation head of government
action find
entity Olivares
relation head of government
type common name
{'OR': [['France', 'head of government', {'concept': 'common name'}], ['Olivares', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . { ?p property:head_of_government ?c . VALUES ( ?p ) { ( resource:Olivares ) ( resource:France ) } } }
[]