Simple Question (Direct)
Simple Question
Q1066646
P47
Q20667921
USER
Which french administrative divisions have a shared border with Villeneuve-de-Marc ?
(Q1066646,P47,c(Q20667921))
action filter_type
action find
entity Q1066646
relation P47
type Q20667921
['Q1066646', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { resource:Q1066646 property:P47 ?h . ?h rdf:type ontology:Q20667921 }
Villeneuve-de-Marc
action filter_type
action find
entity Villeneuve-de-Marc
relation shares border with
type type of french administrative division
['Villeneuve-de-Marc', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { resource:Villeneuve-de-Marc property:shares_border_with ?h . ?h rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1002760 Q1067832 Q1003912
SYSTEM
Saint-Jean-de-Bournay, Saint-Julien-de-l'Herms, Bossieu
Q1069816 Q1003912 Q1067856 Q1094326 Q1002760 Q1069460 Q1067832 Q634390
(Q1066646,P47,c(Q20667921))
action filter_type
action find
entity Q1066646
relation P47
type Q20667921
[ANSWERS] have a shared border with Villeneuve-de-Marc
['Q1066646', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { resource:Q1066646 property:P47 ?h . ?h rdf:type ontology:Q20667921 }
Meyssiez Bossieu Savas-Mépin Arzay Saint-Jean-de-Bournay Lieudieu Saint-Julien-de-l'Herms Royas
Saint-Jean-de-Bournay, Saint-Julien-de-l'Herms and Bossieu have a shared border with Villeneuve-de-Marc
Saint-Jean-de-Bournay Saint-Julien-de-l'Herms Bossieu
action filter_type
action find
entity Villeneuve-de-Marc
relation shares border with
type type of french administrative division
['Villeneuve-de-Marc', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { resource:Villeneuve-de-Marc property:shares_border_with ?h . ?h rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1002760
P36
Q20667921
USER
Which french administrative division consists of Saint-Jean-de-Bournay as its capital ?
(c(Q20667921),P36,Q1002760)
action filter_type
action find_reverse
entity Q1002760
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q1002760']
SELECT DISTINCT ?c WHERE { ?c property:P36 resource:Q1002760 . ?c rdf:type ontology:Q20667921 }
Saint-Jean-de-Bournay
action filter_type
action find_reverse
entity Saint-Jean-de-Bournay
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Saint-Jean-de-Bournay']
SELECT DISTINCT ?c WHERE { ?c property:capital resource:Saint-Jean-de-Bournay . ?c rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1727206
SYSTEM
canton of Saint-Jean-de-Bournay
Q1727206
(c(Q20667921),P36,Q1002760)
action filter_type
action find_reverse
entity Q1002760
relation P36
type Q20667921
The [ANSWER] consists of Saint-Jean-de-Bournay as its capital
[{'concept': 'Q20667921'}, 'P36', 'Q1002760']
SELECT DISTINCT ?c WHERE { ?c property:P36 resource:Q1002760 . ?c rdf:type ontology:Q20667921 }
canton of Saint-Jean-de-Bournay
The canton of Saint-Jean-de-Bournay consists of Saint-Jean-de-Bournay as its capital
canton of Saint-Jean-de-Bournay
action filter_type
action find_reverse
entity Saint-Jean-de-Bournay
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Saint-Jean-de-Bournay']
SELECT DISTINCT ?c WHERE { ?c property:capital resource:Saint-Jean-de-Bournay . ?c rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1727206
P1376
Q20667921
USER
Which french administrative division is center of administration for that one ?
(c(Q20667921),P1376,Q1727206)
action filter_type
action find_reverse
entity Q1727206
relation P1376
type Q20667921
[{'concept': 'Q20667921'}, 'P1376', 'Q1727206']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q20667921 . ?a property:P1376 resource:Q1727206 }
canton of Saint-Jean-de-Bournay
action filter_type
action find_reverse
entity canton of Saint-Jean-de-Bournay
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Saint-Jean-de-Bournay']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:type_of_french_administrative_division . ?a property:capital_of resource:canton_of_Saint-Jean-de-Bournay }
[]
type of french administrative division
Q1002760
SYSTEM
Saint-Jean-de-Bournay
Q1002760
(c(Q20667921),P1376,Q1727206)
action filter_type
action find_reverse
entity Q1727206
relation P1376
type Q20667921
Is [ANSWER] is center of administration for that one
[{'concept': 'Q20667921'}, 'P1376', 'Q1727206']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q20667921 . ?a property:P1376 resource:Q1727206 }
Saint-Jean-de-Bournay
Is Saint-Jean-de-Bournay is center of administration for that one
Saint-Jean-de-Bournay
action filter_type
action find_reverse
entity canton of Saint-Jean-de-Bournay
relation capital of
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital of', 'canton of Saint-Jean-de-Bournay']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:type_of_french_administrative_division . ?a property:capital_of resource:canton_of_Saint-Jean-de-Bournay }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1002760
P19
Q502895
USER
Who were born at that french administrative division ?
(c(Q502895),P19,Q1002760)
action filter_type
action find_reverse
entity Q1002760
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q1002760']
SELECT DISTINCT ?i WHERE { ?i property:P19 resource:Q1002760 . ?i rdf:type ontology:Q502895 }
Saint-Jean-de-Bournay
action filter_type
action find_reverse
entity Saint-Jean-de-Bournay
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Saint-Jean-de-Bournay']
SELECT DISTINCT ?i WHERE { ?i property:place_of_birth resource:Saint-Jean-de-Bournay . ?i rdf:type ontology:common_name }
[]
common name
Q3131203 Q3184174
SYSTEM
Henri Gonnet, Joseph-Antoine Bouvard
Q3131203 Q3184174
(c(Q502895),P19,Q1002760)
action filter_type
action find_reverse
entity Q1002760
relation P19
type Q502895
[ANSWERS] were born at that french administrative division
[{'concept': 'Q502895'}, 'P19', 'Q1002760']
SELECT DISTINCT ?i WHERE { ?i property:P19 resource:Q1002760 . ?i rdf:type ontology:Q502895 }
Henri Gonnet Joseph-Antoine Bouvard
Henri Gonnet and Joseph-Antoine Bouvard were born at that french administrative division
Henri Gonnet Joseph-Antoine Bouvard
action filter_type
action find_reverse
entity Saint-Jean-de-Bournay
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Saint-Jean-de-Bournay']
SELECT DISTINCT ?i WHERE { ?i property:place_of_birth resource:Saint-Jean-de-Bournay . ?i rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1002760
P19 P21
Q502895
USER
Which people have birthplace at Saint-Jean-de-Bournay and are a male ?
AND((c(Q502895),P19,Q1002760), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1002760
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q1002760'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P19 resource:Q1002760 . ?v property:P21 resource:Q6581097 }
male Saint-Jean-de-Bournay
action filter_type
action intersection
action find_reverse
entity Saint-Jean-de-Bournay
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Saint-Jean-de-Bournay'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:place_of_birth resource:Saint-Jean-de-Bournay . ?v property:gender resource:male }
[]
common name
Q3131203 Q3184174
SYSTEM
Henri Gonnet, Joseph-Antoine Bouvard
Q3131203 Q3184174
AND((c(Q502895),P19,Q1002760), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1002760
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have birthplace at Saint-Jean-de-Bournay and are a male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q1002760'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P19 resource:Q1002760 . ?v property:P21 resource:Q6581097 }
Henri Gonnet Joseph-Antoine Bouvard
Henri Gonnet and Joseph-Antoine Bouvard have birthplace at Saint-Jean-de-Bournay and are a male
Henri Gonnet Joseph-Antoine Bouvard
action filter_type
action intersection
action find_reverse
entity Saint-Jean-de-Bournay
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Saint-Jean-de-Bournay'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:place_of_birth resource:Saint-Jean-de-Bournay . ?v property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q509621 Q1002760
P47
Q20667921
USER
Which french administrative divisions are bordered by Saint-Jean-de-Bournay or Balloy ?
OR((c(Q20667921),P47,Q1002760), (c(Q20667921),P47,Q509621))
action filter_type
action union
action find_reverse
entity Q1002760
relation P47
action find_reverse
entity Q509621
relation P47
type Q20667921
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q1002760'], [{'concept': 'Q20667921'}, 'P47', 'Q509621']]}
SELECT DISTINCT ?f WHERE { { { ?f property:P47 resource:Q1002760 } UNION { ?f property:P47 resource:Q509621 } } . ?f rdf:type ontology:Q20667921 }
Balloy Saint-Jean-de-Bournay
action filter_type
action union
action find_reverse
entity Saint-Jean-de-Bournay
relation shares border with
action find_reverse
entity Balloy
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Jean-de-Bournay'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Balloy']]}
SELECT DISTINCT ?f WHERE { { { ?f property:shares_border_with resource:Saint-Jean-de-Bournay } UNION { ?f property:shares_border_with resource:Balloy } } . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q270909 Q812697 Q510449 Q1066646 Q1069460 Q243603 Q1418672 Q574064 Q1069595 Q213858
SYSTEM
Some of them are Gravon, Bazoches-lès-Bray, Artas, Villeneuve-de-Marc, Lieudieu, Vimpelles, Châtenay-sur-Seine, Châtonnay, Charantonnay, Vinneuf
Q243398 Q270909 Q510449 Q634390 Q812697 Q574064 Q1069460 Q213858 Q243603 Q1418672 Q966103 Q1069595 Q1066646
OR((c(Q20667921),P47,Q1002760), (c(Q20667921),P47,Q509621))
action filter_type
action union
action find_reverse
entity Q1002760
relation P47
action find_reverse
entity Q509621
relation P47
type Q20667921
And [ANSWERS] are bordered by Saint-Jean-de-Bournay or Balloy
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q1002760'], [{'concept': 'Q20667921'}, 'P47', 'Q509621']]}
SELECT DISTINCT ?f WHERE { { { ?f property:P47 resource:Q1002760 } UNION { ?f property:P47 resource:Q509621 } } . ?f rdf:type ontology:Q20667921 }
Égligny Gravon Artas Royas Bazoches-lès-Bray Châtonnay Lieudieu Vinneuf Vimpelles Châtenay-sur-Seine Meyrieu-les-Étangs Charantonnay Villeneuve-de-Marc
And Gravon, Bazoches-lès-Bray, Artas, Villeneuve-de-Marc, Lieudieu, Vimpelles, Châtenay-sur-Seine, Châtonnay, Charantonnay and Vinneuf are bordered by Saint-Jean-de-Bournay or Balloy
Gravon Bazoches-lès-Bray Artas Villeneuve-de-Marc Lieudieu Vimpelles Châtenay-sur-Seine Châtonnay Charantonnay Vinneuf
action filter_type
action union
action find_reverse
entity Saint-Jean-de-Bournay
relation shares border with
action find_reverse
entity Balloy
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Jean-de-Bournay'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Balloy']]}
SELECT DISTINCT ?f WHERE { { { ?f property:shares_border_with resource:Saint-Jean-de-Bournay } UNION { ?f property:shares_border_with resource:Balloy } } . ?f rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q20667921
USER
How many french administrative divisions are next to the border of that french administrative division ?
(c(Q20667921),P47,Q510449)
[{'concept': 'Q20667921'}, 'P47', 'Q510449']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q510449 . ?z rdf:type ontology:Q20667921 }
[{'concept': 'type of french administrative division'}, 'shares border with', 'Artas']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Artas . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Quantitative|Count|Single entity type|Clarification
Q812697
SYSTEM
Did you mean Bazoches-lès-Bray ?
(c(Q20667921),P47,Q270909) (c(Q20667921),P47,Q812697) (c(Q20667921),P47,Q510449) (c(Q20667921),P47,Q1066646) (c(Q20667921),P47,Q1069460) (c(Q20667921),P47,Q243603) (c(Q20667921),P47,Q1418672) (c(Q20667921),P47,Q574064) (c(Q20667921),P47,Q1069595) (c(Q20667921),P47,Q213858)
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q270909'] [{'concept': 'Q20667921'}, 'P47', 'Q812697'] [{'concept': 'Q20667921'}, 'P47', 'Q510449'] [{'concept': 'Q20667921'}, 'P47', 'Q1066646'] [{'concept': 'Q20667921'}, 'P47', 'Q1069460'] [{'concept': 'Q20667921'}, 'P47', 'Q243603'] [{'concept': 'Q20667921'}, 'P47', 'Q1418672'] [{'concept': 'Q20667921'}, 'P47', 'Q574064'] [{'concept': 'Q20667921'}, 'P47', 'Q1069595'] [{'concept': 'Q20667921'}, 'P47', 'Q213858']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q510449 . ?z rdf:type ontology:Q20667921 }
Did you mean Bazoches-lès-Bray ?
Bazoches-lès-Bray
[{'concept': 'type of french administrative division'}, 'shares border with', 'Gravon'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Bazoches-lès-Bray'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Artas'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Villeneuve-de-Marc'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Lieudieu'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Vimpelles'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Châtenay-sur-Seine'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Châtonnay'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Charantonnay'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Vinneuf']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Artas . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Artas. Could you tell me the answer for that?
(c(Q20667921),P47,Q510449)
Q510449
[{'concept': 'Q20667921'}, 'P47', 'Q510449']
[{'concept': 'type of french administrative division'}, 'shares border with', 'Artas']
[]
SYSTEM
8
Q1067968 Q925222 Q1009038 Q966103 Q1002760 Q1068353 Q1069595 Q574213
(c(Q20667921),P47,Q510449)
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q510449']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q510449 . ?z rdf:type ontology:Q20667921 }
Saint-Agnin-sur-Bion Four Crachier Meyrieu-les-Étangs Saint-Jean-de-Bournay Roche Charantonnay Chèzeneuve
8
[{'concept': 'type of french administrative division'}, 'shares border with', 'Artas']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Artas . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3131203
P20
Q178706
USER
Where did Henri Gonnet expire ?
(Q3131203,P20,c(Q178706))
action filter_type
action find
entity Q3131203
relation P20
type Q178706
['Q3131203', 'P20', {'concept': 'Q178706'}]
SELECT DISTINCT ?h WHERE { resource:Q3131203 property:P20 ?h . ?h rdf:type ontology:Q178706 }
Henri Gonnet
action filter_type
action find
entity Henri Gonnet
relation place of death
type institution
['Henri Gonnet', 'place of death', {'concept': 'institution'}]
SELECT DISTINCT ?h WHERE { resource:Henri_Gonnet property:place_of_death ?h . ?h rdf:type ontology:institution }
[]
institution
Q13518318
SYSTEM
Montluc prison
Q13518318
(Q3131203,P20,c(Q178706))
action filter_type
action find
entity Q3131203
relation P20
type Q178706
Henri Gonnet expired [ANSWER]
['Q3131203', 'P20', {'concept': 'Q178706'}]
SELECT DISTINCT ?h WHERE { resource:Q3131203 property:P20 ?h . ?h rdf:type ontology:Q178706 }
Montluc prison
Henri Gonnet expired Montluc prison
Montluc prison
action filter_type
action find
entity Henri Gonnet
relation place of death
type institution
['Henri Gonnet', 'place of death', {'concept': 'institution'}]
SELECT DISTINCT ?h WHERE { resource:Henri_Gonnet property:place_of_death ?h . ?h rdf:type ontology:institution }
[]