Simple Question (Direct)
Simple Question
Q24238812
P21
Q290
USER
Which sex does Edward Langley have ?
(Q24238812,P21,c(Q290))
action filter_type
action find
entity Q24238812
relation P21
type Q290
['Q24238812', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q24238812 property:P21 ?z }
Edward Langley
action filter_type
action find
entity Edward Langley
relation gender
type sex
['Edward Langley', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Edward_Langley property:gender ?z }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q24238812,P21,c(Q290))
action filter_type
action find
entity Q24238812
relation P21
type Q290
Edward Langley has a [ANSWER]
['Q24238812', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q24238812 property:P21 ?z }
male
Edward Langley has a male
male
action filter_type
action find
entity Edward Langley
relation gender
type sex
['Edward Langley', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Edward_Langley property:gender ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q24238812
P106
Q12737077
USER
Which occupations have Edward Langley as his/her 's career ?
(Q24238812,P106,c(Q12737077))
action filter_type
action find
entity Q24238812
relation P106
type Q12737077
['Q24238812', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q24238812 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Edward Langley
action filter_type
action find
entity Edward Langley
relation occupation
type occupation
['Edward Langley', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Edward_Langley property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q329439 Q998550 Q175151
SYSTEM
engraver, bookseller, printer
Q175151 Q2516866 Q329439 Q998550
(Q24238812,P106,c(Q12737077))
action filter_type
action find
entity Q24238812
relation P106
type Q12737077
[ANSWERS] have Edward Langley as his/her 's career
['Q24238812', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q24238812 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
printer publisher engraver bookseller
Engraver, bookseller and printer have Edward Langley as his/her 's career
engraver bookseller printer
action filter_type
action find
entity Edward Langley
relation occupation
type occupation
['Edward Langley', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Edward_Langley property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17385718
Q12737077
USER
And also tell me about Guymon Casady?
(Q17385718,P106,c(Q12737077))
action filter_type
action find
entity Q17385718
relation P106
type Q12737077
['Q17385718', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q17385718 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Guymon Casady
action filter_type
action find
entity Guymon Casady
relation occupation
type occupation
['Guymon Casady', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Guymon_Casady property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q1344174
SYSTEM
talent agent
Q1344174
(Q17385718,P106,c(Q12737077))
action filter_type
action find
entity Q17385718
relation P106
type Q12737077
[ANSWER]
['Q17385718', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q17385718 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
talent agent
talent agent
action filter_type
action find
entity Guymon Casady
relation occupation
type occupation
['Guymon Casady', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Guymon_Casady property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q82955 Q1344174
P106
Q502895
USER
Which people have career as talent agent and politician ?
AND((c(Q502895),P106,Q1344174), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q1344174
relation P106
action find_reverse
entity Q82955
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q1344174'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P106 resource:Q1344174 . ?o property:P106 resource:Q82955 }
politician talent agent
action filter_type
action intersection
action find_reverse
entity talent agent
relation occupation
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'talent agent'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:occupation resource:talent_agent . ?o property:occupation resource:politician }
[]
common name
Q337010 Q336801
SYSTEM
Michael Levy, Baron Levy, Lew Grade
Q337010 Q336801
AND((c(Q502895),P106,Q1344174), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q1344174
relation P106
action find_reverse
entity Q82955
relation P106
type Q502895
[ANSWERS] have career as talent agent and politician
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q1344174'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P106 resource:Q1344174 . ?o property:P106 resource:Q82955 }
Michael Levy, Baron Levy Lew Grade
Michael Levy, Baron Levy and Lew Grade have career as talent agent and politician
Michael Levy, Baron Levy Lew Grade
action filter_type
action intersection
action find_reverse
entity talent agent
relation occupation
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'talent agent'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:occupation resource:talent_agent . ?o property:occupation resource:politician }
[]