Simple Question (Direct)
Simple Question
Q3357
P36
Q20667921
USER
What is the capital of Dordogne ?
(Q3357,P36,c(Q20667921))
action filter_type
action find
entity Q3357
relation P36
type Q20667921
['Q3357', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?u WHERE { resource:Q3357 property:P36 ?u . ?u rdf:type ontology:Q20667921 }
Dordogne
action filter_type
action find
entity Dordogne
relation capital
type type of french administrative division
['Dordogne', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?u WHERE { resource:Dordogne property:capital ?u . ?u rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q6588
SYSTEM
Périgueux
Q6588
(Q3357,P36,c(Q20667921))
action filter_type
action find
entity Q3357
relation P36
type Q20667921
The capital of Dordogne is the [ANSWER]
['Q3357', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?u WHERE { resource:Q3357 property:P36 ?u . ?u rdf:type ontology:Q20667921 }
Périgueux
The capital of Dordogne is the Périgueux
Périgueux
action filter_type
action find
entity Dordogne
relation capital
type type of french administrative division
['Dordogne', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?u WHERE { resource:Dordogne property:capital ?u . ?u rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3357
P1376
Q20667921
USER
Which french administrative division is the county seat for that administrative territory ?
(c(Q20667921),P1376,Q6588)
action filter_type
action find_reverse
entity Q3357
relation P1376
type Q20667921
[{'concept': 'Q20667921'}, 'P1376', 'Q6588']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q3357 . ?u rdf:type ontology:Q20667921 }
Dordogne
action filter_type
action find_reverse
entity Dordogne
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'Périgueux']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Dordogne . ?u rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q6588
SYSTEM
Périgueux
Q6588
(c(Q20667921),P1376,Q6588)
action filter_type
action find_reverse
entity Q3357
relation P1376
type Q20667921
[ANSWER] is the county seat for that administrative territory
[{'concept': 'Q20667921'}, 'P1376', 'Q6588']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q3357 . ?u rdf:type ontology:Q20667921 }
Périgueux
Périgueux is the county seat for that administrative territory
Périgueux
action filter_type
action find_reverse
entity Dordogne
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'Périgueux']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Dordogne . ?u rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q142 Q3357
P1376 P17
Q20667921
USER
Which french administrative divisions are center of administration for Dordogne and are present in France ?
AND((c(Q20667921),P1376,Q3357), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q3357
relation P1376
action find_reverse
entity Q142
relation P17
type Q20667921
{'AND': [[{'concept': 'Q20667921'}, 'P1376', 'Q3357'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?t WHERE { ?t property:P1376 resource:Q3357 . ?t property:P17 resource:Q142 . ?t rdf:type ontology:Q20667921 }
France Dordogne
action filter_type
action intersection
action find_reverse
entity Dordogne
relation capital of
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'capital of', 'Dordogne'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?t WHERE { ?t property:capital_of resource:Dordogne . ?t property:country resource:France . ?t rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q6588
SYSTEM
Périgueux
Q6588
AND((c(Q20667921),P1376,Q3357), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q3357
relation P1376
action find_reverse
entity Q142
relation P17
type Q20667921
[ANSWER] is center of administration for Dordogne and is present in France
{'AND': [[{'concept': 'Q20667921'}, 'P1376', 'Q3357'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?t WHERE { ?t property:P1376 resource:Q3357 . ?t property:P17 resource:Q142 . ?t rdf:type ontology:Q20667921 }
Périgueux
Périgueux is center of administration for Dordogne and is present in France
Périgueux
action filter_type
action intersection
action find_reverse
entity Dordogne
relation capital of
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'capital of', 'Dordogne'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?t WHERE { ?t property:capital_of resource:Dordogne . ?t property:country resource:France . ?t rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q6588 Q1726847 Q1486824
P1376
Q20667921
USER
Is that french administrative division center of administration for canton of Périgueux-Centre and canton of Périgueux-Ouest ?
(Q6588,P1376,Q1726847) (Q6588,P1376,Q1486824)
action is_in
entity Q6588
action intersection
action find_reverse
entity Q1726847
relation P1376
action find_reverse
entity Q1486824
relation P1376
['Q6588', 'P1376', 'Q1726847'] ['Q6588', 'P1376', 'Q1486824']
ASK WHERE { resource:Q6588 property:P1376 resource:Q1486824 . resource:Q6588 property:P1376 resource:Q1726847 }
Périgueux canton of Périgueux-Centre canton of Périgueux-Ouest
action is_in
entity Périgueux
action intersection
action find_reverse
entity canton of Périgueux-Centre
relation capital of
action find_reverse
entity canton of Périgueux-Ouest
relation capital of
['Périgueux', 'capital of', 'canton of Périgueux-Centre'] ['Périgueux', 'capital of', 'canton of Périgueux-Ouest']
ASK WHERE { resource:Périgueux property:capital_of resource:canton_of_Périgueux-Ouest . resource:Périgueux property:capital_of resource:canton_of_Périgueux-Centre }
[]
type of french administrative division
SYSTEM
YES
(Q6588,P1376,Q1726847) (Q6588,P1376,Q1486824)
action is_in
entity Q6588
action intersection
action find_reverse
entity Q1726847
relation P1376
action find_reverse
entity Q1486824
relation P1376
[ANSWER]
['Q6588', 'P1376', 'Q1726847'] ['Q6588', 'P1376', 'Q1486824']
ASK WHERE { resource:Q6588 property:P1376 resource:Q1486824 . resource:Q6588 property:P1376 resource:Q1726847 }
Yes
action is_in
entity Périgueux
action intersection
action find_reverse
entity canton of Périgueux-Centre
relation capital of
action find_reverse
entity canton of Périgueux-Ouest
relation capital of
['Périgueux', 'capital of', 'canton of Périgueux-Centre'] ['Périgueux', 'capital of', 'canton of Périgueux-Ouest']
ASK WHERE { resource:Périgueux property:capital_of resource:canton_of_Périgueux-Ouest . resource:Périgueux property:capital_of resource:canton_of_Périgueux-Centre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6588
P6
Q502895
USER
Which person is Périgueux the head of goverment of ?
(Q6588,P6,c(Q502895))
action filter_type
action find
entity Q6588
relation P6
type Q502895
['Q6588', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q6588 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Périgueux
action filter_type
action find
entity Périgueux
relation head of government
type common name
['Périgueux', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Périgueux property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]
common name
Q3310423
SYSTEM
Michel Moyrand
Q3310423
(Q6588,P6,c(Q502895))
action filter_type
action find
entity Q6588
relation P6
type Q502895
[ANSWER] is Périgueux the head of goverment of
['Q6588', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q6588 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Michel Moyrand
Michel Moyrand is Périgueux the head of goverment of
Michel Moyrand
action filter_type
action find
entity Périgueux
relation head of government
type common name
['Périgueux', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Périgueux property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6588
P47
Q20667921
USER
Which french administrative divisions are adjacent to Périgueux ?
(Q6588,P47,c(Q20667921))
action filter_type
action find
entity Q6588
relation P47
type Q20667921
['Q6588', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q20667921 . resource:Q6588 property:P47 ?n }
Périgueux
action filter_type
action find
entity Périgueux
relation shares border with
type type of french administrative division
['Périgueux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:type_of_french_administrative_division . resource:Périgueux property:shares_border_with ?n }
[]
type of french administrative division
Q1076582 Q1013275 Q746946
SYSTEM
Notre-Dame-de-Sanilhac, Château-l'Évêque, Coulounieix-Chamiers
Q1013275 Q746946 Q1076670 Q957295 Q1076582 Q1012118 Q21979644
(Q6588,P47,c(Q20667921))
action filter_type
action find
entity Q6588
relation P47
type Q20667921
[ANSWERS] are adjacent to Périgueux
['Q6588', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q20667921 . resource:Q6588 property:P47 ?n }
Château-l'Évêque Coulounieix-Chamiers Marsac-sur-l'Isle Chancelade Notre-Dame-de-Sanilhac Champcevinel Boulazac-Isle-Manoire
Notre-Dame-de-Sanilhac, Château-l'Évêque and Coulounieix-Chamiers are adjacent to Périgueux
Notre-Dame-de-Sanilhac Château-l'Évêque Coulounieix-Chamiers
action filter_type
action find
entity Périgueux
relation shares border with
type type of french administrative division
['Périgueux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:type_of_french_administrative_division . resource:Périgueux property:shares_border_with ?n }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1075279
P47
Q20667921
USER
Are Bailleau-le-Pin bordered by those ones ?
(Q1075279,P47,Q1076582) (Q1075279,P47,Q1013275) (Q1075279,P47,Q746946)
action is_in
entity prev_answer
action find
entity Q1075279
relation P47
['Q1075279', 'P47', 'Q1076582'] ['Q1075279', 'P47', 'Q1013275'] ['Q1075279', 'P47', 'Q746946']
ASK WHERE { resource:Q1075279 property:P47 ?l . VALUES ( ?l ) { ( resource:Q1013275 ) ( resource:Q746946 ) ( resource:Q1076670 ) } }
Bailleau-le-Pin
action is_in
entity prev_answer
action find
entity Bailleau-le-Pin
relation shares border with
['Bailleau-le-Pin', 'shares border with', 'Notre-Dame-de-Sanilhac'] ['Bailleau-le-Pin', 'shares border with', "Château-l'Évêque"] ['Bailleau-le-Pin', 'shares border with', 'Coulounieix-Chamiers']
ASK WHERE { resource:Bailleau-le-Pin property:shares_border_with ?l . VALUES ( ?l ) { ( resource:Château-l'Évêque ) ( resource:Coulounieix-Chamiers ) ( resource:Marsac-sur-l'Isle ) } }
[]
type of french administrative division
SYSTEM
NO
(Q1075279,P47,Q1076582) (Q1075279,P47,Q1013275) (Q1075279,P47,Q746946)
action is_in
entity prev_answer
action find
entity Q1075279
relation P47
[ANSWER]
['Q1075279', 'P47', 'Q1076582'] ['Q1075279', 'P47', 'Q1013275'] ['Q1075279', 'P47', 'Q746946']
ASK WHERE { resource:Q1075279 property:P47 ?l . VALUES ( ?l ) { ( resource:Q1013275 ) ( resource:Q746946 ) ( resource:Q1076670 ) } }
No
action is_in
entity prev_answer
action find
entity Bailleau-le-Pin
relation shares border with
['Bailleau-le-Pin', 'shares border with', 'Notre-Dame-de-Sanilhac'] ['Bailleau-le-Pin', 'shares border with', "Château-l'Évêque"] ['Bailleau-le-Pin', 'shares border with', 'Coulounieix-Chamiers']
ASK WHERE { resource:Bailleau-le-Pin property:shares_border_with ?l . VALUES ( ?l ) { ( resource:Château-l'Évêque ) ( resource:Coulounieix-Chamiers ) ( resource:Marsac-sur-l'Isle ) } }
[]