Simple Question (Direct)
Simple Question
Q118286
P40
Q502895
USER
Which people are children of Philip Dietrich, Count of Waldeck ?
(Q118286,P40,c(Q502895))
action filter_type
action find
entity Q118286
relation P40
type Q502895
['Q118286', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q118286 property:P40 ?y . ?y rdf:type ontology:Q502895 }
Philip Dietrich, Count of Waldeck
action filter_type
action find
entity Philip Dietrich, Count of Waldeck
relation child
type common name
['Philip Dietrich, Count of Waldeck', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Philip_Dietrich,_Count_of_Waldeck property:child ?y . ?y rdf:type ontology:common_name }
[]
common name
Q118230 Q9611492
SYSTEM
Henry Wolrad, Count of Waldeck, Amalia Katharina von Waldeck-Eisenberg
Q118230 Q9611492
(Q118286,P40,c(Q502895))
action filter_type
action find
entity Q118286
relation P40
type Q502895
[ANSWERS] are children of Philip Dietrich, Count of Waldeck
['Q118286', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q118286 property:P40 ?y . ?y rdf:type ontology:Q502895 }
Henry Wolrad, Count of Waldeck Amalia Katharina von Waldeck-Eisenberg
Henry Wolrad, Count of Waldeck and Amalia Katharina von Waldeck-Eisenberg are children of Philip Dietrich, Count of Waldeck
Henry Wolrad, Count of Waldeck Amalia Katharina von Waldeck-Eisenberg
action filter_type
action find
entity Philip Dietrich, Count of Waldeck
relation child
type common name
['Philip Dietrich, Count of Waldeck', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Philip_Dietrich,_Count_of_Waldeck property:child ?y . ?y rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q118230
P22
Q502895
USER
Who was the father of that one ?
(Q118230,P22,c(Q502895))
action filter_type
action find
entity Q118230
relation P22
type Q502895
['Q118230', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q118230 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Henry Wolrad, Count of Waldeck
action filter_type
action find
entity Henry Wolrad, Count of Waldeck
relation father
type common name
['Henry Wolrad, Count of Waldeck', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Henry_Wolrad,_Count_of_Waldeck property:father ?s . ?s rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q9611492
SYSTEM
Did you mean Amalia Katharina von Waldeck-Eisenberg ?
Q118230 Q9611492
(Q118230,P22,c(Q502895)) (Q9611492,P22,c(Q502895))
[ANSWER]
['Q118230', 'P22', {'concept': 'Q502895'}] ['Q9611492', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q118230 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Henry Wolrad, Count of Waldeck Amalia Katharina von Waldeck-Eisenberg
Did you mean Amalia Katharina von Waldeck-Eisenberg ?
Amalia Katharina von Waldeck-Eisenberg
['Henry Wolrad, Count of Waldeck', 'father', {'concept': 'common name'}] ['Amalia Katharina von Waldeck-Eisenberg', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Henry_Wolrad,_Count_of_Waldeck property:father ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Henry Wolrad, Count of Waldeck. Could you tell me the answer for that?
(Q118230,P22,c(Q502895))
Q118230
['Q118230', 'P22', {'concept': 'Q502895'}]
['Henry Wolrad, Count of Waldeck', 'father', {'concept': 'common name'}]
[]
Q118286
SYSTEM
Philip Dietrich, Count of Waldeck
Q118286
(Q118230,P22,c(Q502895))
action filter_type
action find
entity Q118230
relation P22
type Q502895
The father of that one was Count [ANSWER]
['Q118230', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q118230 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Philip Dietrich, Count of Waldeck
The father of that one was Count Philip Dietrich, Count of Waldeck
Philip Dietrich, Count of Waldeck
action filter_type
action find
entity Henry Wolrad, Count of Waldeck
relation father
type common name
['Henry Wolrad, Count of Waldeck', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Henry_Wolrad,_Count_of_Waldeck property:father ?s . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q838948
USER
How many works of art did around 11 people dub for ?
(c(Q838948),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q838948
type Q502895
value 11
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?h ) WHERE { ?w property:P725 ?v . ?w rdf:type ontology:Q838948 . ?v rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?h = 11 ) }
action count
action approx
action find_tuple_counts
relation voice actor
type work of art
type common name
value 11
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?h ) WHERE { ?w property:voice_actor ?v . ?w rdf:type ontology:work_of_art . ?v rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?h = 11 ) }
[]
common name work of art
SYSTEM
11
Q13393950 Q16207076 Q23838455 Q17485699 Q477965 Q622742 Q2165639 Q1201022 Q387674 Q246418 Q16248866
(c(Q838948),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q838948
type Q502895
value 11
[ANSWER]
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?h ) WHERE { ?w property:P725 ?v . ?w rdf:type ontology:Q838948 . ?v rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?h = 11 ) }
My Little Pony: Equestria Girls Battle Beyond the Sun Planetarian: Hoshi no Hito Alice Through the Looking Glass Persepolis Where the Wild Things Are Watership Down Tiger & Bunny Final Fantasy VII: Advent Children Gulliver's Travels The Book of Life
11
action count
action approx
action find_tuple_counts
relation voice actor
type work of art
type common name
value 11
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?h ) WHERE { ?w property:voice_actor ?v . ?w rdf:type ontology:work_of_art . ?v rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?h = 11 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1647656 Q118286
P22
Q502895
USER
Which people are the offspring of Philip Dietrich, Count of Waldeck or Peter Rowan ?
OR((c(Q502895),P22,Q118286), (c(Q502895),P22,Q1647656))
action filter_type
action union
action find_reverse
entity Q118286
relation P22
action find_reverse
entity Q1647656
relation P22
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P22', 'Q118286'], [{'concept': 'Q502895'}, 'P22', 'Q1647656']]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?l ) { ( resource:Q1647656 ) ( resource:Q118286 ) } . ?k property:P22 ?l } . ?k rdf:type ontology:Q502895 }
Peter Rowan Philip Dietrich, Count of Waldeck
action filter_type
action union
action find_reverse
entity Philip Dietrich, Count of Waldeck
relation father
action find_reverse
entity Peter Rowan
relation father
type common name
{'OR': [[{'concept': 'common name'}, 'father', 'Philip Dietrich, Count of Waldeck'], [{'concept': 'common name'}, 'father', 'Peter Rowan']]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?l ) { ( resource:Peter_Rowan ) ( resource:Philip_Dietrich,_Count_of_Waldeck ) } . ?k property:father ?l } . ?k rdf:type ontology:common_name }
[]
common name
Q19592507 Q118230 Q9611492
SYSTEM
Amanda Rowan, Henry Wolrad, Count of Waldeck, Amalia Katharina von Waldeck-Eisenberg
Q19592507 Q118230 Q9611492
OR((c(Q502895),P22,Q118286), (c(Q502895),P22,Q1647656))
action filter_type
action union
action find_reverse
entity Q118286
relation P22
action find_reverse
entity Q1647656
relation P22
type Q502895
[ANSWERS] are the offspring of Philip Dietrich, Count of Waldeck or Peter Rowan
{'OR': [[{'concept': 'Q502895'}, 'P22', 'Q118286'], [{'concept': 'Q502895'}, 'P22', 'Q1647656']]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?l ) { ( resource:Q1647656 ) ( resource:Q118286 ) } . ?k property:P22 ?l } . ?k rdf:type ontology:Q502895 }
Amanda Rowan Henry Wolrad, Count of Waldeck Amalia Katharina von Waldeck-Eisenberg
Amanda Rowan, Henry Wolrad, Count of Waldeck and Amalia Katharina von Waldeck-Eisenberg are the offspring of Philip Dietrich, Count of Waldeck or Peter Rowan
Amanda Rowan Henry Wolrad, Count of Waldeck Amalia Katharina von Waldeck-Eisenberg
action filter_type
action union
action find_reverse
entity Philip Dietrich, Count of Waldeck
relation father
action find_reverse
entity Peter Rowan
relation father
type common name
{'OR': [[{'concept': 'common name'}, 'father', 'Philip Dietrich, Count of Waldeck'], [{'concept': 'common name'}, 'father', 'Peter Rowan']]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?l ) { ( resource:Peter_Rowan ) ( resource:Philip_Dietrich,_Count_of_Waldeck ) } . ?k property:father ?l } . ?k rdf:type ontology:common_name }
[]