Simple Question (Direct)
Simple Question
Q5576572
P937
Q56061
USER
Which administrative territory is the work location of Godfrey Wilson ?
(Q5576572,P937,c(Q56061))
action filter_type
action find
entity Q5576572
relation P937
type Q56061
['Q5576572', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q5576572 property:P937 ?j . ?j rdf:type ontology:Q56061 }
Godfrey Wilson
action filter_type
action find
entity Godfrey Wilson
relation work location
type administrative territorial entity
['Godfrey Wilson', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Godfrey_Wilson property:work_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q5576572,P937,c(Q56061))
action filter_type
action find
entity Q5576572
relation P937
type Q56061
[ANSWER] is the work location of Godfrey Wilson
['Q5576572', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q5576572 property:P937 ?j . ?j rdf:type ontology:Q56061 }
London
London is the work location of Godfrey Wilson
London
action filter_type
action find
entity Godfrey Wilson
relation work location
type administrative territorial entity
['Godfrey Wilson', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Godfrey_Wilson property:work_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5576572
P102
Q7210356
USER
Which party is Godfrey Wilson affiliated with ?
(Q5576572,P102,c(Q7210356))
action filter_type
action find
entity Q5576572
relation P102
type Q7210356
['Q5576572', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q5576572 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Godfrey Wilson
action filter_type
action find
entity Godfrey Wilson
relation member of political party
type political organization
['Godfrey Wilson', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Godfrey_Wilson property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q5576572,P102,c(Q7210356))
action filter_type
action find
entity Q5576572
relation P102
type Q7210356
Godfrey Wilson is affiliated with [ANSWER]
['Q5576572', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q5576572 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Conservative Party
Godfrey Wilson is affiliated with Conservative Party
Conservative Party
action filter_type
action find
entity Godfrey Wilson
relation member of political party
type political organization
['Godfrey Wilson', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Godfrey_Wilson property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9626
P39
Q502895
USER
Which person was responsible for occupying the position of that political organization ?
(c(Q502895),P39,Q9626)
action filter_type
action find_reverse
entity Q9626
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q9626']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P39 resource:Q9626 }
Conservative Party
action filter_type
action find_reverse
entity Conservative Party
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Conservative Party']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:position_held resource:Conservative_Party }
[]
common name
Q577771
SYSTEM
Bob Neill
Q577771
(c(Q502895),P39,Q9626)
action filter_type
action find_reverse
entity Q9626
relation P39
type Q502895
[ANSWER] was responsible for occupying the position of that political organization
[{'concept': 'Q502895'}, 'P39', 'Q9626']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P39 resource:Q9626 }
Bob Neill
Bob Neill was responsible for occupying the position of that political organization
Bob Neill
action filter_type
action find_reverse
entity Conservative Party
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Conservative Party']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:position_held resource:Conservative_Party }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P161
Q838948
USER
How many works of art do that person star in ?
(c(Q838948),P161,Q577771)
action count
action filter_type
action find_reverse
entity Q577771
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q577771']
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:P161 resource:Q577771 . ?n rdf:type ontology:Q838948 }
action count
action filter_type
action find_reverse
entity Bob Neill
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Bob Neill']
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:cast_member resource:Bob_Neill . ?n rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
2
Q626483 Q945685
(c(Q838948),P161,Q577771)
action count
action filter_type
action find_reverse
entity Q577771
relation P161
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q577771']
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:P161 resource:Q577771 . ?n rdf:type ontology:Q838948 }
Tron Red Planet
2
action count
action filter_type
action find_reverse
entity Bob Neill
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Bob Neill']
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:cast_member resource:Bob_Neill . ?n rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q64 Q84
P937
Q502895
USER
Which people have London and Berlin as their work location ?
AND((c(Q502895),P937,Q84), (c(Q502895),P937,Q64))
action filter_type
action intersection
action find_reverse
entity Q84
relation P937
action find_reverse
entity Q64
relation P937
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P937', 'Q84'], [{'concept': 'Q502895'}, 'P937', 'Q64']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P937 resource:Q64 . ?i property:P937 resource:Q84 }
Berlin London
action filter_type
action intersection
action find_reverse
entity London
relation work location
action find_reverse
entity Berlin
relation work location
type common name
{'AND': [[{'concept': 'common name'}, 'work location', 'London'], [{'concept': 'common name'}, 'work location', 'Berlin']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:work_location resource:Berlin . ?i property:work_location resource:London }
[]
common name
Q1370077 Q334084 Q15074350 Q154340
SYSTEM
Esther Kinsky, Thomas Grenville, Martin Chalmers, Francis Bacon
Q1370077 Q334084 Q15074350 Q154340
AND((c(Q502895),P937,Q84), (c(Q502895),P937,Q64))
action filter_type
action intersection
action find_reverse
entity Q84
relation P937
action find_reverse
entity Q64
relation P937
type Q502895
[ANSWERS] have London and Berlin as their work location
{'AND': [[{'concept': 'Q502895'}, 'P937', 'Q84'], [{'concept': 'Q502895'}, 'P937', 'Q64']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P937 resource:Q64 . ?i property:P937 resource:Q84 }
Esther Kinsky Thomas Grenville Martin Chalmers Francis Bacon
Esther Kinsky, Thomas Grenville, Martin Chalmers and Francis Bacon have London and Berlin as their work location
Esther Kinsky Thomas Grenville Martin Chalmers Francis Bacon
action filter_type
action intersection
action find_reverse
entity London
relation work location
action find_reverse
entity Berlin
relation work location
type common name
{'AND': [[{'concept': 'common name'}, 'work location', 'London'], [{'concept': 'common name'}, 'work location', 'Berlin']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:work_location resource:Berlin . ?i property:work_location resource:London }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P144
Q502895 Q15961987
USER
Which people do more number of television genres extend upon than that person ?
(c(Q15961987),P144,c(Q502895))
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT * WHERE { ?z property:P144 ?y . ?z rdf:type ontology:Q15961987 . ?y rdf:type ontology:Q502895 }
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
SELECT DISTINCT * WHERE { ?z property:based_on ?y . ?z rdf:type ontology:television_genre . ?y rdf:type ontology:common_name }
[]
common name television genre
Comparative|More/Less|Single entity type|Clarification
Q15074350
SYSTEM
Did you mean Martin Chalmers ?
(c(Q15961987),P144,c(Q502895))
[ANSWER]
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT * WHERE { ?z property:P144 ?y . ?z rdf:type ontology:Q15961987 . ?y rdf:type ontology:Q502895 }
Did you mean Martin Chalmers ?
Martin Chalmers
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
SELECT DISTINCT * WHERE { ?z property:based_on ?y . ?z rdf:type ontology:television_genre . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
USER
No, I meant Francis Bacon. Could you tell me the answer for that?
(c(Q15961987),P144,c(Q502895))
Q154340
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
[]
Q5358186
SYSTEM
Yarō Abe
Q5358186
(c(Q15961987),P144,c(Q502895))
[ANSWER] more number of television genres extend upon than that person
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT * WHERE { ?z property:P144 ?y . ?z rdf:type ontology:Q15961987 . ?y rdf:type ontology:Q502895 }
Yarō Abe
Yarō Abe more number of television genres extend upon than that person
Yarō Abe
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
SELECT DISTINCT * WHERE { ?z property:based_on ?y . ?z rdf:type ontology:television_genre . ?y rdf:type ontology:common_name }
[]