Simple Question (Direct)
Simple Question
Q319075
P26
Q502895
USER
Who is the spouse of Antipater the Idumaean ?
(Q319075,P26,c(Q502895))
action filter_type
action find
entity Q319075
relation P26
type Q502895
['Q319075', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q319075 property:P26 ?s . ?s rdf:type ontology:Q502895 }
Antipater the Idumaean
action filter_type
action find
entity Antipater the Idumaean
relation spouse
type common name
['Antipater the Idumaean', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Antipater_the_Idumaean property:spouse ?s . ?s rdf:type ontology:common_name }
[]
common name
Q2583477
SYSTEM
Cypros
Q2583477
(Q319075,P26,c(Q502895))
action filter_type
action find
entity Q319075
relation P26
type Q502895
The spouse of Antipater the Idumaean is called [ANSWER]
['Q319075', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q319075 property:P26 ?s . ?s rdf:type ontology:Q502895 }
Cypros
The spouse of Antipater the Idumaean is called Cypros
Cypros
action filter_type
action find
entity Antipater the Idumaean
relation spouse
type common name
['Antipater the Idumaean', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Antipater_the_Idumaean property:spouse ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q319075
P22
Q502895
USER
Who are the offspring of Antipater the Idumaean ?
(c(Q502895),P22,Q319075)
action filter_type
action find_reverse
entity Q319075
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q319075']
SELECT DISTINCT ?g WHERE { ?g property:P22 resource:Q319075 . ?g rdf:type ontology:Q502895 }
Antipater the Idumaean
action filter_type
action find_reverse
entity Antipater the Idumaean
relation father
type common name
[{'concept': 'common name'}, 'father', 'Antipater the Idumaean']
SELECT DISTINCT ?g WHERE { ?g property:father resource:Antipater_the_Idumaean . ?g rdf:type ontology:common_name }
[]
common name
Q51672 Q2778094 Q2085552
SYSTEM
Herod the Great, Phasael, Pheroras
Q51672 Q2778094 Q2085552
(c(Q502895),P22,Q319075)
action filter_type
action find_reverse
entity Q319075
relation P22
type Q502895
The offspring of Antipater the Idumaean are [ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q319075']
SELECT DISTINCT ?g WHERE { ?g property:P22 resource:Q319075 . ?g rdf:type ontology:Q502895 }
Herod the Great Phasael Pheroras
The offspring of Antipater the Idumaean are Herod the Great, Phasael and Pheroras
Herod the Great Phasael Pheroras
action filter_type
action find_reverse
entity Antipater the Idumaean
relation father
type common name
[{'concept': 'common name'}, 'father', 'Antipater the Idumaean']
SELECT DISTINCT ?g WHERE { ?g property:father resource:Antipater_the_Idumaean . ?g rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q51672
P39
Q4164871
USER
What was a position for which that person was appointed ?
(Q51672,P39,c(Q4164871))
action filter_type
action find
entity Q51672
relation P39
type Q4164871
['Q51672', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ?i WHERE { resource:Q51672 property:P39 ?i . ?i rdf:type ontology:Q4164871 }
Herod the Great
action filter_type
action find
entity Herod the Great
relation position held
type position
['Herod the Great', 'position held', {'concept': 'position'}]
SELECT DISTINCT ?i WHERE { resource:Herod_the_Great property:position_held ?i . ?i rdf:type ontology:position }
[]
position
Clarification for simple ques.
Q2085552
SYSTEM
Did you mean Pheroras ?
Q51672 Q2778094 Q2085552
(Q51672,P39,c(Q4164871)) (Q2778094,P39,c(Q4164871)) (Q2085552,P39,c(Q4164871))
[ANSWER]
['Q51672', 'P39', {'concept': 'Q4164871'}] ['Q2778094', 'P39', {'concept': 'Q4164871'}] ['Q2085552', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ?i WHERE { resource:Q51672 property:P39 ?i . ?i rdf:type ontology:Q4164871 }
Herod the Great Phasael Pheroras
Did you mean Pheroras ?
Pheroras
['Herod the Great', 'position held', {'concept': 'position'}] ['Phasael', 'position held', {'concept': 'position'}] ['Pheroras', 'position held', {'concept': 'position'}]
SELECT DISTINCT ?i WHERE { resource:Herod_the_Great property:position_held ?i . ?i rdf:type ontology:position }
[]
Simple Question (Coreferenced)
USER
No, I meant Herod the Great. Could you tell me the answer for that?
(Q51672,P39,c(Q4164871))
Q51672
['Q51672', 'P39', {'concept': 'Q4164871'}]
['Herod the Great', 'position held', {'concept': 'position'}]
[]
Q26835654
SYSTEM
king of Israel
Q26835654
(Q51672,P39,c(Q4164871))
action filter_type
action find
entity Q51672
relation P39
type Q4164871
Israel [ANSWER]
['Q51672', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ?i WHERE { resource:Q51672 property:P39 ?i . ?i rdf:type ontology:Q4164871 }
king of Israel
Israel king of Israel
king of Israel
action filter_type
action find
entity Herod the Great
relation position held
type position
['Herod the Great', 'position held', {'concept': 'position'}]
SELECT DISTINCT ?i WHERE { resource:Herod_the_Great property:position_held ?i . ?i rdf:type ontology:position }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q51672
P127
Q811979
USER
Which architectural structure is owned by Herod the Great ?
(c(Q811979),P127,Q51672)
action filter_type
action find_reverse
entity Q51672
relation P127
type Q811979
[{'concept': 'Q811979'}, 'P127', 'Q51672']
SELECT DISTINCT ?j WHERE { ?j property:P127 resource:Q51672 . ?j rdf:type ontology:Q811979 }
Herod the Great
action filter_type
action find_reverse
entity Herod the Great
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'Herod the Great']
SELECT DISTINCT ?j WHERE { ?j property:owned_by resource:Herod_the_Great . ?j rdf:type ontology:architectural_structure }
[]
architectural structure
Q3456855
SYSTEM
Herod's Palace
Q3456855
(c(Q811979),P127,Q51672)
action filter_type
action find_reverse
entity Q51672
relation P127
type Q811979
[ANSWER] is owned by Herod the Great
[{'concept': 'Q811979'}, 'P127', 'Q51672']
SELECT DISTINCT ?j WHERE { ?j property:P127 resource:Q51672 . ?j rdf:type ontology:Q811979 }
Herod's Palace
Herod's Palace is owned by Herod the Great
Herod's Palace
action filter_type
action find_reverse
entity Herod the Great
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'Herod the Great']
SELECT DISTINCT ?j WHERE { ?j property:owned_by resource:Herod_the_Great . ?j rdf:type ontology:architectural_structure }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q51672
P7
Q502895
USER
Who are that one a sibling of ?
(Q3456855,P7,c(Q502895))
action filter_type
action find
entity Q51672
relation P7
type Q502895
['Q3456855', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q51672 property:P7 ?t . ?t rdf:type ontology:Q502895 }
Herod the Great
action filter_type
action find
entity Herod the Great
relation brother
type common name
["Herod's Palace", 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Herod_the_Great property:brother ?t . ?t rdf:type ontology:common_name }
[]
common name
Q2085552 Q2778094
SYSTEM
Pheroras, Phasael
Q2085552 Q2778094
(Q3456855,P7,c(Q502895))
action filter_type
action find
entity Q51672
relation P7
type Q502895
That one a sibling of are of [ANSWERS]
['Q3456855', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q51672 property:P7 ?t . ?t rdf:type ontology:Q502895 }
Pheroras Phasael
That one a sibling of are of Pheroras and Phasael
Pheroras Phasael
action filter_type
action find
entity Herod the Great
relation brother
type common name
["Herod's Palace", 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Herod_the_Great property:brother ?t . ?t rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q313281 Q51672
P40
Q502895
USER
Which people have Herod the Great or Michel Legrand as an offspring ?
OR((c(Q502895),P40,Q51672), (c(Q502895),P40,Q313281))
action filter_type
action union
action find_reverse
entity Q51672
relation P40
action find_reverse
entity Q313281
relation P40
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q51672'], [{'concept': 'Q502895'}, 'P40', 'Q313281']]}
SELECT DISTINCT ?b WHERE { { { ?b property:P40 resource:Q51672 } UNION { ?b property:P40 resource:Q313281 } } . ?b rdf:type ontology:Q502895 }
Michel Legrand Herod the Great
action filter_type
action union
action find_reverse
entity Herod the Great
relation child
action find_reverse
entity Michel Legrand
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Herod the Great'], [{'concept': 'common name'}, 'child', 'Michel Legrand']]}
SELECT DISTINCT ?b WHERE { { { ?b property:child resource:Herod_the_Great } UNION { ?b property:child resource:Michel_Legrand } } . ?b rdf:type ontology:common_name }
[]
common name
Q2583477 Q3420999 Q319075
SYSTEM
Cypros, Raymond Legrand, Antipater the Idumaean
Q2583477 Q3420999 Q319075
OR((c(Q502895),P40,Q51672), (c(Q502895),P40,Q313281))
action filter_type
action union
action find_reverse
entity Q51672
relation P40
action find_reverse
entity Q313281
relation P40
type Q502895
[ANSWERS] have Herod the Great or Michel Legrand as an offspring
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q51672'], [{'concept': 'Q502895'}, 'P40', 'Q313281']]}
SELECT DISTINCT ?b WHERE { { { ?b property:P40 resource:Q51672 } UNION { ?b property:P40 resource:Q313281 } } . ?b rdf:type ontology:Q502895 }
Cypros Raymond Legrand Antipater the Idumaean
Cypros, Raymond Legrand and Antipater the Idumaean have Herod the Great or Michel Legrand as an offspring
Cypros Raymond Legrand Antipater the Idumaean
action filter_type
action union
action find_reverse
entity Herod the Great
relation child
action find_reverse
entity Michel Legrand
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Herod the Great'], [{'concept': 'common name'}, 'child', 'Michel Legrand']]}
SELECT DISTINCT ?b WHERE { { { ?b property:child resource:Herod_the_Great } UNION { ?b property:child resource:Michel_Legrand } } . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q313281
P19
Q56061
USER
How many administrative territories were Michel Legrand born ?
(Q313281,P19,c(Q56061))
action count
action filter_type
action find
entity Q313281
relation P19
type Q56061
['Q313281', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r rdf:type ontology:Q56061 . resource:Q313281 property:P19 ?r }
Michel Legrand
action count
action filter_type
action find
entity Michel Legrand
relation place of birth
type administrative territorial entity
['Michel Legrand', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Michel_Legrand property:place_of_birth ?r }
[]
administrative territorial entity
SYSTEM
1
Q90
(Q313281,P19,c(Q56061))
action count
action filter_type
action find
entity Q313281
relation P19
type Q56061
[ANSWER]
['Q313281', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r rdf:type ontology:Q56061 . resource:Q313281 property:P19 ?r }
Paris
1
action count
action filter_type
action find
entity Michel Legrand
relation place of birth
type administrative territorial entity
['Michel Legrand', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Michel_Legrand property:place_of_birth ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q4963023
P19
Q56061
USER
And how about Ulla Lindström?
(Q4963023,P19,c(Q56061))
action count
action filter_type
action find
entity Q4963023
relation P19
type Q56061
['Q4963023', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Q4963023 property:P19 ?r . ?r rdf:type ontology:Q56061 }
Ulla Lindström
action count
action filter_type
action find
entity Ulla Lindström
relation place of birth
type administrative territorial entity
['Ulla Lindström', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Ulla_Lindström property:place_of_birth ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q1754
(Q4963023,P19,c(Q56061))
action count
action filter_type
action find
entity Q4963023
relation P19
type Q56061
[ANSWER]
['Q4963023', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Q4963023 property:P19 ?r . ?r rdf:type ontology:Q56061 }
Stockholm
1
action count
action filter_type
action find
entity Ulla Lindström
relation place of birth
type administrative territorial entity
['Ulla Lindström', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Ulla_Lindström property:place_of_birth ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1229052
Q56061
USER
And how about Kenneth Cranham?
(Q1229052,P19,c(Q56061))
action count
action filter_type
action find
entity Q1229052
relation P19
type Q56061
['Q1229052', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { resource:Q1229052 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Kenneth Cranham
action count
action filter_type
action find
entity Kenneth Cranham
relation place of birth
type administrative territorial entity
['Kenneth Cranham', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { resource:Kenneth_Cranham property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q1229052,P19,c(Q56061))
action count
action filter_type
action find
entity Q1229052
relation P19
type Q56061
[ANSWER]
['Q1229052', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { resource:Q1229052 property:P19 ?e . ?e rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Kenneth Cranham
relation place of birth
type administrative territorial entity
['Kenneth Cranham', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { resource:Kenneth_Cranham property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q129273 Q3420999
P20
Q56061
USER
Which administrative territories did Raymond Legrand or Victor Leemans die ?
OR((Q3420999,P20,c(Q56061)), (Q129273,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3420999
relation P20
action find
entity Q129273
relation P20
type Q56061
{'OR': [['Q3420999', 'P20', {'concept': 'Q56061'}], ['Q129273', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { ?y property:P20 ?j . VALUES ( ?y ) { ( resource:Q3420999 ) ( resource:Q129273 ) } } . ?j rdf:type ontology:Q56061 }
Victor Leemans Raymond Legrand
action filter_type
action union
action find
entity Raymond Legrand
relation place of death
action find
entity Victor Leemans
relation place of death
type administrative territorial entity
{'OR': [['Raymond Legrand', 'place of death', {'concept': 'administrative territorial entity'}], ['Victor Leemans', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?y property:place_of_death ?j . VALUES ( ?y ) { ( resource:Raymond_Legrand ) ( resource:Victor_Leemans ) } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q118958 Q90
SYSTEM
Leuven, Paris
Q118958 Q90
OR((Q3420999,P20,c(Q56061)), (Q129273,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3420999
relation P20
action find
entity Q129273
relation P20
type Q56061
Raymond Legrand or Victor Leemans died in [ANSWERS]
{'OR': [['Q3420999', 'P20', {'concept': 'Q56061'}], ['Q129273', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { ?y property:P20 ?j . VALUES ( ?y ) { ( resource:Q3420999 ) ( resource:Q129273 ) } } . ?j rdf:type ontology:Q56061 }
Leuven Paris
Raymond Legrand or Victor Leemans died in Leuven and Paris
Leuven Paris
action filter_type
action union
action find
entity Raymond Legrand
relation place of death
action find
entity Victor Leemans
relation place of death
type administrative territorial entity
{'OR': [['Raymond Legrand', 'place of death', {'concept': 'administrative territorial entity'}], ['Victor Leemans', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?y property:place_of_death ?j . VALUES ( ?y ) { ( resource:Raymond_Legrand ) ( resource:Victor_Leemans ) } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q637010
P937
Q502895
USER
Do Nik Welter have those administrative territories as their work location ?
(Q637010,P937,Q118958) (Q637010,P937,Q90)
action is_in
entity prev_answer
action find
entity Q637010
relation P937
['Q637010', 'P937', 'Q118958'] ['Q637010', 'P937', 'Q90']
ASK WHERE { VALUES ( ?y ) { ( resource:Q118958 ) ( resource:Q90 ) } . resource:Q637010 property:P937 ?y }
Nik Welter
action is_in
entity prev_answer
action find
entity Nik Welter
relation work location
['Nik Welter', 'work location', 'Leuven'] ['Nik Welter', 'work location', 'Paris']
ASK WHERE { VALUES ( ?y ) { ( resource:Leuven ) ( resource:Paris ) } . resource:Nik_Welter property:work_location ?y }
[]
common name
SYSTEM
YES
(Q637010,P937,Q118958) (Q637010,P937,Q90)
action is_in
entity prev_answer
action find
entity Q637010
relation P937
[ANSWER]
['Q637010', 'P937', 'Q118958'] ['Q637010', 'P937', 'Q90']
ASK WHERE { VALUES ( ?y ) { ( resource:Q118958 ) ( resource:Q90 ) } . resource:Q637010 property:P937 ?y }
Yes
action is_in
entity prev_answer
action find
entity Nik Welter
relation work location
['Nik Welter', 'work location', 'Leuven'] ['Nik Welter', 'work location', 'Paris']
ASK WHERE { VALUES ( ?y ) { ( resource:Leuven ) ( resource:Paris ) } . resource:Nik_Welter property:work_location ?y }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q90 Q950955
P47
Q20667921
USER
Is canton of Pont-Aven adjacent to Paris ?
(Q90,P47,Q950955)
action is_in
entity Q950955
action find
entity Q90
relation P47
['Q90', 'P47', 'Q950955']
ASK WHERE { resource:Q90 property:P47 resource:Q950955 }
Paris canton of Pont-Aven
action is_in
entity canton of Pont-Aven
action find
entity Paris
relation shares border with
['Paris', 'shares border with', 'canton of Pont-Aven']
ASK WHERE { resource:Paris property:shares_border_with resource:canton_of_Pont-Aven }
[]
type of french administrative division
SYSTEM
NO
(Q90,P47,Q950955)
action is_in
entity Q950955
action find
entity Q90
relation P47
[ANSWER]
['Q90', 'P47', 'Q950955']
ASK WHERE { resource:Q90 property:P47 resource:Q950955 }
No
action is_in
entity canton of Pont-Aven
action find
entity Paris
relation shares border with
['Paris', 'shares border with', 'canton of Pont-Aven']
ASK WHERE { resource:Paris property:shares_border_with resource:canton_of_Pont-Aven }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90
P609
Q83620
USER
Which thoroughfare has Paris as its destination ?
(c(Q83620),P609,Q90)
action filter_type
action find_reverse
entity Q90
relation P609
type Q83620
[{'concept': 'Q83620'}, 'P609', 'Q90']
SELECT DISTINCT ?m WHERE { ?m property:P609 resource:Q90 . ?m rdf:type ontology:Q83620 }
Paris
action filter_type
action find_reverse
entity Paris
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Paris']
SELECT DISTINCT ?m WHERE { ?m property:terminus_location resource:Paris . ?m rdf:type ontology:thoroughfare }
[]
thoroughfare
Q1375828
SYSTEM
European route E19
Q1375828
(c(Q83620),P609,Q90)
action filter_type
action find_reverse
entity Q90
relation P609
type Q83620
[ANSWER] has Paris as its destination
[{'concept': 'Q83620'}, 'P609', 'Q90']
SELECT DISTINCT ?m WHERE { ?m property:P609 resource:Q90 . ?m rdf:type ontology:Q83620 }
European route E19
European route E19 has Paris as its destination
European route E19
action filter_type
action find_reverse
entity Paris
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Paris']
SELECT DISTINCT ?m WHERE { ?m property:terminus_location resource:Paris . ?m rdf:type ontology:thoroughfare }
[]