Simple Question (Direct)
Simple Question
Q23930942
P53
Q13417114
USER
Which noble family did Pepin belong to ?
(Q23930942,P53,c(Q13417114))
action filter_type
action find
entity Q23930942
relation P53
type Q13417114
['Q23930942', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?l WHERE { resource:Q23930942 property:P53 ?l . ?l rdf:type ontology:Q13417114 }
Pepin
action filter_type
action find
entity Pepin
relation noble family
type noble family
['Pepin', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?l WHERE { resource:Pepin property:noble_family ?l . ?l rdf:type ontology:noble_family }
[]
noble family
Q133602
SYSTEM
Carolingian dynasty
Q133602
(Q23930942,P53,c(Q13417114))
action filter_type
action find
entity Q23930942
relation P53
type Q13417114
Pepin belonged to [ANSWER]
['Q23930942', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?l WHERE { resource:Q23930942 property:P53 ?l . ?l rdf:type ontology:Q13417114 }
Carolingian dynasty
Pepin belonged to Carolingian dynasty
Carolingian dynasty
action filter_type
action find
entity Pepin
relation noble family
type noble family
['Pepin', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?l WHERE { resource:Pepin property:noble_family ?l . ?l rdf:type ontology:noble_family }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q23930942
P40
Q502895
USER
Who have Pepin as an offspring ?
(c(Q502895),P40,Q23930942)
action filter_type
action find_reverse
entity Q23930942
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q23930942']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P40 resource:Q23930942 }
Pepin
action filter_type
action find_reverse
entity Pepin
relation child
type common name
[{'concept': 'common name'}, 'child', 'Pepin']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:child resource:Pepin }
[]
common name
Q81212 Q266751
SYSTEM
Pepin the Short, Bertrada of Laon
Q81212 Q266751
(c(Q502895),P40,Q23930942)
action filter_type
action find_reverse
entity Q23930942
relation P40
type Q502895
[ANSWERS] have Pepin as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q23930942']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P40 resource:Q23930942 }
Pepin the Short Bertrada of Laon
Pepin the Short and Bertrada of Laon have Pepin as an offspring
Pepin the Short Bertrada of Laon
action filter_type
action find_reverse
entity Pepin
relation child
type common name
[{'concept': 'common name'}, 'child', 'Pepin']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:child resource:Pepin }
[]
Clarification
Simple Question|Single Entity|Indirect
Q81212
P26
Q502895
USER
Which person is the life partner of that one ?
(Q81212,P26,c(Q502895))
action filter_type
action find
entity Q81212
relation P26
type Q502895
['Q81212', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q81212 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Pepin the Short
action filter_type
action find
entity Pepin the Short
relation spouse
type common name
['Pepin the Short', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Pepin_the_Short property:spouse ?t . ?t rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q81212
SYSTEM
Did you mean Pepin the Short ?
Q81212 Q266751
(Q81212,P26,c(Q502895)) (Q266751,P26,c(Q502895))
[ANSWER]
['Q81212', 'P26', {'concept': 'Q502895'}] ['Q266751', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q81212 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Pepin the Short Bertrada of Laon
Did you mean Pepin the Short ?
Pepin the Short
['Pepin the Short', 'spouse', {'concept': 'common name'}] ['Bertrada of Laon', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Pepin_the_Short property:spouse ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q81212,P26,c(Q502895))
['Q81212', 'P26', {'concept': 'Q502895'}]
['Pepin the Short', 'spouse', {'concept': 'common name'}]
[]
Q266751
SYSTEM
Bertrada of Laon
Q266751
(Q81212,P26,c(Q502895))
action filter_type
action find
entity Q81212
relation P26
type Q502895
[ANSWER] is the life partner of that one
['Q81212', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q81212 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Bertrada of Laon
Bertrada of Laon is the life partner of that one
Bertrada of Laon
action filter_type
action find
entity Pepin the Short
relation spouse
type common name
['Pepin the Short', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Pepin_the_Short property:spouse ?t . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P25
Q502895
USER
How many people have that person as mom ?
(c(Q502895),P25,Q266751)
action count
action filter_type
action find_reverse
entity Q266751
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q266751']
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:P25 resource:Q266751 . ?p rdf:type ontology:Q502895 }
action count
action filter_type
action find_reverse
entity Bertrada of Laon
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Bertrada of Laon']
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:mother resource:Bertrada_of_Laon . ?p rdf:type ontology:common_name }
[]
common name
SYSTEM
6
Q191003 Q23930970 Q23930947 Q23930942 Q3044 Q1010767
(c(Q502895),P25,Q266751)
action count
action filter_type
action find_reverse
entity Q266751
relation P25
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q266751']
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:P25 resource:Q266751 . ?p rdf:type ontology:Q502895 }
Carloman I Chrothais Adelais Pepin Charlemagne Gisela, Abbess of Chelles
6
action count
action filter_type
action find_reverse
entity Bertrada of Laon
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Bertrada of Laon']
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:mother resource:Bertrada_of_Laon . ?p rdf:type ontology:common_name }
[]
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 atleast 2526 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2526
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?h >= 2526 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2526
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?h >= 2526 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2526
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?h >= 2526 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2526
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?h >= 2526 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q23930942
P21 P7
Q502895
USER
Which people have Pepin as their sibling and have male as the sex ?
AND((c(Q502895),P7,Q23930942), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q23930942
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q23930942'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P7 resource:Q23930942 . ?u property:P21 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
male Pepin
action filter_type
action intersection
action find_reverse
entity Pepin
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Pepin'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:brother resource:Pepin . ?u property:gender resource:male . ?u rdf:type ontology:common_name }
[]
common name
Q191003 Q3044
SYSTEM
Carloman I, Charlemagne
Q191003 Q3044
AND((c(Q502895),P7,Q23930942), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q23930942
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Pepin as their sibling and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q23930942'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P7 resource:Q23930942 . ?u property:P21 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
Carloman I Charlemagne
Carloman I and Charlemagne have Pepin as their sibling and have male as the sex
Carloman I Charlemagne
action filter_type
action intersection
action find_reverse
entity Pepin
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Pepin'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:brother resource:Pepin . ?u property:gender resource:male . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q191003 Q3044
P40
Q502895
USER
Which people are an offsprings of those ones ?
(Q191003,P40,c(Q502895)) (Q3044,P40,c(Q502895))
action filter_type
action find
entity prev_answer
relation P40
type Q502895
['Q191003', 'P40', {'concept': 'Q502895'}] ['Q3044', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?d property:P40 ?k . ?k rdf:type ontology:Q502895 . VALUES ( ?d ) { ( resource:Q191003 ) ( resource:Q3044 ) } }
Carloman I Charlemagne
action filter_type
action find
entity prev_answer
relation child
type common name
['Carloman I', 'child', {'concept': 'common name'}] ['Charlemagne', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?d property:child ?k . ?k rdf:type ontology:common_name . VALUES ( ?d ) { ( resource:Carloman_I ) ( resource:Charlemagne ) } }
[]
common name
Q43974 Q299645 Q723791
SYSTEM
Louis the Pious, Pepin of Italy, Drogo
Q23930940 Q23930966 Q723791 Q23930962 Q23930960 Q23930974 Q946829 Q269691 Q452984 Q283107 Q43974 Q23930953 Q302212 Q299645 Q23930981 Q827676 Q920516 Q23930957 Q3442976 Q23930949
(Q191003,P40,c(Q502895)) (Q3044,P40,c(Q502895))
action filter_type
action find
entity prev_answer
relation P40
type Q502895
[ANSWERS] are an offsprings of those ones
['Q191003', 'P40', {'concept': 'Q502895'}] ['Q3044', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?d property:P40 ?k . ?k rdf:type ontology:Q502895 . VALUES ( ?d ) { ( resource:Q191003 ) ( resource:Q3044 ) } }
Pepin Hiltrude Drogo Chrotais Hildegard Adaltrude Gisela, daughter of Charlemagne Rotrude Theodrada Charles the Younger Louis the Pious Adelaide Pepin the Hunchback Pepin of Italy Theodoric Bertha, daughter of Charlemagne Hugh, son of Charlemagne Lothair Ruodhaid Alpais
Louis the Pious, Pepin of Italy and Drogo are an offsprings of those ones
Louis the Pious Pepin of Italy Drogo
action filter_type
action find
entity prev_answer
relation child
type common name
['Carloman I', 'child', {'concept': 'common name'}] ['Charlemagne', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?d property:child ?k . ?k rdf:type ontology:common_name . VALUES ( ?d ) { ( resource:Carloman_I ) ( resource:Charlemagne ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q299645
P451
Q502895
USER
Who has that one as their relationship partner ?
(c(Q502895),P451,Q299645)
action filter_type
action find
entity Q299645
relation P451
type Q502895
[{'concept': 'Q502895'}, 'P451', 'Q299645']
SELECT DISTINCT ?d WHERE { resource:Q299645 property:P451 ?d . ?d rdf:type ontology:Q502895 }
Pepin of Italy
action filter_type
action find
entity Pepin of Italy
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Pepin of Italy']
SELECT DISTINCT ?d WHERE { resource:Pepin_of_Italy property:partner ?d . ?d rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q43974
SYSTEM
Did you mean Louis the Pious ?
Q43974 Q299645 Q723791
(c(Q502895),P451,Q43974) (c(Q502895),P451,Q299645) (c(Q502895),P451,Q723791)
[ANSWER]
[{'concept': 'Q502895'}, 'P451', 'Q43974'] [{'concept': 'Q502895'}, 'P451', 'Q299645'] [{'concept': 'Q502895'}, 'P451', 'Q723791']
SELECT DISTINCT ?d WHERE { resource:Q299645 property:P451 ?d . ?d rdf:type ontology:Q502895 }
Louis the Pious Pepin of Italy Drogo
Did you mean Louis the Pious ?
Louis the Pious
[{'concept': 'common name'}, 'partner', 'Louis the Pious'] [{'concept': 'common name'}, 'partner', 'Pepin of Italy'] [{'concept': 'common name'}, 'partner', 'Drogo']
SELECT DISTINCT ?d WHERE { resource:Pepin_of_Italy property:partner ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Pepin of Italy. Could you tell me the answer for that?
(c(Q502895),P451,Q299645)
Q299645
[{'concept': 'Q502895'}, 'P451', 'Q299645']
[{'concept': 'common name'}, 'partner', 'Pepin of Italy']
[]
Q23979501
SYSTEM
Ruodhaid
Q23979501
(c(Q502895),P451,Q299645)
action filter_type
action find
entity Q299645
relation P451
type Q502895
[ANSWER] has that one as their relationship partner
[{'concept': 'Q502895'}, 'P451', 'Q299645']
SELECT DISTINCT ?d WHERE { resource:Q299645 property:P451 ?d . ?d rdf:type ontology:Q502895 }
Ruodhaid
Ruodhaid has that one as their relationship partner
Ruodhaid
action filter_type
action find
entity Pepin of Italy
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Pepin of Italy']
SELECT DISTINCT ?d WHERE { resource:Pepin_of_Italy property:partner ?d . ?d rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q23979501 Q23979512
P25
Q502895
USER
Does Gundrada have that one as mom ?
(Q23979512,P25,Q23979501)
action is_in
entity Q23979501
action find
entity Q23979512
relation P25
['Q23979512', 'P25', 'Q23979501']
ASK WHERE { resource:Q23979512 property:P25 resource:Q23979501 }
Ruodhaid Gundrada
action is_in
entity Ruodhaid
action find
entity Gundrada
relation mother
['Gundrada', 'mother', 'Ruodhaid']
ASK WHERE { resource:Gundrada property:mother resource:Ruodhaid }
[]
common name
SYSTEM
YES
(Q23979512,P25,Q23979501)
action is_in
entity Q23979501
action find
entity Q23979512
relation P25
[ANSWER]
['Q23979512', 'P25', 'Q23979501']
ASK WHERE { resource:Q23979512 property:P25 resource:Q23979501 }
Yes
action is_in
entity Ruodhaid
action find
entity Gundrada
relation mother
['Gundrada', 'mother', 'Ruodhaid']
ASK WHERE { resource:Gundrada property:mother resource:Ruodhaid }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q23979501 Q1585773
P25
Q502895
USER
How many people are the offspring of Ruodhaid or Rukmini ?
(c(Q502895),P25,Q23979501) (c(Q502895),P25,Q1585773)
action count
action union
action filter_type
action find_reverse
entity Q23979501
relation P25
type Q502895
action filter_type
action find_reverse
entity Q1585773
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q23979501'] [{'concept': 'Q502895'}, 'P25', 'Q1585773']
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { VALUES ( ?e ) { ( resource:Q23979501 ) ( resource:Q1585773 ) } . ?q property:P25 ?e }
Ruodhaid Rukmini
action count
action union
action filter_type
action find_reverse
entity Ruodhaid
relation mother
type common name
action filter_type
action find_reverse
entity Rukmini
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Ruodhaid'] [{'concept': 'common name'}, 'mother', 'Rukmini']
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { VALUES ( ?e ) { ( resource:Ruodhaid ) ( resource:Rukmini ) } . ?q property:mother ?e }
[]
common name
SYSTEM
7
Q23979509 Q23979518 Q3764980 Q23979517 Q333319 Q23979512 Q23979504
(c(Q502895),P25,Q23979501) (c(Q502895),P25,Q1585773)
action count
action union
action filter_type
action find_reverse
entity Q23979501
relation P25
type Q502895
action filter_type
action find_reverse
entity Q1585773
relation P25
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q23979501'] [{'concept': 'Q502895'}, 'P25', 'Q1585773']
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { VALUES ( ?e ) { ( resource:Q23979501 ) ( resource:Q1585773 ) } . ?q property:P25 ?e }
Atala Tetrada Pradyumna Bertha Bernard of Italy Gundrada Adelaide
7
action count
action union
action filter_type
action find_reverse
entity Ruodhaid
relation mother
type common name
action filter_type
action find_reverse
entity Rukmini
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Ruodhaid'] [{'concept': 'common name'}, 'mother', 'Rukmini']
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { VALUES ( ?e ) { ( resource:Ruodhaid ) ( resource:Rukmini ) } . ?q property:mother ?e }
[]