Simple Question (Direct)
Simple Question
Q490042
P47
Q20667921
USER
Which french administrative divisions share border with Oneux ?
(Q490042,P47,c(Q20667921))
action filter_type
action find
entity Q490042
relation P47
type Q20667921
['Q490042', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q20667921 . resource:Q490042 property:P47 ?h }
Oneux
action filter_type
action find
entity Oneux
relation shares border with
type type of french administrative division
['Oneux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:type_of_french_administrative_division . resource:Oneux property:shares_border_with ?h }
[]
type of french administrative division
Q734988 Q158331 Q816526
SYSTEM
Saint-Riquier, Gapennes, Yvrench
Q816526 Q734988 Q839865 Q753185 Q61807 Q1028168 Q313513 Q158331
(Q490042,P47,c(Q20667921))
action filter_type
action find
entity Q490042
relation P47
type Q20667921
[ANSWERS] share border with Oneux
['Q490042', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q20667921 . resource:Q490042 property:P47 ?h }
Yvrench Saint-Riquier Yaucourt-Bussus Yvrencheux Coulonvillers Bussus-Bussuel Maison-Roland Gapennes
Saint-Riquier, Gapennes and Yvrench share border with Oneux
Saint-Riquier Gapennes Yvrench
action filter_type
action find
entity Oneux
relation shares border with
type type of french administrative division
['Oneux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:type_of_french_administrative_division . resource:Oneux property:shares_border_with ?h }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q734988 Q158331 Q816526
P17
Q15617994
USER
Which administrative territories are Saint-Riquier, Gapennes and Yvrench situated in ?
(Q734988,P17,c(Q15617994)) (Q158331,P17,c(Q15617994)) (Q816526,P17,c(Q15617994))
action union
action filter_type
action find
entity Q734988
relation P17
type Q15617994
action filter_type
action find
entity Q158331
relation P17
type Q15617994
action filter_type
action find
entity Q816526
relation P17
type Q15617994
['Q734988', 'P17', {'concept': 'Q15617994'}] ['Q158331', 'P17', {'concept': 'Q15617994'}] ['Q816526', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { resource:Q734988 property:P17 ?o . ?o rdf:type ontology:Q15617994 } UNION { resource:Q158331 property:P17 ?o . ?o rdf:type ontology:Q15617994 } }
Saint-Riquier Gapennes Yvrench
action union
action filter_type
action find
entity Saint-Riquier
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Gapennes
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Yvrench
relation country
type designation for an administrative territorial entity
['Saint-Riquier', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Gapennes', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Yvrench', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { resource:Saint-Riquier property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Gapennes property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q142 Q142 Q142
SYSTEM
France
Q142 Q142 Q142
(Q734988,P17,c(Q15617994)) (Q158331,P17,c(Q15617994)) (Q816526,P17,c(Q15617994))
action union
action filter_type
action find
entity Q734988
relation P17
type Q15617994
action filter_type
action find
entity Q158331
relation P17
type Q15617994
action filter_type
action find
entity Q816526
relation P17
type Q15617994
Which administrative territories are Saint-Riquier, Gapennes and Yvrench situated in
['Q734988', 'P17', {'concept': 'Q15617994'}] ['Q158331', 'P17', {'concept': 'Q15617994'}] ['Q816526', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { resource:Q734988 property:P17 ?o . ?o rdf:type ontology:Q15617994 } UNION { resource:Q158331 property:P17 ?o . ?o rdf:type ontology:Q15617994 } }
France France France
Which administrative territories are Saint-Riquier, Gapennes and Yvrench situated in
France France France
action union
action filter_type
action find
entity Saint-Riquier
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Gapennes
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Yvrench
relation country
type designation for an administrative territorial entity
['Saint-Riquier', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Gapennes', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Yvrench', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { resource:Saint-Riquier property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Gapennes property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q734988
P20
Q502895
USER
Who died in Saint-Riquier ?
(c(Q502895),P20,Q734988)
action filter_type
action find_reverse
entity Q734988
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q734988']
SELECT DISTINCT ?s WHERE { ?s property:P20 resource:Q734988 . ?s rdf:type ontology:Q502895 }
Saint-Riquier
action filter_type
action find_reverse
entity Saint-Riquier
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Saint-Riquier']
SELECT DISTINCT ?s WHERE { ?s property:place_of_death resource:Saint-Riquier . ?s rdf:type ontology:common_name }
[]
common name
Q3617330 Q539434
SYSTEM
Angilramno, Angilbert
Q3617330 Q539434
(c(Q502895),P20,Q734988)
action filter_type
action find_reverse
entity Q734988
relation P20
type Q502895
[ANSWERS] died in Saint-Riquier
[{'concept': 'Q502895'}, 'P20', 'Q734988']
SELECT DISTINCT ?s WHERE { ?s property:P20 resource:Q734988 . ?s rdf:type ontology:Q502895 }
Angilramno Angilbert
Angilramno and Angilbert died in Saint-Riquier
Angilramno Angilbert
action filter_type
action find_reverse
entity Saint-Riquier
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Saint-Riquier']
SELECT DISTINCT ?s WHERE { ?s property:place_of_death resource:Saint-Riquier . ?s rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3617330
P39
Q12737077
USER
What was the position for which that person was appointed ?
(Q3617330,P39,c(Q12737077))
action filter_type
action find
entity Q3617330
relation P39
type Q12737077
['Q3617330', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3617330 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Angilramno
action filter_type
action find
entity Angilramno
relation position held
type occupation
['Angilramno', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Angilramno property:position_held ?c . ?c rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q539434
SYSTEM
Did you mean Angilbert ?
Q3617330 Q539434
(Q3617330,P39,c(Q12737077)) (Q539434,P39,c(Q12737077))
[ANSWER]
['Q3617330', 'P39', {'concept': 'Q12737077'}] ['Q539434', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3617330 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Angilramno Angilbert
Did you mean Angilbert ?
Angilbert
['Angilramno', 'position held', {'concept': 'occupation'}] ['Angilbert', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Angilramno property:position_held ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Angilramno. Could you tell me the answer for that?
(Q3617330,P39,c(Q12737077))
Q3617330
['Q3617330', 'P39', {'concept': 'Q12737077'}]
['Angilramno', 'position held', {'concept': 'occupation'}]
[]
Q103163
SYSTEM
abbot
Q103163
(Q3617330,P39,c(Q12737077))
action filter_type
action find
entity Q3617330
relation P39
type Q12737077
[ANSWER]
['Q3617330', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3617330 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
abbot
Abbot
abbot
action filter_type
action find
entity Angilramno
relation position held
type occupation
['Angilramno', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Angilramno property:position_held ?c . ?c rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q103163 Q15711211
P106
Q502895
USER
Does Giuseppe Ferrari have the profession as that occupation ?
(Q15711211,P106,Q103163)
action is_in
entity Q103163
action find
entity Q15711211
relation P106
['Q15711211', 'P106', 'Q103163']
ASK WHERE { resource:Q15711211 property:P106 resource:Q103163 }
abbot Giuseppe Ferrari
action is_in
entity abbot
action find
entity Giuseppe Ferrari
relation occupation
['Giuseppe Ferrari', 'occupation', 'abbot']
ASK WHERE { resource:Giuseppe_Ferrari property:occupation resource:abbot }
[]
common name
SYSTEM
YES
(Q15711211,P106,Q103163)
action is_in
entity Q103163
action find
entity Q15711211
relation P106
[ANSWER]
['Q15711211', 'P106', 'Q103163']
ASK WHERE { resource:Q15711211 property:P106 resource:Q103163 }
Yes
action is_in
entity abbot
action find
entity Giuseppe Ferrari
relation occupation
['Giuseppe Ferrari', 'occupation', 'abbot']
ASK WHERE { resource:Giuseppe_Ferrari property:occupation resource:abbot }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q209834 Q3617330
P47 P20
Q20667921
USER
Which french administrative divisions did the expiration of Angilramno occur or share the border with Pamiers ?
OR((Q3617330,P20,c(Q20667921)), (Q209834,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q3617330
relation P20
action find
entity Q209834
relation P47
type Q20667921
{'OR': [['Q3617330', 'P20', {'concept': 'Q20667921'}], ['Q209834', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q20667921 . { { resource:Q209834 property:P47 ?p } UNION { resource:Q3617330 property:P20 ?p } } }
Pamiers Angilramno
action filter_type
action union
action find
entity Angilramno
relation place of death
action find
entity Pamiers
relation shares border with
type type of french administrative division
{'OR': [['Angilramno', 'place of death', {'concept': 'type of french administrative division'}], ['Pamiers', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_french_administrative_division . { { resource:Pamiers property:shares_border_with ?p } UNION { resource:Angilramno property:place_of_death ?p } } }
[]
type of french administrative division
Q1082735 Q1047133 Q734988 Q749900 Q974406 Q1368158 Q615706 Q1084020 Q1363239 Q1370487
SYSTEM
Some of them are La Tour-du-Crieu, Montaut, Saint-Riquier, Madière, Escosse, Saint-Victor-Rouzaud, Saint-Jean-du-Falga, Bézac, Saint-Bauzeil, Bonnac
Q1084020 Q974406 Q615706 Q734988 Q1368158 Q1370487 Q1047133 Q749900 Q1142308 Q1082735 Q1363048 Q1363239 Q1082190 Q730388
OR((Q3617330,P20,c(Q20667921)), (Q209834,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q3617330
relation P20
action find
entity Q209834
relation P47
type Q20667921
Angilramno of the expiration occurred in [ANSWERS]
{'OR': [['Q3617330', 'P20', {'concept': 'Q20667921'}], ['Q209834', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q20667921 . { { resource:Q209834 property:P47 ?p } UNION { resource:Q3617330 property:P20 ?p } } }
Bézac Escosse Saint-Jean-du-Falga Saint-Riquier Saint-Victor-Rouzaud Bonnac Montaut Madière Le Carlaret La Tour-du-Crieu Verniolle Saint-Bauzeil Benagues Villeneuve-du-Paréage
Angilramno of the expiration occurred in La Tour-du-Crieu, Montaut, Saint-Riquier, Madière, Escosse, Saint-Victor-Rouzaud, Saint-Jean-du-Falga, Bézac, Saint-Bauzeil and Bonnac
La Tour-du-Crieu Montaut Saint-Riquier Madière Escosse Saint-Victor-Rouzaud Saint-Jean-du-Falga Bézac Saint-Bauzeil Bonnac
action filter_type
action union
action find
entity Angilramno
relation place of death
action find
entity Pamiers
relation shares border with
type type of french administrative division
{'OR': [['Angilramno', 'place of death', {'concept': 'type of french administrative division'}], ['Pamiers', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_french_administrative_division . { { resource:Pamiers property:shares_border_with ?p } UNION { resource:Angilramno property:place_of_death ?p } } }
[]