Simple Question (Direct)
Simple Question
Q701093
P40
Q502895
USER
Which people are an offsprings of Louis, Prince Napoléon ?
(Q701093,P40,c(Q502895))
action filter_type
action find
entity Q701093
relation P40
type Q502895
['Q701093', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q701093 property:P40 ?l . ?l rdf:type ontology:Q502895 }
Louis, Prince Napoléon
action filter_type
action find
entity Louis, Prince Napoléon
relation child
type common name
['Louis, Prince Napoléon', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Louis,_Prince_Napoléon property:child ?l . ?l rdf:type ontology:common_name }
[]
common name
Q3191090 Q704776
SYSTEM
Prince Jérôme Napoléon, Charles Napoléon
Q3191090 Q704776
(Q701093,P40,c(Q502895))
action filter_type
action find
entity Q701093
relation P40
type Q502895
[ANSWERS] are an offsprings of Louis, Prince Napoléon
['Q701093', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q701093 property:P40 ?l . ?l rdf:type ontology:Q502895 }
Prince Jérôme Napoléon Charles Napoléon
Prince Jérôme Napoléon and Charles Napoléon are an offsprings of Louis, Prince Napoléon
Prince Jérôme Napoléon Charles Napoléon
action filter_type
action find
entity Louis, Prince Napoléon
relation child
type common name
['Louis, Prince Napoléon', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Louis,_Prince_Napoléon property:child ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q701093
P22
Q502895
USER
Who are the offspring of Louis, Prince Napoléon ?
(c(Q502895),P22,Q701093)
action filter_type
action find_reverse
entity Q701093
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q701093']
SELECT DISTINCT ?u WHERE { ?u property:P22 resource:Q701093 . ?u rdf:type ontology:Q502895 }
Louis, Prince Napoléon
action filter_type
action find_reverse
entity Louis, Prince Napoléon
relation father
type common name
[{'concept': 'common name'}, 'father', 'Louis, Prince Napoléon']
SELECT DISTINCT ?u WHERE { ?u property:father resource:Louis,_Prince_Napoléon . ?u rdf:type ontology:common_name }
[]
common name
Q3191090 Q704776
SYSTEM
Prince Jérôme Napoléon, Charles Napoléon
Q3191090 Q704776
(c(Q502895),P22,Q701093)
action filter_type
action find_reverse
entity Q701093
relation P22
type Q502895
The offspring of Louis , Prince Napoléon are named [ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q701093']
SELECT DISTINCT ?u WHERE { ?u property:P22 resource:Q701093 . ?u rdf:type ontology:Q502895 }
Prince Jérôme Napoléon Charles Napoléon
The offspring of Louis , Prince Napoléon are named Prince Jérôme Napoléon and Charles Napoléon
Prince Jérôme Napoléon Charles Napoléon
action filter_type
action find_reverse
entity Louis, Prince Napoléon
relation father
type common name
[{'concept': 'common name'}, 'father', 'Louis, Prince Napoléon']
SELECT DISTINCT ?u WHERE { ?u property:father resource:Louis,_Prince_Napoléon . ?u rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3191090
P25
Q502895
USER
Who was the mom of that one ?
(Q3191090,P25,c(Q502895))
action filter_type
action find
entity Q3191090
relation P25
type Q502895
['Q3191090', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q3191090 property:P25 ?h }
Prince Jérôme Napoléon
action filter_type
action find
entity Prince Jérôme Napoléon
relation mother
type common name
['Prince Jérôme Napoléon', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Prince_Jérôme_Napoléon property:mother ?h }
[]
common name
Clarification for simple ques.
Q704776
SYSTEM
Did you mean Charles Napoléon ?
Q3191090 Q704776
(Q3191090,P25,c(Q502895)) (Q704776,P25,c(Q502895))
[ANSWER]
['Q3191090', 'P25', {'concept': 'Q502895'}] ['Q704776', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q3191090 property:P25 ?h }
Prince Jérôme Napoléon Charles Napoléon
Did you mean Charles Napoléon ?
Charles Napoléon
['Prince Jérôme Napoléon', 'mother', {'concept': 'common name'}] ['Charles Napoléon', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Prince_Jérôme_Napoléon property:mother ?h }
[]
Simple Question (Coreferenced)
USER
No, I meant Prince Jérôme Napoléon. Could you tell me the answer for that?
(Q3191090,P25,c(Q502895))
Q3191090
['Q3191090', 'P25', {'concept': 'Q502895'}]
['Prince Jérôme Napoléon', 'mother', {'concept': 'common name'}]
[]
Q303942
SYSTEM
Alix, Princess Napoleon
Q303942
(Q3191090,P25,c(Q502895))
action filter_type
action find
entity Q3191090
relation P25
type Q502895
The mom of that one was Princess [ANSWER]
['Q3191090', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q3191090 property:P25 ?h }
Alix, Princess Napoleon
The mom of that one was Princess Alix, Princess Napoleon
Alix, Princess Napoleon
action filter_type
action find
entity Prince Jérôme Napoléon
relation mother
type common name
['Prince Jérôme Napoléon', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Prince_Jérôme_Napoléon property:mother ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3191090
P7
Q502895
USER
Which person had Prince Jérôme Napoléon as brother ?
(c(Q502895),P7,Q3191090)
action filter_type
action find
entity Q3191090
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q3191090']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q3191090 property:P7 ?k }
Prince Jérôme Napoléon
action filter_type
action find
entity Prince Jérôme Napoléon
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Prince Jérôme Napoléon']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Prince_Jérôme_Napoléon property:brother ?k }
[]
common name
Q704776
SYSTEM
Charles Napoléon
Q704776
(c(Q502895),P7,Q3191090)
action filter_type
action find
entity Q3191090
relation P7
type Q502895
[ANSWER] had Prince Jérôme Napoléon as brother
[{'concept': 'Q502895'}, 'P7', 'Q3191090']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q3191090 property:P7 ?k }
Charles Napoléon
Charles Napoléon had Prince Jérôme Napoléon as brother
Charles Napoléon
action filter_type
action find
entity Prince Jérôme Napoléon
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Prince Jérôme Napoléon']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Prince_Jérôme_Napoléon property:brother ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q704776
P26
Q502895
USER
Who is married to that one ?
(c(Q502895),P26,Q704776)
action filter_type
action find
entity Q704776
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q704776']
SELECT DISTINCT ?f WHERE { resource:Q704776 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Charles Napoléon
action filter_type
action find
entity Charles Napoléon
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Charles Napoléon']
SELECT DISTINCT ?f WHERE { resource:Charles_Napoléon property:spouse ?f . ?f rdf:type ontology:common_name }
[]
common name
Q4925346
SYSTEM
Princess Béatrice of Bourbon-Two Sicilies
Q4925346
(c(Q502895),P26,Q704776)
action filter_type
action find
entity Q704776
relation P26
type Q502895
[ANSWER] is married to that one
[{'concept': 'Q502895'}, 'P26', 'Q704776']
SELECT DISTINCT ?f WHERE { resource:Q704776 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Princess Béatrice of Bourbon-Two Sicilies
Princess Béatrice of Bourbon-Two Sicilies is married to that one
Princess Béatrice of Bourbon-Two Sicilies
action filter_type
action find
entity Charles Napoléon
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Charles Napoléon']
SELECT DISTINCT ?f WHERE { resource:Charles_Napoléon property:spouse ?f . ?f rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15619164
USER
Which abstract beings had exactly 8 people as the dubbing artist ?
(c(Q15619164),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 8
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?l ) WHERE { ?j property:P725 ?d . ?j rdf:type ontology:Q15619164 . ?d rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?l = 8 ) }
action equal
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 8
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?l ) WHERE { ?j property:voice_actor ?d . ?j rdf:type ontology:abstract_being . ?d rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?l = 8 ) }
[]
common name abstract being
Q15711505 Q7468973 Q3054222
SYSTEM
Braeburn, Applejack, Slippy Toad
Q15711505 Q20972916 Q3054222 Q7468973
(c(Q15619164),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 8
[ANSWERS] had exactly 8 people as the dubbing artist
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?l ) WHERE { ?j property:P725 ?d . ?j rdf:type ontology:Q15619164 . ?d rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?l = 8 ) }
Braeburn ROB Slippy Toad Applejack
Braeburn, Applejack and Slippy Toad had exactly 8 people as the dubbing artist
Braeburn Applejack Slippy Toad
action equal
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 8
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?l ) WHERE { ?j property:voice_actor ?d . ?j rdf:type ontology:abstract_being . ?d rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?l = 8 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q704776
P25
Q502895
USER
Which female person has a child named Charles Napoléon ?
(Q704776,P25,c(Q502895))
action filter_type
action find
entity Q704776
relation P25
type Q502895
['Q704776', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q704776 property:P25 ?o . ?o rdf:type ontology:Q502895 }
Charles Napoléon
action filter_type
action find
entity Charles Napoléon
relation mother
type common name
['Charles Napoléon', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Charles_Napoléon property:mother ?o . ?o rdf:type ontology:common_name }
[]
common name
Q303942
SYSTEM
Alix, Princess Napoleon
Q303942
(Q704776,P25,c(Q502895))
action filter_type
action find
entity Q704776
relation P25
type Q502895
[ANSWER] has a child named Charles Napoléon
['Q704776', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q704776 property:P25 ?o . ?o rdf:type ontology:Q502895 }
Alix, Princess Napoleon
Alix, Princess Napoleon has a child named Charles Napoléon
Alix, Princess Napoleon
action filter_type
action find
entity Charles Napoléon
relation mother
type common name
['Charles Napoléon', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Charles_Napoléon property:mother ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q303942
P53
Q13417114
USER
What dynasty does that person belong to ?
(Q303942,P53,c(Q13417114))
action filter_type
action find
entity Q303942
relation P53
type Q13417114
['Q303942', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?x WHERE { resource:Q303942 property:P53 ?x . ?x rdf:type ontology:Q13417114 }
Alix, Princess Napoleon
action filter_type
action find
entity Alix, Princess Napoleon
relation noble family
type noble family
['Alix, Princess Napoleon', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?x WHERE { resource:Alix,_Princess_Napoleon property:noble_family ?x . ?x rdf:type ontology:noble_family }
[]
noble family
Q112581
SYSTEM
House of Bonaparte
Q112581
(Q303942,P53,c(Q13417114))
action filter_type
action find
entity Q303942
relation P53
type Q13417114
That person belongs to [ANSWER]
['Q303942', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?x WHERE { resource:Q303942 property:P53 ?x . ?x rdf:type ontology:Q13417114 }
House of Bonaparte
That person belongs to House of Bonaparte
House of Bonaparte
action filter_type
action find
entity Alix, Princess Napoleon
relation noble family
type noble family
['Alix, Princess Napoleon', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?x WHERE { resource:Alix,_Princess_Napoleon property:noble_family ?x . ?x rdf:type ontology:noble_family }
[]