Simple Question (Direct)
Simple Question
Q2925023
P21
Q290
USER
Which sex does Brian Thomas belong to ?
(Q2925023,P21,c(Q290))
action filter_type
action find
entity Q2925023
relation P21
type Q290
['Q2925023', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q2925023 property:P21 ?f . ?f rdf:type ontology:Q290 }
Brian Thomas
action filter_type
action find
entity Brian Thomas
relation gender
type sex
['Brian Thomas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Brian_Thomas property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2925023,P21,c(Q290))
action filter_type
action find
entity Q2925023
relation P21
type Q290
Brian Thomas belongs to [ANSWER]
['Q2925023', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q2925023 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
Brian Thomas belongs to male
male
action filter_type
action find
entity Brian Thomas
relation gender
type sex
['Brian Thomas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Brian_Thomas property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2925023
P54
Q618123
USER
Which geographical objects are Brian Thomas a member of ?
(Q2925023,P54,c(Q618123))
action filter_type
action find
entity Q2925023
relation P54
type Q618123
['Q2925023', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?w WHERE { resource:Q2925023 property:P54 ?w . ?w rdf:type ontology:Q618123 }
Brian Thomas
action filter_type
action find
entity Brian Thomas
relation member of sports team
type geographical object
['Brian Thomas', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?w WHERE { resource:Brian_Thomas property:member_of_sports_team ?w . ?w rdf:type ontology:geographical_object }
[]
geographical object
Q1521270 Q841966
SYSTEM
Neath RFC, Swansea RFC
Q1521270 Q841966
(Q2925023,P54,c(Q618123))
action filter_type
action find
entity Q2925023
relation P54
type Q618123
[ANSWERS] are Brian Thomas a member of
['Q2925023', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?w WHERE { resource:Q2925023 property:P54 ?w . ?w rdf:type ontology:Q618123 }
Neath RFC Swansea RFC
Neath RFC and Swansea RFC are Brian Thomas a member of
Neath RFC Swansea RFC
action filter_type
action find
entity Brian Thomas
relation member of sports team
type geographical object
['Brian Thomas', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?w WHERE { resource:Brian_Thomas property:member_of_sports_team ?w . ?w rdf:type ontology:geographical_object }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1521270
P466
Q1076486
USER
What was inhabited by that geographical object ?
(c(Q1076486),P466,Q1521270)
action filter_type
action find_reverse
entity Q1521270
relation P466
type Q1076486
[{'concept': 'Q1076486'}, 'P466', 'Q1521270']
SELECT DISTINCT ?n WHERE { ?n property:P466 resource:Q1521270 . ?n rdf:type ontology:Q1076486 }
Neath RFC
action filter_type
action find_reverse
entity Neath RFC
relation occupant
type sports venue
[{'concept': 'sports venue'}, 'occupant', 'Neath RFC']
SELECT DISTINCT ?n WHERE { ?n property:occupant resource:Neath_RFC . ?n rdf:type ontology:sports_venue }
[]
sports venue
Clarification for simple ques.
Q1521270
SYSTEM
Did you mean Neath RFC ?
Q1521270 Q841966
(c(Q1076486),P466,Q1521270) (c(Q1076486),P466,Q841966)
[ANSWER]
[{'concept': 'Q1076486'}, 'P466', 'Q1521270'] [{'concept': 'Q1076486'}, 'P466', 'Q841966']
SELECT DISTINCT ?n WHERE { ?n property:P466 resource:Q1521270 . ?n rdf:type ontology:Q1076486 }
Neath RFC Swansea RFC
Did you mean Neath RFC ?
Neath RFC
[{'concept': 'sports venue'}, 'occupant', 'Neath RFC'] [{'concept': 'sports venue'}, 'occupant', 'Swansea RFC']
SELECT DISTINCT ?n WHERE { ?n property:occupant resource:Neath_RFC . ?n rdf:type ontology:sports_venue }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q1076486),P466,Q1521270)
[{'concept': 'Q1076486'}, 'P466', 'Q1521270']
[{'concept': 'sports venue'}, 'occupant', 'Neath RFC']
[]
Q12137653
SYSTEM
The Gnoll
Q12137653
(c(Q1076486),P466,Q1521270)
action filter_type
action find_reverse
entity Q1521270
relation P466
type Q1076486
[ANSWER] was inhabited by that geographical object
[{'concept': 'Q1076486'}, 'P466', 'Q1521270']
SELECT DISTINCT ?n WHERE { ?n property:P466 resource:Q1521270 . ?n rdf:type ontology:Q1076486 }
The Gnoll
The Gnoll was inhabited by that geographical object
The Gnoll
action filter_type
action find_reverse
entity Neath RFC
relation occupant
type sports venue
[{'concept': 'sports venue'}, 'occupant', 'Neath RFC']
SELECT DISTINCT ?n WHERE { ?n property:occupant resource:Neath_RFC . ?n rdf:type ontology:sports_venue }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q12137653 Q46797 Q145
P17
Q15617994
USER
Is that sports venue located in Mirano and United Kingdom ?
(Q12137653,P17,Q46797) (Q12137653,P17,Q145)
action is_in
entity Q12137653
action intersection
action find_reverse
entity Q46797
relation P17
action find_reverse
entity Q145
relation P17
['Q12137653', 'P17', 'Q46797'] ['Q12137653', 'P17', 'Q145']
ASK WHERE { resource:Q12137653 property:P17 resource:Q46797 . resource:Q12137653 property:P17 resource:Q145 }
The Gnoll Mirano United Kingdom
action is_in
entity The Gnoll
action intersection
action find_reverse
entity Mirano
relation country
action find_reverse
entity United Kingdom
relation country
['The Gnoll', 'country', 'Mirano'] ['The Gnoll', 'country', 'United Kingdom']
ASK WHERE { resource:The_Gnoll property:country resource:Mirano . resource:The_Gnoll property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q12137653,P17,Q46797) (Q12137653,P17,Q145)
action is_in
entity Q12137653
action intersection
action find_reverse
entity Q46797
relation P17
action find_reverse
entity Q145
relation P17
[ANSWER]
['Q12137653', 'P17', 'Q46797'] ['Q12137653', 'P17', 'Q145']
ASK WHERE { resource:Q12137653 property:P17 resource:Q46797 . resource:Q12137653 property:P17 resource:Q145 }
NO and YES respectively
action is_in
entity The Gnoll
action intersection
action find_reverse
entity Mirano
relation country
action find_reverse
entity United Kingdom
relation country
['The Gnoll', 'country', 'Mirano'] ['The Gnoll', 'country', 'United Kingdom']
ASK WHERE { resource:The_Gnoll property:country resource:Mirano . resource:The_Gnoll property:country resource:United_Kingdom }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12137653
P466
Q618123
USER
Who is an occupant of The Gnoll ?
(Q12137653,P466,c(Q618123))
action filter_type
action find
entity Q12137653
relation P466
type Q618123
['Q12137653', 'P466', {'concept': 'Q618123'}]
SELECT DISTINCT ?i WHERE { resource:Q12137653 property:P466 ?i . ?i rdf:type ontology:Q618123 }
The Gnoll
action filter_type
action find
entity The Gnoll
relation occupant
type geographical object
['The Gnoll', 'occupant', {'concept': 'geographical object'}]
SELECT DISTINCT ?i WHERE { resource:The_Gnoll property:occupant ?i . ?i rdf:type ontology:geographical_object }
[]
geographical object
Q1521270
SYSTEM
Neath RFC
Q1521270
(Q12137653,P466,c(Q618123))
action filter_type
action find
entity Q12137653
relation P466
type Q618123
An occupant of The Gnoll is Lord [ANSWER]
['Q12137653', 'P466', {'concept': 'Q618123'}]
SELECT DISTINCT ?i WHERE { resource:Q12137653 property:P466 ?i . ?i rdf:type ontology:Q618123 }
Neath RFC
An occupant of The Gnoll is Lord Neath RFC
Neath RFC
action filter_type
action find
entity The Gnoll
relation occupant
type geographical object
['The Gnoll', 'occupant', {'concept': 'geographical object'}]
SELECT DISTINCT ?i WHERE { resource:The_Gnoll property:occupant ?i . ?i rdf:type ontology:geographical_object }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1521270
P54 P21
Q502895
USER
Which people play for the team named Neath RFC and are a male ?
AND((c(Q502895),P54,Q1521270), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1521270
relation P54
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P54', 'Q1521270'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?k WHERE { ?k property:P54 resource:Q1521270 . ?k property:P21 resource:Q6581097 . ?k rdf:type ontology:Q502895 }
male Neath RFC
action filter_type
action intersection
action find_reverse
entity Neath RFC
relation member of sports team
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of sports team', 'Neath RFC'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?k WHERE { ?k property:member_of_sports_team resource:Neath_RFC . ?k property:gender resource:male . ?k rdf:type ontology:common_name }
[]
common name
Q3476218 Q6193677 Q5234750 Q7678702 Q6536435 Q2866086 Q3050840 Q5623800 Q5292513 Q3012016
SYSTEM
Some of them are Scott Gibbs, Jim Birch, David Harris Davies, Tal Harris, Lewis Cobden Thomas, Arwel Thomas, Elgan Rees, Gwyn Thomas, Don Devereux, Dai Morris
Q5495530 Q525873 Q5623800 Q16212127 Q5237721 Q5593419 Q7176932 Q4797944 Q3195767 Q3228892 Q3050840 Q350686 Q6244480 Q4799486 Q6513047 Q5235622 Q2825023 Q6147393 Q5208990 Q6260713 Q3001503 Q5386454 Q7626511 Q2925033 Q3453280 Q4925842 Q3237297 Q2979449 Q5921699 Q4714179 Q15998730 Q16008200 Q3012016 Q2925023 Q5523005 Q2866086 Q3476218 Q3524230 Q2837676 Q930461 Q6228764 Q6393873 Q7814803 Q6519569 Q6317431 Q16223279 Q5951282 Q8014552 Q3498970 Q6708332 Q6969374 Q2885809 Q4741760 Q531221 Q5346920 Q5218391 Q3445784 Q1115849 Q20022443 Q7791892 Q2662059 Q5209004 Q5921747 Q5234750 Q5292513 Q7814961 Q7372175 Q5661301 Q285258 Q7678702 Q7965960 Q261477 Q4799063 Q6536435 Q6437973 Q6530999 Q3063897 Q5233468 Q2924631 Q4910477 Q5085414 Q4685352 Q7817632 Q3304186 Q5236691 Q6193677 Q1558855 Q3195786 Q3372289 Q3423032 Q5209027 Q3399714 Q7790756 Q8017521 Q5572885 Q5496060 Q5572880 Q4965353 Q5238568 Q5572889 Q5344807 Q6768286 Q7325568 Q3016529 Q7411123 Q16228121 Q6529155 Q5543774 Q503776 Q863024
AND((c(Q502895),P54,Q1521270), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1521270
relation P54
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] play for the team named Neath RFC and are a male
{'AND': [[{'concept': 'Q502895'}, 'P54', 'Q1521270'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?k WHERE { ?k property:P54 resource:Q1521270 . ?k property:P21 resource:Q6581097 . ?k rdf:type ontology:Q502895 }
Fred Hutchinson Shane Williams Gwyn Thomas Ness Flowers David Morgan Evans Grahame Hodgson Peter Sidoli Arthur Bassett Kevin Morgan Lee Jarvis Elgan Rees Adam Rhys Jones John Leighton Davies Arthur Lemon Lee Beach David Jenkins Adrian Durston Jamie Ringer Dai Edwards John Thorley Courtney Meredith Eric Evans Stuart Evans Brian Williams Rupert Moon Bleddyn Taylor Lewis Jones Clive Williams Howell Davies Alec Jenkins Joe Pullman Glyn Gething Dai Morris Brian Thomas Gareth Williams Arwel Thomas Scott Gibbs Thierry Devergie Allan Bateman Duncan Jones John Davies Keri Jones Tom Arthur Leigh Davies Justin Burnell James Merriman Huw Richards William Lewis Thomas Steve Jones Lyn Jones Nathan Thomas Barry Williams Ambrose Baker Emyr Wyn Lewis Edwin Williams Daniel Pascoe Roy John Jonathan Davies Mark Bennett Thomas Lloyd Harold Thomas Dai Hiddlestone Howell Jones David Harris Davies Don Devereux Tom Billups Rowland Phillips Harold Jones Ron Waldron Tal Harris Walter Rice Evans Gareth Llewellyn Arthur Hickman Lewis Cobden Thomas Kristian Phillips Leslie Manfield Fabrice Landreau David Evans Brett Sinkinson Bill Perry Charlie Pugh Adrian Shaw Tom Smith Mefin Davies David Llewellyn Jim Birch Paul James Kevin Phillips Paul Thorburn Rees Stephens Dai Prosser Tavis Knoyle Thomas Hollingdale William Richard Arnold Glyn Shaw Fred Perrett Glyn Prosser Brian Sparks David Pickering Glyn Stephens Edward Pegge Mark Jones Richard Eyres Darren Morris Samuel Clark Brian Radford Les Anthony George Rees Andrew Bishop Billy Boston
Scott Gibbs, Jim Birch, David Harris Davies, Tal Harris, Lewis Cobden Thomas, Arwel Thomas, Elgan Rees, Gwyn Thomas, Don Devereux and Dai Morris play for the team named Neath RFC and are a male
Scott Gibbs Jim Birch David Harris Davies Tal Harris Lewis Cobden Thomas Arwel Thomas Elgan Rees Gwyn Thomas Don Devereux Dai Morris
action filter_type
action intersection
action find_reverse
entity Neath RFC
relation member of sports team
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of sports team', 'Neath RFC'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?k WHERE { ?k property:member_of_sports_team resource:Neath_RFC . ?k property:gender resource:male . ?k rdf:type ontology:common_name }
[]