Simple Question (Direct)
Simple Question
Q24505130
P22
Q502895
USER
Which person was the father of Beeston Long ?
(Q24505130,P22,c(Q502895))
action filter_type
action find
entity Q24505130
relation P22
type Q502895
['Q24505130', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q24505130 property:P22 ?h . ?h rdf:type ontology:Q502895 }
Beeston Long
action filter_type
action find
entity Beeston Long
relation father
type common name
['Beeston Long', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Beeston_Long property:father ?h . ?h rdf:type ontology:common_name }
[]
common name
Q24503395
SYSTEM
Charles Long
Q24503395
(Q24505130,P22,c(Q502895))
action filter_type
action find
entity Q24505130
relation P22
type Q502895
Long [ANSWER] was the father of Beeston Long
['Q24505130', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q24505130 property:P22 ?h . ?h rdf:type ontology:Q502895 }
Charles Long
Long Charles Long was the father of Beeston Long
Charles Long
action filter_type
action find
entity Beeston Long
relation father
type common name
['Beeston Long', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Beeston_Long property:father ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q24503395
P40
Q502895
USER
Which person is a child of that one ?
(Q24503395,P40,c(Q502895))
action filter_type
action find
entity Q24503395
relation P40
type Q502895
['Q24503395', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q24503395 property:P40 ?k }
Charles Long
action filter_type
action find
entity Charles Long
relation child
type common name
['Charles Long', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Charles_Long property:child ?k }
[]
common name
Q24505130
SYSTEM
Beeston Long
Q24505130
(Q24503395,P40,c(Q502895))
action filter_type
action find
entity Q24503395
relation P40
type Q502895
He [ANSWER] is a child of that one
['Q24503395', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q24503395 property:P40 ?k }
Beeston Long
He Beeston Long is a child of that one
Beeston Long
action filter_type
action find
entity Charles Long
relation child
type common name
['Charles Long', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Charles_Long property:child ?k }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q24505130 Q4880145 Q27530007
P40
Q502895
USER
Does that person have Beeston Long and Istvan Polgar as an offspring ?
(Q24505130,P40,Q4880145) (Q24505130,P40,Q27530007)
action is_in
entity Q24505130
action intersection
action find_reverse
entity Q4880145
relation P40
action find_reverse
entity Q27530007
relation P40
['Q24505130', 'P40', 'Q4880145'] ['Q24505130', 'P40', 'Q27530007']
ASK WHERE { resource:Q24505130 property:P40 resource:Q27530007 . resource:Q24505130 property:P40 resource:Q4880145 }
Beeston Long Beeston Long Istvan Polgar
action is_in
entity Beeston Long
action intersection
action find_reverse
entity Beeston Long
relation child
action find_reverse
entity Istvan Polgar
relation child
['Beeston Long', 'child', 'Beeston Long'] ['Beeston Long', 'child', 'Istvan Polgar']
ASK WHERE { resource:Beeston_Long property:child resource:Istvan_Polgar . resource:Beeston_Long property:child resource:Beeston_Long }
[]
common name
SYSTEM
YES and NO respectively
(Q24505130,P40,Q4880145) (Q24505130,P40,Q27530007)
action is_in
entity Q24505130
action intersection
action find_reverse
entity Q4880145
relation P40
action find_reverse
entity Q27530007
relation P40
[ANSWER]
['Q24505130', 'P40', 'Q4880145'] ['Q24505130', 'P40', 'Q27530007']
ASK WHERE { resource:Q24505130 property:P40 resource:Q27530007 . resource:Q24505130 property:P40 resource:Q4880145 }
YES and NO respectively
action is_in
entity Beeston Long
action intersection
action find_reverse
entity Beeston Long
relation child
action find_reverse
entity Istvan Polgar
relation child
['Beeston Long', 'child', 'Beeston Long'] ['Beeston Long', 'child', 'Istvan Polgar']
ASK WHERE { resource:Beeston_Long property:child resource:Istvan_Polgar . resource:Beeston_Long property:child resource:Beeston_Long }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q24503395 Q82955 Q3153784
P106
Q12737077
USER
Does Charles Long have the profession of politician and acting president ?
(Q24503395,P106,Q82955) (Q24503395,P106,Q3153784)
action is_in
entity Q24503395
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q3153784
relation P106
['Q24503395', 'P106', 'Q82955'] ['Q24503395', 'P106', 'Q3153784']
ASK WHERE { resource:Q24503395 property:P106 resource:Q82955 . resource:Q24503395 property:P106 resource:Q3153784 }
Charles Long politician acting president
action is_in
entity Charles Long
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity acting president
relation occupation
['Charles Long', 'occupation', 'politician'] ['Charles Long', 'occupation', 'acting president']
ASK WHERE { resource:Charles_Long property:occupation resource:politician . resource:Charles_Long property:occupation resource:acting_president }
[]
occupation
SYSTEM
YES and NO respectively
(Q24503395,P106,Q82955) (Q24503395,P106,Q3153784)
action is_in
entity Q24503395
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q3153784
relation P106
[ANSWER]
['Q24503395', 'P106', 'Q82955'] ['Q24503395', 'P106', 'Q3153784']
ASK WHERE { resource:Q24503395 property:P106 resource:Q82955 . resource:Q24503395 property:P106 resource:Q3153784 }
YES and NO respectively
action is_in
entity Charles Long
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity acting president
relation occupation
['Charles Long', 'occupation', 'politician'] ['Charles Long', 'occupation', 'acting president']
ASK WHERE { resource:Charles_Long property:occupation resource:politician . resource:Charles_Long property:occupation resource:acting_president }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q24505130 Q7412036 Q5080326
P40
Q502895
USER
Does Beeston Long have Samuel Long and Charles Long, 1st Baron Farnborough as a child ?
(Q24505130,P40,Q7412036) (Q24505130,P40,Q5080326)
action is_in
entity Q24505130
action intersection
action find_reverse
entity Q7412036
relation P40
action find_reverse
entity Q5080326
relation P40
['Q24505130', 'P40', 'Q7412036'] ['Q24505130', 'P40', 'Q5080326']
ASK WHERE { resource:Q24505130 property:P40 resource:Q7412036 . resource:Q24505130 property:P40 resource:Q5080326 }
Beeston Long Samuel Long Charles Long, 1st Baron Farnborough
action is_in
entity Beeston Long
action intersection
action find_reverse
entity Samuel Long
relation child
action find_reverse
entity Charles Long, 1st Baron Farnborough
relation child
['Beeston Long', 'child', 'Samuel Long'] ['Beeston Long', 'child', 'Charles Long, 1st Baron Farnborough']
ASK WHERE { resource:Beeston_Long property:child resource:Samuel_Long . resource:Beeston_Long property:child resource:Charles_Long,_1st_Baron_Farnborough }
[]
common name
SYSTEM
YES
(Q24505130,P40,Q7412036) (Q24505130,P40,Q5080326)
action is_in
entity Q24505130
action intersection
action find_reverse
entity Q7412036
relation P40
action find_reverse
entity Q5080326
relation P40
[ANSWER]
['Q24505130', 'P40', 'Q7412036'] ['Q24505130', 'P40', 'Q5080326']
ASK WHERE { resource:Q24505130 property:P40 resource:Q7412036 . resource:Q24505130 property:P40 resource:Q5080326 }
Yes
action is_in
entity Beeston Long
action intersection
action find_reverse
entity Samuel Long
relation child
action find_reverse
entity Charles Long, 1st Baron Farnborough
relation child
['Beeston Long', 'child', 'Samuel Long'] ['Beeston Long', 'child', 'Charles Long, 1st Baron Farnborough']
ASK WHERE { resource:Beeston_Long property:child resource:Samuel_Long . resource:Beeston_Long property:child resource:Charles_Long,_1st_Baron_Farnborough }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q24505130
P40
Q502895
USER
How many people have Beeston Long as a child ?
(c(Q502895),P40,Q24505130)
action count
action filter_type
action find_reverse
entity Q24505130
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q24505130']
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P40 resource:Q24505130 . ?b rdf:type ontology:Q502895 }
Beeston Long
action count
action filter_type
action find_reverse
entity Beeston Long
relation child
type common name
[{'concept': 'common name'}, 'child', 'Beeston Long']
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:child resource:Beeston_Long . ?b rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q24503395
(c(Q502895),P40,Q24505130)
action count
action filter_type
action find_reverse
entity Q24505130
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q24505130']
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P40 resource:Q24505130 . ?b rdf:type ontology:Q502895 }
Charles Long
1
action count
action filter_type
action find_reverse
entity Beeston Long
relation child
type common name
[{'concept': 'common name'}, 'child', 'Beeston Long']
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:child resource:Beeston_Long . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q78224
P20
Q486972
USER
Where did the demise of Charles Gustav of Baden-Durlach occur ?
(Q78224,P20,c(Q486972))
action filter_type
action find
entity Q78224
relation P20
type Q486972
['Q78224', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { resource:Q78224 property:P20 ?z . ?z rdf:type ontology:Q486972 }
Charles Gustav of Baden-Durlach
action filter_type
action find
entity Charles Gustav of Baden-Durlach
relation place of death
type human settlement
['Charles Gustav of Baden-Durlach', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { resource:Charles_Gustav_of_Baden-Durlach property:place_of_death ?z . ?z rdf:type ontology:human_settlement }
[]
human settlement
Q639876
SYSTEM
Durlach
Q639876
(Q78224,P20,c(Q486972))
action filter_type
action find
entity Q78224
relation P20
type Q486972
The demise of Charles Gustav of Baden-[ANSWER] occurred of [ANSWER]
['Q78224', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { resource:Q78224 property:P20 ?z . ?z rdf:type ontology:Q486972 }
Durlach
The demise of Charles Gustav of Baden-Durlach occurred of Durlach
Durlach
action filter_type
action find
entity Charles Gustav of Baden-Durlach
relation place of death
type human settlement
['Charles Gustav of Baden-Durlach', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { resource:Charles_Gustav_of_Baden-Durlach property:place_of_death ?z . ?z rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q78224
P7
Q502895
USER
Which people have that one as their brother ?
(c(Q502895),P7,Q639876)
action filter_type
action find_reverse
entity Q78224
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q639876']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P7 resource:Q78224 }
Charles Gustav of Baden-Durlach
action filter_type
action find_reverse
entity Charles Gustav of Baden-Durlach
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Durlach']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:brother resource:Charles_Gustav_of_Baden-Durlach }
[]
common name
Q6418921 Q62231 Q84558
SYSTEM
Johanna Elisabeth of Baden-Durlach, Frederick VII, Margrave of Baden-Durlach, Christine of Baden-Durlach
Q6418921 Q62231 Q84558
(c(Q502895),P7,Q639876)
action filter_type
action find_reverse
entity Q78224
relation P7
type Q502895
[ANSWERS] have that one as their brother
[{'concept': 'Q502895'}, 'P7', 'Q639876']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P7 resource:Q78224 }
Johanna Elisabeth of Baden-Durlach Frederick VII, Margrave of Baden-Durlach Christine of Baden-Durlach
Johanna Elisabeth of Baden-Durlach, Frederick VII, Margrave of Baden-Durlach and Christine of Baden-Durlach have that one as their brother
Johanna Elisabeth of Baden-Durlach Frederick VII, Margrave of Baden-Durlach Christine of Baden-Durlach
action filter_type
action find_reverse
entity Charles Gustav of Baden-Durlach
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Durlach']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:brother resource:Charles_Gustav_of_Baden-Durlach }
[]
Clarification
Simple Question|Single Entity|Indirect
Q62231
P26
Q502895
USER
Which person is the spouse of that one ?
(Q62231,P26,c(Q502895))
action filter_type
action find
entity Q62231
relation P26
type Q502895
['Q62231', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q62231 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Frederick VII, Margrave of Baden-Durlach
action filter_type
action find
entity Frederick VII, Margrave of Baden-Durlach
relation spouse
type common name
['Frederick VII, Margrave of Baden-Durlach', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Frederick_VII,_Margrave_of_Baden-Durlach property:spouse ?f . ?f rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q84558
SYSTEM
Did you mean Christine of Baden-Durlach ?
Q6418921 Q62231 Q84558
(Q6418921,P26,c(Q502895)) (Q62231,P26,c(Q502895)) (Q84558,P26,c(Q502895))
[ANSWER]
['Q6418921', 'P26', {'concept': 'Q502895'}] ['Q62231', 'P26', {'concept': 'Q502895'}] ['Q84558', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q62231 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Johanna Elisabeth of Baden-Durlach Frederick VII, Margrave of Baden-Durlach Christine of Baden-Durlach
Did you mean Christine of Baden-Durlach ?
Christine of Baden-Durlach
['Johanna Elisabeth of Baden-Durlach', 'spouse', {'concept': 'common name'}] ['Frederick VII, Margrave of Baden-Durlach', 'spouse', {'concept': 'common name'}] ['Christine of Baden-Durlach', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Frederick_VII,_Margrave_of_Baden-Durlach property:spouse ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Frederick VII, Margrave of Baden-Durlach. Could you tell me the answer for that?
(Q62231,P26,c(Q502895))
Q62231
['Q62231', 'P26', {'concept': 'Q502895'}]
['Frederick VII, Margrave of Baden-Durlach', 'spouse', {'concept': 'common name'}]
[]
Q3629556
SYSTEM
Augusta Maria di Holstein-Gottorp
Q3629556
(Q62231,P26,c(Q502895))
action filter_type
action find
entity Q62231
relation P26
type Q502895
[ANSWER] is the spouse of that one
['Q62231', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q62231 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Augusta Maria di Holstein-Gottorp
Augusta Maria di Holstein-Gottorp is the spouse of that one
Augusta Maria di Holstein-Gottorp
action filter_type
action find
entity Frederick VII, Margrave of Baden-Durlach
relation spouse
type common name
['Frederick VII, Margrave of Baden-Durlach', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Frederick_VII,_Margrave_of_Baden-Durlach property:spouse ?f . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q7412036
P21 P40
Q502895
USER
Which people have Samuel Long as an offspring and have the gender as male ?
AND((c(Q502895),P40,Q7412036), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7412036
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q7412036'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?j WHERE { ?j property:P40 resource:Q7412036 . ?j property:P21 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
male Samuel Long
action filter_type
action intersection
action find_reverse
entity Samuel Long
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Samuel Long'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?j WHERE { ?j property:child resource:Samuel_Long . ?j property:gender resource:male . ?j rdf:type ontology:common_name }
[]
common name
Q24505130
SYSTEM
Beeston Long
Q24505130
AND((c(Q502895),P40,Q7412036), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7412036
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
And [ANSWER] have Samuel Long as an offspring and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q7412036'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?j WHERE { ?j property:P40 resource:Q7412036 . ?j property:P21 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
Beeston Long
And Beeston Long have Samuel Long as an offspring and have the gender as male
Beeston Long
action filter_type
action intersection
action find_reverse
entity Samuel Long
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Samuel Long'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?j WHERE { ?j property:child resource:Samuel_Long . ?j property:gender resource:male . ?j rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q24505130 Q17423532
P40
Q502895
USER
Is William Long a successor of that one ?
(Q24505130,P40,Q17423532)
action is_in
entity Q17423532
action find
entity Q24505130
relation P40
['Q24505130', 'P40', 'Q17423532']
ASK WHERE { resource:Q24505130 property:P40 resource:Q17423532 }
Beeston Long William Long
action is_in
entity William Long
action find
entity Beeston Long
relation child
['Beeston Long', 'child', 'William Long']
ASK WHERE { resource:Beeston_Long property:child resource:William_Long }
[]
common name
SYSTEM
YES
(Q24505130,P40,Q17423532)
action is_in
entity Q17423532
action find
entity Q24505130
relation P40
[ANSWER]
['Q24505130', 'P40', 'Q17423532']
ASK WHERE { resource:Q24505130 property:P40 resource:Q17423532 }
Yes
action is_in
entity William Long
action find
entity Beeston Long
relation child
['Beeston Long', 'child', 'William Long']
ASK WHERE { resource:Beeston_Long property:child resource:William_Long }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q24505130
P27
Q7275
USER
Which state is Beeston Long a civilian of ?
action filter_type
action find
entity Q24505130
relation P27
type Q7275
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7275 . resource:Q24505130 property:P27 ?x }
Beeston Long
action filter_type
action find
entity Beeston Long
relation country of citizenship
type state
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:state . resource:Beeston_Long property:country_of_citizenship ?x }
[]
state
Q161885
SYSTEM
Kingdom of Great Britain
Q161885
action filter_type
action find
entity Q24505130
relation P27
type Q7275
[ANSWER] is Beeston Long a civilian of
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7275 . resource:Q24505130 property:P27 ?x }
Kingdom of Great Britain
Kingdom of Great Britain is Beeston Long a civilian of
Kingdom of Great Britain
action filter_type
action find
entity Beeston Long
relation country of citizenship
type state
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:state . resource:Beeston_Long property:country_of_citizenship ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q161885
P36
Q56061
USER
Which administrative territory is associated to that state as the capital ?
(Q161885,P36,c(Q56061))
action filter_type
action find
entity Q161885
relation P36
type Q56061
['Q161885', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q161885 property:P36 ?q . ?q rdf:type ontology:Q56061 }
Kingdom of Great Britain
action filter_type
action find
entity Kingdom of Great Britain
relation capital
type administrative territorial entity
['Kingdom of Great Britain', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Kingdom_of_Great_Britain property:capital ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q161885,P36,c(Q56061))
action filter_type
action find
entity Q161885
relation P36
type Q56061
[ANSWER] is associated to that state as the capital
['Q161885', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q161885 property:P36 ?q . ?q rdf:type ontology:Q56061 }
London
London is associated to that state as the capital
London
action filter_type
action find
entity Kingdom of Great Britain
relation capital
type administrative territorial entity
['Kingdom of Great Britain', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Kingdom_of_Great_Britain property:capital ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q23978540 Q161885
P937 P36
Q56061
USER
Which administrative territories are the capitals of Kingdom of Great Britain and are the work locations of Thomas Smith Cafe ?
AND((Q161885,P36,c(Q56061)), (Q23978540,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q161885
relation P36
action find
entity Q23978540
relation P937
type Q56061
{'AND': [['Q161885', 'P36', {'concept': 'Q56061'}], ['Q23978540', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { resource:Q161885 property:P36 ?v . resource:Q23978540 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Thomas Smith Cafe Kingdom of Great Britain
action filter_type
action intersection
action find
entity Kingdom of Great Britain
relation capital
action find
entity Thomas Smith Cafe
relation work location
type administrative territorial entity
{'AND': [['Kingdom of Great Britain', 'capital', {'concept': 'administrative territorial entity'}], ['Thomas Smith Cafe', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Kingdom_of_Great_Britain property:capital ?v . resource:Thomas_Smith_Cafe property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
AND((Q161885,P36,c(Q56061)), (Q23978540,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q161885
relation P36
action find
entity Q23978540
relation P937
type Q56061
[ANSWER] is the capitals of Kingdom of Great Britain and is the work locations of Thomas Smith Cafe
{'AND': [['Q161885', 'P36', {'concept': 'Q56061'}], ['Q23978540', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { resource:Q161885 property:P36 ?v . resource:Q23978540 property:P937 ?v . ?v rdf:type ontology:Q56061 }
London
London is the capitals of Kingdom of Great Britain and is the work locations of Thomas Smith Cafe
London
action filter_type
action intersection
action find
entity Kingdom of Great Britain
relation capital
action find
entity Thomas Smith Cafe
relation work location
type administrative territorial entity
{'AND': [['Kingdom of Great Britain', 'capital', {'concept': 'administrative territorial entity'}], ['Thomas Smith Cafe', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Kingdom_of_Great_Britain property:capital ?v . resource:Thomas_Smith_Cafe property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]