Simple Question (Direct)
Simple Question
Q3069234
P39
Q12737077
USER
Which occupations were a position held by Fernand Lefort ?
(Q3069234,P39,c(Q12737077))
action filter_type
action find
entity Q3069234
relation P39
type Q12737077
['Q3069234', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q3069234 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Fernand Lefort
action filter_type
action find
entity Fernand Lefort
relation position held
type occupation
['Fernand Lefort', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Fernand_Lefort property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q14828018 Q382617
SYSTEM
member of the Senate of France, maire
Q14828018 Q382617
(Q3069234,P39,c(Q12737077))
action filter_type
action find
entity Q3069234
relation P39
type Q12737077
France [ANSWERS] were a position held by Fernand Lefort
['Q3069234', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q3069234 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
member of the Senate of France maire
France member of the Senate of France and maire were a position held by Fernand Lefort
member of the Senate of France maire
action filter_type
action find
entity Fernand Lefort
relation position held
type occupation
['Fernand Lefort', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Fernand_Lefort property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q14828018
P106
Q502895
USER
Which person has the profession as that occupation ?
(c(Q502895),P106,Q14828018)
action filter_type
action find_reverse
entity Q14828018
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q14828018']
SELECT DISTINCT ?g WHERE { ?g property:P106 resource:Q14828018 . ?g rdf:type ontology:Q502895 }
member of the Senate of France
action filter_type
action find_reverse
entity member of the Senate of France
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the Senate of France']
SELECT DISTINCT ?g WHERE { ?g property:occupation resource:member_of_the_Senate_of_France . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q382617
SYSTEM
Did you mean maire ?
Q14828018 Q382617
(c(Q502895),P106,Q14828018) (c(Q502895),P106,Q382617)
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q14828018'] [{'concept': 'Q502895'}, 'P106', 'Q382617']
SELECT DISTINCT ?g WHERE { ?g property:P106 resource:Q14828018 . ?g rdf:type ontology:Q502895 }
member of the Senate of France maire
Did you mean maire ?
maire
[{'concept': 'common name'}, 'occupation', 'member of the Senate of France'] [{'concept': 'common name'}, 'occupation', 'maire']
SELECT DISTINCT ?g WHERE { ?g property:occupation resource:member_of_the_Senate_of_France . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant member of the Senate of France. Could you tell me the answer for that?
(c(Q502895),P106,Q14828018)
Q14828018
[{'concept': 'Q502895'}, 'P106', 'Q14828018']
[{'concept': 'common name'}, 'occupation', 'member of the Senate of France']
[]
Q3383859
SYSTEM
Pierre Barbier
Q3383859
(c(Q502895),P106,Q14828018)
action filter_type
action find_reverse
entity Q14828018
relation P106
type Q502895
[ANSWER] has the profession as that occupation
[{'concept': 'Q502895'}, 'P106', 'Q14828018']
SELECT DISTINCT ?g WHERE { ?g property:P106 resource:Q14828018 . ?g rdf:type ontology:Q502895 }
Pierre Barbier
Pierre Barbier has the profession as that occupation
Pierre Barbier
action filter_type
action find_reverse
entity member of the Senate of France
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the Senate of France']
SELECT DISTINCT ?g WHERE { ?g property:occupation resource:member_of_the_Senate_of_France . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3383859
P937
Q56061
USER
Where did that person work ?
(Q3383859,P937,c(Q56061))
action filter_type
action find
entity Q3383859
relation P937
type Q56061
['Q3383859', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q3383859 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Pierre Barbier
action filter_type
action find
entity Pierre Barbier
relation work location
type administrative territorial entity
['Pierre Barbier', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Pierre_Barbier property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q3383859,P937,c(Q56061))
action filter_type
action find
entity Q3383859
relation P937
type Q56061
That person worked in [ANSWER]
['Q3383859', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q3383859 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Paris
That person worked in Paris
Paris
action filter_type
action find
entity Pierre Barbier
relation work location
type administrative territorial entity
['Pierre Barbier', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Pierre_Barbier property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q142 Q3383859
P6 P17
Q20667921
USER
Which french administrative divisions have a government lead by Pierre Barbier and are present in France ?
AND((c(Q20667921),P6,Q3383859), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q3383859
relation P6
action find_reverse
entity Q142
relation P17
type Q20667921
{'AND': [[{'concept': 'Q20667921'}, 'P6', 'Q3383859'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q20667921 . ?x property:P6 resource:Q3383859 . ?x property:P17 resource:Q142 }
France Pierre Barbier
action filter_type
action intersection
action find_reverse
entity Pierre Barbier
relation head of government
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'head of government', 'Pierre Barbier'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:type_of_french_administrative_division . ?x property:head_of_government resource:Pierre_Barbier . ?x property:country resource:France }
[]
type of french administrative division
Q213294 Q658007
SYSTEM
Clamecy, canton of Clamecy
Q213294 Q658007
AND((c(Q20667921),P6,Q3383859), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q3383859
relation P6
action find_reverse
entity Q142
relation P17
type Q20667921
[ANSWERS] have a government lead by Pierre Barbier and are present in France
{'AND': [[{'concept': 'Q20667921'}, 'P6', 'Q3383859'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q20667921 . ?x property:P6 resource:Q3383859 . ?x property:P17 resource:Q142 }
Clamecy canton of Clamecy
Clamecy and canton of Clamecy have a government lead by Pierre Barbier and are present in France
Clamecy canton of Clamecy
action filter_type
action intersection
action find_reverse
entity Pierre Barbier
relation head of government
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'head of government', 'Pierre Barbier'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:type_of_french_administrative_division . ?x property:head_of_government resource:Pierre_Barbier . ?x property:country resource:France }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q213294 Q658007
P47
Q20667921
USER
Which french administrative divisions do those ones share a border with ?
(c(Q20667921),P47,Q213294) (c(Q20667921),P47,Q658007)
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q213294'] [{'concept': 'Q20667921'}, 'P47', 'Q658007']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q20667921 . ?c property:P47 ?d . VALUES ( ?c ) { ( resource:Q213294 ) ( resource:Q658007 ) } }
Clamecy canton of Clamecy
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Clamecy'] [{'concept': 'type of french administrative division'}, 'shares border with', 'canton of Clamecy']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:type_of_french_administrative_division . ?c property:shares_border_with ?d . VALUES ( ?c ) { ( resource:Clamecy ) ( resource:canton_of_Clamecy ) } }
[]
type of french administrative division
Q28553 Q517984 Q1332708
SYSTEM
Villiers-sur-Yonne, Breugnon, Lichères-sur-Yonne
Q34223 Q4956 Q517984 Q431130 Q28553 Q46876 Q222037 Q1332708 Q41727 Q41722 Q1540490 Q662461 Q1646765 Q1541029
(c(Q20667921),P47,Q213294) (c(Q20667921),P47,Q658007)
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
Those ones share a border with [ANSWERS]
[{'concept': 'Q20667921'}, 'P47', 'Q213294'] [{'concept': 'Q20667921'}, 'P47', 'Q658007']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q20667921 . ?c property:P47 ?d . VALUES ( ?c ) { ( resource:Q213294 ) ( resource:Q658007 ) } }
Surgy Armes Breugnon Chevroches Villiers-sur-Yonne Oisy Andryes Lichères-sur-Yonne Rix Pousseaux canton of Varzy canton of Courson-les-Carrières canton of Coulanges-sur-Yonne canton of Tannay
Those ones share a border with Villiers-sur-Yonne, Breugnon and Lichères-sur-Yonne
Villiers-sur-Yonne Breugnon Lichères-sur-Yonne
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Clamecy'] [{'concept': 'type of french administrative division'}, 'shares border with', 'canton of Clamecy']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:type_of_french_administrative_division . ?c property:shares_border_with ?d . VALUES ( ?c ) { ( resource:Clamecy ) ( resource:canton_of_Clamecy ) } }
[]