Simple Question (Direct)
Simple Question
Q7408248
P641
Q349
USER
What did Sam Thomson participate in ?
(Q7408248,P641,c(Q349))
action filter_type
action find
entity Q7408248
relation P641
type Q349
['Q7408248', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q7408248 property:P641 ?s . ?s rdf:type ontology:Q349 }
Sam Thomson
action filter_type
action find
entity Sam Thomson
relation sport
type sport
['Sam Thomson', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Sam_Thomson property:sport ?s . ?s rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7408248,P641,c(Q349))
action filter_type
action find
entity Q7408248
relation P641
type Q349
Sam Thomson participated in [ANSWER]
['Q7408248', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q7408248 property:P641 ?s . ?s rdf:type ontology:Q349 }
association football
Sam Thomson participated in association football
association football
action filter_type
action find
entity Sam Thomson
relation sport
type sport
['Sam Thomson', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Sam_Thomson property:sport ?s . ?s rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7408248
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Sam Thomson ?
(Q7408248,P27,c(Q15617994))
action filter_type
action find
entity Q7408248
relation P27
type Q15617994
['Q7408248', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q7408248 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Sam Thomson
action filter_type
action find
entity Sam Thomson
relation country of citizenship
type designation for an administrative territorial entity
['Sam Thomson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Sam_Thomson property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q7408248,P27,c(Q15617994))
action filter_type
action find
entity Q7408248
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Sam Thomson
['Q7408248', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q7408248 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of citizenship of Sam Thomson
United Kingdom
action filter_type
action find
entity Sam Thomson
relation country of citizenship
type designation for an administrative territorial entity
['Sam Thomson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Sam_Thomson property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7408248
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q145,P19,c(Q56061))
action filter_type
action find
entity Q7408248
relation P19
type Q56061
['Q145', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q7408248 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Sam Thomson
action filter_type
action find
entity Sam Thomson
relation place of birth
type administrative territorial entity
['United Kingdom', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Sam_Thomson property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q6699724
SYSTEM
Lugar
Q6699724
(Q145,P19,c(Q56061))
action filter_type
action find
entity Q7408248
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q145', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q7408248 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Lugar
Lugar is the birthplace of that person
Lugar
action filter_type
action find
entity Sam Thomson
relation place of birth
type administrative territorial entity
['United Kingdom', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Sam_Thomson property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6699724 Q6243975
P19
Q502895
USER
Does John Langdon Bonython have place of birth as that administrative territory ?
(Q6243975,P19,Q6699724)
action is_in
entity Q6243975
action find
entity Q6699724
relation P19
['Q6243975', 'P19', 'Q6699724']
ASK WHERE { resource:Q6699724 property:P19 resource:Q6243975 }
Lugar John Langdon Bonython
action is_in
entity John Langdon Bonython
action find
entity Lugar
relation place of birth
['John Langdon Bonython', 'place of birth', 'Lugar']
ASK WHERE { resource:Lugar property:place_of_birth resource:John_Langdon_Bonython }
[]
common name
SYSTEM
NO
(Q6243975,P19,Q6699724)
action is_in
entity Q6243975
action find
entity Q6699724
relation P19
[ANSWER]
['Q6243975', 'P19', 'Q6699724']
ASK WHERE { resource:Q6699724 property:P19 resource:Q6243975 }
No
action is_in
entity John Langdon Bonython
action find
entity Lugar
relation place of birth
['John Langdon Bonython', 'place of birth', 'Lugar']
ASK WHERE { resource:Lugar property:place_of_birth resource:John_Langdon_Bonython }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q7408248 Q4724056
P54
Q1194951
USER
Is Sam Thomson a member of Algeria at the 2009 Mediterranean Games ?
(Q7408248,P54,Q4724056)
action is_in
entity Q4724056
action find
entity Q7408248
relation P54
['Q7408248', 'P54', 'Q4724056']
ASK WHERE { resource:Q7408248 property:P54 resource:Q4724056 }
Sam Thomson Algeria at the 2009 Mediterranean Games
action is_in
entity Algeria at the 2009 Mediterranean Games
action find
entity Sam Thomson
relation member of sports team
['Sam Thomson', 'member of sports team', 'Algeria at the 2009 Mediterranean Games']
ASK WHERE { resource:Sam_Thomson property:member_of_sports_team resource:Algeria_at_the_2009_Mediterranean_Games }
[]
national sports team
SYSTEM
NO
(Q7408248,P54,Q4724056)
action is_in
entity Q4724056
action find
entity Q7408248
relation P54
[ANSWER]
['Q7408248', 'P54', 'Q4724056']
ASK WHERE { resource:Q7408248 property:P54 resource:Q4724056 }
No
action is_in
entity Algeria at the 2009 Mediterranean Games
action find
entity Sam Thomson
relation member of sports team
['Sam Thomson', 'member of sports team', 'Algeria at the 2009 Mediterranean Games']
ASK WHERE { resource:Sam_Thomson property:member_of_sports_team resource:Algeria_at_the_2009_Mediterranean_Games }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q6699724 Q145
P17
Q15617994
USER
Is Lugar a part of United Kingdom ?
(Q6699724,P17,Q145)
action is_in
entity Q145
action find
entity Q6699724
relation P17
['Q6699724', 'P17', 'Q145']
ASK WHERE { resource:Q6699724 property:P17 resource:Q145 }
Lugar United Kingdom
action is_in
entity United Kingdom
action find
entity Lugar
relation country
['Lugar', 'country', 'United Kingdom']
ASK WHERE { resource:Lugar property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q6699724,P17,Q145)
action is_in
entity Q145
action find
entity Q6699724
relation P17
[ANSWER]
['Q6699724', 'P17', 'Q145']
ASK WHERE { resource:Q6699724 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Lugar
relation country
['Lugar', 'country', 'United Kingdom']
ASK WHERE { resource:Lugar property:country resource:United_Kingdom }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q434080 Q145
P530 P27
Q1048835
USER
Which political territories holds diplomatic relationship with United Kingdom and are not the countries of citizenship of Kyle Brodziak ?
AND((Q145,P530,c(Q1048835)), NOT((Q434080,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q145
relation P530
action find
entity Q434080
relation P27
type Q1048835
{'AND': [['Q145', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q434080', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?y WHERE { resource:Q145 property:P530 ?y . FILTER NOT EXISTS { resource:Q434080 property:P27 ?y } . ?y rdf:type ontology:Q1048835 }
Kyle Brodziak United Kingdom
action filter_type
action difference
action find
entity United Kingdom
relation diplomatic relation
action find
entity Kyle Brodziak
relation country of citizenship
type political territorial entity
{'AND': [['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Kyle Brodziak', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?y WHERE { resource:United_Kingdom property:diplomatic_relation ?y . FILTER NOT EXISTS { resource:Kyle_Brodziak property:country_of_citizenship ?y } . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
AND((Q145,P530,c(Q1048835)), NOT((Q434080,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q145
relation P530
action find
entity Q434080
relation P27
type Q1048835
[ANSWERS] hold diplomatic relationship with United Kingdom and are not the countries of citizenship of Kyle Brodziak
{'AND': [['Q145', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q434080', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?y WHERE { resource:Q145 property:P530 ?y . FILTER NOT EXISTS { resource:Q434080 property:P27 ?y } . ?y rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany hold diplomatic relationship with United Kingdom and are not the countries of citizenship of Kyle Brodziak
Australia Germany
action filter_type
action difference
action find
entity United Kingdom
relation diplomatic relation
action find
entity Kyle Brodziak
relation country of citizenship
type political territorial entity
{'AND': [['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Kyle Brodziak', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?y WHERE { resource:United_Kingdom property:diplomatic_relation ?y . FILTER NOT EXISTS { resource:Kyle_Brodziak property:country_of_citizenship ?y } . ?y rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3433116 Q7408248
P54
Q1194951
USER
What are the team that Sam Thomson or Jacob Berner are a member of ?
OR((Q7408248,P54,c(Q1194951)), (Q3433116,P54,c(Q1194951)))
action filter_type
action union
action find
entity Q7408248
relation P54
action find
entity Q3433116
relation P54
type Q1194951
{'OR': [['Q7408248', 'P54', {'concept': 'Q1194951'}], ['Q3433116', 'P54', {'concept': 'Q1194951'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q7408248 property:P54 ?j } UNION { resource:Q3433116 property:P54 ?j } } . ?j rdf:type ontology:Q1194951 }
Jacob Berner Sam Thomson
action filter_type
action union
action find
entity Sam Thomson
relation member of sports team
action find
entity Jacob Berner
relation member of sports team
type national sports team
{'OR': [['Sam Thomson', 'member of sports team', {'concept': 'national sports team'}], ['Jacob Berner', 'member of sports team', {'concept': 'national sports team'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Sam_Thomson property:member_of_sports_team ?j } UNION { resource:Jacob_Berner property:member_of_sports_team ?j } } . ?j rdf:type ontology:national_sports_team }
[]
national sports team
Q184387 Q34044
SYSTEM
Norway national football team, Scotland national football team
Q184387 Q34044
OR((Q7408248,P54,c(Q1194951)), (Q3433116,P54,c(Q1194951)))
action filter_type
action union
action find
entity Q7408248
relation P54
action find
entity Q3433116
relation P54
type Q1194951
The team that Sam Thomson or Jacob Berner are a member of are the [ANSWERS]
{'OR': [['Q7408248', 'P54', {'concept': 'Q1194951'}], ['Q3433116', 'P54', {'concept': 'Q1194951'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q7408248 property:P54 ?j } UNION { resource:Q3433116 property:P54 ?j } } . ?j rdf:type ontology:Q1194951 }
Norway national football team Scotland national football team
The team that Sam Thomson or Jacob Berner are a member of are the Norway national football team and Scotland national football team
Norway national football team Scotland national football team
action filter_type
action union
action find
entity Sam Thomson
relation member of sports team
action find
entity Jacob Berner
relation member of sports team
type national sports team
{'OR': [['Sam Thomson', 'member of sports team', {'concept': 'national sports team'}], ['Jacob Berner', 'member of sports team', {'concept': 'national sports team'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Sam_Thomson property:member_of_sports_team ?j } UNION { resource:Jacob_Berner property:member_of_sports_team ?j } } . ?j rdf:type ontology:national_sports_team }
[]