Simple Question (Direct)
Simple Question
Q975518
P140
Q879146
USER
Which Christian denomination does Pierre Giraud correspond to ?
(Q975518,P140,c(Q879146))
action filter_type
action find
entity Q975518
relation P140
type Q879146
['Q975518', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?j WHERE { resource:Q975518 property:P140 ?j . ?j rdf:type ontology:Q879146 }
Pierre Giraud
action filter_type
action find
entity Pierre Giraud
relation religion
type Christian denomination
['Pierre Giraud', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?j WHERE { resource:Pierre_Giraud property:religion ?j . ?j rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q975518,P140,c(Q879146))
action filter_type
action find
entity Q975518
relation P140
type Q879146
Pierre Giraud corresponds au [ANSWER]
['Q975518', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?j WHERE { resource:Q975518 property:P140 ?j . ?j rdf:type ontology:Q879146 }
Roman Catholic Church
Pierre Giraud corresponds au Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Pierre Giraud
relation religion
type Christian denomination
['Pierre Giraud', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?j WHERE { resource:Pierre_Giraud property:religion ?j . ?j rdf:type ontology:Christian_denomination }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q975518
P106
Q12737077
USER
What does Pierre Giraud do for a living ?
(Q975518,P106,c(Q12737077))
action filter_type
action find
entity Q975518
relation P106
type Q12737077
['Q975518', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q975518 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Pierre Giraud
action filter_type
action find
entity Pierre Giraud
relation occupation
type occupation
['Pierre Giraud', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Pierre_Giraud property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q250867
SYSTEM
Catholic priest
Q250867
(Q975518,P106,c(Q12737077))
action filter_type
action find
entity Q975518
relation P106
type Q12737077
Pierre Giraud does a [ANSWER] for a living
['Q975518', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q975518 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Catholic priest
Pierre Giraud does a Catholic priest for a living
Catholic priest
action filter_type
action find
entity Pierre Giraud
relation occupation
type occupation
['Pierre Giraud', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Pierre_Giraud property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q91993
Q12737077
USER
And what about Friedrich Wieseler?
(Q91993,P106,c(Q12737077))
action filter_type
action find
entity Q91993
relation P106
type Q12737077
['Q91993', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q91993 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Friedrich Wieseler
action filter_type
action find
entity Friedrich Wieseler
relation occupation
type occupation
['Friedrich Wieseler', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Friedrich_Wieseler property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q3621491 Q1622272 Q16267607
SYSTEM
archaeologist, university teacher, classical philologist
Q16267607 Q3621491 Q4773904 Q1622272 Q1792450
(Q91993,P106,c(Q12737077))
action filter_type
action find
entity Q91993
relation P106
type Q12737077
[ANSWERS]
['Q91993', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q91993 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
classical philologist archaeologist anthropologist university teacher art historian
archaeologist university teacher classical philologist
action filter_type
action find
entity Friedrich Wieseler
relation occupation
type occupation
['Friedrich Wieseler', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Friedrich_Wieseler property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q91993
P21
Q290
USER
What is the sex of that person ?
(Q3621491,P21,c(Q290)) (Q1622272,P21,c(Q290)) (Q16267607,P21,c(Q290))
action filter_type
action find
entity Q91993
relation P21
type Q290
['Q3621491', 'P21', {'concept': 'Q290'}] ['Q1622272', 'P21', {'concept': 'Q290'}] ['Q16267607', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q91993 property:P21 ?d . ?d rdf:type ontology:Q290 }
Friedrich Wieseler
action filter_type
action find
entity Friedrich Wieseler
relation gender
type sex
['archaeologist', 'gender', {'concept': 'sex'}] ['university teacher', 'gender', {'concept': 'sex'}] ['classical philologist', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Friedrich_Wieseler property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3621491,P21,c(Q290)) (Q1622272,P21,c(Q290)) (Q16267607,P21,c(Q290))
action filter_type
action find
entity Q91993
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q3621491', 'P21', {'concept': 'Q290'}] ['Q1622272', 'P21', {'concept': 'Q290'}] ['Q16267607', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q91993 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Friedrich Wieseler
relation gender
type sex
['archaeologist', 'gender', {'concept': 'sex'}] ['university teacher', 'gender', {'concept': 'sex'}] ['classical philologist', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Friedrich_Wieseler property:gender ?d . ?d rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q3778938 Q91993
P21
Q290
USER
And also Guglielmo II Pusterla
AND((Q91993,P21,c(Q290)), (Q3778938,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q91993
relation P21
action find
entity Q3778938
relation P21
type Q290
{'AND': [['Q91993', 'P21', {'concept': 'Q290'}], ['Q3778938', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?y WHERE { resource:Q91993 property:P21 ?y . resource:Q3778938 property:P21 ?y . ?y rdf:type ontology:Q290 }
Guglielmo II Pusterla Friedrich Wieseler
action filter_type
action intersection
action find
entity Friedrich Wieseler
relation gender
action find
entity Guglielmo II Pusterla
relation gender
type sex
{'AND': [['Friedrich Wieseler', 'gender', {'concept': 'sex'}], ['Guglielmo II Pusterla', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?y WHERE { resource:Friedrich_Wieseler property:gender ?y . resource:Guglielmo_II_Pusterla property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q91993,P21,c(Q290)), (Q3778938,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q91993
relation P21
action find
entity Q3778938
relation P21
type Q290
[ANSWER]
{'AND': [['Q91993', 'P21', {'concept': 'Q290'}], ['Q3778938', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?y WHERE { resource:Q91993 property:P21 ?y . resource:Q3778938 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
male
action filter_type
action intersection
action find
entity Friedrich Wieseler
relation gender
action find
entity Guglielmo II Pusterla
relation gender
type sex
{'AND': [['Friedrich Wieseler', 'gender', {'concept': 'sex'}], ['Guglielmo II Pusterla', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?y WHERE { resource:Friedrich_Wieseler property:gender ?y . resource:Guglielmo_II_Pusterla property:gender ?y . ?y rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7981501 Q3778938
P19 P20
Q56061
USER
Which administrative territories were Guglielmo II Pusterla born in or did Wellington Stapleton-Cotton, 2nd Viscount Combermere die ?
OR((Q3778938,P19,c(Q56061)), (Q7981501,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3778938
relation P19
action find
entity Q7981501
relation P20
type Q56061
{'OR': [['Q3778938', 'P19', {'concept': 'Q56061'}], ['Q7981501', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3778938 property:P19 ?f } UNION { resource:Q7981501 property:P20 ?f } } . ?f rdf:type ontology:Q56061 }
Wellington Stapleton-Cotton, 2nd Viscount Combermere Guglielmo II Pusterla
action filter_type
action union
action find
entity Guglielmo II Pusterla
relation place of birth
action find
entity Wellington Stapleton-Cotton, 2nd Viscount Combermere
relation place of death
type administrative territorial entity
{'OR': [['Guglielmo II Pusterla', 'place of birth', {'concept': 'administrative territorial entity'}], ['Wellington Stapleton-Cotton, 2nd Viscount Combermere', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Guglielmo_II_Pusterla property:place_of_birth ?f } UNION { resource:Wellington_Stapleton-Cotton,_2nd_Viscount_Combermere property:place_of_death ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q490 Q84
SYSTEM
Milan, London
Q490 Q84
OR((Q3778938,P19,c(Q56061)), (Q7981501,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3778938
relation P19
action find
entity Q7981501
relation P20
type Q56061
[ANSWERS] were Guglielmo II Pusterla born in or did Wellington Stapleton-Cotton, 2nd Viscount Combermere die
{'OR': [['Q3778938', 'P19', {'concept': 'Q56061'}], ['Q7981501', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3778938 property:P19 ?f } UNION { resource:Q7981501 property:P20 ?f } } . ?f rdf:type ontology:Q56061 }
Milan London
Milan and London were Guglielmo II Pusterla born in or did Wellington Stapleton-Cotton, 2nd Viscount Combermere die
Milan London
action filter_type
action union
action find
entity Guglielmo II Pusterla
relation place of birth
action find
entity Wellington Stapleton-Cotton, 2nd Viscount Combermere
relation place of death
type administrative territorial entity
{'OR': [['Guglielmo II Pusterla', 'place of birth', {'concept': 'administrative territorial entity'}], ['Wellington Stapleton-Cotton, 2nd Viscount Combermere', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Guglielmo_II_Pusterla property:place_of_birth ?f } UNION { resource:Wellington_Stapleton-Cotton,_2nd_Viscount_Combermere property:place_of_death ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q490 Q84
P190
Q13220204
USER
Which administrative country subdivisions are partner town of those administrative territories ?
(c(Q13220204),P190,Q490) (c(Q13220204),P190,Q84)
action filter_type
action find
entity prev_answer
relation P190
type Q13220204
[{'concept': 'Q13220204'}, 'P190', 'Q490'] [{'concept': 'Q13220204'}, 'P190', 'Q84']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q13220204 . ?s property:P190 ?f . VALUES ( ?s ) { ( resource:Q490 ) ( resource:Q84 ) } }
Milan London
action filter_type
action find
entity prev_answer
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Milan'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'London']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:second-level_administrative_country_subdivision . ?s property:sister_city ?f . VALUES ( ?s ) { ( resource:Milan ) ( resource:London ) } }
[]
second-level administrative country subdivision
Q9899 Q1435 Q2841
SYSTEM
Amsterdam, Zagreb, Bogotá
Q48278 Q9899 Q1435 Q2841
(c(Q13220204),P190,Q490) (c(Q13220204),P190,Q84)
action filter_type
action find
entity prev_answer
relation P190
type Q13220204
[ANSWERS] are partner town of those administrative territories
[{'concept': 'Q13220204'}, 'P190', 'Q490'] [{'concept': 'Q13220204'}, 'P190', 'Q84']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q13220204 . ?s property:P190 ?f . VALUES ( ?s ) { ( resource:Q490 ) ( resource:Q84 ) } }
Antioquia - Medellín Amsterdam Zagreb Bogotá
Amsterdam, Zagreb and Bogotá are partner town of those administrative territories
Amsterdam Zagreb Bogotá
action filter_type
action find
entity prev_answer
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Milan'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'London']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:second-level_administrative_country_subdivision . ?s property:sister_city ?f . VALUES ( ?s ) { ( resource:Milan ) ( resource:London ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9899
P6
Q502895
USER
Which person is the head of government of that administrative country subdivision ?
(Q9899,P6,c(Q502895))
action filter_type
action find
entity Q9899
relation P6
type Q502895
['Q9899', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q9899 property:P6 ?u }
Amsterdam
action filter_type
action find
entity Amsterdam
relation head of government
type common name
['Amsterdam', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Amsterdam property:head_of_government ?u }
[]
common name
Clarification for simple ques.
Q2841
SYSTEM
Did you mean Bogotá ?
Q9899 Q1435 Q2841
(Q9899,P6,c(Q502895)) (Q1435,P6,c(Q502895)) (Q2841,P6,c(Q502895))
[ANSWER]
['Q9899', 'P6', {'concept': 'Q502895'}] ['Q1435', 'P6', {'concept': 'Q502895'}] ['Q2841', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q9899 property:P6 ?u }
Amsterdam Zagreb Bogotá
Did you mean Bogotá ?
Bogotá
['Amsterdam', 'head of government', {'concept': 'common name'}] ['Zagreb', 'head of government', {'concept': 'common name'}] ['Bogotá', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Amsterdam property:head_of_government ?u }
[]
Simple Question (Coreferenced)
USER
No, I meant Amsterdam. Could you tell me the answer for that?
(Q9899,P6,c(Q502895))
Q9899
['Q9899', 'P6', {'concept': 'Q502895'}]
['Amsterdam', 'head of government', {'concept': 'common name'}]
[]
Q1279554
SYSTEM
Eberhard van der Laan
Q1279554
(Q9899,P6,c(Q502895))
action filter_type
action find
entity Q9899
relation P6
type Q502895
[ANSWER] is the head of government of that administrative country subdivision
['Q9899', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q9899 property:P6 ?u }
Eberhard van der Laan
Eberhard van der Laan is the head of government of that administrative country subdivision
Eberhard van der Laan
action filter_type
action find
entity Amsterdam
relation head of government
type common name
['Amsterdam', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Amsterdam property:head_of_government ?u }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1279554 Q29999
P27
Q15617994
USER
Is Kingdom of the Netherlands the country of citizenship of Eberhard van der Laan ?
(Q1279554,P27,Q29999)
action is_in
entity Q29999
action find
entity Q1279554
relation P27
['Q1279554', 'P27', 'Q29999']
ASK WHERE { resource:Q1279554 property:P27 resource:Q29999 }
Eberhard van der Laan Kingdom of the Netherlands
action is_in
entity Kingdom of the Netherlands
action find
entity Eberhard van der Laan
relation country of citizenship
['Eberhard van der Laan', 'country of citizenship', 'Kingdom of the Netherlands']
ASK WHERE { resource:Eberhard_van_der_Laan property:country_of_citizenship resource:Kingdom_of_the_Netherlands }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1279554,P27,Q29999)
action is_in
entity Q29999
action find
entity Q1279554
relation P27
[ANSWER]
['Q1279554', 'P27', 'Q29999']
ASK WHERE { resource:Q1279554 property:P27 resource:Q29999 }
Yes
action is_in
entity Kingdom of the Netherlands
action find
entity Eberhard van der Laan
relation country of citizenship
['Eberhard van der Laan', 'country of citizenship', 'Kingdom of the Netherlands']
ASK WHERE { resource:Eberhard_van_der_Laan property:country_of_citizenship resource:Kingdom_of_the_Netherlands }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1279554
P6
Q56061 Q13220204
USER
How many administrative territories or administrative country subdivisions have Eberhard van der Laan as their administrative leader ?
(c(Q56061),P6,Q1279554) (c(Q13220204),P6,Q1279554)
action count
action union
action filter_type
action find_reverse
entity Q1279554
relation P6
type Q56061
action filter_type
action find_reverse
entity Q1279554
relation P6
type Q13220204
[{'concept': 'Q56061'}, 'P6', 'Q1279554'] [{'concept': 'Q13220204'}, 'P6', 'Q1279554']
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?c ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } . ?g rdf:type ?c }
Eberhard van der Laan
action count
action union
action filter_type
action find_reverse
entity Eberhard van der Laan
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Eberhard van der Laan
relation head of government
type second-level administrative country subdivision
[{'concept': 'administrative territorial entity'}, 'head of government', 'Eberhard van der Laan'] [{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Eberhard van der Laan']
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?c ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } . ?g rdf:type ?c }
[]
administrative territorial entity second-level administrative country subdivision
SYSTEM
2
Q727 Q9899
(c(Q56061),P6,Q1279554) (c(Q13220204),P6,Q1279554)
action count
action union
action filter_type
action find_reverse
entity Q1279554
relation P6
type Q56061
action filter_type
action find_reverse
entity Q1279554
relation P6
type Q13220204
[ANSWER]
[{'concept': 'Q56061'}, 'P6', 'Q1279554'] [{'concept': 'Q13220204'}, 'P6', 'Q1279554']
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?c ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } . ?g rdf:type ?c }
Amsterdam Amsterdam
2
action count
action union
action filter_type
action find_reverse
entity Eberhard van der Laan
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Eberhard van der Laan
relation head of government
type second-level administrative country subdivision
[{'concept': 'administrative territorial entity'}, 'head of government', 'Eberhard van der Laan'] [{'concept': 'second-level administrative country subdivision'}, 'head of government', 'Eberhard van der Laan']
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?c ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } . ?g rdf:type ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1279554
P6
Q13220204
USER
Which administrative country subdivision has a government lead by that person ?
action filter_type
action find_reverse
entity Q1279554
relation P6
type Q13220204
SELECT DISTINCT ?w WHERE { ?w property:P6 resource:Q1279554 . ?w rdf:type ontology:Q13220204 }
Eberhard van der Laan
action filter_type
action find_reverse
entity Eberhard van der Laan
relation head of government
type second-level administrative country subdivision
SELECT DISTINCT ?w WHERE { ?w property:head_of_government resource:Eberhard_van_der_Laan . ?w rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q9899
SYSTEM
Amsterdam
Q9899
action filter_type
action find_reverse
entity Q1279554
relation P6
type Q13220204
[ANSWER] has a government lead by that person
SELECT DISTINCT ?w WHERE { ?w property:P6 resource:Q1279554 . ?w rdf:type ontology:Q13220204 }
Amsterdam
Amsterdam has a government lead by that person
Amsterdam
action filter_type
action find_reverse
entity Eberhard van der Laan
relation head of government
type second-level administrative country subdivision
SELECT DISTINCT ?w WHERE { ?w property:head_of_government resource:Eberhard_van_der_Laan . ?w rdf:type ontology:second-level_administrative_country_subdivision }
[]