Simple Question (Direct)
Simple Question
Q7325548
P21
Q290
USER
What is the sex of Richard Evans ?
(Q7325548,P21,c(Q290))
action filter_type
action find
entity Q7325548
relation P21
type Q290
['Q7325548', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q7325548 property:P21 ?q }
Richard Evans
action filter_type
action find
entity Richard Evans
relation gender
type sex
['Richard Evans', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Richard_Evans property:gender ?q }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7325548,P21,c(Q290))
action filter_type
action find
entity Q7325548
relation P21
type Q290
The sex of Richard Evans is a [ANSWER]
['Q7325548', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q7325548 property:P21 ?q }
male
The sex of Richard Evans is a male
male
action filter_type
action find
entity Richard Evans
relation gender
type sex
['Richard Evans', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Richard_Evans property:gender ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7325548
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q7325548
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q7325548 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Richard Evans
action filter_type
action find
entity Richard Evans
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Richard_Evans property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q7325548
relation P27
type Q15617994
[ANSWER] is that person an inhabitant of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q7325548 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is that person an inhabitant of
United Kingdom
action filter_type
action find
entity Richard Evans
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Richard_Evans property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q4958646 Q7325548
P27
Q15617994
USER
Or Regina Kevius?
OR((Q7325548,P27,c(Q15617994)), (Q4958646,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7325548
relation P27
action find
entity Q4958646
relation P27
type Q15617994
{'OR': [['Q7325548', 'P27', {'concept': 'Q15617994'}], ['Q4958646', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q7325548 property:P27 ?o } UNION { resource:Q4958646 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Regina Kevius Richard Evans
action filter_type
action union
action find
entity Richard Evans
relation country of citizenship
action find
entity Regina Kevius
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Richard Evans', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Regina Kevius', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Richard_Evans property:country_of_citizenship ?o } UNION { resource:Regina_Kevius property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q34
SYSTEM
United Kingdom, Sweden
Q145 Q34
OR((Q7325548,P27,c(Q15617994)), (Q4958646,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7325548
relation P27
action find
entity Q4958646
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q7325548', 'P27', {'concept': 'Q15617994'}], ['Q4958646', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q7325548 property:P27 ?o } UNION { resource:Q4958646 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
United Kingdom Sweden
United Kingdom Sweden
action filter_type
action union
action find
entity Richard Evans
relation country of citizenship
action find
entity Regina Kevius
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Richard Evans', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Regina Kevius', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Richard_Evans property:country_of_citizenship ?o } UNION { resource:Regina_Kevius property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q15617994 Q15416 Q2088357
USER
Which administrative territories are the origins of max number of television programs or musical ensembles ?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?r WHERE { { ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15416 . ?p property:P495 ?r } UNION { ?p property:P495 ?r . ?p rdf:type ontology:Q2088357 . ?r rdf:type ontology:Q15617994 } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?l WHERE { VALUES ( ?h ) { ( ontology:Q15416 ) ( ontology:Q2088357 ) } . ?d rdf:type ?h } GROUP BY ?l } . FILTER ( ?o = ?e ) }
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?r WHERE { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:television_program . ?p property:country_of_origin ?r } UNION { ?p property:country_of_origin ?r . ?p rdf:type ontology:musical_ensemble . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?l WHERE { VALUES ( ?h ) { ( ontology:television_program ) ( ontology:musical_ensemble ) } . ?d rdf:type ?h } GROUP BY ?l } . FILTER ( ?o = ?e ) }
[]
designation for an administrative territorial entity television program musical ensemble
Q30
SYSTEM
United States of America
Q30
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
[ANSWER] is the origins of max number of television programs or musical ensembles
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?r WHERE { { ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15416 . ?p property:P495 ?r } UNION { ?p property:P495 ?r . ?p rdf:type ontology:Q2088357 . ?r rdf:type ontology:Q15617994 } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?l WHERE { VALUES ( ?h ) { ( ontology:Q15416 ) ( ontology:Q2088357 ) } . ?d rdf:type ?h } GROUP BY ?l } . FILTER ( ?o = ?e ) }
United States of America
United States of America is the origins of max number of television programs or musical ensembles
United States of America
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?r WHERE { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:television_program . ?p property:country_of_origin ?r } UNION { ?p property:country_of_origin ?r . ?p rdf:type ontology:musical_ensemble . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?l WHERE { VALUES ( ?h ) { ( ontology:television_program ) ( ontology:musical_ensemble ) } . ?d rdf:type ?h } GROUP BY ?l } . FILTER ( ?o = ?e ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P38
Q8142
USER
What is considered to be the currency of United Kingdom ?
(Q145,P38,c(Q8142))
action filter_type
action find
entity Q145
relation P38
type Q8142
['Q145', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q8142 . resource:Q145 property:P38 ?j }
United Kingdom
action filter_type
action find
entity United Kingdom
relation currency
type currency
['United Kingdom', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:currency . resource:United_Kingdom property:currency ?j }
[]
currency
Q25224
SYSTEM
pound sterling
Q25224
(Q145,P38,c(Q8142))
action filter_type
action find
entity Q145
relation P38
type Q8142
Coin [ANSWER] is considered to be the currency of United Kingdom
['Q145', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q8142 . resource:Q145 property:P38 ?j }
pound sterling
Coin pound sterling is considered to be the currency of United Kingdom
pound sterling
action filter_type
action find
entity United Kingdom
relation currency
type currency
['United Kingdom', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:currency . resource:United_Kingdom property:currency ?j }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1183
Q8142
USER
And how about Puerto Rico?
(Q1183,P38,c(Q8142))
action filter_type
action find
entity Q1183
relation P38
type Q8142
['Q1183', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?g WHERE { resource:Q1183 property:P38 ?g . ?g rdf:type ontology:Q8142 }
Puerto Rico
action filter_type
action find
entity Puerto Rico
relation currency
type currency
['Puerto Rico', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?g WHERE { resource:Puerto_Rico property:currency ?g . ?g rdf:type ontology:currency }
[]
currency
Q4917
SYSTEM
United States dollar
Q4917
(Q1183,P38,c(Q8142))
action filter_type
action find
entity Q1183
relation P38
type Q8142
[ANSWER]
['Q1183', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?g WHERE { resource:Q1183 property:P38 ?g . ?g rdf:type ontology:Q8142 }
United States dollar
United States dollar
action filter_type
action find
entity Puerto Rico
relation currency
type currency
['Puerto Rico', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?g WHERE { resource:Puerto_Rico property:currency ?g . ?g rdf:type ontology:currency }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1183
P840
Q838948
USER
Which works of art have their narrative set in Puerto Rico ?
(c(Q838948),P840,Q1183)
action filter_type
action find_reverse
entity Q1183
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q1183']
SELECT DISTINCT ?b WHERE { ?b property:P840 resource:Q1183 . ?b rdf:type ontology:Q838948 }
Puerto Rico
action filter_type
action find_reverse
entity Puerto Rico
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Puerto Rico']
SELECT DISTINCT ?b WHERE { ?b property:narrative_location resource:Puerto_Rico . ?b rdf:type ontology:work_of_art }
[]
work of art
Q909802 Q270215 Q830376
SYSTEM
The Punisher, Contact, The Rum Diary
Q4163534 Q7379900 Q5351026 Q18636569 Q7750127 Q4972651 Q739498 Q11073731 Q909802 Q830376 Q12154154 Q4659498 Q1475259 Q420232 Q270215 Q1609558 Q4548716
(c(Q838948),P840,Q1183)
action filter_type
action find_reverse
entity Q1183
relation P840
type Q838948
[ANSWERS] have their narrative set in Puerto Rico
[{'concept': 'Q838948'}, 'P840', 'Q1183']
SELECT DISTINCT ?b WHERE { ?b property:P840 resource:Q1183 . ?b rdf:type ontology:Q838948 }
Welcome to the Jungle Runner, Runner El Cimarrón Mr. Moto in Danger Island The Man with My Face Broche de Oro Assassins Fascination Amour The Punisher The Rum Diary Ángel A Show of Force Under Suspicion La Habanera Contact Frankenstein Meets the Space Monster 12 Horas
The Punisher, Contact and The Rum Diary have their narrative set in Puerto Rico
The Punisher Contact The Rum Diary
action filter_type
action find_reverse
entity Puerto Rico
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Puerto Rico']
SELECT DISTINCT ?b WHERE { ?b property:narrative_location resource:Puerto_Rico . ?b rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1183
P172
Q502895
USER
Who have that administrative territory as ethnic group ?
(c(Q502895),P172,Q909802) (c(Q502895),P172,Q270215) (c(Q502895),P172,Q830376)
action filter_type
action find_reverse
entity Q1183
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q909802'] [{'concept': 'Q502895'}, 'P172', 'Q270215'] [{'concept': 'Q502895'}, 'P172', 'Q830376']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P172 resource:Q1183 }
Puerto Rico
action filter_type
action find_reverse
entity Puerto Rico
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'The Punisher'] [{'concept': 'common name'}, 'ethnic group', 'Contact'] [{'concept': 'common name'}, 'ethnic group', 'The Rum Diary']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:ethnic_group resource:Puerto_Rico }
[]
common name
Q225218 Q711406
SYSTEM
Carmen Luvana, Frankie Ruiz
Q225218 Q711406
(c(Q502895),P172,Q909802) (c(Q502895),P172,Q270215) (c(Q502895),P172,Q830376)
action filter_type
action find_reverse
entity Q1183
relation P172
type Q502895
[ANSWERS] have that administrative territory as ethnic group
[{'concept': 'Q502895'}, 'P172', 'Q909802'] [{'concept': 'Q502895'}, 'P172', 'Q270215'] [{'concept': 'Q502895'}, 'P172', 'Q830376']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P172 resource:Q1183 }
Carmen Luvana Frankie Ruiz
Carmen Luvana and Frankie Ruiz have that administrative territory as ethnic group
Carmen Luvana Frankie Ruiz
action filter_type
action find_reverse
entity Puerto Rico
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'The Punisher'] [{'concept': 'common name'}, 'ethnic group', 'Contact'] [{'concept': 'common name'}, 'ethnic group', 'The Rum Diary']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:ethnic_group resource:Puerto_Rico }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1183 Q3550306
P37
Q34770
USER
How many languages are the official languages of Puerto Rico and International association of lawyers ?
(Q1183,P37,c(Q34770)) (Q3550306,P37,c(Q34770))
action count
action intersection
action filter_type
action find
entity Q1183
relation P37
type Q34770
action filter_type
action find
entity Q3550306
relation P37
type Q34770
['Q1183', 'P37', {'concept': 'Q34770'}] ['Q3550306', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q1183 property:P37 ?a . ?a rdf:type ontology:Q34770 . resource:Q3550306 property:P37 ?a . ?a rdf:type ontology:Q34770 }
Puerto Rico International association of lawyers
action count
action intersection
action filter_type
action find
entity Puerto Rico
relation official language
type language
action filter_type
action find
entity International association of lawyers
relation official language
type language
['Puerto Rico', 'official language', {'concept': 'language'}] ['International association of lawyers', 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Puerto_Rico property:official_language ?a . ?a rdf:type ontology:language . resource:International_association_of_lawyers property:official_language ?a . ?a rdf:type ontology:language }
[]
language
SYSTEM
2
Q1860 Q1321
(Q1183,P37,c(Q34770)) (Q3550306,P37,c(Q34770))
action count
action intersection
action filter_type
action find
entity Q1183
relation P37
type Q34770
action filter_type
action find
entity Q3550306
relation P37
type Q34770
[ANSWER]
['Q1183', 'P37', {'concept': 'Q34770'}] ['Q3550306', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q1183 property:P37 ?a . ?a rdf:type ontology:Q34770 . resource:Q3550306 property:P37 ?a . ?a rdf:type ontology:Q34770 }
English Spanish
2
action count
action intersection
action filter_type
action find
entity Puerto Rico
relation official language
type language
action filter_type
action find
entity International association of lawyers
relation official language
type language
['Puerto Rico', 'official language', {'concept': 'language'}] ['International association of lawyers', 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Puerto_Rico property:official_language ?a . ?a rdf:type ontology:language . resource:International_association_of_lawyers property:official_language ?a . ?a rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q225218
P161 P495
Q838948
USER
Which works of art do Carmen Luvana star in and originated in United States of America ?
AND((c(Q838948),P161,Q225218), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q225218
relation P161
action find_reverse
entity Q30
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q225218'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?n WHERE { ?n property:P161 resource:Q225218 . ?n property:P495 resource:Q30 . ?n rdf:type ontology:Q838948 }
United States of America Carmen Luvana
action filter_type
action intersection
action find_reverse
entity Carmen Luvana
relation cast member
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Carmen Luvana'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?n WHERE { ?n property:cast_member resource:Carmen_Luvana . ?n property:country_of_origin resource:United_States_of_America . ?n rdf:type ontology:work_of_art }
[]
work of art
Q1538902
SYSTEM
Pirates
Q1538902
AND((c(Q838948),P161,Q225218), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q225218
relation P161
action find_reverse
entity Q30
relation P495
type Q838948
Carmen Luvana star in The [ANSWER]
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q225218'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?n WHERE { ?n property:P161 resource:Q225218 . ?n property:P495 resource:Q30 . ?n rdf:type ontology:Q838948 }
Pirates
Carmen Luvana star in The Pirates
Pirates
action filter_type
action intersection
action find_reverse
entity Carmen Luvana
relation cast member
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Carmen Luvana'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?n WHERE { ?n property:cast_member resource:Carmen_Luvana . ?n property:country_of_origin resource:United_States_of_America . ?n rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1538902 Q6837915 Q538083
P161
Q502895
USER
Does that work of art have Michio Ihara and Evan Stone as actor ?
(Q1538902,P161,Q6837915) (Q1538902,P161,Q538083)
action is_in
entity Q1538902
action intersection
action find_reverse
entity Q6837915
relation P161
action find_reverse
entity Q538083
relation P161
['Q1538902', 'P161', 'Q6837915'] ['Q1538902', 'P161', 'Q538083']
ASK WHERE { resource:Q1538902 property:P161 resource:Q6837915 . resource:Q1538902 property:P161 resource:Q538083 }
Pirates Michio Ihara Evan Stone
action is_in
entity Pirates
action intersection
action find_reverse
entity Michio Ihara
relation cast member
action find_reverse
entity Evan Stone
relation cast member
['Pirates', 'cast member', 'Michio Ihara'] ['Pirates', 'cast member', 'Evan Stone']
ASK WHERE { resource:Pirates property:cast_member resource:Michio_Ihara . resource:Pirates property:cast_member resource:Evan_Stone }
[]
common name
SYSTEM
NO and YES respectively
(Q1538902,P161,Q6837915) (Q1538902,P161,Q538083)
action is_in
entity Q1538902
action intersection
action find_reverse
entity Q6837915
relation P161
action find_reverse
entity Q538083
relation P161
[ANSWER]
['Q1538902', 'P161', 'Q6837915'] ['Q1538902', 'P161', 'Q538083']
ASK WHERE { resource:Q1538902 property:P161 resource:Q6837915 . resource:Q1538902 property:P161 resource:Q538083 }
NO and YES respectively
action is_in
entity Pirates
action intersection
action find_reverse
entity Michio Ihara
relation cast member
action find_reverse
entity Evan Stone
relation cast member
['Pirates', 'cast member', 'Michio Ihara'] ['Pirates', 'cast member', 'Evan Stone']
ASK WHERE { resource:Pirates property:cast_member resource:Michio_Ihara . resource:Pirates property:cast_member resource:Evan_Stone }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6312408 Q7325548
P19
Q56061
USER
Which administrative territories were Richard Evans or June Ritchie born in ?
OR((Q7325548,P19,c(Q56061)), (Q6312408,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7325548
relation P19
action find
entity Q6312408
relation P19
type Q56061
{'OR': [['Q7325548', 'P19', {'concept': 'Q56061'}], ['Q6312408', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q7325548 property:P19 ?a } UNION { resource:Q6312408 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
June Ritchie Richard Evans
action filter_type
action union
action find
entity Richard Evans
relation place of birth
action find
entity June Ritchie
relation place of birth
type administrative territorial entity
{'OR': [['Richard Evans', 'place of birth', {'concept': 'administrative territorial entity'}], ['June Ritchie', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Richard_Evans property:place_of_birth ?a } UNION { resource:June_Ritchie property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q10690 Q18125
SYSTEM
Cardiff, Manchester
Q10690 Q18125
OR((Q7325548,P19,c(Q56061)), (Q6312408,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7325548
relation P19
action find
entity Q6312408
relation P19
type Q56061
Richard Evans or June Ritchie were born in [ANSWERS]
{'OR': [['Q7325548', 'P19', {'concept': 'Q56061'}], ['Q6312408', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q7325548 property:P19 ?a } UNION { resource:Q6312408 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
Cardiff Manchester
Richard Evans or June Ritchie were born in Cardiff and Manchester
Cardiff Manchester
action filter_type
action union
action find
entity Richard Evans
relation place of birth
action find
entity June Ritchie
relation place of birth
type administrative territorial entity
{'OR': [['Richard Evans', 'place of birth', {'concept': 'administrative territorial entity'}], ['June Ritchie', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Richard_Evans property:place_of_birth ?a } UNION { resource:June_Ritchie property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6312408
P106
Q12737077
USER
Which occupation is the profession of June Ritchie ?
(Q10690,P106,c(Q12737077)) (Q18125,P106,c(Q12737077))
action filter_type
action find
entity Q6312408
relation P106
type Q12737077
['Q10690', 'P106', {'concept': 'Q12737077'}] ['Q18125', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q6312408 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
June Ritchie
action filter_type
action find
entity June Ritchie
relation occupation
type occupation
['Cardiff', 'occupation', {'concept': 'occupation'}] ['Manchester', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:June_Ritchie property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q33999
SYSTEM
actor
Q33999
(Q10690,P106,c(Q12737077)) (Q18125,P106,c(Q12737077))
action filter_type
action find
entity Q6312408
relation P106
type Q12737077
[ANSWER] is the profession of June Ritchie
['Q10690', 'P106', {'concept': 'Q12737077'}] ['Q18125', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q6312408 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
actor
Actor is the profession of June Ritchie
actor
action filter_type
action find
entity June Ritchie
relation occupation
type occupation
['Cardiff', 'occupation', {'concept': 'occupation'}] ['Manchester', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:June_Ritchie property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q33999
P425
Q1914636
USER
Who is associated with the field of occupation that one ?
(Q33999,P425,c(Q1914636))
action filter_type
action find
entity Q33999
relation P425
type Q1914636
['Q33999', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?p WHERE { resource:Q33999 property:P425 ?p . ?p rdf:type ontology:Q1914636 }
actor
action filter_type
action find
entity actor
relation field of this occupation
type activity
['actor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?p WHERE { resource:actor property:field_of_this_occupation ?p . ?p rdf:type ontology:activity }
[]
activity
Q222749
SYSTEM
acting
Q222749
(Q33999,P425,c(Q1914636))
action filter_type
action find
entity Q33999
relation P425
type Q1914636
Is [ANSWER] is associated with the field of occupation that one
['Q33999', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?p WHERE { resource:Q33999 property:P425 ?p . ?p rdf:type ontology:Q1914636 }
acting
Is acting is associated with the field of occupation that one
acting
action filter_type
action find
entity actor
relation field of this occupation
type activity
['actor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?p WHERE { resource:actor property:field_of_this_occupation ?p . ?p rdf:type ontology:activity }
[]