Simple Question (Direct)
Simple Question
Q12321986
P7
Q502895
USER
Who is Kirstine Fiil a sibling of ?
(Q12321986,P7,c(Q502895))
action filter_type
action find
entity Q12321986
relation P7
type Q502895
['Q12321986', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q12321986 property:P7 ?v }
Kirstine Fiil
action filter_type
action find
entity Kirstine Fiil
relation brother
type common name
['Kirstine Fiil', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Kirstine_Fiil property:brother ?v }
[]
common name
Q12328767
SYSTEM
Niels Fiil
Q12328767
(Q12321986,P7,c(Q502895))
action filter_type
action find
entity Q12321986
relation P7
type Q502895
Kirstine Fiil a sibling of is [ANSWER]
['Q12321986', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q12321986 property:P7 ?v }
Niels Fiil
Kirstine Fiil a sibling of is Niels Fiil
Niels Fiil
action filter_type
action find
entity Kirstine Fiil
relation brother
type common name
['Kirstine Fiil', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Kirstine_Fiil property:brother ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12328767
P40
Q502895
USER
Who have that one as a child ?
(c(Q502895),P40,Q12328767)
action filter_type
action find_reverse
entity Q12328767
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q12328767']
SELECT DISTINCT ?e WHERE { ?e property:P40 resource:Q12328767 . ?e rdf:type ontology:Q502895 }
Niels Fiil
action filter_type
action find_reverse
entity Niels Fiil
relation child
type common name
[{'concept': 'common name'}, 'child', 'Niels Fiil']
SELECT DISTINCT ?e WHERE { ?e property:child resource:Niels_Fiil . ?e rdf:type ontology:common_name }
[]
common name
Q12314540 Q6765957
SYSTEM
Gudrun Fiil, Marius Fiil
Q12314540 Q6765957
(c(Q502895),P40,Q12328767)
action filter_type
action find_reverse
entity Q12328767
relation P40
type Q502895
[ANSWERS] have that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q12328767']
SELECT DISTINCT ?e WHERE { ?e property:P40 resource:Q12328767 . ?e rdf:type ontology:Q502895 }
Gudrun Fiil Marius Fiil
Gudrun Fiil and Marius Fiil have that one as a child
Gudrun Fiil Marius Fiil
action filter_type
action find_reverse
entity Niels Fiil
relation child
type common name
[{'concept': 'common name'}, 'child', 'Niels Fiil']
SELECT DISTINCT ?e WHERE { ?e property:child resource:Niels_Fiil . ?e rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6765957
P26
Q502895
USER
Which person is married to that one ?
(c(Q502895),P26,Q6765957)
action filter_type
action find
entity Q6765957
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q6765957']
SELECT DISTINCT ?f WHERE { resource:Q6765957 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Marius Fiil
action filter_type
action find
entity Marius Fiil
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Marius Fiil']
SELECT DISTINCT ?f WHERE { resource:Marius_Fiil property:spouse ?f . ?f rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q6765957
SYSTEM
Did you mean Marius Fiil ?
Q12314540 Q6765957
(c(Q502895),P26,Q12314540) (c(Q502895),P26,Q6765957)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q12314540'] [{'concept': 'Q502895'}, 'P26', 'Q6765957']
SELECT DISTINCT ?f WHERE { resource:Q6765957 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Gudrun Fiil Marius Fiil
Did you mean Marius Fiil ?
Marius Fiil
[{'concept': 'common name'}, 'spouse', 'Gudrun Fiil'] [{'concept': 'common name'}, 'spouse', 'Marius Fiil']
SELECT DISTINCT ?f WHERE { resource:Marius_Fiil property:spouse ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P26,Q6765957)
[{'concept': 'Q502895'}, 'P26', 'Q6765957']
[{'concept': 'common name'}, 'spouse', 'Marius Fiil']
[]
Q12314540
SYSTEM
Gudrun Fiil
Q12314540
(c(Q502895),P26,Q6765957)
action filter_type
action find
entity Q6765957
relation P26
type Q502895
[ANSWER] is married to that one
[{'concept': 'Q502895'}, 'P26', 'Q6765957']
SELECT DISTINCT ?f WHERE { resource:Q6765957 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Gudrun Fiil
Gudrun Fiil is married to that one
Gudrun Fiil
action filter_type
action find
entity Marius Fiil
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Marius Fiil']
SELECT DISTINCT ?f WHERE { resource:Marius_Fiil property:spouse ?f . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7611360 Q6765957
P22
Q502895
USER
Which people are the offspring of Marius Fiil or Henry Neville, 5th Earl of Westmorland ?
OR((c(Q502895),P22,Q6765957), (c(Q502895),P22,Q7611360))
action filter_type
action union
action find_reverse
entity Q6765957
relation P22
action find_reverse
entity Q7611360
relation P22
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P22', 'Q6765957'], [{'concept': 'Q502895'}, 'P22', 'Q7611360']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P22 resource:Q7611360 } UNION { ?v property:P22 resource:Q6765957 } } . ?v rdf:type ontology:Q502895 }
Henry Neville, 5th Earl of Westmorland Marius Fiil
action filter_type
action union
action find_reverse
entity Marius Fiil
relation father
action find_reverse
entity Henry Neville, 5th Earl of Westmorland
relation father
type common name
{'OR': [[{'concept': 'common name'}, 'father', 'Marius Fiil'], [{'concept': 'common name'}, 'father', 'Henry Neville, 5th Earl of Westmorland']]}
SELECT DISTINCT ?v WHERE { { { ?v property:father resource:Henry_Neville,_5th_Earl_of_Westmorland } UNION { ?v property:father resource:Marius_Fiil } } . ?v rdf:type ontology:common_name }
[]
common name
Q20036837 Q12321986 Q12328767 Q4572973
SYSTEM
Gerda Fiil, Kirstine Fiil, Niels Fiil, Charles Neville, 6th Earl of Westmorland
Q20036837 Q12321986 Q12328767 Q4572973
OR((c(Q502895),P22,Q6765957), (c(Q502895),P22,Q7611360))
action filter_type
action union
action find_reverse
entity Q6765957
relation P22
action find_reverse
entity Q7611360
relation P22
type Q502895
[ANSWERS]
{'OR': [[{'concept': 'Q502895'}, 'P22', 'Q6765957'], [{'concept': 'Q502895'}, 'P22', 'Q7611360']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P22 resource:Q7611360 } UNION { ?v property:P22 resource:Q6765957 } } . ?v rdf:type ontology:Q502895 }
Gerda Fiil Kirstine Fiil Niels Fiil Charles Neville, 6th Earl of Westmorland
Gerda Fiil, Kirstine Fiil, Niels Fiil and Charles Neville, 6th Earl of Westmorland are the offspring of Marius Fiil or Henry Neville, 5th Earl of Westmorland
Gerda Fiil Kirstine Fiil Niels Fiil Charles Neville, 6th Earl of Westmorland
action filter_type
action union
action find_reverse
entity Marius Fiil
relation father
action find_reverse
entity Henry Neville, 5th Earl of Westmorland
relation father
type common name
{'OR': [[{'concept': 'common name'}, 'father', 'Marius Fiil'], [{'concept': 'common name'}, 'father', 'Henry Neville, 5th Earl of Westmorland']]}
SELECT DISTINCT ?v WHERE { { { ?v property:father resource:Henry_Neville,_5th_Earl_of_Westmorland } UNION { ?v property:father resource:Marius_Fiil } } . ?v rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q6765957
P21 P22
Q502895
USER
Which people have Marius Fiil as a father and have the gender as male ?
AND((c(Q502895),P22,Q6765957), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q6765957
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q6765957'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P22 resource:Q6765957 . ?o property:P21 resource:Q6581097 }
male Marius Fiil
action filter_type
action intersection
action find_reverse
entity Marius Fiil
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Marius Fiil'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:father resource:Marius_Fiil . ?o property:gender resource:male }
[]
common name
Q12328767
SYSTEM
Niels Fiil
Q12328767
AND((c(Q502895),P22,Q6765957), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q6765957
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Marius Fiil as a father and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q6765957'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P22 resource:Q6765957 . ?o property:P21 resource:Q6581097 }
Niels Fiil
Niels Fiil have Marius Fiil as a father and have the gender as male
Niels Fiil
action filter_type
action intersection
action find_reverse
entity Marius Fiil
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Marius Fiil'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:father resource:Marius_Fiil . ?o property:gender resource:male }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q166142
USER
Which applications had exactly 5 people as the dubbing artist ?
(c(Q166142),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q166142
type Q502895
value 5
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { ?h rdf:type ontology:Q166142 . ?f rdf:type ontology:Q502895 . ?h property:P725 ?f } GROUP BY ?h } . FILTER ( ?g = 5 ) }
action equal
action find_tuple_counts
relation voice actor
type application
type common name
value 5
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { ?h rdf:type ontology:application . ?f rdf:type ontology:common_name . ?h property:voice_actor ?f } GROUP BY ?h } . FILTER ( ?g = 5 ) }
[]
common name application
Q170489 Q4121008
SYSTEM
Super Mario Galaxy, Hyperdimension Neptunia Victory
Q170489 Q4121008
(c(Q166142),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q166142
type Q502895
value 5
[ANSWERS] had exactly 5 people as the dubbing artist
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { ?h rdf:type ontology:Q166142 . ?f rdf:type ontology:Q502895 . ?h property:P725 ?f } GROUP BY ?h } . FILTER ( ?g = 5 ) }
Super Mario Galaxy Hyperdimension Neptunia Victory
Super Mario Galaxy and Hyperdimension Neptunia Victory had exactly 5 people as the dubbing artist
Super Mario Galaxy Hyperdimension Neptunia Victory
action equal
action find_tuple_counts
relation voice actor
type application
type common name
value 5
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { ?h rdf:type ontology:application . ?f rdf:type ontology:common_name . ?h property:voice_actor ?f } GROUP BY ?h } . FILTER ( ?g = 5 ) }
[]