Simple Question (Direct)
Simple Question
Q53435
P20
Q486972
USER
Where did Mieszko I expire ?
(Q53435,P20,c(Q486972))
action filter_type
action find
entity Q53435
relation P20
type Q486972
['Q53435', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { resource:Q53435 property:P20 ?d . ?d rdf:type ontology:Q486972 }
Mieszko I
action filter_type
action find
entity Mieszko I
relation place of death
type human settlement
['Mieszko I', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { resource:Mieszko_I property:place_of_death ?d . ?d rdf:type ontology:human_settlement }
[]
human settlement
Q268
SYSTEM
Poznań
Q268
(Q53435,P20,c(Q486972))
action filter_type
action find
entity Q53435
relation P20
type Q486972
Mieszko I expired in [ANSWER]
['Q53435', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { resource:Q53435 property:P20 ?d . ?d rdf:type ontology:Q486972 }
Poznań
Mieszko I expired in Poznań
Poznań
action filter_type
action find
entity Mieszko I
relation place of death
type human settlement
['Mieszko I', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { resource:Mieszko_I property:place_of_death ?d . ?d rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q53435
P26
Q502895
USER
Which people are married to Mieszko I ?
(c(Q502895),P26,Q53435)
action filter_type
action find
entity Q53435
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q53435']
SELECT DISTINCT ?u WHERE { resource:Q53435 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Mieszko I
action filter_type
action find
entity Mieszko I
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Mieszko I']
SELECT DISTINCT ?u WHERE { resource:Mieszko_I property:spouse ?u . ?u rdf:type ontology:common_name }
[]
common name
Q236462 Q289511
SYSTEM
Doubravka of Bohemia, Oda of Haldensleben
Q236462 Q289511
(c(Q502895),P26,Q53435)
action filter_type
action find
entity Q53435
relation P26
type Q502895
[ANSWERS] are married to Mieszko I
[{'concept': 'Q502895'}, 'P26', 'Q53435']
SELECT DISTINCT ?u WHERE { resource:Q53435 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Doubravka of Bohemia Oda of Haldensleben
Doubravka of Bohemia and Oda of Haldensleben are married to Mieszko I
Doubravka of Bohemia Oda of Haldensleben
action filter_type
action find
entity Mieszko I
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Mieszko I']
SELECT DISTINCT ?u WHERE { resource:Mieszko_I property:spouse ?u . ?u rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q236462
P25
Q502895
USER
Which person was the mother of that one ?
(Q236462,P25,c(Q502895))
action filter_type
action find
entity Q236462
relation P25
type Q502895
['Q236462', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q236462 property:P25 ?b }
Doubravka of Bohemia
action filter_type
action find
entity Doubravka of Bohemia
relation mother
type common name
['Doubravka of Bohemia', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Doubravka_of_Bohemia property:mother ?b }
[]
common name
Clarification for simple ques.
Q289511
SYSTEM
Did you mean Oda of Haldensleben ?
Q236462 Q289511
(Q236462,P25,c(Q502895)) (Q289511,P25,c(Q502895))
[ANSWER]
['Q236462', 'P25', {'concept': 'Q502895'}] ['Q289511', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q236462 property:P25 ?b }
Doubravka of Bohemia Oda of Haldensleben
Did you mean Oda of Haldensleben ?
Oda of Haldensleben
['Doubravka of Bohemia', 'mother', {'concept': 'common name'}] ['Oda of Haldensleben', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Doubravka_of_Bohemia property:mother ?b }
[]
Simple Question (Coreferenced)
USER
No, I meant Doubravka of Bohemia. Could you tell me the answer for that?
(Q236462,P25,c(Q502895))
Q236462
['Q236462', 'P25', {'concept': 'Q502895'}]
['Doubravka of Bohemia', 'mother', {'concept': 'common name'}]
[]
Q3490470
SYSTEM
Biagota
Q3490470
(Q236462,P25,c(Q502895))
action filter_type
action find
entity Q236462
relation P25
type Q502895
[ANSWER] was the mother of that one
['Q236462', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q236462 property:P25 ?b }
Biagota
Biagota was the mother of that one
Biagota
action filter_type
action find
entity Doubravka of Bohemia
relation mother
type common name
['Doubravka of Bohemia', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Doubravka_of_Bohemia property:mother ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P608
Q1656682 Q2668072 Q502895
USER
How many people were displayed at around 2 events and collections ?
(c(Q502895),P608,c(Q1656682)|c(Q2668072))
action count
action approx
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q2668072
value 2
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?j ) WHERE { { ?o property:P608 ?k . ?o rdf:type ontology:Q502895 . ?k rdf:type ontology:Q1656682 } UNION { ?o rdf:type ontology:Q502895 . ?k rdf:type ontology:Q2668072 . ?o property:P608 ?k } } GROUP BY ?o } . FILTER ( ?j = 2 ) }
action count
action approx
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type collection
value 2
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'collection'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?j ) WHERE { { ?o property:exhibition_history ?k . ?o rdf:type ontology:common_name . ?k rdf:type ontology:event } UNION { ?o rdf:type ontology:common_name . ?k rdf:type ontology:collection . ?o property:exhibition_history ?k } } GROUP BY ?o } . FILTER ( ?j = 2 ) }
[]
event collection common name
SYSTEM
18
Q17314881 Q17455385 Q15734263 Q15734265 Q15991813 Q16062545 Q5671224 Q17625628 Q5248733 Q2824894 Q3289592 Q20888837 Q22815085 Q9015308 Q805807 Q16080418 Q15873898 Q3335569
(c(Q502895),P608,c(Q1656682)|c(Q2668072))
action count
action approx
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q2668072
value 2
[ANSWER]
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?j ) WHERE { { ?o property:P608 ?k . ?o rdf:type ontology:Q502895 . ?k rdf:type ontology:Q1656682 } UNION { ?o rdf:type ontology:Q502895 . ?k rdf:type ontology:Q2668072 . ?o property:P608 ?k } } GROUP BY ?o } . FILTER ( ?j = 2 ) }
René Izaure Jerry Cooke Johanna Bleuland van Oordt Adri Bleuland van Oordt Judie Bamber Alice Havers Pablo Borges Delgado Deborah De Robertis Manuel Ocampo Adolphe Péterelle Moniek Toebosch Angélique Bègue Georges Violet Juan Carlos Alom Balto Alyce Frank Chrisje van der Willigen Nancy Elizabeth Prophet
18
action count
action approx
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type collection
value 2
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'collection'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?j ) WHERE { { ?o property:exhibition_history ?k . ?o rdf:type ontology:common_name . ?k rdf:type ontology:event } UNION { ?o rdf:type ontology:common_name . ?k rdf:type ontology:collection . ?o property:exhibition_history ?k } } GROUP BY ?o } . FILTER ( ?j = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19829511 Q53435
P22
Q502895
USER
Which people have Mieszko I or William Haygarth as dad ?
OR((c(Q502895),P22,Q53435), (c(Q502895),P22,Q19829511))
action filter_type
action union
action find_reverse
entity Q53435
relation P22
action find_reverse
entity Q19829511
relation P22
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P22', 'Q53435'], [{'concept': 'Q502895'}, 'P22', 'Q19829511']]}
SELECT DISTINCT ?q WHERE { { { ?q property:P22 resource:Q19829511 } UNION { ?q property:P22 resource:Q53435 } } . ?q rdf:type ontology:Q502895 }
William Haygarth Mieszko I
action filter_type
action union
action find_reverse
entity Mieszko I
relation father
action find_reverse
entity William Haygarth
relation father
type common name
{'OR': [[{'concept': 'common name'}, 'father', 'Mieszko I'], [{'concept': 'common name'}, 'father', 'William Haygarth']]}
SELECT DISTINCT ?q WHERE { { { ?q property:father resource:William_Haygarth } UNION { ?q property:father resource:Mieszko_I } } . ?q rdf:type ontology:common_name }
[]
common name
Q4411629 Q387912 Q4292467 Q4798997 Q53436 Q242746 Q19838108 Q4272621 Q2887133
SYSTEM
Świętopełk Mieszkowic, Vladivoj, Duke of Bohemia, Mieszko Mieszkowic, Arthur Haygarth, Bolesław I Chrobry, Sigrid the Haughty, Henry William Haygarth, Lambert Mieszkowic, Gunhild of Wenden
Q4411629 Q387912 Q4292467 Q4798997 Q53436 Q242746 Q19838108 Q4272621 Q2887133
OR((c(Q502895),P22,Q53435), (c(Q502895),P22,Q19829511))
action filter_type
action union
action find_reverse
entity Q53435
relation P22
action find_reverse
entity Q19829511
relation P22
type Q502895
[ANSWERS] have Mieszko I or William Haygarth as dad
{'OR': [[{'concept': 'Q502895'}, 'P22', 'Q53435'], [{'concept': 'Q502895'}, 'P22', 'Q19829511']]}
SELECT DISTINCT ?q WHERE { { { ?q property:P22 resource:Q19829511 } UNION { ?q property:P22 resource:Q53435 } } . ?q rdf:type ontology:Q502895 }
Świętopełk Mieszkowic Vladivoj, Duke of Bohemia Mieszko Mieszkowic Arthur Haygarth Bolesław I Chrobry Sigrid the Haughty Henry William Haygarth Lambert Mieszkowic Gunhild of Wenden
Świętopełk Mieszkowic, Vladivoj, Duke of Bohemia, Mieszko Mieszkowic, Arthur Haygarth, Bolesław I Chrobry, Sigrid the Haughty, Henry William Haygarth, Lambert Mieszkowic and Gunhild of Wenden have Mieszko I or William Haygarth as dad
Świętopełk Mieszkowic Vladivoj, Duke of Bohemia Mieszko Mieszkowic Arthur Haygarth Bolesław I Chrobry Sigrid the Haughty Henry William Haygarth Lambert Mieszkowic Gunhild of Wenden
action filter_type
action union
action find_reverse
entity Mieszko I
relation father
action find_reverse
entity William Haygarth
relation father
type common name
{'OR': [[{'concept': 'common name'}, 'father', 'Mieszko I'], [{'concept': 'common name'}, 'father', 'William Haygarth']]}
SELECT DISTINCT ?q WHERE { { { ?q property:father resource:William_Haygarth } UNION { ?q property:father resource:Mieszko_I } } . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4411629 Q387912 Q4292467 Q4798997 Q53436 Q242746 Q19838108 Q4272621 Q2887133
P21
Q290
USER
Which sexes do those people possess ?
(Q4411629,P21,c(Q290)) (Q387912,P21,c(Q290)) (Q4292467,P21,c(Q290)) (Q4798997,P21,c(Q290)) (Q53436,P21,c(Q290)) (Q242746,P21,c(Q290)) (Q19838108,P21,c(Q290)) (Q4272621,P21,c(Q290)) (Q2887133,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q4411629', 'P21', {'concept': 'Q290'}] ['Q387912', 'P21', {'concept': 'Q290'}] ['Q4292467', 'P21', {'concept': 'Q290'}] ['Q4798997', 'P21', {'concept': 'Q290'}] ['Q53436', 'P21', {'concept': 'Q290'}] ['Q242746', 'P21', {'concept': 'Q290'}] ['Q19838108', 'P21', {'concept': 'Q290'}] ['Q4272621', 'P21', {'concept': 'Q290'}] ['Q2887133', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?v ) { ( resource:Q4411629 ) ( resource:Q387912 ) ( resource:Q4292467 ) } . ?v property:P21 ?o . ?o rdf:type ontology:Q290 }
Świętopełk Mieszkowic Vladivoj, Duke of Bohemia Mieszko Mieszkowic Arthur Haygarth Bolesław I Chrobry Sigrid the Haughty Henry William Haygarth Lambert Mieszkowic Gunhild of Wenden
action filter_type
action find
entity prev_answer
relation gender
type sex
['Świętopełk Mieszkowic', 'gender', {'concept': 'sex'}] ['Vladivoj, Duke of Bohemia', 'gender', {'concept': 'sex'}] ['Mieszko Mieszkowic', 'gender', {'concept': 'sex'}] ['Arthur Haygarth', 'gender', {'concept': 'sex'}] ['Bolesław I Chrobry', 'gender', {'concept': 'sex'}] ['Sigrid the Haughty', 'gender', {'concept': 'sex'}] ['Henry William Haygarth', 'gender', {'concept': 'sex'}] ['Lambert Mieszkowic', 'gender', {'concept': 'sex'}] ['Gunhild of Wenden', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?v ) { ( resource:Świętopełk_Mieszkowic ) ( resource:Vladivoj,_Duke_of_Bohemia ) ( resource:Mieszko_Mieszkowic ) } . ?v property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097 Q6581097 Q6581097 Q6581072 Q6581097 Q6581097 Q6581072
(Q4411629,P21,c(Q290)) (Q387912,P21,c(Q290)) (Q4292467,P21,c(Q290)) (Q4798997,P21,c(Q290)) (Q53436,P21,c(Q290)) (Q242746,P21,c(Q290)) (Q19838108,P21,c(Q290)) (Q4272621,P21,c(Q290)) (Q2887133,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people possess a [ANSWER], [ANSWER] and [ANSWER]
['Q4411629', 'P21', {'concept': 'Q290'}] ['Q387912', 'P21', {'concept': 'Q290'}] ['Q4292467', 'P21', {'concept': 'Q290'}] ['Q4798997', 'P21', {'concept': 'Q290'}] ['Q53436', 'P21', {'concept': 'Q290'}] ['Q242746', 'P21', {'concept': 'Q290'}] ['Q19838108', 'P21', {'concept': 'Q290'}] ['Q4272621', 'P21', {'concept': 'Q290'}] ['Q2887133', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?v ) { ( resource:Q4411629 ) ( resource:Q387912 ) ( resource:Q4292467 ) } . ?v property:P21 ?o . ?o rdf:type ontology:Q290 }
male male male male male female male male female
Those people possess a male, male and male
male male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Świętopełk Mieszkowic', 'gender', {'concept': 'sex'}] ['Vladivoj, Duke of Bohemia', 'gender', {'concept': 'sex'}] ['Mieszko Mieszkowic', 'gender', {'concept': 'sex'}] ['Arthur Haygarth', 'gender', {'concept': 'sex'}] ['Bolesław I Chrobry', 'gender', {'concept': 'sex'}] ['Sigrid the Haughty', 'gender', {'concept': 'sex'}] ['Henry William Haygarth', 'gender', {'concept': 'sex'}] ['Lambert Mieszkowic', 'gender', {'concept': 'sex'}] ['Gunhild of Wenden', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?v ) { ( resource:Świętopełk_Mieszkowic ) ( resource:Vladivoj,_Duke_of_Bohemia ) ( resource:Mieszko_Mieszkowic ) } . ?v property:gender ?o . ?o rdf:type ontology:sex }
[]