Simple Question (Direct)
Simple Question
Q967047
P20
Q20667921
USER
Where did Jean-Paul Le Chanois die ?
(Q967047,P20,c(Q20667921))
action filter_type
action find
entity Q967047
relation P20
type Q20667921
['Q967047', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q20667921 . resource:Q967047 property:P20 ?v }
Jean-Paul Le Chanois
action filter_type
action find
entity Jean-Paul Le Chanois
relation place of death
type type of french administrative division
['Jean-Paul Le Chanois', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:type_of_french_administrative_division . resource:Jean-Paul_Le_Chanois property:place_of_death ?v }
[]
type of french administrative division
Q388949
SYSTEM
Passy, Haute-Savoie
Q388949
(Q967047,P20,c(Q20667921))
action filter_type
action find
entity Q967047
relation P20
type Q20667921
Jean-Paul Le Chanois died in [ANSWER]
['Q967047', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q20667921 . resource:Q967047 property:P20 ?v }
Passy, Haute-Savoie
Jean-Paul Le Chanois died in Passy, Haute-Savoie
Passy, Haute-Savoie
action filter_type
action find
entity Jean-Paul Le Chanois
relation place of death
type type of french administrative division
['Jean-Paul Le Chanois', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:type_of_french_administrative_division . resource:Jean-Paul_Le_Chanois property:place_of_death ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q388949
P36
Q20667921
USER
Which french administrative division has that one as its administrative centre ?
(c(Q20667921),P36,Q388949)
action filter_type
action find_reverse
entity Q388949
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q388949']
SELECT DISTINCT ?m WHERE { ?m property:P36 resource:Q388949 . ?m rdf:type ontology:Q20667921 }
Passy, Haute-Savoie
action filter_type
action find_reverse
entity Passy, Haute-Savoie
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Passy, Haute-Savoie']
SELECT DISTINCT ?m WHERE { ?m property:capital resource:Passy,_Haute-Savoie . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q17623601
SYSTEM
canton of Mont-Blanc
Q17623601
(c(Q20667921),P36,Q388949)
action filter_type
action find_reverse
entity Q388949
relation P36
type Q20667921
The [ANSWER] has that one as its administrative centre
[{'concept': 'Q20667921'}, 'P36', 'Q388949']
SELECT DISTINCT ?m WHERE { ?m property:P36 resource:Q388949 . ?m rdf:type ontology:Q20667921 }
canton of Mont-Blanc
The canton of Mont-Blanc has that one as its administrative centre
canton of Mont-Blanc
action filter_type
action find_reverse
entity Passy, Haute-Savoie
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Passy, Haute-Savoie']
SELECT DISTINCT ?m WHERE { ?m property:capital resource:Passy,_Haute-Savoie . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17623601
P17
Q15617994
USER
Which administrative territory is that french administrative division a part of ?
(Q17623601,P17,c(Q15617994))
action filter_type
action find
entity Q17623601
relation P17
type Q15617994
['Q17623601', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q17623601 property:P17 ?d }
canton of Mont-Blanc
action filter_type
action find
entity canton of Mont-Blanc
relation country
type designation for an administrative territorial entity
['canton of Mont-Blanc', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:canton_of_Mont-Blanc property:country ?d }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q17623601,P17,c(Q15617994))
action filter_type
action find
entity Q17623601
relation P17
type Q15617994
[ANSWER] is that french administrative division a part of
['Q17623601', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q17623601 property:P17 ?d }
France
France is that french administrative division a part of
France
action filter_type
action find
entity canton of Mont-Blanc
relation country
type designation for an administrative territorial entity
['canton of Mont-Blanc', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:canton_of_Mont-Blanc property:country ?d }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with around 18 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 18
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?q ) WHERE { ?t property:P530 ?y . ?t rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?q = 18 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?q ) WHERE { ?t property:diplomatic_relation ?y . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?q = 18 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
13
Q801 Q805 Q142 Q148 Q159 Q30 Q929 Q225 Q17 Q114 Q858 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 18
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?q ) WHERE { ?t property:P530 ?y . ?t rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?q = 18 ) }
Israel Yemen France People's Republic of China Russia United States of America Central African Republic Bosnia and Herzegovina Japan Kenya Syria Cape Verde Zambia
13
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?q ) WHERE { ?t property:diplomatic_relation ?y . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?q = 18 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q388949
P47
Q20667921
USER
Which french administrative divisions share border with Passy, Haute-Savoie ?
(Q388949,P47,c(Q20667921))
action filter_type
action find
entity Q388949
relation P47
type Q20667921
['Q388949', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?k WHERE { resource:Q388949 property:P47 ?k . ?k rdf:type ontology:Q20667921 }
Passy, Haute-Savoie
action filter_type
action find
entity Passy, Haute-Savoie
relation shares border with
type type of french administrative division
['Passy, Haute-Savoie', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?k WHERE { resource:Passy,_Haute-Savoie property:shares_border_with ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q83236 Q845855 Q534206
SYSTEM
Chamonix-Mont-Blanc, Sallanches, Saint-Gervais-les-Bains
Q768759 Q845855 Q83236 Q534206 Q841345 Q735362 Q912354 Q506831 Q767209
(Q388949,P47,c(Q20667921))
action filter_type
action find
entity Q388949
relation P47
type Q20667921
[ANSWERS] share border with Passy, Haute-Savoie
['Q388949', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?k WHERE { resource:Q388949 property:P47 ?k . ?k rdf:type ontology:Q20667921 }
Sixt-Fer-à-Cheval Sallanches Chamonix-Mont-Blanc Saint-Gervais-les-Bains Domancy Les Houches Vallorcine Magland Servoz
Chamonix-Mont-Blanc, Sallanches and Saint-Gervais-les-Bains share border with Passy, Haute-Savoie
Chamonix-Mont-Blanc Sallanches Saint-Gervais-les-Bains
action filter_type
action find
entity Passy, Haute-Savoie
relation shares border with
type type of french administrative division
['Passy, Haute-Savoie', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?k WHERE { resource:Passy,_Haute-Savoie property:shares_border_with ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q193138
Q20667921
USER
And also tell me about Les Mars?
(Q193138,P47,c(Q20667921))
action filter_type
action find
entity Q193138
relation P47
type Q20667921
['Q193138', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q193138 property:P47 ?f . ?f rdf:type ontology:Q20667921 }
Les Mars
action filter_type
action find
entity Les Mars
relation shares border with
type type of french administrative division
['Les Mars', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Les_Mars property:shares_border_with ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q195864 Q193621 Q179344
SYSTEM
Dontreix, Auzances, Le Compas
Q193621 Q636871 Q179344 Q195864 Q861652 Q175803
(Q193138,P47,c(Q20667921))
action filter_type
action find
entity Q193138
relation P47
type Q20667921
[ANSWERS]
['Q193138', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q193138 property:P47 ?f . ?f rdf:type ontology:Q20667921 }
Auzances Chard Le Compas Dontreix Châtelard Brousse
Dontreix Auzances Le Compas
action filter_type
action find
entity Les Mars
relation shares border with
type type of french administrative division
['Les Mars', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Les_Mars property:shares_border_with ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16105079 Q967047
P19
Q56061
USER
Which administrative territories were Jean-Paul Le Chanois or Mike Foster born ?
OR((Q967047,P19,c(Q56061)), (Q16105079,P19,c(Q56061)))
action filter_type
action union
action find
entity Q967047
relation P19
action find
entity Q16105079
relation P19
type Q56061
{'OR': [['Q967047', 'P19', {'concept': 'Q56061'}], ['Q16105079', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q967047 property:P19 ?y } UNION { resource:Q16105079 property:P19 ?y } } . ?y rdf:type ontology:Q56061 }
Mike Foster Jean-Paul Le Chanois
action filter_type
action union
action find
entity Jean-Paul Le Chanois
relation place of birth
action find
entity Mike Foster
relation place of birth
type administrative territorial entity
{'OR': [['Jean-Paul Le Chanois', 'place of birth', {'concept': 'administrative territorial entity'}], ['Mike Foster', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Jean-Paul_Le_Chanois property:place_of_birth ?y } UNION { resource:Mike_Foster property:place_of_birth ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90 Q83065
SYSTEM
Paris, Leicester
Q90 Q83065
OR((Q967047,P19,c(Q56061)), (Q16105079,P19,c(Q56061)))
action filter_type
action union
action find
entity Q967047
relation P19
action find
entity Q16105079
relation P19
type Q56061
[ANSWERS] were Jean-Paul Le Chanois or Mike Foster born
{'OR': [['Q967047', 'P19', {'concept': 'Q56061'}], ['Q16105079', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q967047 property:P19 ?y } UNION { resource:Q16105079 property:P19 ?y } } . ?y rdf:type ontology:Q56061 }
Paris Leicester
Paris and Leicester were Jean-Paul Le Chanois or Mike Foster born
Paris Leicester
action filter_type
action union
action find
entity Jean-Paul Le Chanois
relation place of birth
action find
entity Mike Foster
relation place of birth
type administrative territorial entity
{'OR': [['Jean-Paul Le Chanois', 'place of birth', {'concept': 'administrative territorial entity'}], ['Mike Foster', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Jean-Paul_Le_Chanois property:place_of_birth ?y } UNION { resource:Mike_Foster property:place_of_birth ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]