Simple Question (Direct)
Simple Question
Q541389
P47
Q20667921
USER
Which french administrative divisions are bordered by Gurat ?
(Q541389,P47,c(Q20667921))
action filter_type
action find
entity Q541389
relation P47
type Q20667921
['Q541389', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q20667921 . resource:Q541389 property:P47 ?p }
Gurat
action filter_type
action find
entity Gurat
relation shares border with
type type of french administrative division
['Gurat', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_french_administrative_division . resource:Gurat property:shares_border_with ?p }
[]
type of french administrative division
Q779748 Q1623905 Q837498
SYSTEM
Saint-Amant-de-Montmoreau, Ronsenac, Villebois-Lavalette
Q1623905 Q1626406 Q837498 Q1011912 Q1601465 Q1076393 Q779748 Q284021
(Q541389,P47,c(Q20667921))
action filter_type
action find
entity Q541389
relation P47
type Q20667921
And [ANSWERS] are bordered by Gurat
['Q541389', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q20667921 . resource:Q541389 property:P47 ?p }
Ronsenac Vaux-Lavalette Villebois-Lavalette Champagne-et-Fontaine Chavenat Vendoire Saint-Amant-de-Montmoreau Blanzaguet-Saint-Cybard
And Saint-Amant-de-Montmoreau, Ronsenac and Villebois-Lavalette are bordered by Gurat
Saint-Amant-de-Montmoreau Ronsenac Villebois-Lavalette
action filter_type
action find
entity Gurat
relation shares border with
type type of french administrative division
['Gurat', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_french_administrative_division . resource:Gurat property:shares_border_with ?p }
[]
Clarification
Simple Question|Single Entity|Indirect
Q837498
P17
Q15617994
USER
Which administrative territory is that french administrative division a part of ?
(Q837498,P17,c(Q15617994))
action filter_type
action find
entity Q837498
relation P17
type Q15617994
['Q837498', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q837498 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Villebois-Lavalette
action filter_type
action find
entity Villebois-Lavalette
relation country
type designation for an administrative territorial entity
['Villebois-Lavalette', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Villebois-Lavalette property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q779748
SYSTEM
Did you mean Saint-Amant-de-Montmoreau ?
Q779748 Q1623905 Q837498
(Q779748,P17,c(Q15617994)) (Q1623905,P17,c(Q15617994)) (Q837498,P17,c(Q15617994))
[ANSWER]
['Q779748', 'P17', {'concept': 'Q15617994'}] ['Q1623905', 'P17', {'concept': 'Q15617994'}] ['Q837498', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q837498 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Saint-Amant-de-Montmoreau Ronsenac Villebois-Lavalette
Did you mean Saint-Amant-de-Montmoreau ?
Saint-Amant-de-Montmoreau
['Saint-Amant-de-Montmoreau', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Ronsenac', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Villebois-Lavalette', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Villebois-Lavalette property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Villebois-Lavalette. Could you tell me the answer for that?
(Q837498,P17,c(Q15617994))
Q837498
['Q837498', 'P17', {'concept': 'Q15617994'}]
['Villebois-Lavalette', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q837498,P17,c(Q15617994))
action filter_type
action find
entity Q837498
relation P17
type Q15617994
[ANSWER] is that french administrative division a part of
['Q837498', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q837498 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
France
France is that french administrative division a part of
France
action filter_type
action find
entity Villebois-Lavalette
relation country
type designation for an administrative territorial entity
['Villebois-Lavalette', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Villebois-Lavalette property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1049776 Q837498
P47
Q20667921
USER
Which french administrative divisions are next to the border of Villebois-Lavalette or Saint-Martin ?
OR((c(Q20667921),P47,Q837498), (c(Q20667921),P47,Q1049776))
action filter_type
action union
action find_reverse
entity Q837498
relation P47
action find_reverse
entity Q1049776
relation P47
type Q20667921
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q837498'], [{'concept': 'Q20667921'}, 'P47', 'Q1049776']]}
SELECT DISTINCT ?e WHERE { { { ?e property:P47 resource:Q837498 } UNION { ?e property:P47 resource:Q1049776 } } . ?e rdf:type ontology:Q20667921 }
Saint-Martin Villebois-Lavalette
action filter_type
action union
action find_reverse
entity Villebois-Lavalette
relation shares border with
action find_reverse
entity Saint-Martin
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Villebois-Lavalette'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Martin']]}
SELECT DISTINCT ?e WHERE { { { ?e property:shares_border_with resource:Villebois-Lavalette } UNION { ?e property:shares_border_with resource:Saint-Martin } } . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1623905 Q226745 Q1626391 Q1065764 Q1470948 Q229027 Q991012 Q284021 Q541389 Q1102598
SYSTEM
Ronsenac, Fréménil, Magnac-Lavalette-Villars, Blémerey, Gardes-le-Pontaroux, Chazelles-sur-Albe, Domèvre-sur-Vezouze, Blanzaguet-Saint-Cybard, Gurat, Herbéviller
Q1623905 Q226745 Q1626391 Q1065764 Q1470948 Q229027 Q991012 Q284021 Q541389 Q1102598
OR((c(Q20667921),P47,Q837498), (c(Q20667921),P47,Q1049776))
action filter_type
action union
action find_reverse
entity Q837498
relation P47
action find_reverse
entity Q1049776
relation P47
type Q20667921
[ANSWERS] are next to the border of Villebois-Lavalette or Saint-Martin
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q837498'], [{'concept': 'Q20667921'}, 'P47', 'Q1049776']]}
SELECT DISTINCT ?e WHERE { { { ?e property:P47 resource:Q837498 } UNION { ?e property:P47 resource:Q1049776 } } . ?e rdf:type ontology:Q20667921 }
Ronsenac Fréménil Magnac-Lavalette-Villars Blémerey Gardes-le-Pontaroux Chazelles-sur-Albe Domèvre-sur-Vezouze Blanzaguet-Saint-Cybard Gurat Herbéviller
Ronsenac, Fréménil, Magnac-Lavalette-Villars, Blémerey, Gardes-le-Pontaroux, Chazelles-sur-Albe, Domèvre-sur-Vezouze, Blanzaguet-Saint-Cybard, Gurat and Herbéviller are next to the border of Villebois-Lavalette or Saint-Martin
Ronsenac Fréménil Magnac-Lavalette-Villars Blémerey Gardes-le-Pontaroux Chazelles-sur-Albe Domèvre-sur-Vezouze Blanzaguet-Saint-Cybard Gurat Herbéviller
action filter_type
action union
action find_reverse
entity Villebois-Lavalette
relation shares border with
action find_reverse
entity Saint-Martin
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Villebois-Lavalette'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Martin']]}
SELECT DISTINCT ?e WHERE { { { ?e property:shares_border_with resource:Villebois-Lavalette } UNION { ?e property:shares_border_with resource:Saint-Martin } } . ?e rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P159
Q20667921 Q334453 Q895526
USER
How many french administrative divisions are the headquarter locations of atleast 1 divisions or authority organs ?
(c(Q334453)|c(Q895526),P159,c(Q20667921))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q334453
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q895526
value 1
[[{'concept': 'Q334453'}, {'concept': 'Q895526'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) ?h WHERE { { ?z property:P159 ?h . ?h rdf:type ontology:Q20667921 . ?z rdf:type ontology:Q895526 } UNION { ?z property:P159 ?h . ?h rdf:type ontology:Q20667921 . ?z rdf:type ontology:Q334453 } } GROUP BY ?h } . FILTER ( ?t >= 1 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type division
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type authority organ
value 1
[[{'concept': 'division'}, {'concept': 'authority organ'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) ?h WHERE { { ?z property:headquarters_location ?h . ?h rdf:type ontology:type_of_french_administrative_division . ?z rdf:type ontology:authority_organ } UNION { ?z property:headquarters_location ?h . ?h rdf:type ontology:type_of_french_administrative_division . ?z rdf:type ontology:division } } GROUP BY ?h } . FILTER ( ?t >= 1 ) }
[]
type of french administrative division division authority organ
SYSTEM
11
Q207605 Q22690 Q274774 Q37719 Q241021 Q189715 Q272906 Q209086 Q166640 Q253721 Q48958
(c(Q334453)|c(Q895526),P159,c(Q20667921))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q334453
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q895526
value 1
[ANSWER]
[[{'concept': 'Q334453'}, {'concept': 'Q895526'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) ?h WHERE { { ?z property:P159 ?h . ?h rdf:type ontology:Q20667921 . ?z rdf:type ontology:Q895526 } UNION { ?z property:P159 ?h . ?h rdf:type ontology:Q20667921 . ?z rdf:type ontology:Q334453 } } GROUP BY ?h } . FILTER ( ?t >= 1 ) }
Noisy-le-Grand Metz Viviers Beaurainville Montrouge Courbevoie Le Bourget Pantin Levallois-Perret Malakoff Neuilly-sur-Seine
11
action count
action atleast
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type division
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type authority organ
value 1
[[{'concept': 'division'}, {'concept': 'authority organ'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) ?h WHERE { { ?z property:headquarters_location ?h . ?h rdf:type ontology:type_of_french_administrative_division . ?z rdf:type ontology:authority_organ } UNION { ?z property:headquarters_location ?h . ?h rdf:type ontology:type_of_french_administrative_division . ?z rdf:type ontology:division } } GROUP BY ?h } . FILTER ( ?t >= 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q142 Q837498
P47 P17
Q20667921
USER
Which french administrative divisions do Villebois-Lavalette share a border with and are situated in France ?
AND((c(Q20667921),P47,Q837498), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q837498
relation P47
action find_reverse
entity Q142
relation P17
type Q20667921
{'AND': [[{'concept': 'Q20667921'}, 'P47', 'Q837498'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q20667921 . ?y property:P47 resource:Q837498 . ?y property:P17 resource:Q142 }
France Villebois-Lavalette
action filter_type
action intersection
action find_reverse
entity Villebois-Lavalette
relation shares border with
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Villebois-Lavalette'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:type_of_french_administrative_division . ?y property:shares_border_with resource:Villebois-Lavalette . ?y property:country resource:France }
[]
type of french administrative division
Q1470948 Q284021 Q1623905 Q541389 Q1626391
SYSTEM
Gardes-le-Pontaroux, Blanzaguet-Saint-Cybard, Ronsenac, Gurat, Magnac-Lavalette-Villars
Q1470948 Q284021 Q1623905 Q541389 Q1626391
AND((c(Q20667921),P47,Q837498), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q837498
relation P47
action find_reverse
entity Q142
relation P17
type Q20667921
[ANSWERS] Villebois-Lavalette share a border with
{'AND': [[{'concept': 'Q20667921'}, 'P47', 'Q837498'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q20667921 . ?y property:P47 resource:Q837498 . ?y property:P17 resource:Q142 }
Gardes-le-Pontaroux Blanzaguet-Saint-Cybard Ronsenac Gurat Magnac-Lavalette-Villars
Gardes-le-Pontaroux, Blanzaguet-Saint-Cybard, Ronsenac, Gurat and Magnac-Lavalette-Villars Villebois-Lavalette share a border with
Gardes-le-Pontaroux Blanzaguet-Saint-Cybard Ronsenac Gurat Magnac-Lavalette-Villars
action filter_type
action intersection
action find_reverse
entity Villebois-Lavalette
relation shares border with
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Villebois-Lavalette'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:type_of_french_administrative_division . ?y property:shares_border_with resource:Villebois-Lavalette . ?y property:country resource:France }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1727612
P47
Q20667921
USER
Do canton of Tomblaine have an adjacent border with those ones ?
(Q1727612,P47,Q1470948) (Q1727612,P47,Q284021) (Q1727612,P47,Q1623905) (Q1727612,P47,Q541389) (Q1727612,P47,Q1626391)
action is_in
entity prev_answer
action find
entity Q1727612
relation P47
['Q1727612', 'P47', 'Q1470948'] ['Q1727612', 'P47', 'Q284021'] ['Q1727612', 'P47', 'Q1623905'] ['Q1727612', 'P47', 'Q541389'] ['Q1727612', 'P47', 'Q1626391']
ASK WHERE { VALUES ( ?a ) { ( resource:Q1470948 ) ( resource:Q284021 ) ( resource:Q1623905 ) } . resource:Q1727612 property:P47 ?a }
canton of Tomblaine
action is_in
entity prev_answer
action find
entity canton of Tomblaine
relation shares border with
['canton of Tomblaine', 'shares border with', 'Gardes-le-Pontaroux'] ['canton of Tomblaine', 'shares border with', 'Blanzaguet-Saint-Cybard'] ['canton of Tomblaine', 'shares border with', 'Ronsenac'] ['canton of Tomblaine', 'shares border with', 'Gurat'] ['canton of Tomblaine', 'shares border with', 'Magnac-Lavalette-Villars']
ASK WHERE { VALUES ( ?a ) { ( resource:Gardes-le-Pontaroux ) ( resource:Blanzaguet-Saint-Cybard ) ( resource:Ronsenac ) } . resource:canton_of_Tomblaine property:shares_border_with ?a }
[]
type of french administrative division
SYSTEM
NO
(Q1727612,P47,Q1470948) (Q1727612,P47,Q284021) (Q1727612,P47,Q1623905) (Q1727612,P47,Q541389) (Q1727612,P47,Q1626391)
action is_in
entity prev_answer
action find
entity Q1727612
relation P47
[ANSWER]
['Q1727612', 'P47', 'Q1470948'] ['Q1727612', 'P47', 'Q284021'] ['Q1727612', 'P47', 'Q1623905'] ['Q1727612', 'P47', 'Q541389'] ['Q1727612', 'P47', 'Q1626391']
ASK WHERE { VALUES ( ?a ) { ( resource:Q1470948 ) ( resource:Q284021 ) ( resource:Q1623905 ) } . resource:Q1727612 property:P47 ?a }
No
action is_in
entity prev_answer
action find
entity canton of Tomblaine
relation shares border with
['canton of Tomblaine', 'shares border with', 'Gardes-le-Pontaroux'] ['canton of Tomblaine', 'shares border with', 'Blanzaguet-Saint-Cybard'] ['canton of Tomblaine', 'shares border with', 'Ronsenac'] ['canton of Tomblaine', 'shares border with', 'Gurat'] ['canton of Tomblaine', 'shares border with', 'Magnac-Lavalette-Villars']
ASK WHERE { VALUES ( ?a ) { ( resource:Gardes-le-Pontaroux ) ( resource:Blanzaguet-Saint-Cybard ) ( resource:Ronsenac ) } . resource:canton_of_Tomblaine property:shares_border_with ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q971
P27
Q502895
USER
How many people are a citizen of France and Republic of the Congo ?
(c(Q502895),P27,Q142) (c(Q502895),P27,Q971)
action count
action intersection
action filter_type
action find_reverse
entity Q142
relation P27
type Q502895
action filter_type
action find_reverse
entity Q971
relation P27
type Q502895
[{'concept': 'Q502895'}, 'P27', 'Q142'] [{'concept': 'Q502895'}, 'P27', 'Q971']
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:Q502895 . ?d property:P27 resource:Q971 . ?d rdf:type ontology:Q502895 . ?d property:P27 resource:Q142 }
France Republic of the Congo
action count
action intersection
action filter_type
action find_reverse
entity France
relation country of citizenship
type common name
action filter_type
action find_reverse
entity Republic of the Congo
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'France'] [{'concept': 'common name'}, 'country of citizenship', 'Republic of the Congo']
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:common_name . ?d property:country_of_citizenship resource:Republic_of_the_Congo . ?d rdf:type ontology:common_name . ?d property:country_of_citizenship resource:France }
[]
common name
SYSTEM
57
Q3173343 Q3018335 Q192661 Q3446635 Q1395502 Q2723134 Q3199728 Q254291 Q471592 Q19259799 Q1979321 Q1921 Q334554 Q947068 Q2069013 Q2437109 Q969596 Q268522 Q14469024 Q4977708 Q2420980 Q5112787 Q3180831 Q3040166 Q1930832 Q7192242 Q3624418 Q3484986 Q15782448 Q1675750 Q60396 Q719106 Q3342516 Q1077509 Q735422 Q2637074 Q3367537 Q3523502 Q16567159 Q14780776 Q39749 Q354942 Q469243 Q2547716 Q723848 Q314541 Q4794970 Q586747 Q2274101 Q2542749 Q8331271 Q116155 Q15627817 Q2926914 Q3168646 Q3166001 Q1684893
(c(Q502895),P27,Q142) (c(Q502895),P27,Q971)
action count
action intersection
action filter_type
action find_reverse
entity Q142
relation P27
type Q502895
action filter_type
action find_reverse
entity Q971
relation P27
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P27', 'Q142'] [{'concept': 'Q502895'}, 'P27', 'Q971']
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:Q502895 . ?d property:P27 resource:Q971 . ?d rdf:type ontology:Q502895 . ?d property:P27 resource:Q142 }
Jean Malonga David Louhoungou Jo-Wilfried Tsonga Ruddy M'Passi Passi Albin Ebondo Kris Morlende Matt Moussilou Amine Linganzi Kévin Koubemba Anaclet Wamba Blaise Matuidi Christopher Samba Steven Mouyokolo Yannick Salem Kamini Ted Lavie Alain Mabanckou Hervin Ongenda Bruce Inkango Abd al Malik Christopher Maboulou John-Christophe Ayina Dry Michel Hidalgo Pierre Goura Bernard Onanga Itoua Singuila Allan Kimbaloula Ivica Todorov Fabrice N'Sakala Claude Le Roy Nobel Boungou Colo Chris Malonga Youl Mawéné Thievy Bifouma Pascal Nzonzi Theddy Ongoly Jean-Felix Moupegnou Jordan Ikoko Tripy Makonda Yvon Goujon Patrice Loko Lucien Aubey Christian Bassila Rio Mavuba Arnold Bouka Moutou Charles Lombahe-Kahudi Dominique Malonga Yves Marie Monot Prosper Philippe Augouard Prince Oniangue Brice Samba Bruno Ossébi Jean-Paul Pigasse Jean-Félix Tchicaya Jean-Guy Wallemme
57
action count
action intersection
action filter_type
action find_reverse
entity France
relation country of citizenship
type common name
action filter_type
action find_reverse
entity Republic of the Congo
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'France'] [{'concept': 'common name'}, 'country of citizenship', 'Republic of the Congo']
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:common_name . ?d property:country_of_citizenship resource:Republic_of_the_Congo . ?d rdf:type ontology:common_name . ?d property:country_of_citizenship resource:France }
[]