Simple Question (Direct)
Simple Question
Q60371
P1196
Q1914636
USER
What manner did Prince Joachim of Prussia die ?
(Q60371,P1196,c(Q1914636))
action filter_type
action find
entity Q60371
relation P1196
type Q1914636
['Q60371', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?c WHERE { resource:Q60371 property:P1196 ?c . ?c rdf:type ontology:Q1914636 }
Prince Joachim of Prussia
action filter_type
action find
entity Prince Joachim of Prussia
relation manner of death
type activity
['Prince Joachim of Prussia', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?c WHERE { resource:Prince_Joachim_of_Prussia property:manner_of_death ?c . ?c rdf:type ontology:activity }
[]
activity
Q10737
SYSTEM
suicide
Q10737
(Q60371,P1196,c(Q1914636))
action filter_type
action find
entity Q60371
relation P1196
type Q1914636
Prince Joachim of Prussia died [ANSWER]
['Q60371', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?c WHERE { resource:Q60371 property:P1196 ?c . ?c rdf:type ontology:Q1914636 }
suicide
Prince Joachim of Prussia died suicide
suicide
action filter_type
action find
entity Prince Joachim of Prussia
relation manner of death
type activity
['Prince Joachim of Prussia', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?c WHERE { resource:Prince_Joachim_of_Prussia property:manner_of_death ?c . ?c rdf:type ontology:activity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q60371
P40
Q502895
USER
Which people have Prince Joachim of Prussia as an offspring ?
(c(Q502895),P40,Q60371)
action filter_type
action find_reverse
entity Q60371
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q60371']
SELECT DISTINCT ?z WHERE { ?z property:P40 resource:Q60371 . ?z rdf:type ontology:Q502895 }
Prince Joachim of Prussia
action filter_type
action find_reverse
entity Prince Joachim of Prussia
relation child
type common name
[{'concept': 'common name'}, 'child', 'Prince Joachim of Prussia']
SELECT DISTINCT ?z WHERE { ?z property:child resource:Prince_Joachim_of_Prussia . ?z rdf:type ontology:common_name }
[]
common name
Q2677 Q161247
SYSTEM
Wilhelm II, Augusta Victoria of Schleswig-Holstein
Q2677 Q161247
(c(Q502895),P40,Q60371)
action filter_type
action find_reverse
entity Q60371
relation P40
type Q502895
[ANSWERS] have Prince Joachim of Prussia as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q60371']
SELECT DISTINCT ?z WHERE { ?z property:P40 resource:Q60371 . ?z rdf:type ontology:Q502895 }
Wilhelm II Augusta Victoria of Schleswig-Holstein
Wilhelm II and Augusta Victoria of Schleswig-Holstein have Prince Joachim of Prussia as an offspring
Wilhelm II Augusta Victoria of Schleswig-Holstein
action filter_type
action find_reverse
entity Prince Joachim of Prussia
relation child
type common name
[{'concept': 'common name'}, 'child', 'Prince Joachim of Prussia']
SELECT DISTINCT ?z WHERE { ?z property:child resource:Prince_Joachim_of_Prussia . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2677 Q161247
P26
Q502895
USER
Who are married to Wilhelm II and Augusta Victoria of Schleswig-Holstein ?
(c(Q502895),P26,Q2677) (c(Q502895),P26,Q161247)
action union
action filter_type
action find
entity Q2677
relation P26
type Q502895
action filter_type
action find
entity Q161247
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q2677'] [{'concept': 'Q502895'}, 'P26', 'Q161247']
SELECT DISTINCT ?n WHERE { ?p property:P26 ?n . VALUES ( ?p ) { ( resource:Q2677 ) ( resource:Q161247 ) } }
Wilhelm II Augusta Victoria of Schleswig-Holstein
action union
action filter_type
action find
entity Wilhelm II
relation spouse
type common name
action filter_type
action find
entity Augusta Victoria of Schleswig-Holstein
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Wilhelm II'] [{'concept': 'common name'}, 'spouse', 'Augusta Victoria of Schleswig-Holstein']
SELECT DISTINCT ?n WHERE { ?p property:spouse ?n . VALUES ( ?p ) { ( resource:Wilhelm_II ) ( resource:Augusta_Victoria_of_Schleswig-Holstein ) } }
[]
common name
Q161247 Q61448 Q2677
SYSTEM
Augusta Victoria of Schleswig-Holstein, Hermine Reuss of Greiz, Wilhelm II
Q161247 Q61448 Q2677
(c(Q502895),P26,Q2677) (c(Q502895),P26,Q161247)
action union
action filter_type
action find
entity Q2677
relation P26
type Q502895
action filter_type
action find
entity Q161247
relation P26
type Q502895
[ANSWERS] are married to Wilhelm II and Augusta Victoria of Schleswig-Holstein
[{'concept': 'Q502895'}, 'P26', 'Q2677'] [{'concept': 'Q502895'}, 'P26', 'Q161247']
SELECT DISTINCT ?n WHERE { ?p property:P26 ?n . VALUES ( ?p ) { ( resource:Q2677 ) ( resource:Q161247 ) } }
Augusta Victoria of Schleswig-Holstein Hermine Reuss of Greiz Wilhelm II
Augusta Victoria of Schleswig-Holstein, Hermine Reuss of Greiz and Wilhelm II are married to Wilhelm II and Augusta Victoria of Schleswig-Holstein
Augusta Victoria of Schleswig-Holstein Hermine Reuss of Greiz Wilhelm II
action union
action filter_type
action find
entity Wilhelm II
relation spouse
type common name
action filter_type
action find
entity Augusta Victoria of Schleswig-Holstein
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Wilhelm II'] [{'concept': 'common name'}, 'spouse', 'Augusta Victoria of Schleswig-Holstein']
SELECT DISTINCT ?n WHERE { ?p property:spouse ?n . VALUES ( ?p ) { ( resource:Wilhelm_II ) ( resource:Augusta_Victoria_of_Schleswig-Holstein ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q161247 Q61448 Q2677
P40
Q502895
USER
Whose child are Augusta Victoria of Schleswig-Holstein, Hermine Reuss of Greiz and Wilhelm II ?
(c(Q502895),P40,Q161247) (c(Q502895),P40,Q61448) (c(Q502895),P40,Q2677)
action union
action filter_type
action find_reverse
entity Q161247
relation P40
type Q502895
action filter_type
action find_reverse
entity Q61448
relation P40
type Q502895
action filter_type
action find_reverse
entity Q2677
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q161247'] [{'concept': 'Q502895'}, 'P40', 'Q61448'] [{'concept': 'Q502895'}, 'P40', 'Q2677']
SELECT DISTINCT ?v WHERE { VALUES ( ?a ) { ( resource:Q161247 ) ( resource:Q61448 ) } . ?v property:P40 ?a }
Augusta Victoria of Schleswig-Holstein Hermine Reuss of Greiz Wilhelm II
action union
action filter_type
action find_reverse
entity Augusta Victoria of Schleswig-Holstein
relation child
type common name
action filter_type
action find_reverse
entity Hermine Reuss of Greiz
relation child
type common name
action filter_type
action find_reverse
entity Wilhelm II
relation child
type common name
[{'concept': 'common name'}, 'child', 'Augusta Victoria of Schleswig-Holstein'] [{'concept': 'common name'}, 'child', 'Hermine Reuss of Greiz'] [{'concept': 'common name'}, 'child', 'Wilhelm II']
SELECT DISTINCT ?v WHERE { VALUES ( ?a ) { ( resource:Augusta_Victoria_of_Schleswig-Holstein ) ( resource:Hermine_Reuss_of_Greiz ) } . ?v property:child ?a }
[]
common name
Q116728 Q58600 Q242487
SYSTEM
Victoria, Princess Royal, Friedrich III of Germany, Princess Adelheid of Hohenlohe-Langenburg
Q700644 Q242487 Q766973 Q571623 Q58600 Q116728
(c(Q502895),P40,Q161247) (c(Q502895),P40,Q61448) (c(Q502895),P40,Q2677)
action union
action filter_type
action find_reverse
entity Q161247
relation P40
type Q502895
action filter_type
action find_reverse
entity Q61448
relation P40
type Q502895
action filter_type
action find_reverse
entity Q2677
relation P40
type Q502895
[ANSWERS] are Augusta Victoria of Schleswig-Holstein, Hermine Reuss of Greiz and Wilhelm II
[{'concept': 'Q502895'}, 'P40', 'Q161247'] [{'concept': 'Q502895'}, 'P40', 'Q61448'] [{'concept': 'Q502895'}, 'P40', 'Q2677']
SELECT DISTINCT ?v WHERE { VALUES ( ?a ) { ( resource:Q161247 ) ( resource:Q61448 ) } . ?v property:P40 ?a }
Frederick VIII, Duke of Schleswig-Holstein Princess Adelheid of Hohenlohe-Langenburg Princess Ida of Schaumburg-Lippe Heinrich XXII, Prince Reuss of Greiz Friedrich III of Germany Victoria, Princess Royal
Victoria, Princess Royal, Friedrich III of Germany and Princess Adelheid of Hohenlohe-Langenburg are Augusta Victoria of Schleswig-Holstein, Hermine Reuss of Greiz and Wilhelm II
Victoria, Princess Royal Friedrich III of Germany Princess Adelheid of Hohenlohe-Langenburg
action union
action filter_type
action find_reverse
entity Augusta Victoria of Schleswig-Holstein
relation child
type common name
action filter_type
action find_reverse
entity Hermine Reuss of Greiz
relation child
type common name
action filter_type
action find_reverse
entity Wilhelm II
relation child
type common name
[{'concept': 'common name'}, 'child', 'Augusta Victoria of Schleswig-Holstein'] [{'concept': 'common name'}, 'child', 'Hermine Reuss of Greiz'] [{'concept': 'common name'}, 'child', 'Wilhelm II']
SELECT DISTINCT ?v WHERE { VALUES ( ?a ) { ( resource:Augusta_Victoria_of_Schleswig-Holstein ) ( resource:Hermine_Reuss_of_Greiz ) } . ?v property:child ?a }
[]
Clarification
Simple Question|Single Entity|Indirect
Q58600
P22
Q502895
USER
Who was the father of that one ?
(Q58600,P22,c(Q502895))
action filter_type
action find
entity Q58600
relation P22
type Q502895
['Q58600', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q58600 property:P22 ?c . ?c rdf:type ontology:Q502895 }
Friedrich III of Germany
action filter_type
action find
entity Friedrich III of Germany
relation father
type common name
['Friedrich III of Germany', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Friedrich_III_of_Germany property:father ?c . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q116728
SYSTEM
Did you mean Victoria, Princess Royal ?
Q116728 Q58600 Q242487
(Q116728,P22,c(Q502895)) (Q58600,P22,c(Q502895)) (Q242487,P22,c(Q502895))
[ANSWER]
['Q116728', 'P22', {'concept': 'Q502895'}] ['Q58600', 'P22', {'concept': 'Q502895'}] ['Q242487', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q58600 property:P22 ?c . ?c rdf:type ontology:Q502895 }
Victoria, Princess Royal Friedrich III of Germany Princess Adelheid of Hohenlohe-Langenburg
Did you mean Victoria, Princess Royal ?
Victoria, Princess Royal
['Victoria, Princess Royal', 'father', {'concept': 'common name'}] ['Friedrich III of Germany', 'father', {'concept': 'common name'}] ['Princess Adelheid of Hohenlohe-Langenburg', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Friedrich_III_of_Germany property:father ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Friedrich III of Germany. Could you tell me the answer for that?
(Q58600,P22,c(Q502895))
Q58600
['Q58600', 'P22', {'concept': 'Q502895'}]
['Friedrich III of Germany', 'father', {'concept': 'common name'}]
[]
Q150652
SYSTEM
Wilhelm I of Germany
Q150652
(Q58600,P22,c(Q502895))
action filter_type
action find
entity Q58600
relation P22
type Q502895
The father of that one was Kaiser [ANSWER]
['Q58600', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q58600 property:P22 ?c . ?c rdf:type ontology:Q502895 }
Wilhelm I of Germany
The father of that one was Kaiser Wilhelm I of Germany
Wilhelm I of Germany
action filter_type
action find
entity Friedrich III of Germany
relation father
type common name
['Friedrich III of Germany', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Friedrich_III_of_Germany property:father ?c . ?c rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q150652 Q9343458 Q57541
P26
Q502895
USER
Does that person have Stanisław Zieliński and Augusta of Saxe-Weimar-Eisenach as spouse ?
(Q150652,P26,Q9343458) (Q150652,P26,Q57541)
action is_in
entity Q150652
action intersection
action find_reverse
entity Q9343458
relation P26
action find_reverse
entity Q57541
relation P26
['Q150652', 'P26', 'Q9343458'] ['Q150652', 'P26', 'Q57541']
ASK WHERE { resource:Q150652 property:P26 resource:Q9343458 . resource:Q150652 property:P26 resource:Q57541 }
Wilhelm I of Germany Stanisław Zieliński Augusta of Saxe-Weimar-Eisenach
action is_in
entity Wilhelm I of Germany
action intersection
action find_reverse
entity Stanisław Zieliński
relation spouse
action find_reverse
entity Augusta of Saxe-Weimar-Eisenach
relation spouse
['Wilhelm I of Germany', 'spouse', 'Stanisław Zieliński'] ['Wilhelm I of Germany', 'spouse', 'Augusta of Saxe-Weimar-Eisenach']
ASK WHERE { resource:Wilhelm_I_of_Germany property:spouse resource:Stanisław_Zieliński . resource:Wilhelm_I_of_Germany property:spouse resource:Augusta_of_Saxe-Weimar-Eisenach }
[]
common name
SYSTEM
NO and YES respectively
(Q150652,P26,Q9343458) (Q150652,P26,Q57541)
action is_in
entity Q150652
action intersection
action find_reverse
entity Q9343458
relation P26
action find_reverse
entity Q57541
relation P26
[ANSWER]
['Q150652', 'P26', 'Q9343458'] ['Q150652', 'P26', 'Q57541']
ASK WHERE { resource:Q150652 property:P26 resource:Q9343458 . resource:Q150652 property:P26 resource:Q57541 }
NO and YES respectively
action is_in
entity Wilhelm I of Germany
action intersection
action find_reverse
entity Stanisław Zieliński
relation spouse
action find_reverse
entity Augusta of Saxe-Weimar-Eisenach
relation spouse
['Wilhelm I of Germany', 'spouse', 'Stanisław Zieliński'] ['Wilhelm I of Germany', 'spouse', 'Augusta of Saxe-Weimar-Eisenach']
ASK WHERE { resource:Wilhelm_I_of_Germany property:spouse resource:Stanisław_Zieliński . resource:Wilhelm_I_of_Germany property:spouse resource:Augusta_of_Saxe-Weimar-Eisenach }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q58600
P26
Q502895
USER
How many people are the life partner of Friedrich III of Germany ?
(c(Q502895),P26,Q58600)
action count
action filter_type
action find_reverse
entity Q58600
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q58600']
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:P26 resource:Q58600 . ?m rdf:type ontology:Q502895 }
Friedrich III of Germany
action count
action filter_type
action find_reverse
entity Friedrich III of Germany
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Friedrich III of Germany']
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:spouse resource:Friedrich_III_of_Germany . ?m rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q116728
(c(Q502895),P26,Q58600)
action count
action filter_type
action find_reverse
entity Q58600
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q58600']
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:P26 resource:Q58600 . ?m rdf:type ontology:Q502895 }
Victoria, Princess Royal
1
action count
action filter_type
action find_reverse
entity Friedrich III of Germany
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Friedrich III of Germany']
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:spouse resource:Friedrich_III_of_Germany . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q58600
P140
Q43229
USER
Which organization does that person correspond to ?
action filter_type
action find
entity Q58600
relation P140
type Q43229
SELECT DISTINCT ?v WHERE { resource:Q58600 property:P140 ?v . ?v rdf:type ontology:Q43229 }
Friedrich III of Germany
action filter_type
action find
entity Friedrich III of Germany
relation religion
type organization
SELECT DISTINCT ?v WHERE { resource:Friedrich_III_of_Germany property:religion ?v . ?v rdf:type ontology:organization }
[]
organization
Q163202
SYSTEM
Prussian Union of churches
Q163202
action filter_type
action find
entity Q58600
relation P140
type Q43229
That person corresponds to [ANSWER]
SELECT DISTINCT ?v WHERE { resource:Q58600 property:P140 ?v . ?v rdf:type ontology:Q43229 }
Prussian Union of churches
That person corresponds to Prussian Union of churches
Prussian Union of churches
action filter_type
action find
entity Friedrich III of Germany
relation religion
type organization
SELECT DISTINCT ?v WHERE { resource:Friedrich_III_of_Germany property:religion ?v . ?v rdf:type ontology:organization }
[]