Simple Question (Direct)
Simple Question
Q1352713
P17
Q15617994
USER
Which administrative territory does Castelmayran belong to ?
(Q1352713,P17,c(Q15617994))
action filter_type
action find
entity Q1352713
relation P17
type Q15617994
['Q1352713', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q1352713 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Castelmayran
action filter_type
action find
entity Castelmayran
relation country
type designation for an administrative territorial entity
['Castelmayran', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Castelmayran property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1352713,P17,c(Q15617994))
action filter_type
action find
entity Q1352713
relation P17
type Q15617994
Castelmayran belongs to [ANSWER]
['Q1352713', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q1352713 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
France
Castelmayran belongs to France
France
action filter_type
action find
entity Castelmayran
relation country
type designation for an administrative territorial entity
['Castelmayran', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Castelmayran property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1352713
P47
Q20667921
USER
Who share the border with that one ?
(Q142,P47,c(Q20667921))
action filter_type
action find
entity Q1352713
relation P47
type Q20667921
['Q142', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q20667921 . resource:Q1352713 property:P47 ?j }
Castelmayran
action filter_type
action find
entity Castelmayran
relation shares border with
type type of french administrative division
['France', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:type_of_french_administrative_division . resource:Castelmayran property:shares_border_with ?j }
[]
type of french administrative division
Q213285 Q639040 Q541044
SYSTEM
Castelsarrasin, Saint-Nicolas-de-la-Grave, Garganvillar
Q639040 Q937032 Q541044 Q775866 Q1427775 Q659650 Q213285
(Q142,P47,c(Q20667921))
action filter_type
action find
entity Q1352713
relation P47
type Q20667921
[ANSWERS] share the border with that one
['Q142', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q20667921 . resource:Q1352713 property:P47 ?j }
Saint-Nicolas-de-la-Grave Angeville Garganvillar Castelferrus Saint-Aignan Caumont Castelsarrasin
Castelsarrasin, Saint-Nicolas-de-la-Grave and Garganvillar share the border with that one
Castelsarrasin Saint-Nicolas-de-la-Grave Garganvillar
action filter_type
action find
entity Castelmayran
relation shares border with
type type of french administrative division
['France', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:type_of_french_administrative_division . resource:Castelmayran property:shares_border_with ?j }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1225058 Q1352713
P47
Q20667921
USER
Or Mourmelon-le-Grand?
OR((Q1352713,P47,c(Q20667921)), (Q1225058,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q1352713
relation P47
action find
entity Q1225058
relation P47
type Q20667921
{'OR': [['Q1352713', 'P47', {'concept': 'Q20667921'}], ['Q1225058', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q1352713 property:P47 ?u } UNION { resource:Q1225058 property:P47 ?u } } . ?u rdf:type ontology:Q20667921 }
Mourmelon-le-Grand Castelmayran
action filter_type
action union
action find
entity Castelmayran
relation shares border with
action find
entity Mourmelon-le-Grand
relation shares border with
type type of french administrative division
{'OR': [['Castelmayran', 'shares border with', {'concept': 'type of french administrative division'}], ['Mourmelon-le-Grand', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Castelmayran property:shares_border_with ?u } UNION { resource:Mourmelon-le-Grand property:shares_border_with ?u } } . ?u rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q213285 Q1103472 Q659650 Q46498 Q775866 Q1225515 Q541863 Q541044 Q639040 Q1218685
SYSTEM
Some of them are Castelsarrasin, Mourmelon-le-Petit, Caumont, Jonchery-sur-Suippe, Castelferrus, Livry-Louvercy, Bouy, Garganvillar, Saint-Nicolas-de-la-Grave, Baconnes
Q639040 Q1225515 Q1103472 Q746144 Q598560 Q937032 Q541044 Q775866 Q1427775 Q659650 Q46498 Q1218685 Q541863 Q213285
OR((Q1352713,P47,c(Q20667921)), (Q1225058,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q1352713
relation P47
action find
entity Q1225058
relation P47
type Q20667921
[ANSWERS]
{'OR': [['Q1352713', 'P47', {'concept': 'Q20667921'}], ['Q1225058', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q1352713 property:P47 ?u } UNION { resource:Q1225058 property:P47 ?u } } . ?u rdf:type ontology:Q20667921 }
Saint-Nicolas-de-la-Grave Livry-Louvercy Mourmelon-le-Petit Saint-Hilaire-le-Grand Vadenay Angeville Garganvillar Castelferrus Saint-Aignan Caumont Jonchery-sur-Suippe Baconnes Bouy Castelsarrasin
Castelsarrasin Mourmelon-le-Petit Caumont Jonchery-sur-Suippe Castelferrus Livry-Louvercy Bouy Garganvillar Saint-Nicolas-de-la-Grave Baconnes
action filter_type
action union
action find
entity Castelmayran
relation shares border with
action find
entity Mourmelon-le-Grand
relation shares border with
type type of french administrative division
{'OR': [['Castelmayran', 'shares border with', {'concept': 'type of french administrative division'}], ['Mourmelon-le-Grand', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Castelmayran property:shares_border_with ?u } UNION { resource:Mourmelon-le-Grand property:shares_border_with ?u } } . ?u rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q210742 Q1225058
P47
Q20667921
USER
Which french administrative divisions share border with Mourmelon-le-Grand or Marmande ?
OR((c(Q20667921),P47,Q1225058), (c(Q20667921),P47,Q210742))
action filter_type
action union
action find_reverse
entity Q1225058
relation P47
action find_reverse
entity Q210742
relation P47
type Q20667921
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q1225058'], [{'concept': 'Q20667921'}, 'P47', 'Q210742']]}
SELECT DISTINCT ?w WHERE { { { ?w property:P47 resource:Q1225058 } UNION { ?w property:P47 resource:Q210742 } } . ?w rdf:type ontology:Q20667921 }
Marmande Mourmelon-le-Grand
action filter_type
action union
action find_reverse
entity Mourmelon-le-Grand
relation shares border with
action find_reverse
entity Marmande
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Mourmelon-le-Grand'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Marmande']]}
SELECT DISTINCT ?w WHERE { { { ?w property:shares_border_with resource:Mourmelon-le-Grand } UNION { ?w property:shares_border_with resource:Marmande } } . ?w rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q643625 Q1104449 Q24587 Q598560 Q1104484 Q541863 Q219674 Q1103472 Q549973 Q1218685
SYSTEM
Some of them are Virazeil, Montpouillan, Beaupuy, Vadenay, Saint-Pardoux-du-Breuil, Bouy, Gaujac, Mourmelon-le-Petit, Mauvezin-sur-Gupie, Baconnes
Q219674 Q1225515 Q1103472 Q549973 Q746144 Q747513 Q1104449 Q598560 Q643625 Q1218685 Q24587 Q46498 Q192740 Q1104245 Q541863 Q1104484
OR((c(Q20667921),P47,Q1225058), (c(Q20667921),P47,Q210742))
action filter_type
action union
action find_reverse
entity Q1225058
relation P47
action find_reverse
entity Q210742
relation P47
type Q20667921
[ANSWERS] share border with Mourmelon-le-Grand or Marmande
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q1225058'], [{'concept': 'Q20667921'}, 'P47', 'Q210742']]}
SELECT DISTINCT ?w WHERE { { { ?w property:P47 resource:Q1225058 } UNION { ?w property:P47 resource:Q210742 } } . ?w rdf:type ontology:Q20667921 }
Gaujac Livry-Louvercy Mourmelon-le-Petit Mauvezin-sur-Gupie Saint-Hilaire-le-Grand Sainte-Bazeille Montpouillan Vadenay Virazeil Baconnes Beaupuy Jonchery-sur-Suippe Fourques-sur-Garonne Escassefort Bouy Saint-Pardoux-du-Breuil
Virazeil, Montpouillan, Beaupuy, Vadenay, Saint-Pardoux-du-Breuil, Bouy, Gaujac, Mourmelon-le-Petit, Mauvezin-sur-Gupie and Baconnes share border with Mourmelon-le-Grand or Marmande
Virazeil Montpouillan Beaupuy Vadenay Saint-Pardoux-du-Breuil Bouy Gaujac Mourmelon-le-Petit Mauvezin-sur-Gupie Baconnes
action filter_type
action union
action find_reverse
entity Mourmelon-le-Grand
relation shares border with
action find_reverse
entity Marmande
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Mourmelon-le-Grand'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Marmande']]}
SELECT DISTINCT ?w WHERE { { { ?w property:shares_border_with resource:Mourmelon-le-Grand } UNION { ?w property:shares_border_with resource:Marmande } } . ?w rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q142 Q1218685
P47 P17
Q20667921
USER
Which french administrative divisions share border with Baconnes and are located in France ?
AND((c(Q20667921),P47,Q1218685), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q1218685
relation P47
action find_reverse
entity Q142
relation P17
type Q20667921
{'AND': [[{'concept': 'Q20667921'}, 'P47', 'Q1218685'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?i WHERE { ?i property:P47 resource:Q1218685 . ?i property:P17 resource:Q142 . ?i rdf:type ontology:Q20667921 }
France Baconnes
action filter_type
action intersection
action find_reverse
entity Baconnes
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', 'Baconnes'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?i WHERE { ?i property:shares_border_with resource:Baconnes . ?i property:country resource:France . ?i rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1225058 Q1219955 Q746144 Q1103472 Q783740 Q925900
SYSTEM
Mourmelon-le-Grand, Sept-Saulx, Saint-Hilaire-le-Grand, Mourmelon-le-Petit, Prosnes, Aubérive
Q1225058 Q1219955 Q746144 Q1103472 Q783740 Q925900
AND((c(Q20667921),P47,Q1218685), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q1218685
relation P47
action find_reverse
entity Q142
relation P17
type Q20667921
[ANSWERS] share border with Baconnes and are located in France
{'AND': [[{'concept': 'Q20667921'}, 'P47', 'Q1218685'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?i WHERE { ?i property:P47 resource:Q1218685 . ?i property:P17 resource:Q142 . ?i rdf:type ontology:Q20667921 }
Mourmelon-le-Grand Sept-Saulx Saint-Hilaire-le-Grand Mourmelon-le-Petit Prosnes Aubérive
Mourmelon-le-Grand, Sept-Saulx, Saint-Hilaire-le-Grand, Mourmelon-le-Petit, Prosnes and Aubérive share border with Baconnes and are located in France
Mourmelon-le-Grand Sept-Saulx Saint-Hilaire-le-Grand Mourmelon-le-Petit Prosnes Aubérive
action filter_type
action intersection
action find_reverse
entity Baconnes
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', 'Baconnes'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?i WHERE { ?i property:shares_border_with resource:Baconnes . ?i property:country resource:France . ?i rdf:type ontology:type_of_french_administrative_division }
[]