Simple Question (Direct)
Simple Question
Q7349981
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Robert Stacy-Judd ?
(Q7349981,P27,c(Q15617994))
action filter_type
action find
entity Q7349981
relation P27
type Q15617994
['Q7349981', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q7349981 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Robert Stacy-Judd
action filter_type
action find
entity Robert Stacy-Judd
relation country of citizenship
type designation for an administrative territorial entity
['Robert Stacy-Judd', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Robert_Stacy-Judd property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q7349981,P27,c(Q15617994))
action filter_type
action find
entity Q7349981
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Robert Stacy-Judd
['Q7349981', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q7349981 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of citizenship of Robert Stacy-Judd
United Kingdom
action filter_type
action find
entity Robert Stacy-Judd
relation country of citizenship
type designation for an administrative territorial entity
['Robert Stacy-Judd', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Robert_Stacy-Judd property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7349981
P106
Q12737077
USER
What are the job of that person ?
(Q145,P106,c(Q12737077))
action filter_type
action find
entity Q7349981
relation P106
type Q12737077
['Q145', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q7349981 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Robert Stacy-Judd
action filter_type
action find
entity Robert Stacy-Judd
relation occupation
type occupation
['United Kingdom', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Robert_Stacy-Judd property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q42973 Q36180
SYSTEM
architect, writer
Q42973 Q36180
(Q145,P106,c(Q12737077))
action filter_type
action find
entity Q7349981
relation P106
type Q12737077
The job of that person are an [ANSWERS]
['Q145', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q7349981 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
architect writer
The job of that person are an architect and writer
architect writer
action filter_type
action find
entity Robert Stacy-Judd
relation occupation
type occupation
['United Kingdom', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Robert_Stacy-Judd property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16980765
P106
Q502895
USER
Do Richard David Semba have the profession of those occupations ?
(Q16980765,P106,Q42973) (Q16980765,P106,Q36180)
action is_in
entity prev_answer
action find
entity Q16980765
relation P106
['Q16980765', 'P106', 'Q42973'] ['Q16980765', 'P106', 'Q36180']
ASK WHERE { resource:Q16980765 property:P106 ?z . VALUES ( ?z ) { ( resource:Q42973 ) ( resource:Q36180 ) } }
Richard David Semba
action is_in
entity prev_answer
action find
entity Richard David Semba
relation occupation
['Richard David Semba', 'occupation', 'architect'] ['Richard David Semba', 'occupation', 'writer']
ASK WHERE { resource:Richard_David_Semba property:occupation ?z . VALUES ( ?z ) { ( resource:architect ) ( resource:writer ) } }
[]
common name
SYSTEM
NO
(Q16980765,P106,Q42973) (Q16980765,P106,Q36180)
action is_in
entity prev_answer
action find
entity Q16980765
relation P106
[ANSWER]
['Q16980765', 'P106', 'Q42973'] ['Q16980765', 'P106', 'Q36180']
ASK WHERE { resource:Q16980765 property:P106 ?z . VALUES ( ?z ) { ( resource:Q42973 ) ( resource:Q36180 ) } }
No
action is_in
entity prev_answer
action find
entity Richard David Semba
relation occupation
['Richard David Semba', 'occupation', 'architect'] ['Richard David Semba', 'occupation', 'writer']
ASK WHERE { resource:Richard_David_Semba property:occupation ?z . VALUES ( ?z ) { ( resource:architect ) ( resource:writer ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q874405 Q56061 Q15617994
USER
Which administrative territories are a part of exactly 1 social groups or administrative territories ?
(c(Q15617994),P361,c(Q874405)|c(Q56061))
action equal
action union
action find_tuple_counts
relation P361
type Q15617994
type Q874405
action find_tuple_counts
relation P361
type Q15617994
type Q56061
value 1
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q874405'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?a WHERE { { ?a property:P361 ?j . ?a rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q874405 } UNION { ?a property:P361 ?j . ?a rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q56061 } } GROUP BY ?a } . FILTER ( ?q = 1 ) }
action equal
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type social group
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'social group'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?a WHERE { { ?a property:part_of ?j . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:social_group } UNION { ?a property:part_of ?j . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?q = 1 ) }
[]
social group administrative territorial entity designation for an administrative territorial entity
Q36 Q697685 Q548611
SYSTEM
Poland, House of Nassau-Weilburg, district of the Czech Republic
Q548611 Q36 Q186115 Q585444 Q2661988 Q2115448 Q697685 Q209495
(c(Q15617994),P361,c(Q874405)|c(Q56061))
action equal
action union
action find_tuple_counts
relation P361
type Q15617994
type Q874405
action find_tuple_counts
relation P361
type Q15617994
type Q56061
value 1
[ANSWERS] are a part of exactly 1 social groups or administrative territories
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q874405'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?a WHERE { { ?a property:P361 ?j . ?a rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q874405 } UNION { ?a property:P361 ?j . ?a rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q56061 } } GROUP BY ?a } . FILTER ( ?q = 1 ) }
district of the Czech Republic Poland Montmartre administrative district of Prague urban settlement in Russia Intra-city territory of a federal city House of Nassau-Weilburg historical province of France
Poland, House of Nassau-Weilburg and district of the Czech Republic are a part of exactly 1 social groups or administrative territories
Poland House of Nassau-Weilburg district of the Czech Republic
action equal
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type social group
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'social group'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?a WHERE { { ?a property:part_of ?j . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:social_group } UNION { ?a property:part_of ?j . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?q = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q697685
P53
Q502895
USER
Which people are from that administrative territory ?
(c(Q502895),P53,Q697685)
action filter_type
action find_reverse
entity Q697685
relation P53
type Q502895
[{'concept': 'Q502895'}, 'P53', 'Q697685']
SELECT DISTINCT ?c WHERE { ?c property:P53 resource:Q697685 . ?c rdf:type ontology:Q502895 }
House of Nassau-Weilburg
action filter_type
action find_reverse
entity House of Nassau-Weilburg
relation noble family
type common name
[{'concept': 'common name'}, 'noble family', 'House of Nassau-Weilburg']
SELECT DISTINCT ?c WHERE { ?c property:noble_family resource:House_of_Nassau-Weilburg . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q548611
SYSTEM
Did you mean district of the Czech Republic ?
Q36 Q697685 Q548611
(c(Q502895),P53,Q36) (c(Q502895),P53,Q697685) (c(Q502895),P53,Q548611)
[ANSWER]
[{'concept': 'Q502895'}, 'P53', 'Q36'] [{'concept': 'Q502895'}, 'P53', 'Q697685'] [{'concept': 'Q502895'}, 'P53', 'Q548611']
SELECT DISTINCT ?c WHERE { ?c property:P53 resource:Q697685 . ?c rdf:type ontology:Q502895 }
Poland House of Nassau-Weilburg district of the Czech Republic
Did you mean district of the Czech Republic ?
district of the Czech Republic
[{'concept': 'common name'}, 'noble family', 'Poland'] [{'concept': 'common name'}, 'noble family', 'House of Nassau-Weilburg'] [{'concept': 'common name'}, 'noble family', 'district of the Czech Republic']
SELECT DISTINCT ?c WHERE { ?c property:noble_family resource:House_of_Nassau-Weilburg . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant House of Nassau-Weilburg. Could you tell me the answer for that?
(c(Q502895),P53,Q697685)
Q697685
[{'concept': 'Q502895'}, 'P53', 'Q697685']
[{'concept': 'common name'}, 'noble family', 'House of Nassau-Weilburg']
[]
Q158235 Q705120 Q130408
SYSTEM
William IV, Grand Duke of Luxembourg, William, Duke of Nassau, Sophia of Nassau
Q159075 Q266142 Q130408 Q158235 Q705120 Q242178 Q160101
(c(Q502895),P53,Q697685)
action filter_type
action find_reverse
entity Q697685
relation P53
type Q502895
[ANSWERS] are from that administrative territory
[{'concept': 'Q502895'}, 'P53', 'Q697685']
SELECT DISTINCT ?c WHERE { ?c property:P53 resource:Q697685 . ?c rdf:type ontology:Q502895 }
Marie-Adélaïde, Grand Duchess of Luxembourg Princess Antonia of Luxembourg Sophia of Nassau William IV, Grand Duke of Luxembourg William, Duke of Nassau Princess Henrietta of Nassau-Weilburg Adolf, King of Germany
William IV, Grand Duke of Luxembourg, William, Duke of Nassau and Sophia of Nassau are from that administrative territory
William IV, Grand Duke of Luxembourg William, Duke of Nassau Sophia of Nassau
action filter_type
action find_reverse
entity House of Nassau-Weilburg
relation noble family
type common name
[{'concept': 'common name'}, 'noble family', 'House of Nassau-Weilburg']
SELECT DISTINCT ?c WHERE { ?c property:noble_family resource:House_of_Nassau-Weilburg . ?c rdf:type ontology:common_name }
[]