Simple Question (Direct)
Simple Question
Q61692
P22
Q502895
USER
Which male person has a child named Leopold II, Prince of Anhalt-Dessau ?
(Q61692,P22,c(Q502895))
action filter_type
action find
entity Q61692
relation P22
type Q502895
['Q61692', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q61692 property:P22 ?b }
Leopold II, Prince of Anhalt-Dessau
action filter_type
action find
entity Leopold II, Prince of Anhalt-Dessau
relation father
type common name
['Leopold II, Prince of Anhalt-Dessau', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Leopold_II,_Prince_of_Anhalt-Dessau property:father ?b }
[]
common name
Q61695
SYSTEM
Leopold I, Prince of Anhalt-Dessau
Q61695
(Q61692,P22,c(Q502895))
action filter_type
action find
entity Q61692
relation P22
type Q502895
And [ANSWER] has a child named Leopold II, Prince of Anhalt-Dessau
['Q61692', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q61692 property:P22 ?b }
Leopold I, Prince of Anhalt-Dessau
And Leopold I, Prince of Anhalt-Dessau has a child named Leopold II, Prince of Anhalt-Dessau
Leopold I, Prince of Anhalt-Dessau
action filter_type
action find
entity Leopold II, Prince of Anhalt-Dessau
relation father
type common name
['Leopold II, Prince of Anhalt-Dessau', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Leopold_II,_Prince_of_Anhalt-Dessau property:father ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q61695
P26
Q502895
USER
Which person is the life partner of that one ?
(c(Q502895),P26,Q61695)
action filter_type
action find
entity Q61695
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q61695']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q61695 property:P26 ?s }
Leopold I, Prince of Anhalt-Dessau
action filter_type
action find
entity Leopold I, Prince of Anhalt-Dessau
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Leopold I, Prince of Anhalt-Dessau']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Leopold_I,_Prince_of_Anhalt-Dessau property:spouse ?s }
[]
common name
Q539026
SYSTEM
Anna Louise Föhse
Q539026
(c(Q502895),P26,Q61695)
action filter_type
action find
entity Q61695
relation P26
type Q502895
[ANSWER] is the life partner of that one
[{'concept': 'Q502895'}, 'P26', 'Q61695']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q61695 property:P26 ?s }
Anna Louise Föhse
Anna Louise Föhse is the life partner of that one
Anna Louise Föhse
action filter_type
action find
entity Leopold I, Prince of Anhalt-Dessau
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Leopold I, Prince of Anhalt-Dessau']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Leopold_I,_Prince_of_Anhalt-Dessau property:spouse ?s }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P40
Q502895
USER
How many people are an offsprings of that person ?
(Q539026,P40,c(Q502895))
action count
action filter_type
action find
entity Q539026
relation P40
type Q502895
['Q539026', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { resource:Q539026 property:P40 ?z . ?z rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity Anna Louise Föhse
relation child
type common name
['Anna Louise Föhse', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { resource:Anna_Louise_Föhse property:child ?z . ?z rdf:type ontology:common_name }
[]
common name
SYSTEM
9
Q61692 Q273068 Q563608 Q318224 Q1459599 Q1876675 Q568444 Q71139 Q543648
(Q539026,P40,c(Q502895))
action count
action filter_type
action find
entity Q539026
relation P40
type Q502895
[ANSWER]
['Q539026', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { resource:Q539026 property:P40 ?z . ?z rdf:type ontology:Q502895 }
Leopold II, Prince of Anhalt-Dessau Leopoldine Marie of Anhalt-Dessau Anna Wilhelmine of Anhalt-Dessau William Gustav of Anhalt-Dessau Prince Frederick Henry Eugen of Anhalt-Dessau Luise von Anhalt-Dessau Dietrich of Anhalt-Dessau Prince Moritz of Anhalt-Dessau Henriette Amalie of Anhalt-Dessau
9
action count
action filter_type
action find
entity Anna Louise Föhse
relation child
type common name
['Anna Louise Föhse', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { resource:Anna_Louise_Föhse property:child ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q61695 Q8046631
P40
Q502895
USER
How many people have Leopold I, Prince of Anhalt-Dessau or Yael as a child ?
(c(Q502895),P40,Q61695) (c(Q502895),P40,Q8046631)
action count
action union
action filter_type
action find_reverse
entity Q61695
relation P40
type Q502895
action filter_type
action find_reverse
entity Q8046631
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q61695'] [{'concept': 'Q502895'}, 'P40', 'Q8046631']
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { VALUES ( ?r ) { ( resource:Q8046631 ) ( resource:Q61695 ) } . ?w property:P40 ?r }
Leopold I, Prince of Anhalt-Dessau Yael
action count
action union
action filter_type
action find_reverse
entity Leopold I, Prince of Anhalt-Dessau
relation child
type common name
action filter_type
action find_reverse
entity Yael
relation child
type common name
[{'concept': 'common name'}, 'child', 'Leopold I, Prince of Anhalt-Dessau'] [{'concept': 'common name'}, 'child', 'Yael']
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { VALUES ( ?r ) { ( resource:Yael ) ( resource:Leopold_I,_Prince_of_Anhalt-Dessau ) } . ?w property:child ?r }
[]
common name
SYSTEM
3
Q63246 Q2885122 Q196022
(c(Q502895),P40,Q61695) (c(Q502895),P40,Q8046631)
action count
action union
action filter_type
action find_reverse
entity Q61695
relation P40
type Q502895
action filter_type
action find_reverse
entity Q8046631
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q61695'] [{'concept': 'Q502895'}, 'P40', 'Q8046631']
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { VALUES ( ?r ) { ( resource:Q8046631 ) ( resource:Q61695 ) } . ?w property:P40 ?r }
John George II, Prince of Anhalt-Dessau Jordi Coll Countess Henriette Catherine of Nassau
3
action count
action union
action filter_type
action find_reverse
entity Leopold I, Prince of Anhalt-Dessau
relation child
type common name
action filter_type
action find_reverse
entity Yael
relation child
type common name
[{'concept': 'common name'}, 'child', 'Leopold I, Prince of Anhalt-Dessau'] [{'concept': 'common name'}, 'child', 'Yael']
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { VALUES ( ?r ) { ( resource:Yael ) ( resource:Leopold_I,_Prince_of_Anhalt-Dessau ) } . ?w property:child ?r }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1750915 Q61695
P47 P27
Q1048835
USER
Which political territories are the native countriesof Leopold I, Prince of Anhalt-Dessau or have a shared border with Callosa de Segura ?
OR((Q61695,P27,c(Q1048835)), (Q1750915,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q61695
relation P27
action find
entity Q1750915
relation P47
type Q1048835
{'OR': [['Q61695', 'P27', {'concept': 'Q1048835'}], ['Q1750915', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1750915 property:P47 ?i } UNION { resource:Q61695 property:P27 ?i } } . ?i rdf:type ontology:Q1048835 }
Callosa de Segura Leopold I, Prince of Anhalt-Dessau
action filter_type
action union
action find
entity Leopold I, Prince of Anhalt-Dessau
relation country of citizenship
action find
entity Callosa de Segura
relation shares border with
type political territorial entity
{'OR': [['Leopold I, Prince of Anhalt-Dessau', 'country of citizenship', {'concept': 'political territorial entity'}], ['Callosa de Segura', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Callosa_de_Segura property:shares_border_with ?i } UNION { resource:Leopold_I,_Prince_of_Anhalt-Dessau property:country_of_citizenship ?i } } . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1616611 Q1769353 Q1752447 Q183 Q2265463 Q1768833 Q1640230
SYSTEM
Crevillent, Granja de Rocamora, Catral, Germany, San Isidro, Redován, Cox
Q1616611 Q1769353 Q1752447 Q183 Q2265463 Q1768833 Q1640230
OR((Q61695,P27,c(Q1048835)), (Q1750915,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q61695
relation P27
action find
entity Q1750915
relation P47
type Q1048835
[ANSWERS] are the native countriesof Leopold I, Prince of Anhalt-Dessau or have a shared border with Callosa de Segura
{'OR': [['Q61695', 'P27', {'concept': 'Q1048835'}], ['Q1750915', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1750915 property:P47 ?i } UNION { resource:Q61695 property:P27 ?i } } . ?i rdf:type ontology:Q1048835 }
Crevillent Granja de Rocamora Catral Germany San Isidro Redován Cox
Crevillent, Granja de Rocamora, Catral, Germany, San Isidro, Redován and Cox are the native countriesof Leopold I, Prince of Anhalt-Dessau or have a shared border with Callosa de Segura
Crevillent Granja de Rocamora Catral Germany San Isidro Redován Cox
action filter_type
action union
action find
entity Leopold I, Prince of Anhalt-Dessau
relation country of citizenship
action find
entity Callosa de Segura
relation shares border with
type political territorial entity
{'OR': [['Leopold I, Prince of Anhalt-Dessau', 'country of citizenship', {'concept': 'political territorial entity'}], ['Callosa de Segura', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Callosa_de_Segura property:shares_border_with ?i } UNION { resource:Leopold_I,_Prince_of_Anhalt-Dessau property:country_of_citizenship ?i } } . ?i rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1768833
P1001
Q12737077
USER
Which occupation applies to jurisdiction over that political territory ?
(c(Q12737077),P1001,Q1768833)
action filter_type
action find_reverse
entity Q1768833
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q1768833']
SELECT DISTINCT ?c WHERE { ?c property:P1001 resource:Q1768833 . ?c rdf:type ontology:Q12737077 }
Redován
action filter_type
action find_reverse
entity Redován
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Redován']
SELECT DISTINCT ?c WHERE { ?c property:applies_to_jurisdiction resource:Redován . ?c rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q1640230
SYSTEM
Did you mean Cox ?
Q1616611 Q1769353 Q1752447 Q183 Q2265463 Q1768833 Q1640230
(c(Q12737077),P1001,Q1616611) (c(Q12737077),P1001,Q1769353) (c(Q12737077),P1001,Q1752447) (c(Q12737077),P1001,Q183) (c(Q12737077),P1001,Q2265463) (c(Q12737077),P1001,Q1768833) (c(Q12737077),P1001,Q1640230)
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q1616611'] [{'concept': 'Q12737077'}, 'P1001', 'Q1769353'] [{'concept': 'Q12737077'}, 'P1001', 'Q1752447'] [{'concept': 'Q12737077'}, 'P1001', 'Q183'] [{'concept': 'Q12737077'}, 'P1001', 'Q2265463'] [{'concept': 'Q12737077'}, 'P1001', 'Q1768833'] [{'concept': 'Q12737077'}, 'P1001', 'Q1640230']
SELECT DISTINCT ?c WHERE { ?c property:P1001 resource:Q1768833 . ?c rdf:type ontology:Q12737077 }
Crevillent Granja de Rocamora Catral Germany San Isidro Redován Cox
Did you mean Cox ?
Cox
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Crevillent'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Granja de Rocamora'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Catral'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Germany'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'San Isidro'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Redován'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Cox']
SELECT DISTINCT ?c WHERE { ?c property:applies_to_jurisdiction resource:Redován . ?c rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Redován. Could you tell me the answer for that?
(c(Q12737077),P1001,Q1768833)
Q1768833
[{'concept': 'Q12737077'}, 'P1001', 'Q1768833']
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Redován']
[]
Q26696325
SYSTEM
mayor of Redován
Q26696325
(c(Q12737077),P1001,Q1768833)
action filter_type
action find_reverse
entity Q1768833
relation P1001
type Q12737077
[ANSWER] applies to jurisdiction over that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q1768833']
SELECT DISTINCT ?c WHERE { ?c property:P1001 resource:Q1768833 . ?c rdf:type ontology:Q12737077 }
mayor of Redován
Mayor of Redován applies to jurisdiction over that political territory
mayor of Redován
action filter_type
action find_reverse
entity Redován
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Redován']
SELECT DISTINCT ?c WHERE { ?c property:applies_to_jurisdiction resource:Redován . ?c rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q26696325 Q81692 Q268137
P17
Q15617994
USER
Is mayor of Redován located in Seewald and Aurigo ?
(Q26696325,P17,Q81692) (Q26696325,P17,Q268137)
action is_in
entity Q26696325
action intersection
action find_reverse
entity Q81692
relation P17
action find_reverse
entity Q268137
relation P17
['Q26696325', 'P17', 'Q81692'] ['Q26696325', 'P17', 'Q268137']
ASK WHERE { resource:Q26696325 property:P17 resource:Q81692 . resource:Q26696325 property:P17 resource:Q268137 }
mayor of Redován Seewald Aurigo
action is_in
entity mayor of Redován
action intersection
action find_reverse
entity Seewald
relation country
action find_reverse
entity Aurigo
relation country
['mayor of Redován', 'country', 'Seewald'] ['mayor of Redován', 'country', 'Aurigo']
ASK WHERE { resource:mayor_of_Redován property:country resource:Seewald . resource:mayor_of_Redován property:country resource:Aurigo }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q26696325,P17,Q81692) (Q26696325,P17,Q268137)
action is_in
entity Q26696325
action intersection
action find_reverse
entity Q81692
relation P17
action find_reverse
entity Q268137
relation P17
[ANSWER]
['Q26696325', 'P17', 'Q81692'] ['Q26696325', 'P17', 'Q268137']
ASK WHERE { resource:Q26696325 property:P17 resource:Q81692 . resource:Q26696325 property:P17 resource:Q268137 }
No
action is_in
entity mayor of Redován
action intersection
action find_reverse
entity Seewald
relation country
action find_reverse
entity Aurigo
relation country
['mayor of Redován', 'country', 'Seewald'] ['mayor of Redován', 'country', 'Aurigo']
ASK WHERE { resource:mayor_of_Redován property:country resource:Seewald . resource:mayor_of_Redován property:country resource:Aurigo }
[]