Simple Question (Direct)
Simple Question
Q816498
P47
Q20667921
USER
Which french administrative divisions have a shared border with Darney ?
(Q816498,P47,c(Q20667921))
action filter_type
action find
entity Q816498
relation P47
type Q20667921
['Q816498', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q816498 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Darney
action filter_type
action find
entity Darney
relation shares border with
type type of french administrative division
['Darney', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Darney property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q593153 Q732896 Q1157951
SYSTEM
Hennezel, Relanges, Belrupt
Q732896 Q1157951 Q189824 Q609060 Q593153 Q626997
(Q816498,P47,c(Q20667921))
action filter_type
action find
entity Q816498
relation P47
type Q20667921
[ANSWERS] have a shared border with Darney
['Q816498', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q816498 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Relanges Belrupt Bonvillet Attigny Hennezel Belmont-lès-Darney
Hennezel, Relanges and Belrupt have a shared border with Darney
Hennezel Relanges Belrupt
action filter_type
action find
entity Darney
relation shares border with
type type of french administrative division
['Darney', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Darney property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q593153 Q732896 Q1157951
P47
Q20667921
USER
Which french administrative divisions are next to the border of Hennezel, Relanges and Belrupt ?
(c(Q20667921),P47,Q593153) (c(Q20667921),P47,Q732896) (c(Q20667921),P47,Q1157951)
action union
action filter_type
action find
entity Q593153
relation P47
type Q20667921
action filter_type
action find
entity Q732896
relation P47
type Q20667921
action filter_type
action find
entity Q1157951
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q593153'] [{'concept': 'Q20667921'}, 'P47', 'Q732896'] [{'concept': 'Q20667921'}, 'P47', 'Q1157951']
SELECT DISTINCT ?b WHERE { ?a property:P47 ?b . VALUES ( ?a ) { ( resource:Q593153 ) ( resource:Q732896 ) } }
Hennezel Relanges Belrupt
action union
action filter_type
action find
entity Hennezel
relation shares border with
type type of french administrative division
action filter_type
action find
entity Relanges
relation shares border with
type type of french administrative division
action filter_type
action find
entity Belrupt
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Hennezel'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Relanges'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Belrupt']
SELECT DISTINCT ?b WHERE { ?a property:shares_border_with ?b . VALUES ( ?a ) { ( resource:Hennezel ) ( resource:Relanges ) } }
[]
type of french administrative division
Q593153 Q1157951 Q816498
SYSTEM
Hennezel, Belrupt, Darney
Q189093 Q732810 Q1157951 Q816498 Q824678 Q666639 Q923470 Q457690 Q624458 Q609060 Q126549 Q836401 Q188769 Q816498 Q189824 Q626997 Q1158638 Q188981 Q372108 Q816498 Q189824 Q824678 Q1158638 Q593153 Q200224 Q200466
(c(Q20667921),P47,Q593153) (c(Q20667921),P47,Q732896) (c(Q20667921),P47,Q1157951)
action union
action filter_type
action find
entity Q593153
relation P47
type Q20667921
action filter_type
action find
entity Q732896
relation P47
type Q20667921
action filter_type
action find
entity Q1157951
relation P47
type Q20667921
[ANSWERS] are next to the border of Hennezel, Relanges and Belrupt
[{'concept': 'Q20667921'}, 'P47', 'Q593153'] [{'concept': 'Q20667921'}, 'P47', 'Q732896'] [{'concept': 'Q20667921'}, 'P47', 'Q1157951']
SELECT DISTINCT ?b WHERE { ?a property:P47 ?b . VALUES ( ?a ) { ( resource:Q593153 ) ( resource:Q732896 ) } }
Claudon Grandrupt-de-Bains Belrupt Darney Vioménil Gruey-lès-Surance Passavant-la-Rochère Ambiévillers La Haye Attigny Nonville Provenchères-lès-Darney Saint-Baslemont Darney Bonvillet Belmont-lès-Darney Dombasle-devant-Darney Senonges Thuillières Darney Bonvillet Vioménil Dombasle-devant-Darney Hennezel Escles Jésonville
Hennezel, Belrupt and Darney are next to the border of Hennezel, Relanges and Belrupt
Hennezel Belrupt Darney
action union
action filter_type
action find
entity Hennezel
relation shares border with
type type of french administrative division
action filter_type
action find
entity Relanges
relation shares border with
type type of french administrative division
action filter_type
action find
entity Belrupt
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Hennezel'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Relanges'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Belrupt']
SELECT DISTINCT ?b WHERE { ?a property:shares_border_with ?b . VALUES ( ?a ) { ( resource:Hennezel ) ( resource:Relanges ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q732896
P17
Q15617994
USER
Which administrative territory is Relanges a part of ?
(Q732896,P17,c(Q15617994))
action filter_type
action find
entity Q732896
relation P17
type Q15617994
['Q732896', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q732896 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Relanges
action filter_type
action find
entity Relanges
relation country
type designation for an administrative territorial entity
['Relanges', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Relanges property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q732896,P17,c(Q15617994))
action filter_type
action find
entity Q732896
relation P17
type Q15617994
The [ANSWER] is Relanges a part of
['Q732896', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q732896 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
France
The France is Relanges a part of
France
action filter_type
action find
entity Relanges
relation country
type designation for an administrative territorial entity
['Relanges', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Relanges property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q142 Q1773016 Q183
P47
Q1048835
USER
Is that administrative territory bordered by Fustiñana and Germany ?
(Q142,P47,Q1773016) (Q142,P47,Q183)
action is_in
entity Q142
action intersection
action find_reverse
entity Q1773016
relation P47
action find_reverse
entity Q183
relation P47
['Q142', 'P47', 'Q1773016'] ['Q142', 'P47', 'Q183']
ASK WHERE { resource:Q142 property:P47 resource:Q1773016 . resource:Q142 property:P47 resource:Q183 }
France Fustiñana Germany
action is_in
entity France
action intersection
action find_reverse
entity Fustiñana
relation shares border with
action find_reverse
entity Germany
relation shares border with
['France', 'shares border with', 'Fustiñana'] ['France', 'shares border with', 'Germany']
ASK WHERE { resource:France property:shares_border_with resource:Fustiñana . resource:France property:shares_border_with resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q142,P47,Q1773016) (Q142,P47,Q183)
action is_in
entity Q142
action intersection
action find_reverse
entity Q1773016
relation P47
action find_reverse
entity Q183
relation P47
[ANSWER]
['Q142', 'P47', 'Q1773016'] ['Q142', 'P47', 'Q183']
ASK WHERE { resource:Q142 property:P47 resource:Q1773016 . resource:Q142 property:P47 resource:Q183 }
NO and YES respectively
action is_in
entity France
action intersection
action find_reverse
entity Fustiñana
relation shares border with
action find_reverse
entity Germany
relation shares border with
['France', 'shares border with', 'Fustiñana'] ['France', 'shares border with', 'Germany']
ASK WHERE { resource:France property:shares_border_with resource:Fustiñana . resource:France property:shares_border_with resource:Germany }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q816498
P190
Q515
USER
Which city is partner town of Darney ?
(c(Q515),P190,Q816498)
action filter_type
action find
entity Q816498
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q816498']
SELECT DISTINCT ?k WHERE { resource:Q816498 property:P190 ?k . ?k rdf:type ontology:Q515 }
Darney
action filter_type
action find
entity Darney
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Darney']
SELECT DISTINCT ?k WHERE { resource:Darney property:sister_city ?k . ?k rdf:type ontology:city }
[]
city
Q193724
SYSTEM
Slavkov u Brna
Q193724
(c(Q515),P190,Q816498)
action filter_type
action find
entity Q816498
relation P190
type Q515
[ANSWER] is partner town of Darney
[{'concept': 'Q515'}, 'P190', 'Q816498']
SELECT DISTINCT ?k WHERE { resource:Q816498 property:P190 ?k . ?k rdf:type ontology:Q515 }
Slavkov u Brna
Slavkov u Brna is partner town of Darney
Slavkov u Brna
action filter_type
action find
entity Darney
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Darney']
SELECT DISTINCT ?k WHERE { resource:Darney property:sister_city ?k . ?k rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q816498
P20
Q502895
USER
Who died in Darney ?
(c(Q502895),P20,Q816498)
action filter_type
action find_reverse
entity Q816498
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q816498']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P20 resource:Q816498 }
Darney
action filter_type
action find_reverse
entity Darney
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Darney']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:place_of_death resource:Darney }
[]
common name
Q3265438 Q2847198 Q18413945
SYSTEM
Lucien Cordier, André Barbier, Charles Thomas Joseph Gabriel Lepaige
Q3265438 Q2847198 Q18413945
(c(Q502895),P20,Q816498)
action filter_type
action find_reverse
entity Q816498
relation P20
type Q502895
[ANSWERS] died in Darney
[{'concept': 'Q502895'}, 'P20', 'Q816498']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P20 resource:Q816498 }
Lucien Cordier André Barbier Charles Thomas Joseph Gabriel Lepaige
Lucien Cordier, André Barbier and Charles Thomas Joseph Gabriel Lepaige died in Darney
Lucien Cordier André Barbier Charles Thomas Joseph Gabriel Lepaige
action filter_type
action find_reverse
entity Darney
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Darney']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:place_of_death resource:Darney }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2847198
P19
Q20667921
USER
Which french administrative division was that person born at ?
(Q2847198,P19,c(Q20667921))
action filter_type
action find
entity Q2847198
relation P19
type Q20667921
['Q2847198', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { resource:Q2847198 property:P19 ?o . ?o rdf:type ontology:Q20667921 }
André Barbier
action filter_type
action find
entity André Barbier
relation place of birth
type type of french administrative division
['André Barbier', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { resource:André_Barbier property:place_of_birth ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q18413945
SYSTEM
Did you mean Charles Thomas Joseph Gabriel Lepaige ?
Q3265438 Q2847198 Q18413945
(Q3265438,P19,c(Q20667921)) (Q2847198,P19,c(Q20667921)) (Q18413945,P19,c(Q20667921))
[ANSWER]
['Q3265438', 'P19', {'concept': 'Q20667921'}] ['Q2847198', 'P19', {'concept': 'Q20667921'}] ['Q18413945', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { resource:Q2847198 property:P19 ?o . ?o rdf:type ontology:Q20667921 }
Lucien Cordier André Barbier Charles Thomas Joseph Gabriel Lepaige
Did you mean Charles Thomas Joseph Gabriel Lepaige ?
Charles Thomas Joseph Gabriel Lepaige
['Lucien Cordier', 'place of birth', {'concept': 'type of french administrative division'}] ['André Barbier', 'place of birth', {'concept': 'type of french administrative division'}] ['Charles Thomas Joseph Gabriel Lepaige', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { resource:André_Barbier property:place_of_birth ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
No, I meant André Barbier. Could you tell me the answer for that?
(Q2847198,P19,c(Q20667921))
Q2847198
['Q2847198', 'P19', {'concept': 'Q20667921'}]
['André Barbier', 'place of birth', {'concept': 'type of french administrative division'}]
[]
Q816498
SYSTEM
Darney
Q816498
(Q2847198,P19,c(Q20667921))
action filter_type
action find
entity Q2847198
relation P19
type Q20667921
That person was born in [ANSWER]
['Q2847198', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { resource:Q2847198 property:P19 ?o . ?o rdf:type ontology:Q20667921 }
Darney
That person was born in Darney
Darney
action filter_type
action find
entity André Barbier
relation place of birth
type type of french administrative division
['André Barbier', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { resource:André_Barbier property:place_of_birth ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2847198 Q8059910
P106
Q12737077
USER
How many occupations have André Barbier or Yu Dongyue as his/her as a career ?
(Q2847198,P106,c(Q12737077)) (Q8059910,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q2847198
relation P106
type Q12737077
action filter_type
action find
entity Q8059910
relation P106
type Q12737077
['Q2847198', 'P106', {'concept': 'Q12737077'}] ['Q8059910', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { ?n rdf:type ontology:Q12737077 . resource:Q2847198 property:P106 ?n } UNION { resource:Q8059910 property:P106 ?n . ?n rdf:type ontology:Q12737077 } }
André Barbier Yu Dongyue
action count
action union
action filter_type
action find
entity André Barbier
relation occupation
type occupation
action filter_type
action find
entity Yu Dongyue
relation occupation
type occupation
['André Barbier', 'occupation', {'concept': 'occupation'}] ['Yu Dongyue', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { ?n rdf:type ontology:occupation . resource:André_Barbier property:occupation ?n } UNION { resource:Yu_Dongyue property:occupation ?n . ?n rdf:type ontology:occupation } }
[]
occupation
SYSTEM
2
Q1930187 Q82955
(Q2847198,P106,c(Q12737077)) (Q8059910,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q2847198
relation P106
type Q12737077
action filter_type
action find
entity Q8059910
relation P106
type Q12737077
[ANSWER]
['Q2847198', 'P106', {'concept': 'Q12737077'}] ['Q8059910', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { ?n rdf:type ontology:Q12737077 . resource:Q2847198 property:P106 ?n } UNION { resource:Q8059910 property:P106 ?n . ?n rdf:type ontology:Q12737077 } }
journalist politician
2
action count
action union
action filter_type
action find
entity André Barbier
relation occupation
type occupation
action filter_type
action find
entity Yu Dongyue
relation occupation
type occupation
['André Barbier', 'occupation', {'concept': 'occupation'}] ['Yu Dongyue', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { { ?n rdf:type ontology:occupation . resource:André_Barbier property:occupation ?n } UNION { resource:Yu_Dongyue property:occupation ?n . ?n rdf:type ontology:occupation } }
[]