Simple Question (Direct)
Simple Question
Q748632
P17
Q15617994
USER
Which administrative territory is Moliens situated in ?
(Q748632,P17,c(Q15617994))
action filter_type
action find
entity Q748632
relation P17
type Q15617994
['Q748632', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q748632 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Moliens
action filter_type
action find
entity Moliens
relation country
type designation for an administrative territorial entity
['Moliens', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Moliens property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q748632,P17,c(Q15617994))
action filter_type
action find
entity Q748632
relation P17
type Q15617994
Moliens is situated in [ANSWER]
['Q748632', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q748632 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
France
Moliens is situated in France
France
action filter_type
action find
entity Moliens
relation country
type designation for an administrative territorial entity
['Moliens', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Moliens property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q748632
P47
Q20667921
USER
Which french administrative divisions are bordered by that one ?
(Q142,P47,c(Q20667921))
action filter_type
action find
entity Q748632
relation P47
type Q20667921
['Q142', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q748632 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Moliens
action filter_type
action find
entity Moliens
relation shares border with
type type of french administrative division
['France', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Moliens property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q691303 Q1336193 Q1106604
SYSTEM
Sarcus, Romescamps, Blargies
Q1336631 Q1365263 Q1106623 Q1165281 Q1106604 Q691303 Q1336193
(Q142,P47,c(Q20667921))
action filter_type
action find
entity Q748632
relation P47
type Q20667921
[ANSWERS] are bordered by that one
['Q142', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q748632 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Monceaux-l'Abbaye Saint-Thibault Broquiers Saint-Arnoult Blargies Sarcus Romescamps
Sarcus, Romescamps and Blargies are bordered by that one
Sarcus Romescamps Blargies
action filter_type
action find
entity Moliens
relation shares border with
type type of french administrative division
['France', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Moliens property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q681486 Q748632
P47
Q20667921
USER
Or Escaudain?
OR((Q748632,P47,c(Q20667921)), (Q681486,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q748632
relation P47
action find
entity Q681486
relation P47
type Q20667921
{'OR': [['Q748632', 'P47', {'concept': 'Q20667921'}], ['Q681486', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q748632 property:P47 ?j } UNION { resource:Q681486 property:P47 ?j } } . ?j rdf:type ontology:Q20667921 }
Escaudain Moliens
action filter_type
action union
action find
entity Moliens
relation shares border with
action find
entity Escaudain
relation shares border with
type type of french administrative division
{'OR': [['Moliens', 'shares border with', {'concept': 'type of french administrative division'}], ['Escaudain', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Moliens property:shares_border_with ?j } UNION { resource:Escaudain property:shares_border_with ?j } } . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q638698 Q1106623 Q473417 Q1443335 Q1336631 Q1365263 Q338607 Q1336193 Q1106604 Q1101851
SYSTEM
Some of them are Abscon, Broquiers, Wallers, Erre, Monceaux-l'Abbaye, Saint-Thibault, Hornaing, Romescamps, Blargies, Hélesmes
Q1336631 Q1365263 Q1106623 Q431065 Q1101851 Q638698 Q691303 Q473417 Q1165281 Q1443335 Q1106604 Q741436 Q338607 Q212959 Q1336193
OR((Q748632,P47,c(Q20667921)), (Q681486,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q748632
relation P47
action find
entity Q681486
relation P47
type Q20667921
[ANSWERS]
{'OR': [['Q748632', 'P47', {'concept': 'Q20667921'}], ['Q681486', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q748632 property:P47 ?j } UNION { resource:Q681486 property:P47 ?j } } . ?j rdf:type ontology:Q20667921 }
Monceaux-l'Abbaye Saint-Thibault Broquiers Rœulx Hélesmes Abscon Sarcus Wallers Saint-Arnoult Erre Blargies Lourches Hornaing Denain Romescamps
Abscon Broquiers Wallers Erre Monceaux-l'Abbaye Saint-Thibault Hornaing Romescamps Blargies Hélesmes
action filter_type
action union
action find
entity Moliens
relation shares border with
action find
entity Escaudain
relation shares border with
type type of french administrative division
{'OR': [['Moliens', 'shares border with', {'concept': 'type of french administrative division'}], ['Escaudain', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Moliens property:shares_border_with ?j } UNION { resource:Escaudain property:shares_border_with ?j } } . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1106604
P166
Q618779
USER
Which award was that french administrative division awarded with ?
(Q1106604,P166,c(Q618779))
action filter_type
action find
entity Q1106604
relation P166
type Q618779
['Q1106604', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { resource:Q1106604 property:P166 ?u . ?u rdf:type ontology:Q618779 }
Blargies
action filter_type
action find
entity Blargies
relation award received
type award
['Blargies', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { resource:Blargies property:award_received ?u . ?u rdf:type ontology:award }
[]
award
Clarification for simple ques.
Q1336193
SYSTEM
Did you mean Romescamps ?
Q638698 Q1106623 Q473417 Q1443335 Q1336631 Q1365263 Q338607 Q1336193 Q1106604 Q1101851
(Q638698,P166,c(Q618779)) (Q1106623,P166,c(Q618779)) (Q473417,P166,c(Q618779)) (Q1443335,P166,c(Q618779)) (Q1336631,P166,c(Q618779)) (Q1365263,P166,c(Q618779)) (Q338607,P166,c(Q618779)) (Q1336193,P166,c(Q618779)) (Q1106604,P166,c(Q618779)) (Q1101851,P166,c(Q618779))
[ANSWER]
['Q638698', 'P166', {'concept': 'Q618779'}] ['Q1106623', 'P166', {'concept': 'Q618779'}] ['Q473417', 'P166', {'concept': 'Q618779'}] ['Q1443335', 'P166', {'concept': 'Q618779'}] ['Q1336631', 'P166', {'concept': 'Q618779'}] ['Q1365263', 'P166', {'concept': 'Q618779'}] ['Q338607', 'P166', {'concept': 'Q618779'}] ['Q1336193', 'P166', {'concept': 'Q618779'}] ['Q1106604', 'P166', {'concept': 'Q618779'}] ['Q1101851', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { resource:Q1106604 property:P166 ?u . ?u rdf:type ontology:Q618779 }
Abscon Broquiers Wallers Erre Monceaux-l'Abbaye Saint-Thibault Hornaing Romescamps Blargies Hélesmes
Did you mean Romescamps ?
Romescamps
['Abscon', 'award received', {'concept': 'award'}] ['Broquiers', 'award received', {'concept': 'award'}] ['Wallers', 'award received', {'concept': 'award'}] ['Erre', 'award received', {'concept': 'award'}] ["Monceaux-l'Abbaye", 'award received', {'concept': 'award'}] ['Saint-Thibault', 'award received', {'concept': 'award'}] ['Hornaing', 'award received', {'concept': 'award'}] ['Romescamps', 'award received', {'concept': 'award'}] ['Blargies', 'award received', {'concept': 'award'}] ['Hélesmes', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { resource:Blargies property:award_received ?u . ?u rdf:type ontology:award }
[]
Simple Question (Coreferenced)
USER
No, I meant Blargies. Could you tell me the answer for that?
(Q1106604,P166,c(Q618779))
Q1106604
['Q1106604', 'P166', {'concept': 'Q618779'}]
['Blargies', 'award received', {'concept': 'award'}]
[]
Q2727598
SYSTEM
Croix de guerre 1914–1918
Q2727598
(Q1106604,P166,c(Q618779))
action filter_type
action find
entity Q1106604
relation P166
type Q618779
That french administrative division was awarded the [ANSWER]
['Q1106604', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { resource:Q1106604 property:P166 ?u . ?u rdf:type ontology:Q618779 }
Croix de guerre 1914–1918
That french administrative division was awarded the Croix de guerre 1914–1918
Croix de guerre 1914–1918
action filter_type
action find
entity Blargies
relation award received
type award
['Blargies', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { resource:Blargies property:award_received ?u . ?u rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2727598 Q5151682
P17
Q15617994
USER
Is that award located in Comfort Independent School District ?
(Q2727598,P17,Q5151682)
action is_in
entity Q5151682
action find
entity Q2727598
relation P17
['Q2727598', 'P17', 'Q5151682']
ASK WHERE { resource:Q2727598 property:P17 resource:Q5151682 }
Croix de guerre 1914–1918 Comfort Independent School District
action is_in
entity Comfort Independent School District
action find
entity Croix de guerre 1914–1918
relation country
['Croix de guerre 1914–1918', 'country', 'Comfort Independent School District']
ASK WHERE { resource:Croix_de_guerre_1914–1918 property:country resource:Comfort_Independent_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q2727598,P17,Q5151682)
action is_in
entity Q5151682
action find
entity Q2727598
relation P17
[ANSWER]
['Q2727598', 'P17', 'Q5151682']
ASK WHERE { resource:Q2727598 property:P17 resource:Q5151682 }
No
action is_in
entity Comfort Independent School District
action find
entity Croix de guerre 1914–1918
relation country
['Croix de guerre 1914–1918', 'country', 'Comfort Independent School District']
ASK WHERE { resource:Croix_de_guerre_1914–1918 property:country resource:Comfort_Independent_School_District }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1336193
P47
Q20667921
USER
How many french administrative divisions are bordered by Romescamps ?
(Q1336193,P47,c(Q20667921))
action count
action filter_type
action find
entity Q1336193
relation P47
type Q20667921
['Q1336193', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:Q20667921 . resource:Q1336193 property:P47 ?u }
Romescamps
action count
action filter_type
action find
entity Romescamps
relation shares border with
type type of french administrative division
['Romescamps', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:type_of_french_administrative_division . resource:Romescamps property:shares_border_with ?u }
[]
type of french administrative division
SYSTEM
8
Q1365263 Q1337491 Q1098767 Q1389385 Q1156911 Q1095743 Q1335563 Q938956
(Q1336193,P47,c(Q20667921))
action count
action filter_type
action find
entity Q1336193
relation P47
type Q20667921
[ANSWER]
['Q1336193', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:Q20667921 . resource:Q1336193 property:P47 ?u }
Saint-Thibault Lannoy-Cuillère Abancourt Escles-Saint-Pierre Hescamps Gourchelles Quincampoix-Fleuzy Fouilloy
8
action count
action filter_type
action find
entity Romescamps
relation shares border with
type type of french administrative division
['Romescamps', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:type_of_french_administrative_division . resource:Romescamps property:shares_border_with ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1336193
P19
Q502895
USER
Which person has birthplace at that french administrative division ?
action filter_type
action find_reverse
entity Q1336193
relation P19
type Q502895
SELECT DISTINCT ?p WHERE { ?p property:P19 resource:Q1336193 . ?p rdf:type ontology:Q502895 }
Romescamps
action filter_type
action find_reverse
entity Romescamps
relation place of birth
type common name
SELECT DISTINCT ?p WHERE { ?p property:place_of_birth resource:Romescamps . ?p rdf:type ontology:common_name }
[]
common name
Q3008874
SYSTEM
Cyprien Desgroux
Q3008874
action filter_type
action find_reverse
entity Q1336193
relation P19
type Q502895
[ANSWER] has birthplace at that french administrative division
SELECT DISTINCT ?p WHERE { ?p property:P19 resource:Q1336193 . ?p rdf:type ontology:Q502895 }
Cyprien Desgroux
Cyprien Desgroux has birthplace at that french administrative division
Cyprien Desgroux
action filter_type
action find_reverse
entity Romescamps
relation place of birth
type common name
SELECT DISTINCT ?p WHERE { ?p property:place_of_birth resource:Romescamps . ?p rdf:type ontology:common_name }
[]