Simple Question (Direct)
Simple Question
Q729121
P734
Q82799
USER
Which name is associated with Alasdair Gray ?
(Q729121,P734,c(Q82799))
action filter_type
action find
entity Q729121
relation P734
type Q82799
['Q729121', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q729121 property:P734 ?k . ?k rdf:type ontology:Q82799 }
Alasdair Gray
action filter_type
action find
entity Alasdair Gray
relation family name
type name
['Alasdair Gray', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Alasdair_Gray property:family_name ?k . ?k rdf:type ontology:name }
[]
name
Q1544042
SYSTEM
Gray
Q1544042
(Q729121,P734,c(Q82799))
action filter_type
action find
entity Q729121
relation P734
type Q82799
[ANSWER]
['Q729121', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q729121 property:P734 ?k . ?k rdf:type ontology:Q82799 }
Gray
Gray
action filter_type
action find
entity Alasdair Gray
relation family name
type name
['Alasdair Gray', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Alasdair_Gray property:family_name ?k . ?k rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q729121
P50
Q2342494
USER
What are the collectables written by that person ?
(c(Q2342494),P50,Q1544042)
action filter_type
action find_reverse
entity Q729121
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q1544042']
SELECT DISTINCT ?c WHERE { ?c property:P50 resource:Q729121 . ?c rdf:type ontology:Q2342494 }
Alasdair Gray
action filter_type
action find_reverse
entity Alasdair Gray
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Gray']
SELECT DISTINCT ?c WHERE { ?c property:author resource:Alasdair_Gray . ?c rdf:type ontology:collectable }
[]
collectable
Q7560123 Q4657306 Q6482902
SYSTEM
Something Leather, A History Maker, Lanark: A Life in Four Books
Q7560123 Q7084507 Q4657306 Q7719294 Q6482902 Q4580264 Q7733205 Q7228828
(c(Q2342494),P50,Q1544042)
action filter_type
action find_reverse
entity Q729121
relation P50
type Q2342494
[ANSWERS]
[{'concept': 'Q2342494'}, 'P50', 'Q1544042']
SELECT DISTINCT ?c WHERE { ?c property:P50 resource:Q729121 . ?c rdf:type ontology:Q2342494 }
Something Leather Old Men In Love A History Maker The Book of Prefaces Lanark: A Life in Four Books 1982, Janine The Fall of Kelvin Walker: A Fable of the Sixties Poor Things
Something Leather A History Maker Lanark: A Life in Four Books
action filter_type
action find_reverse
entity Alasdair Gray
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Gray']
SELECT DISTINCT ?c WHERE { ?c property:author resource:Alasdair_Gray . ?c rdf:type ontology:collectable }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7560123
P364
Q34770
USER
Which language was used originally for the creation of that collectable ?
(Q7560123,P364,c(Q34770))
action filter_type
action find
entity Q7560123
relation P364
type Q34770
['Q7560123', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q7560123 property:P364 ?b . ?b rdf:type ontology:Q34770 }
Something Leather
action filter_type
action find
entity Something Leather
relation original language of work
type language
['Something Leather', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Something_Leather property:original_language_of_work ?b . ?b rdf:type ontology:language }
[]
language
Clarification for simple ques.
Q4657306
SYSTEM
Did you mean A History Maker ?
Q7560123 Q4657306 Q6482902
(Q7560123,P364,c(Q34770)) (Q4657306,P364,c(Q34770)) (Q6482902,P364,c(Q34770))
[ANSWER]
['Q7560123', 'P364', {'concept': 'Q34770'}] ['Q4657306', 'P364', {'concept': 'Q34770'}] ['Q6482902', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q7560123 property:P364 ?b . ?b rdf:type ontology:Q34770 }
Something Leather A History Maker Lanark: A Life in Four Books
Did you mean A History Maker ?
A History Maker
['Something Leather', 'original language of work', {'concept': 'language'}] ['A History Maker', 'original language of work', {'concept': 'language'}] ['Lanark: A Life in Four Books', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Something_Leather property:original_language_of_work ?b . ?b rdf:type ontology:language }
[]
Simple Question (Coreferenced)
USER
No, I meant Something Leather. Could you tell me the answer for that?
(Q7560123,P364,c(Q34770))
Q7560123
['Q7560123', 'P364', {'concept': 'Q34770'}]
['Something Leather', 'original language of work', {'concept': 'language'}]
[]
Q1860
SYSTEM
English
Q1860
(Q7560123,P364,c(Q34770))
action filter_type
action find
entity Q7560123
relation P364
type Q34770
[ANSWER]
['Q7560123', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q7560123 property:P364 ?b . ?b rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Something Leather
relation original language of work
type language
['Something Leather', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Something_Leather property:original_language_of_work ?b . ?b rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7560123
P136
Q1792379
USER
What can be considered as category for Something Leather ?
(Q7560123,P136,c(Q1792379))
action filter_type
action find
entity Q7560123
relation P136
type Q1792379
['Q7560123', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?r WHERE { resource:Q7560123 property:P136 ?r . ?r rdf:type ontology:Q1792379 }
Something Leather
action filter_type
action find
entity Something Leather
relation genre
type art genre
['Something Leather', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?r WHERE { resource:Something_Leather property:genre ?r . ?r rdf:type ontology:art_genre }
[]
art genre
Q8261
SYSTEM
novel
Q8261
(Q7560123,P136,c(Q1792379))
action filter_type
action find
entity Q7560123
relation P136
type Q1792379
[ANSWER]
['Q7560123', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?r WHERE { resource:Q7560123 property:P136 ?r . ?r rdf:type ontology:Q1792379 }
novel
novel
action filter_type
action find
entity Something Leather
relation genre
type art genre
['Something Leather', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?r WHERE { resource:Something_Leather property:genre ?r . ?r rdf:type ontology:art_genre }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q491657
Q1792379
USER
And also tell me about The Very Hungry Caterpillar?
(Q491657,P136,c(Q1792379))
action filter_type
action find
entity Q491657
relation P136
type Q1792379
['Q491657', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1792379 . resource:Q491657 property:P136 ?f }
The Very Hungry Caterpillar
action filter_type
action find
entity The Very Hungry Caterpillar
relation genre
type art genre
['The Very Hungry Caterpillar', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:art_genre . resource:The_Very_Hungry_Caterpillar property:genre ?f }
[]
art genre
Q131539
SYSTEM
children's literature
Q131539
(Q491657,P136,c(Q1792379))
action filter_type
action find
entity Q491657
relation P136
type Q1792379
[ANSWER]
['Q491657', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1792379 . resource:Q491657 property:P136 ?f }
children's literature
children's literature
action filter_type
action find
entity The Very Hungry Caterpillar
relation genre
type art genre
['The Very Hungry Caterpillar', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:art_genre . resource:The_Very_Hungry_Caterpillar property:genre ?f }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1086661 Q1544042
P1412 P407
Q34770
USER
Which languages are the languages of work for Gray and do Christopher Fox speak in ?
AND((Q1544042,P407,c(Q34770)), (Q1086661,P1412,c(Q34770)))
action filter_type
action intersection
action find
entity Q1544042
relation P407
action find
entity Q1086661
relation P1412
type Q34770
{'AND': [['Q1544042', 'P407', {'concept': 'Q34770'}], ['Q1086661', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?u WHERE { resource:Q1544042 property:P407 ?u . resource:Q1086661 property:P1412 ?u . ?u rdf:type ontology:Q34770 }
Christopher Fox Gray
action filter_type
action intersection
action find
entity Gray
relation language of work or name
action find
entity Christopher Fox
relation languages spoken, written or signed
type language
{'AND': [['Gray', 'language of work or name', {'concept': 'language'}], ['Christopher Fox', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?u WHERE { resource:Gray property:language_of_work_or_name ?u . resource:Christopher_Fox property:languages_spoken,_written_or_signed ?u . ?u rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
AND((Q1544042,P407,c(Q34770)), (Q1086661,P1412,c(Q34770)))
action filter_type
action intersection
action find
entity Q1544042
relation P407
action find
entity Q1086661
relation P1412
type Q34770
[ANSWER]
{'AND': [['Q1544042', 'P407', {'concept': 'Q34770'}], ['Q1086661', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?u WHERE { resource:Q1544042 property:P407 ?u . resource:Q1086661 property:P1412 ?u . ?u rdf:type ontology:Q34770 }
English
English
action filter_type
action intersection
action find
entity Gray
relation language of work or name
action find
entity Christopher Fox
relation languages spoken, written or signed
type language
{'AND': [['Gray', 'language of work or name', {'concept': 'language'}], ['Christopher Fox', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?u WHERE { resource:Gray property:language_of_work_or_name ?u . resource:Christopher_Fox property:languages_spoken,_written_or_signed ?u . ?u rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1544042
P734 P21
Q502895
USER
Which people have Gray as last name and have the gender as male ?
AND((c(Q502895),P734,Q1544042), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1544042
relation P734
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q1544042'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?l WHERE { ?l property:P734 resource:Q1544042 . ?l property:P21 resource:Q6581097 . ?l rdf:type ontology:Q502895 }
male Gray
action filter_type
action intersection
action find_reverse
entity Gray
relation family name
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Gray'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?l WHERE { ?l property:family_name resource:Gray . ?l property:gender resource:male . ?l rdf:type ontology:common_name }
[]
common name
Q644053 Q3699938 Q3758498 Q314583 Q1119607 Q315516 Q3761257 Q21517595 Q497126 Q3976227
SYSTEM
Some of them are Chad Gray, Cyrus Gray, Gary Gray, Paul Gray, Steven Gray, Thomas Gray, Gerry Gray, David Wm Gray, Michael Gray, Stuart Gray
Q862801 Q19666804 Q3758498 Q630845 Q4020030 Q6272093 Q809043 Q369975 Q3699938 Q21585450 Q3068781 Q3809685 Q6504102 Q347356 Q977031 Q16300672 Q21517595 Q24808780 Q362056 Q4021145 Q3713537 Q3268856 Q730223 Q1740384 Q22563868 Q3752622 Q1209698 Q5301126 Q3706307 Q432288 Q729121 Q318449 Q17180627 Q2442574 Q129130 Q1740154 Q10380241 Q209365 Q3736397 Q1119607 Q5106707 Q127501 Q111770 Q16239542 Q2345652 Q7224854 Q21416492 Q540667 Q3814394 Q3979078 Q1291514 Q974566 Q310456 Q315516 Q3761257 Q662134 Q4754788 Q583375 Q3812687 Q708648 Q514288 Q92606 Q516216 Q941544 Q16199151 Q3701326 Q314583 Q315197 Q654761 Q720095 Q497126 Q974370 Q320915 Q968718 Q1348345 Q40319 Q23640214 Q302068 Q644053 Q509691 Q551288 Q3830303 Q777219 Q321917 Q717059 Q191963 Q6810710 Q522440 Q961187 Q16236171 Q13358595 Q1593276 Q3976227
AND((c(Q502895),P734,Q1544042), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1544042
relation P734
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q1544042'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?l WHERE { ?l property:P734 resource:Q1544042 . ?l property:P21 resource:Q6581097 . ?l rdf:type ontology:Q502895 }
Evric Gray Bryshere Y. Gray Gary Gray James Gray William Gray Jonas Gray Barry Gray Harry B. Gray Cyrus Gray Ben Gray Vincent C. Gray John de Gray Lawrence Gray Asa Gray Steven Gray Roland Gray David Wm Gray Gordon Gray Rocky Gray Wyndol Gray Don Gray Julian Gray John Gray Wardell Gray Sam Gray Fred Gray Michael Gray Dougie Gray Devin Gray Harold Gray Alasdair Gray Elisha Gray Hughan Gray Tony Gray John Gray Kevin Gray Phil Gray Richie Gray Ezio Maria Gray Steven Gray Chris Gray Dunc Gray Eddie Gray Demarai Gray Stuart Gray Terry Gray Don Gray Samuel Frederick Gray Kelly Gray Sylvester Gray Johnny Gray John Gray George Robert Gray Thomas Gray Gerry Gray Taj Gray Andre Gray Derrick Gray Kameron Gray Martin Gray David Gray Jim Gray Andy Gray Keith Gray Colin Keith Gray Damon Gray Paul Gray Stephen Gray Justin Gray The One Man Gang Michael Gray Cyd Gray David Gray Bruce Gray Gordon Gray Henry Gray David Barry Gray Aaron Gray Chad Gray Frank Gray Louis Harold Gray Leonard Gray Robert Gray Spalding Gray Arvella Gray John Edward Gray Mel Gray John N. Gray Charles Gray Jonny Gray Jerry Gray Willoughby Gray Stuart Gray
Chad Gray Cyrus Gray Gary Gray Paul Gray Steven Gray Thomas Gray Gerry Gray David Wm Gray Michael Gray Stuart Gray
action filter_type
action intersection
action find_reverse
entity Gray
relation family name
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Gray'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?l WHERE { ?l property:family_name resource:Gray . ?l property:gender resource:male . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q644053 Q3699938 Q3758498 Q314583 Q1119607 Q315516 Q3761257 Q21517595 Q497126 Q3976227
P106
Q12737077
USER
What do Chad Gray, Cyrus Gray, Gary Gray, Paul Gray, Steven Gray, Thomas Gray, Gerry Gray, David Wm Gray, Michael Gray and Stuart Gray do for a living ?
(Q644053,P106,c(Q12737077)) (Q3699938,P106,c(Q12737077)) (Q3758498,P106,c(Q12737077)) (Q314583,P106,c(Q12737077)) (Q1119607,P106,c(Q12737077)) (Q315516,P106,c(Q12737077)) (Q3761257,P106,c(Q12737077)) (Q21517595,P106,c(Q12737077)) (Q497126,P106,c(Q12737077)) (Q3976227,P106,c(Q12737077))
action union
action filter_type
action find
entity Q644053
relation P106
type Q12737077
action filter_type
action find
entity Q3699938
relation P106
type Q12737077
action filter_type
action find
entity Q3758498
relation P106
type Q12737077
action filter_type
action find
entity Q314583
relation P106
type Q12737077
action filter_type
action find
entity Q1119607
relation P106
type Q12737077
action filter_type
action find
entity Q315516
relation P106
type Q12737077
action filter_type
action find
entity Q3761257
relation P106
type Q12737077
action filter_type
action find
entity Q21517595
relation P106
type Q12737077
action filter_type
action find
entity Q497126
relation P106
type Q12737077
action filter_type
action find
entity Q3976227
relation P106
type Q12737077
['Q644053', 'P106', {'concept': 'Q12737077'}] ['Q3699938', 'P106', {'concept': 'Q12737077'}] ['Q3758498', 'P106', {'concept': 'Q12737077'}] ['Q314583', 'P106', {'concept': 'Q12737077'}] ['Q1119607', 'P106', {'concept': 'Q12737077'}] ['Q315516', 'P106', {'concept': 'Q12737077'}] ['Q3761257', 'P106', {'concept': 'Q12737077'}] ['Q21517595', 'P106', {'concept': 'Q12737077'}] ['Q497126', 'P106', {'concept': 'Q12737077'}] ['Q3976227', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { resource:Q3699938 property:P106 ?x . ?x rdf:type ontology:Q12737077 } UNION { ?x rdf:type ontology:Q12737077 . resource:Q644053 property:P106 ?x } }
Chad Gray Cyrus Gray Gary Gray Paul Gray Steven Gray Thomas Gray Gerry Gray David Wm Gray Michael Gray Stuart Gray
action union
action filter_type
action find
entity Chad Gray
relation occupation
type occupation
action filter_type
action find
entity Cyrus Gray
relation occupation
type occupation
action filter_type
action find
entity Gary Gray
relation occupation
type occupation
action filter_type
action find
entity Paul Gray
relation occupation
type occupation
action filter_type
action find
entity Steven Gray
relation occupation
type occupation
action filter_type
action find
entity Thomas Gray
relation occupation
type occupation
action filter_type
action find
entity Gerry Gray
relation occupation
type occupation
action filter_type
action find
entity David Wm Gray
relation occupation
type occupation
action filter_type
action find
entity Michael Gray
relation occupation
type occupation
action filter_type
action find
entity Stuart Gray
relation occupation
type occupation
['Chad Gray', 'occupation', {'concept': 'occupation'}] ['Cyrus Gray', 'occupation', {'concept': 'occupation'}] ['Gary Gray', 'occupation', {'concept': 'occupation'}] ['Paul Gray', 'occupation', {'concept': 'occupation'}] ['Steven Gray', 'occupation', {'concept': 'occupation'}] ['Thomas Gray', 'occupation', {'concept': 'occupation'}] ['Gerry Gray', 'occupation', {'concept': 'occupation'}] ['David Wm Gray', 'occupation', {'concept': 'occupation'}] ['Michael Gray', 'occupation', {'concept': 'occupation'}] ['Stuart Gray', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { resource:Cyrus_Gray property:occupation ?x . ?x rdf:type ontology:occupation } UNION { ?x rdf:type ontology:occupation . resource:Chad_Gray property:occupation ?x } }
[]
occupation
Q19204627 Q3665646 Q584301
SYSTEM
American football player, basketball player, bassist
Q177220 Q19204627 Q3665646 Q639669 Q584301 Q177220 Q937857 Q4263842 Q49757 Q36180 Q628099 Q937857 Q33999 Q937857 Q628099 Q937857
(Q644053,P106,c(Q12737077)) (Q3699938,P106,c(Q12737077)) (Q3758498,P106,c(Q12737077)) (Q314583,P106,c(Q12737077)) (Q1119607,P106,c(Q12737077)) (Q315516,P106,c(Q12737077)) (Q3761257,P106,c(Q12737077)) (Q21517595,P106,c(Q12737077)) (Q497126,P106,c(Q12737077)) (Q3976227,P106,c(Q12737077))
action union
action filter_type
action find
entity Q644053
relation P106
type Q12737077
action filter_type
action find
entity Q3699938
relation P106
type Q12737077
action filter_type
action find
entity Q3758498
relation P106
type Q12737077
action filter_type
action find
entity Q314583
relation P106
type Q12737077
action filter_type
action find
entity Q1119607
relation P106
type Q12737077
action filter_type
action find
entity Q315516
relation P106
type Q12737077
action filter_type
action find
entity Q3761257
relation P106
type Q12737077
action filter_type
action find
entity Q21517595
relation P106
type Q12737077
action filter_type
action find
entity Q497126
relation P106
type Q12737077
action filter_type
action find
entity Q3976227
relation P106
type Q12737077
[ANSWERS]
['Q644053', 'P106', {'concept': 'Q12737077'}] ['Q3699938', 'P106', {'concept': 'Q12737077'}] ['Q3758498', 'P106', {'concept': 'Q12737077'}] ['Q314583', 'P106', {'concept': 'Q12737077'}] ['Q1119607', 'P106', {'concept': 'Q12737077'}] ['Q315516', 'P106', {'concept': 'Q12737077'}] ['Q3761257', 'P106', {'concept': 'Q12737077'}] ['Q21517595', 'P106', {'concept': 'Q12737077'}] ['Q497126', 'P106', {'concept': 'Q12737077'}] ['Q3976227', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { resource:Q3699938 property:P106 ?x . ?x rdf:type ontology:Q12737077 } UNION { ?x rdf:type ontology:Q12737077 . resource:Q644053 property:P106 ?x } }
singer American football player basketball player musician bassist singer association football player literary critic poet writer association football manager association football player actor association football player association football manager association football player
American football player basketball player bassist
action union
action filter_type
action find
entity Chad Gray
relation occupation
type occupation
action filter_type
action find
entity Cyrus Gray
relation occupation
type occupation
action filter_type
action find
entity Gary Gray
relation occupation
type occupation
action filter_type
action find
entity Paul Gray
relation occupation
type occupation
action filter_type
action find
entity Steven Gray
relation occupation
type occupation
action filter_type
action find
entity Thomas Gray
relation occupation
type occupation
action filter_type
action find
entity Gerry Gray
relation occupation
type occupation
action filter_type
action find
entity David Wm Gray
relation occupation
type occupation
action filter_type
action find
entity Michael Gray
relation occupation
type occupation
action filter_type
action find
entity Stuart Gray
relation occupation
type occupation
['Chad Gray', 'occupation', {'concept': 'occupation'}] ['Cyrus Gray', 'occupation', {'concept': 'occupation'}] ['Gary Gray', 'occupation', {'concept': 'occupation'}] ['Paul Gray', 'occupation', {'concept': 'occupation'}] ['Steven Gray', 'occupation', {'concept': 'occupation'}] ['Thomas Gray', 'occupation', {'concept': 'occupation'}] ['Gerry Gray', 'occupation', {'concept': 'occupation'}] ['David Wm Gray', 'occupation', {'concept': 'occupation'}] ['Michael Gray', 'occupation', {'concept': 'occupation'}] ['Stuart Gray', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { resource:Cyrus_Gray property:occupation ?x . ?x rdf:type ontology:occupation } UNION { ?x rdf:type ontology:occupation . resource:Chad_Gray property:occupation ?x } }
[]