Simple Question (Direct)
Simple Question
Q1863004
P734
Q82799
USER
Which name is associated with Lee Thompson ?
(Q1863004,P734,c(Q82799))
action filter_type
action find
entity Q1863004
relation P734
type Q82799
['Q1863004', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q1863004 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Lee Thompson
action filter_type
action find
entity Lee Thompson
relation family name
type name
['Lee Thompson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Lee_Thompson property:family_name ?i . ?i rdf:type ontology:name }
[]
name
Q2803433
SYSTEM
Thompson
Q2803433
(Q1863004,P734,c(Q82799))
action filter_type
action find
entity Q1863004
relation P734
type Q82799
He [ANSWER] is associated with Lee [ANSWER]
['Q1863004', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q1863004 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Thompson
He Thompson is associated with Lee Thompson
Thompson
action filter_type
action find
entity Lee Thompson
relation family name
type name
['Lee Thompson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Lee_Thompson property:family_name ?i . ?i rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1863004
P106
Q12737077
USER
What are the job of Lee Thompson ?
(Q1863004,P106,c(Q12737077))
action filter_type
action find
entity Q1863004
relation P106
type Q12737077
['Q1863004', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1863004 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Lee Thompson
action filter_type
action find
entity Lee Thompson
relation occupation
type occupation
['Lee Thompson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Lee_Thompson property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q12800682 Q753110
SYSTEM
saxophonist, songwriter
Q12800682 Q753110
(Q1863004,P106,c(Q12737077))
action filter_type
action find
entity Q1863004
relation P106
type Q12737077
The job of Lee Thompson are a [ANSWERS]
['Q1863004', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1863004 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
saxophonist songwriter
The job of Lee Thompson are a saxophonist and songwriter
saxophonist songwriter
action filter_type
action find
entity Lee Thompson
relation occupation
type occupation
['Lee Thompson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Lee_Thompson property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1863004
P19
Q56061
USER
Which administrative territory is the place of birth of Lee Thompson ?
(Q1863004,P19,c(Q56061))
action filter_type
action find
entity Q1863004
relation P19
type Q56061
['Q1863004', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . resource:Q1863004 property:P19 ?i }
Lee Thompson
action filter_type
action find
entity Lee Thompson
relation place of birth
type administrative territorial entity
['Lee Thompson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . resource:Lee_Thompson property:place_of_birth ?i }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q1863004,P19,c(Q56061))
action filter_type
action find
entity Q1863004
relation P19
type Q56061
[ANSWER] is the place of birth of Lee Thompson
['Q1863004', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . resource:Q1863004 property:P19 ?i }
London
London is the place of birth of Lee Thompson
London
action filter_type
action find
entity Lee Thompson
relation place of birth
type administrative territorial entity
['Lee Thompson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . resource:Lee_Thompson property:place_of_birth ?i }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q777637
Q56061
USER
And what about Arne Eriksson?
(Q777637,P19,c(Q56061))
action filter_type
action find
entity Q777637
relation P19
type Q56061
['Q777637', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q777637 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Arne Eriksson
action filter_type
action find
entity Arne Eriksson
relation place of birth
type administrative territorial entity
['Arne Eriksson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Arne_Eriksson property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1679567
SYSTEM
Jakobstad
Q1679567
(Q777637,P19,c(Q56061))
action filter_type
action find
entity Q777637
relation P19
type Q56061
[ANSWER]
['Q777637', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q777637 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Jakobstad
Jakobstad
action filter_type
action find
entity Arne Eriksson
relation place of birth
type administrative territorial entity
['Arne Eriksson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Arne_Eriksson 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
Q1679567 Q2468175
P19
Q502895
USER
Does Mika Niskala have location of birth at that administrative territory ?
(Q2468175,P19,Q1679567)
action is_in
entity Q2468175
action find
entity Q1679567
relation P19
['Q2468175', 'P19', 'Q1679567']
ASK WHERE { resource:Q1679567 property:P19 resource:Q2468175 }
Jakobstad Mika Niskala
action is_in
entity Mika Niskala
action find
entity Jakobstad
relation place of birth
['Mika Niskala', 'place of birth', 'Jakobstad']
ASK WHERE { resource:Jakobstad property:place_of_birth resource:Mika_Niskala }
[]
common name
SYSTEM
NO
(Q2468175,P19,Q1679567)
action is_in
entity Q2468175
action find
entity Q1679567
relation P19
[ANSWER]
['Q2468175', 'P19', 'Q1679567']
ASK WHERE { resource:Q1679567 property:P19 resource:Q2468175 }
No
action is_in
entity Mika Niskala
action find
entity Jakobstad
relation place of birth
['Mika Niskala', 'place of birth', 'Jakobstad']
ASK WHERE { resource:Jakobstad property:place_of_birth resource:Mika_Niskala }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5530706 Q1863004
P161
Q838948
USER
Which works of art stars Lee Thompson or Gemma Chan as actor ?
OR((c(Q838948),P161,Q1863004), (c(Q838948),P161,Q5530706))
action filter_type
action union
action find_reverse
entity Q1863004
relation P161
action find_reverse
entity Q5530706
relation P161
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q1863004'], [{'concept': 'Q838948'}, 'P161', 'Q5530706']]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?v ) { ( resource:Q5530706 ) ( resource:Q1863004 ) } . ?z property:P161 ?v } . ?z rdf:type ontology:Q838948 }
Gemma Chan Lee Thompson
action filter_type
action union
action find_reverse
entity Lee Thompson
relation cast member
action find_reverse
entity Gemma Chan
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Lee Thompson'], [{'concept': 'work of art'}, 'cast member', 'Gemma Chan']]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?v ) { ( resource:Gemma_Chan ) ( resource:Lee_Thompson ) } . ?z property:cast_member ?v } . ?z rdf:type ontology:work_of_art }
[]
work of art
Q2173967 Q7730725 Q2389367 Q260509 Q582284
SYSTEM
Exam, The Double, Take It or Leave It, Submarine, Shanghai
Q2173967 Q7730725 Q2389367 Q260509 Q582284
OR((c(Q838948),P161,Q1863004), (c(Q838948),P161,Q5530706))
action filter_type
action union
action find_reverse
entity Q1863004
relation P161
action find_reverse
entity Q5530706
relation P161
type Q838948
[ANSWERS]
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q1863004'], [{'concept': 'Q838948'}, 'P161', 'Q5530706']]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?v ) { ( resource:Q5530706 ) ( resource:Q1863004 ) } . ?z property:P161 ?v } . ?z rdf:type ontology:Q838948 }
Exam The Double Take It or Leave It Submarine Shanghai
Take It or leave It, Submarine and Shanghai star Lee Thompson or Gemma Chan as actor
Exam The Double Take It or Leave It Submarine Shanghai
action filter_type
action union
action find_reverse
entity Lee Thompson
relation cast member
action find_reverse
entity Gemma Chan
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Lee Thompson'], [{'concept': 'work of art'}, 'cast member', 'Gemma Chan']]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?v ) { ( resource:Gemma_Chan ) ( resource:Lee_Thompson ) } . ?z property:cast_member ?v } . ?z rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2493311 Q582284
P495
Q15617994
USER
Which administrative territories are the countries of origin of Shanghai or Mis 3 Hermanas ?
OR((Q582284,P495,c(Q15617994)), (Q2493311,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q582284
relation P495
action find
entity Q2493311
relation P495
type Q15617994
{'OR': [['Q582284', 'P495', {'concept': 'Q15617994'}], ['Q2493311', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { { resource:Q582284 property:P495 ?e } UNION { resource:Q2493311 property:P495 ?e } } }
Mis 3 Hermanas Shanghai
action filter_type
action union
action find
entity Shanghai
relation country of origin
action find
entity Mis 3 Hermanas
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Shanghai', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Mis 3 Hermanas', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Shanghai property:country_of_origin ?e } UNION { resource:Mis_3_Hermanas property:country_of_origin ?e } } }
[]
designation for an administrative territorial entity
Q30 Q717
SYSTEM
United States of America, Venezuela
Q30 Q717
OR((Q582284,P495,c(Q15617994)), (Q2493311,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q582284
relation P495
action find
entity Q2493311
relation P495
type Q15617994
[ANSWERS] are the countries of origin of Shanghai or Mis 3 Hermanas
{'OR': [['Q582284', 'P495', {'concept': 'Q15617994'}], ['Q2493311', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { { resource:Q582284 property:P495 ?e } UNION { resource:Q2493311 property:P495 ?e } } }
United States of America Venezuela
United States of America and Venezuela are the countries of origin of Shanghai or Mis 3 Hermanas
United States of America Venezuela
action filter_type
action union
action find
entity Shanghai
relation country of origin
action find
entity Mis 3 Hermanas
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Shanghai', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Mis 3 Hermanas', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Shanghai property:country_of_origin ?e } UNION { resource:Mis_3_Hermanas property:country_of_origin ?e } } }
[]