Simple Question (Direct)
Simple Question
Q64204
P22
Q502895
USER
Who was the father of Duchess Marie of Württemberg ?
(Q64204,P22,c(Q502895))
action filter_type
action find
entity Q64204
relation P22
type Q502895
['Q64204', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q64204 property:P22 ?m . ?m rdf:type ontology:Q502895 }
Duchess Marie of Württemberg
action filter_type
action find
entity Duchess Marie of Württemberg
relation father
type common name
['Duchess Marie of Württemberg', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Duchess_Marie_of_Württemberg property:father ?m . ?m rdf:type ontology:common_name }
[]
common name
Q215027
SYSTEM
Duke Alexander of Württemberg
Q215027
(Q64204,P22,c(Q502895))
action filter_type
action find
entity Q64204
relation P22
type Q502895
The father of Duchess Marie of Württemberg was the [ANSWER]
['Q64204', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q64204 property:P22 ?m . ?m rdf:type ontology:Q502895 }
Duke Alexander of Württemberg
The father of Duchess Marie of Württemberg was the Duke Alexander of Württemberg
Duke Alexander of Württemberg
action filter_type
action find
entity Duchess Marie of Württemberg
relation father
type common name
['Duchess Marie of Württemberg', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Duchess_Marie_of_Württemberg property:father ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q215027
P25
Q502895
USER
Which person was the mother of that one ?
(Q215027,P25,c(Q502895))
action filter_type
action find
entity Q215027
relation P25
type Q502895
['Q215027', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q215027 property:P25 ?o . ?o rdf:type ontology:Q502895 }
Duke Alexander of Württemberg
action filter_type
action find
entity Duke Alexander of Württemberg
relation mother
type common name
['Duke Alexander of Württemberg', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Duke_Alexander_of_Württemberg property:mother ?o . ?o rdf:type ontology:common_name }
[]
common name
Q255759
SYSTEM
Margravine Friederike of Brandenburg-Schwedt
Q255759
(Q215027,P25,c(Q502895))
action filter_type
action find
entity Q215027
relation P25
type Q502895
[ANSWER] was the mother of that one
['Q215027', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q215027 property:P25 ?o . ?o rdf:type ontology:Q502895 }
Margravine Friederike of Brandenburg-Schwedt
Margravine Friederike of Brandenburg-Schwedt was the mother of that one
Margravine Friederike of Brandenburg-Schwedt
action filter_type
action find
entity Duke Alexander of Württemberg
relation mother
type common name
['Duke Alexander of Württemberg', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Duke_Alexander_of_Württemberg property:mother ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q255759
P9
Q502895
USER
Who are the sisters of that one ?
(Q255759,P9,c(Q502895))
action filter_type
action find
entity Q255759
relation P9
type Q502895
['Q255759', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q255759 property:P9 ?y . ?y rdf:type ontology:Q502895 }
Margravine Friederike of Brandenburg-Schwedt
action filter_type
action find
entity Margravine Friederike of Brandenburg-Schwedt
relation sister
type common name
['Margravine Friederike of Brandenburg-Schwedt', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Margravine_Friederike_of_Brandenburg-Schwedt property:sister ?y . ?y rdf:type ontology:common_name }
[]
common name
Q449181 Q451430
SYSTEM
Margravine Philippine of Brandenburg-Schwedt, Margravine Elisabeth Louise of Brandenburg-Schwedt
Q449181 Q451430
(Q255759,P9,c(Q502895))
action filter_type
action find
entity Q255759
relation P9
type Q502895
The sisters of that one are the [ANSWERS]
['Q255759', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q255759 property:P9 ?y . ?y rdf:type ontology:Q502895 }
Margravine Philippine of Brandenburg-Schwedt Margravine Elisabeth Louise of Brandenburg-Schwedt
The sisters of that one are the Margravine Philippine of Brandenburg-Schwedt and Margravine Elisabeth Louise of Brandenburg-Schwedt
Margravine Philippine of Brandenburg-Schwedt Margravine Elisabeth Louise of Brandenburg-Schwedt
action filter_type
action find
entity Margravine Friederike of Brandenburg-Schwedt
relation sister
type common name
['Margravine Friederike of Brandenburg-Schwedt', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Margravine_Friederike_of_Brandenburg-Schwedt property:sister ?y . ?y rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q62025
P40
Q502895
USER
Do Princess Sophia Dorothea of Prussia have those ones as an offspring ?
(Q62025,P40,Q449181) (Q62025,P40,Q451430)
action is_in
entity prev_answer
action find
entity Q62025
relation P40
['Q62025', 'P40', 'Q449181'] ['Q62025', 'P40', 'Q451430']
ASK WHERE { VALUES ( ?l ) { ( resource:Q449181 ) ( resource:Q451430 ) } . resource:Q62025 property:P40 ?l }
Princess Sophia Dorothea of Prussia
action is_in
entity prev_answer
action find
entity Princess Sophia Dorothea of Prussia
relation child
['Princess Sophia Dorothea of Prussia', 'child', 'Margravine Philippine of Brandenburg-Schwedt'] ['Princess Sophia Dorothea of Prussia', 'child', 'Margravine Elisabeth Louise of Brandenburg-Schwedt']
ASK WHERE { VALUES ( ?l ) { ( resource:Margravine_Philippine_of_Brandenburg-Schwedt ) ( resource:Margravine_Elisabeth_Louise_of_Brandenburg-Schwedt ) } . resource:Princess_Sophia_Dorothea_of_Prussia property:child ?l }
[]
common name
SYSTEM
YES
(Q62025,P40,Q449181) (Q62025,P40,Q451430)
action is_in
entity prev_answer
action find
entity Q62025
relation P40
[ANSWER]
['Q62025', 'P40', 'Q449181'] ['Q62025', 'P40', 'Q451430']
ASK WHERE { VALUES ( ?l ) { ( resource:Q449181 ) ( resource:Q451430 ) } . resource:Q62025 property:P40 ?l }
Yes
action is_in
entity prev_answer
action find
entity Princess Sophia Dorothea of Prussia
relation child
['Princess Sophia Dorothea of Prussia', 'child', 'Margravine Philippine of Brandenburg-Schwedt'] ['Princess Sophia Dorothea of Prussia', 'child', 'Margravine Elisabeth Louise of Brandenburg-Schwedt']
ASK WHERE { VALUES ( ?l ) { ( resource:Margravine_Philippine_of_Brandenburg-Schwedt ) ( resource:Margravine_Elisabeth_Louise_of_Brandenburg-Schwedt ) } . resource:Princess_Sophia_Dorothea_of_Prussia property:child ?l }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can around 651 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 651
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?j = 651 ) . { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:P1303 ?e . ?u rdf:type ontology:Q502895 . ?e rdf:type ontology:Q34379 } GROUP BY ?e } }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 651
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?j = 651 ) . { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:instrument ?e . ?u rdf:type ontology:common_name . ?e rdf:type ontology:musical_instrument } GROUP BY ?e } }
[]
musical instrument common name
SYSTEM
62
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 651
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?j = 651 ) . { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:P1303 ?e . ?u rdf:type ontology:Q502895 . ?e rdf:type ontology:Q34379 } GROUP BY ?e } }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
62
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 651
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?j = 651 ) . { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:instrument ?e . ?u rdf:type ontology:common_name . ?e rdf:type ontology:musical_instrument } GROUP BY ?e } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1243183 Q255759
P57 P40
Q502895
USER
Which people are the children of Margravine Friederike of Brandenburg-Schwedt or were Rough Magic directed by ?
OR((Q255759,P40,c(Q502895)), (Q1243183,P57,c(Q502895)))
action filter_type
action union
action find
entity Q255759
relation P40
action find
entity Q1243183
relation P57
type Q502895
{'OR': [['Q255759', 'P40', {'concept': 'Q502895'}], ['Q1243183', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q255759 property:P40 ?c } UNION { resource:Q1243183 property:P57 ?c } } . ?c rdf:type ontology:Q502895 }
Rough Magic Margravine Friederike of Brandenburg-Schwedt
action filter_type
action union
action find
entity Margravine Friederike of Brandenburg-Schwedt
relation child
action find
entity Rough Magic
relation director
type common name
{'OR': [['Margravine Friederike of Brandenburg-Schwedt', 'child', {'concept': 'common name'}], ['Rough Magic', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Margravine_Friederike_of_Brandenburg-Schwedt property:child ?c } UNION { resource:Rough_Magic property:director ?c } } . ?c rdf:type ontology:common_name }
[]
common name
Q170179 Q2975534 Q289520 Q213618 Q233900 Q213720 Q215027 Q57632 Q72575
SYSTEM
Frederick I of Württemberg, Clare Peploe, Duchess Frederica of Württemberg, Duke Louis of Württemberg, Duchess Elisabeth of Württemberg, Duke Eugen of Württemberg, Duke Alexander of Württemberg, Maria Feodorovna, Duke William Frederick Philip of Württemberg
Q170179 Q2975534 Q289520 Q213618 Q233900 Q213720 Q215027 Q57632 Q72575
OR((Q255759,P40,c(Q502895)), (Q1243183,P57,c(Q502895)))
action filter_type
action union
action find
entity Q255759
relation P40
action find
entity Q1243183
relation P57
type Q502895
[ANSWERS] are the children of Margravine Friederike of Brandenburg-Schwedt or were Rough Magic directed by
{'OR': [['Q255759', 'P40', {'concept': 'Q502895'}], ['Q1243183', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q255759 property:P40 ?c } UNION { resource:Q1243183 property:P57 ?c } } . ?c rdf:type ontology:Q502895 }
Frederick I of Württemberg Clare Peploe Duchess Frederica of Württemberg Duke Louis of Württemberg Duchess Elisabeth of Württemberg Duke Eugen of Württemberg Duke Alexander of Württemberg Maria Feodorovna Duke William Frederick Philip of Württemberg
Frederick I of Württemberg, Clare Peploe, Duchess Frederica of Württemberg, Duke Louis of Württemberg, Duchess Elisabeth of Württemberg, Duke Eugen of Württemberg, Duke Alexander of Württemberg, Maria Feodorovna and Duke William Frederick Philip of Württemberg are the children of Margravine Friederike of Brandenburg-Schwedt or were Rough Magic directed by
Frederick I of Württemberg Clare Peploe Duchess Frederica of Württemberg Duke Louis of Württemberg Duchess Elisabeth of Württemberg Duke Eugen of Württemberg Duke Alexander of Württemberg Maria Feodorovna Duke William Frederick Philip of Württemberg
action filter_type
action union
action find
entity Margravine Friederike of Brandenburg-Schwedt
relation child
action find
entity Rough Magic
relation director
type common name
{'OR': [['Margravine Friederike of Brandenburg-Schwedt', 'child', {'concept': 'common name'}], ['Rough Magic', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Margravine_Friederike_of_Brandenburg-Schwedt property:child ?c } UNION { resource:Rough_Magic property:director ?c } } . ?c rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q233900
P26 P21
Q502895
USER
Which people have Duchess Elisabeth of Württemberg as spouse and have male as the sex ?
AND((c(Q502895),P26,Q233900), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q233900
relation P26
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q233900'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . ?j property:P21 resource:Q6581097 . ?j property:P26 resource:Q233900 }
male Duchess Elisabeth of Württemberg
action filter_type
action intersection
action find_reverse
entity Duchess Elisabeth of Württemberg
relation spouse
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Duchess Elisabeth of Württemberg'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . ?j property:gender resource:male . ?j property:spouse resource:Duchess_Elisabeth_of_Württemberg }
[]
common name
Q130834
SYSTEM
Francis I of Austria
Q130834
AND((c(Q502895),P26,Q233900), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q233900
relation P26
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Duchess Elisabeth of Württemberg as spouse and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q233900'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . ?j property:P21 resource:Q6581097 . ?j property:P26 resource:Q233900 }
Francis I of Austria
Francis I of Austria have Duchess Elisabeth of Württemberg as spouse and have male as the sex
Francis I of Austria
action filter_type
action intersection
action find_reverse
entity Duchess Elisabeth of Württemberg
relation spouse
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Duchess Elisabeth of Württemberg'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . ?j property:gender resource:male . ?j property:spouse resource:Duchess_Elisabeth_of_Württemberg }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q170179
P7
Q502895
USER
Who are Frederick I of Württemberg a brother of ?
(c(Q502895),P7,Q170179)
action filter_type
action find_reverse
entity Q170179
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q170179']
SELECT DISTINCT ?n WHERE { ?n property:P7 resource:Q170179 . ?n rdf:type ontology:Q502895 }
Frederick I of Württemberg
action filter_type
action find_reverse
entity Frederick I of Württemberg
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Frederick I of Württemberg']
SELECT DISTINCT ?n WHERE { ?n property:brother resource:Frederick_I_of_Württemberg . ?n rdf:type ontology:common_name }
[]
common name
Q57632 Q213618 Q215027
SYSTEM
Maria Feodorovna, Duke Louis of Württemberg, Duke Alexander of Württemberg
Q289520 Q213618 Q233900 Q213720 Q215027 Q57632 Q72575
(c(Q502895),P7,Q170179)
action filter_type
action find_reverse
entity Q170179
relation P7
type Q502895
Frederick I of Württemberg a brother of are Princess [ANSWERS]
[{'concept': 'Q502895'}, 'P7', 'Q170179']
SELECT DISTINCT ?n WHERE { ?n property:P7 resource:Q170179 . ?n rdf:type ontology:Q502895 }
Duchess Frederica of Württemberg Duke Louis of Württemberg Duchess Elisabeth of Württemberg Duke Eugen of Württemberg Duke Alexander of Württemberg Maria Feodorovna Duke William Frederick Philip of Württemberg
Frederick I of Württemberg a brother of are Princess Maria Feodorovna, Duke Louis of Württemberg and Duke Alexander of Württemberg
Maria Feodorovna Duke Louis of Württemberg Duke Alexander of Württemberg
action filter_type
action find_reverse
entity Frederick I of Württemberg
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Frederick I of Württemberg']
SELECT DISTINCT ?n WHERE { ?n property:brother resource:Frederick_I_of_Württemberg . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q57632 Q213618 Q215027
P26
Q502895
USER
Who are the spouse of Maria Feodorovna, Duke Louis of Württemberg and Duke Alexander of Württemberg ?
(c(Q502895),P26,Q57632) (c(Q502895),P26,Q213618) (c(Q502895),P26,Q215027)
action union
action filter_type
action find
entity Q57632
relation P26
type Q502895
action filter_type
action find
entity Q213618
relation P26
type Q502895
action filter_type
action find
entity Q215027
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q57632'] [{'concept': 'Q502895'}, 'P26', 'Q213618'] [{'concept': 'Q502895'}, 'P26', 'Q215027']
SELECT DISTINCT ?a WHERE { ?t property:P26 ?a . VALUES ( ?t ) { ( resource:Q57632 ) ( resource:Q213618 ) } }
Maria Feodorovna Duke Louis of Württemberg Duke Alexander of Württemberg
action union
action filter_type
action find
entity Maria Feodorovna
relation spouse
type common name
action filter_type
action find
entity Duke Louis of Württemberg
relation spouse
type common name
action filter_type
action find
entity Duke Alexander of Württemberg
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Maria Feodorovna'] [{'concept': 'common name'}, 'spouse', 'Duke Louis of Württemberg'] [{'concept': 'common name'}, 'spouse', 'Duke Alexander of Württemberg']
SELECT DISTINCT ?a WHERE { ?t property:spouse ?a . VALUES ( ?t ) { ( resource:Maria_Feodorovna ) ( resource:Duke_Louis_of_Württemberg ) } }
[]
common name
Q15189 Q261381 Q62996
SYSTEM
Paul I of Russia, Princess Henriette of Nassau-Weilburg, Princess Antoinette of Saxe-Coburg-Saalfeld
Q15189 Q458975 Q261381 Q62996
(c(Q502895),P26,Q57632) (c(Q502895),P26,Q213618) (c(Q502895),P26,Q215027)
action union
action filter_type
action find
entity Q57632
relation P26
type Q502895
action filter_type
action find
entity Q213618
relation P26
type Q502895
action filter_type
action find
entity Q215027
relation P26
type Q502895
The spouse of Maria Feodorovna , Duke Louis of Württemberg and Duke Alexander of Württemberg are Prince [ANSWERS]
[{'concept': 'Q502895'}, 'P26', 'Q57632'] [{'concept': 'Q502895'}, 'P26', 'Q213618'] [{'concept': 'Q502895'}, 'P26', 'Q215027']
SELECT DISTINCT ?a WHERE { ?t property:P26 ?a . VALUES ( ?t ) { ( resource:Q57632 ) ( resource:Q213618 ) } }
Paul I of Russia Maria Wirtemberska Princess Henriette of Nassau-Weilburg Princess Antoinette of Saxe-Coburg-Saalfeld
The spouse of Maria Feodorovna , Duke Louis of Württemberg and Duke Alexander of Württemberg are Prince Paul I of Russia, Princess Henriette of Nassau-Weilburg and Princess Antoinette of Saxe-Coburg-Saalfeld
Paul I of Russia Princess Henriette of Nassau-Weilburg Princess Antoinette of Saxe-Coburg-Saalfeld
action union
action filter_type
action find
entity Maria Feodorovna
relation spouse
type common name
action filter_type
action find
entity Duke Louis of Württemberg
relation spouse
type common name
action filter_type
action find
entity Duke Alexander of Württemberg
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Maria Feodorovna'] [{'concept': 'common name'}, 'spouse', 'Duke Louis of Württemberg'] [{'concept': 'common name'}, 'spouse', 'Duke Alexander of Württemberg']
SELECT DISTINCT ?a WHERE { ?t property:spouse ?a . VALUES ( ?t ) { ( resource:Maria_Feodorovna ) ( resource:Duke_Louis_of_Württemberg ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15189
P119
Q16970
USER
Which church is the resting place of that person ?
(Q15189,P119,c(Q16970))
action filter_type
action find
entity Q15189
relation P119
type Q16970
['Q15189', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?w WHERE { resource:Q15189 property:P119 ?w . ?w rdf:type ontology:Q16970 }
Paul I of Russia
action filter_type
action find
entity Paul I of Russia
relation place of burial
type church
['Paul I of Russia', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?w WHERE { resource:Paul_I_of_Russia property:place_of_burial ?w . ?w rdf:type ontology:church }
[]
church
Clarification for simple ques.
Q62996
SYSTEM
Did you mean Princess Antoinette of Saxe-Coburg-Saalfeld ?
Q15189 Q261381 Q62996
(Q15189,P119,c(Q16970)) (Q261381,P119,c(Q16970)) (Q62996,P119,c(Q16970))
[ANSWER]
['Q15189', 'P119', {'concept': 'Q16970'}] ['Q261381', 'P119', {'concept': 'Q16970'}] ['Q62996', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?w WHERE { resource:Q15189 property:P119 ?w . ?w rdf:type ontology:Q16970 }
Paul I of Russia Princess Henriette of Nassau-Weilburg Princess Antoinette of Saxe-Coburg-Saalfeld
Did you mean Princess Antoinette of Saxe-Coburg-Saalfeld ?
Princess Antoinette of Saxe-Coburg-Saalfeld
['Paul I of Russia', 'place of burial', {'concept': 'church'}] ['Princess Henriette of Nassau-Weilburg', 'place of burial', {'concept': 'church'}] ['Princess Antoinette of Saxe-Coburg-Saalfeld', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?w WHERE { resource:Paul_I_of_Russia property:place_of_burial ?w . ?w rdf:type ontology:church }
[]
Simple Question (Coreferenced)
USER
No, I meant Paul I of Russia. Could you tell me the answer for that?
(Q15189,P119,c(Q16970))
Q15189
['Q15189', 'P119', {'concept': 'Q16970'}]
['Paul I of Russia', 'place of burial', {'concept': 'church'}]
[]
Q736587
SYSTEM
Peter and Paul Cathedral
Q736587
(Q15189,P119,c(Q16970))
action filter_type
action find
entity Q15189
relation P119
type Q16970
[ANSWER] is the resting place of that person
['Q15189', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?w WHERE { resource:Q15189 property:P119 ?w . ?w rdf:type ontology:Q16970 }
Peter and Paul Cathedral
Peter and Paul Cathedral is the resting place of that person
Peter and Paul Cathedral
action filter_type
action find
entity Paul I of Russia
relation place of burial
type church
['Paul I of Russia', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?w WHERE { resource:Paul_I_of_Russia property:place_of_burial ?w . ?w rdf:type ontology:church }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P119
Q502895
USER
How many people have that church as his/her tomb ?
(c(Q502895),P119,Q736587)
action count
action filter_type
action find_reverse
entity Q736587
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q736587']
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:P119 resource:Q736587 . ?j rdf:type ontology:Q502895 }
action count
action filter_type
action find_reverse
entity Peter and Paul Cathedral
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Peter and Paul Cathedral']
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:place_of_burial resource:Peter_and_Paul_Cathedral . ?j rdf:type ontology:common_name }
[]
common name
SYSTEM
46
Q166768 Q160165 Q158148 Q313319 Q619068 Q113584 Q234055 Q257541 Q155422 Q313832 Q151789 Q153601 Q153319 Q1981230 Q15189 Q130752 Q130734 Q445399 Q83171 Q161106 Q371731 Q170293 Q154045 Q2850496 Q168664 Q40787 Q151130 Q155585 Q15208 Q152094 Q232728 Q57632 Q2464532 Q621088 Q951539 Q57207 Q60232 Q2597622 Q445844 Q120180 Q36450 Q15193 Q163863 Q620933 Q8479 Q161199
(c(Q502895),P119,Q736587)
action count
action filter_type
action find_reverse
entity Q736587
relation P119
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P119', 'Q736587']
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:P119 resource:Q736587 . ?j rdf:type ontology:Q502895 }
Grand Duchess Catherine Mikhailovna of Russia Anna of Russia Grand Duchess Tatiana Nikolaevna of Russia Alexei Petrovich, Tsarevich of Russia Grand Duke Alexander Alexandrovich of Russia Grand Duchess Olga Nikolaevna of Russia Olga Feodorovna of Baden Charlotte Christine of Brunswick-Lüneburg Grand Duchess Maria Nikolaevna of Russia Grand Duke Constantine Constantinovich of Russia Peter III of Russia Maria Feodorovna Grand Duchess Anna Petrovna of Russia Alexei Trupp Paul I of Russia Elizabeth of Russia Nicholas I of Russia Nicholas Alexandrovich, Tsarevich of Russia Alexander II of Russia Grand Duke Constantine Pavlovich of Russia Grand Duke Michael Pavlovich of Russia Grand Duke George Alexandrovich of Russia Alexei Nikolaevich Anna Demidova Elizabeth Alexeievna Nicholas II of Russia Grand Duchess Anastasia Nikolaevna of Russia Maria Alexandrovna Catherine I of Russia Alexandra Fyodorovna Grand Duchess Alexandra Georgievna of Russia Maria Feodorovna Grand Duchess Maria Mikhailovna of Russia Grand Duke Alexei Mikhailovich of Russia Eugene Botkin Alexandra Feodorovna Princess Charlotte of Württemberg Ivan Kharitonov Marfa Apraksina Alexander III of Russia Catherine II of Russia Alexander I of Russia Grand Duke Nicholas Nikolaevich of Russia Grand Duchess Alexandra Alexandrovna of Russia Peter the Great Grand Duke Michael Nikolaevich of Russia
46
action count
action filter_type
action find_reverse
entity Peter and Paul Cathedral
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Peter and Paul Cathedral']
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:place_of_burial resource:Peter_and_Paul_Cathedral . ?j rdf:type ontology:common_name }
[]