Simple Question (Direct)
Simple Question
Q331697
P25
Q502895
USER
Which female person was the parent of Saint David ?
(Q331697,P25,c(Q502895))
action filter_type
action find
entity Q331697
relation P25
type Q502895
['Q331697', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q331697 property:P25 ?g . ?g rdf:type ontology:Q502895 }
Saint David
action filter_type
action find
entity Saint David
relation mother
type common name
['Saint David', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Saint_David property:mother ?g . ?g rdf:type ontology:common_name }
[]
common name
Q2487289
SYSTEM
Non
Q2487289
(Q331697,P25,c(Q502895))
action filter_type
action find
entity Q331697
relation P25
type Q502895
[ANSWER] was the parent of Saint David
['Q331697', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q331697 property:P25 ?g . ?g rdf:type ontology:Q502895 }
Non
Non was the parent of Saint David
Non
action filter_type
action find
entity Saint David
relation mother
type common name
['Saint David', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Saint_David property:mother ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2487289
P40
Q502895
USER
Which person is a successor of that one ?
(Q2487289,P40,c(Q502895))
action filter_type
action find
entity Q2487289
relation P40
type Q502895
['Q2487289', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q2487289 property:P40 ?d . ?d rdf:type ontology:Q502895 }
Non
action filter_type
action find
entity Non
relation child
type common name
['Non', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Non property:child ?d . ?d rdf:type ontology:common_name }
[]
common name
Q331697
SYSTEM
Saint David
Q331697
(Q2487289,P40,c(Q502895))
action filter_type
action find
entity Q2487289
relation P40
type Q502895
[ANSWER] is a successor of that one
['Q2487289', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q2487289 property:P40 ?d . ?d rdf:type ontology:Q502895 }
Saint David
Saint David is a successor of that one
Saint David
action filter_type
action find
entity Non
relation child
type common name
['Non', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Non property:child ?d . ?d rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q331697 Q5043
P140
Q874405
USER
Does Saint David correspond to Christianity ?
(Q331697,P140,Q5043)
action is_in
entity Q5043
action find
entity Q331697
relation P140
['Q331697', 'P140', 'Q5043']
ASK WHERE { resource:Q331697 property:P140 resource:Q5043 }
Saint David Christianity
action is_in
entity Christianity
action find
entity Saint David
relation religion
['Saint David', 'religion', 'Christianity']
ASK WHERE { resource:Saint_David property:religion resource:Christianity }
[]
social group
SYSTEM
YES
(Q331697,P140,Q5043)
action is_in
entity Q5043
action find
entity Q331697
relation P140
[ANSWER]
['Q331697', 'P140', 'Q5043']
ASK WHERE { resource:Q331697 property:P140 resource:Q5043 }
Yes
action is_in
entity Christianity
action find
entity Saint David
relation religion
['Saint David', 'religion', 'Christianity']
ASK WHERE { resource:Saint_David property:religion resource:Christianity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3290878 Q2487289
P25
Q502895
USER
Which people are the offspring of Non or Klaudie Františka  z Nassau-Hadmar ?
OR((c(Q502895),P25,Q2487289), (c(Q502895),P25,Q3290878))
action filter_type
action union
action find_reverse
entity Q2487289
relation P25
action find_reverse
entity Q3290878
relation P25
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P25', 'Q2487289'], [{'concept': 'Q502895'}, 'P25', 'Q3290878']]}
SELECT DISTINCT ?y WHERE { { { ?y property:P25 resource:Q2487289 } UNION { ?y property:P25 resource:Q3290878 } } . ?y rdf:type ontology:Q502895 }
Klaudie Františka  z Nassau-Hadmar Non
action filter_type
action union
action find_reverse
entity Non
relation mother
action find_reverse
entity Klaudie Františka  z Nassau-Hadmar
relation mother
type common name
{'OR': [[{'concept': 'common name'}, 'mother', 'Non'], [{'concept': 'common name'}, 'mother', 'Klaudie Františka  z Nassau-Hadmar']]}
SELECT DISTINCT ?y WHERE { { { ?y property:mother resource:Non } UNION { ?y property:mother resource:Klaudie_Františka__z_Nassau-Hadmar } } . ?y rdf:type ontology:common_name }
[]
common name
Q443498 Q331697 Q6423363
SYSTEM
Eleonore von Schwarzenberg, Saint David, Maria Ludovika Anna of Lobkowicz
Q443498 Q331697 Q6423363
OR((c(Q502895),P25,Q2487289), (c(Q502895),P25,Q3290878))
action filter_type
action union
action find_reverse
entity Q2487289
relation P25
action find_reverse
entity Q3290878
relation P25
type Q502895
[ANSWERS] are the offspring of Non or Klaudie Františka z Nassau-Hadmar
{'OR': [[{'concept': 'Q502895'}, 'P25', 'Q2487289'], [{'concept': 'Q502895'}, 'P25', 'Q3290878']]}
SELECT DISTINCT ?y WHERE { { { ?y property:P25 resource:Q2487289 } UNION { ?y property:P25 resource:Q3290878 } } . ?y rdf:type ontology:Q502895 }
Eleonore von Schwarzenberg Saint David Maria Ludovika Anna of Lobkowicz
Eleonore von Schwarzenberg, Saint David and Maria Ludovika Anna of Lobkowicz are the offspring of Non or Klaudie Františka z Nassau-Hadmar
Eleonore von Schwarzenberg Saint David Maria Ludovika Anna of Lobkowicz
action filter_type
action union
action find_reverse
entity Non
relation mother
action find_reverse
entity Klaudie Františka  z Nassau-Hadmar
relation mother
type common name
{'OR': [[{'concept': 'common name'}, 'mother', 'Non'], [{'concept': 'common name'}, 'mother', 'Klaudie Františka  z Nassau-Hadmar']]}
SELECT DISTINCT ?y WHERE { { { ?y property:mother resource:Non } UNION { ?y property:mother resource:Klaudie_Františka__z_Nassau-Hadmar } } . ?y rdf:type ontology:common_name }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P825
Q502895 Q207628
USER
How many people are more number of musical compositions dedicated to than that person ?
(c(Q207628),P825,c(Q502895))
[{'concept': 'Q207628'}, 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P825 ?y . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q502895 }
[{'concept': 'musical composition'}, 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:dedicated_to ?y . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:common_name }
[]
common name musical composition
Comparative|Count over More/Less|Single entity type|Clarification
Q443498
SYSTEM
Did you mean Eleonore von Schwarzenberg ?
(c(Q207628),P825,c(Q502895))
[ANSWER]
[{'concept': 'Q207628'}, 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P825 ?y . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q502895 }
Did you mean Eleonore von Schwarzenberg ?
Eleonore von Schwarzenberg
[{'concept': 'musical composition'}, 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:dedicated_to ?y . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Saint David. Could you tell me the answer for that?
(c(Q207628),P825,c(Q502895))
Q331697
[{'concept': 'Q207628'}, 'P825', {'concept': 'Q502895'}]
[{'concept': 'musical composition'}, 'dedicated to', {'concept': 'common name'}]
[]
SYSTEM
15
Q85210 Q150767 Q1948037 Q44039 Q443559 Q160257 Q66005 Q570845 Q502943 Q51056 Q472635 Q92467 Q538335 Q179858 Q41309
(c(Q207628),P825,c(Q502895))
[ANSWER]
[{'concept': 'Q207628'}, 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P825 ?y . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q502895 }
Karl Ritter von Stremayr Benjamin Britten Moritz Reichsgraf von Fries Ludwig II of Bavaria Elizabeth Sprague Coolidge Wanda Landowska Margrave Christian Ludwig of Brandenburg-Schwedt Joseph Franz von Lobkowitz Andrey Razumovsky Franz Joseph I of Austria Gustav, Prince of Vasa Theodor Avé-Lallemant Marianne Kirchgessner Urho Kekkonen Franz Liszt
15
[{'concept': 'musical composition'}, 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:dedicated_to ?y . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:common_name }
[]