Simple Question (Direct)
Simple Question
Q3945107
P50
Q502895
USER
Who penned Saint Jack ?
(Q3945107,P50,c(Q502895))
action filter_type
action find
entity Q3945107
relation P50
type Q502895
['Q3945107', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q3945107 property:P50 ?k . ?k rdf:type ontology:Q502895 }
Saint Jack
action filter_type
action find
entity Saint Jack
relation author
type common name
['Saint Jack', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Saint_Jack property:author ?k . ?k rdf:type ontology:common_name }
[]
common name
Q510320
SYSTEM
Paul Theroux
Q510320
(Q3945107,P50,c(Q502895))
action filter_type
action find
entity Q3945107
relation P50
type Q502895
[ANSWER] penned Saint Jack
['Q3945107', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q3945107 property:P50 ?k . ?k rdf:type ontology:Q502895 }
Paul Theroux
Paul Theroux penned Saint Jack
Paul Theroux
action filter_type
action find
entity Saint Jack
relation author
type common name
['Saint Jack', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Saint_Jack property:author ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3945107
P162
Q502895
USER
Which person produced Saint Jack ?
(Q3945107,P162,c(Q502895))
action filter_type
action find
entity Q3945107
relation P162
type Q502895
['Q3945107', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q3945107 property:P162 ?u }
Saint Jack
action filter_type
action find
entity Saint Jack
relation producer
type common name
['Saint Jack', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Saint_Jack property:producer ?u }
[]
common name
Q318292
SYSTEM
Roger Corman
Q318292
(Q3945107,P162,c(Q502895))
action filter_type
action find
entity Q3945107
relation P162
type Q502895
Produced [ANSWER] produced Saint Jack
['Q3945107', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q3945107 property:P162 ?u }
Roger Corman
Produced Roger Corman produced Saint Jack
Roger Corman
action filter_type
action find
entity Saint Jack
relation producer
type common name
['Saint Jack', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Saint_Jack property:producer ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q318292
P26
Q502895
USER
Which person is married to that one ?
(Q318292,P26,c(Q502895))
action filter_type
action find
entity Q318292
relation P26
type Q502895
['Q318292', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q318292 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Roger Corman
action filter_type
action find
entity Roger Corman
relation spouse
type common name
['Roger Corman', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Roger_Corman property:spouse ?q . ?q rdf:type ontology:common_name }
[]
common name
Q6308099
SYSTEM
Julie Corman
Q6308099
(Q318292,P26,c(Q502895))
action filter_type
action find
entity Q318292
relation P26
type Q502895
[ANSWER] is married to that one
['Q318292', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q318292 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Julie Corman
Julie Corman is married to that one
Julie Corman
action filter_type
action find
entity Roger Corman
relation spouse
type common name
['Roger Corman', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Roger_Corman property:spouse ?q . ?q rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q510320
P58 P495
Q838948
USER
Which works of art have Paul Theroux as screenwriter and originated in United States of America ?
AND((c(Q838948),P58,Q510320), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q510320
relation P58
action find_reverse
entity Q30
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P58', 'Q510320'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q838948 . ?i property:P58 resource:Q510320 . ?i property:P495 resource:Q30 }
United States of America Paul Theroux
action filter_type
action intersection
action find_reverse
entity Paul Theroux
relation screenwriter
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'screenwriter', 'Paul Theroux'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:work_of_art . ?i property:screenwriter resource:Paul_Theroux . ?i property:country_of_origin resource:United_States_of_America }
[]
work of art
Q1479291 Q3945107
SYSTEM
The Mosquito Coast, Saint Jack
Q1479291 Q3945107
AND((c(Q838948),P58,Q510320), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q510320
relation P58
action find_reverse
entity Q30
relation P495
type Q838948
[ANSWERS] have Paul Theroux as screenwriter and originated in United States of America
{'AND': [[{'concept': 'Q838948'}, 'P58', 'Q510320'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q838948 . ?i property:P58 resource:Q510320 . ?i property:P495 resource:Q30 }
The Mosquito Coast Saint Jack
The Mosquito Coast and Saint Jack have Paul Theroux as screenwriter and originated in United States of America
The Mosquito Coast Saint Jack
action filter_type
action intersection
action find_reverse
entity Paul Theroux
relation screenwriter
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'screenwriter', 'Paul Theroux'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:work_of_art . ?i property:screenwriter resource:Paul_Theroux . ?i property:country_of_origin resource:United_States_of_America }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3945107
P57
Q502895
USER
Which person directed that work of art ?
(Q3945107,P57,c(Q502895))
action filter_type
action find
entity Q3945107
relation P57
type Q502895
['Q3945107', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q3945107 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Saint Jack
action filter_type
action find
entity Saint Jack
relation director
type common name
['Saint Jack', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Saint_Jack property:director ?j . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1479291
SYSTEM
Did you mean The Mosquito Coast ?
Q1479291 Q3945107
(Q1479291,P57,c(Q502895)) (Q3945107,P57,c(Q502895))
[ANSWER]
['Q1479291', 'P57', {'concept': 'Q502895'}] ['Q3945107', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q3945107 property:P57 ?j . ?j rdf:type ontology:Q502895 }
The Mosquito Coast Saint Jack
Did you mean The Mosquito Coast ?
The Mosquito Coast
['The Mosquito Coast', 'director', {'concept': 'common name'}] ['Saint Jack', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Saint_Jack property:director ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Saint Jack. Could you tell me the answer for that?
(Q3945107,P57,c(Q502895))
Q3945107
['Q3945107', 'P57', {'concept': 'Q502895'}]
['Saint Jack', 'director', {'concept': 'common name'}]
[]
Q158250
SYSTEM
Peter Bogdanovich
Q158250
(Q3945107,P57,c(Q502895))
action filter_type
action find
entity Q3945107
relation P57
type Q502895
[ANSWER] directed that work of art
['Q3945107', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q3945107 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Peter Bogdanovich
Peter Bogdanovich directed that work of art
Peter Bogdanovich
action filter_type
action find
entity Saint Jack
relation director
type common name
['Saint Jack', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Saint_Jack property:director ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q158250
P172
Q2472587
USER
What is the ethnicity of that person ?
(Q158250,P172,c(Q2472587))
action filter_type
action find
entity Q158250
relation P172
type Q2472587
['Q158250', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?g WHERE { resource:Q158250 property:P172 ?g . ?g rdf:type ontology:Q2472587 }
Peter Bogdanovich
action filter_type
action find
entity Peter Bogdanovich
relation ethnic group
type people
['Peter Bogdanovich', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?g WHERE { resource:Peter_Bogdanovich property:ethnic_group ?g . ?g rdf:type ontology:people }
[]
people
Q127885
SYSTEM
Serbs
Q127885
(Q158250,P172,c(Q2472587))
action filter_type
action find
entity Q158250
relation P172
type Q2472587
The ethnicity of that person is ethnic [ANSWER]
['Q158250', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?g WHERE { resource:Q158250 property:P172 ?g . ?g rdf:type ontology:Q2472587 }
Serbs
The ethnicity of that person is ethnic Serbs
Serbs
action filter_type
action find
entity Peter Bogdanovich
relation ethnic group
type people
['Peter Bogdanovich', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?g WHERE { resource:Peter_Bogdanovich property:ethnic_group ?g . ?g rdf:type ontology:people }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q127885 Q17007515
P172
Q502895
USER
Does Väinö Kohtanen have that people as his/her race ?
(Q17007515,P172,Q127885)
action is_in
entity Q17007515
action find
entity Q127885
relation P172
['Q17007515', 'P172', 'Q127885']
ASK WHERE { resource:Q127885 property:P172 resource:Q17007515 }
Serbs Väinö Kohtanen
action is_in
entity Väinö Kohtanen
action find
entity Serbs
relation ethnic group
['Väinö Kohtanen', 'ethnic group', 'Serbs']
ASK WHERE { resource:Serbs property:ethnic_group resource:Väinö_Kohtanen }
[]
common name
SYSTEM
NO
(Q17007515,P172,Q127885)
action is_in
entity Q17007515
action find
entity Q127885
relation P172
[ANSWER]
['Q17007515', 'P172', 'Q127885']
ASK WHERE { resource:Q127885 property:P172 resource:Q17007515 }
No
action is_in
entity Väinö Kohtanen
action find
entity Serbs
relation ethnic group
['Väinö Kohtanen', 'ethnic group', 'Serbs']
ASK WHERE { resource:Serbs property:ethnic_group resource:Väinö_Kohtanen }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q318292 Q638425 Q257401
P27
Q15617994
USER
Is Roger Corman a citizen of Grödersby and Mitterskirchen ?
(Q318292,P27,Q638425) (Q318292,P27,Q257401)
action is_in
entity Q318292
action intersection
action find_reverse
entity Q638425
relation P27
action find_reverse
entity Q257401
relation P27
['Q318292', 'P27', 'Q638425'] ['Q318292', 'P27', 'Q257401']
ASK WHERE { resource:Q318292 property:P27 resource:Q638425 . resource:Q318292 property:P27 resource:Q257401 }
Roger Corman Grödersby Mitterskirchen
action is_in
entity Roger Corman
action intersection
action find_reverse
entity Grödersby
relation country of citizenship
action find_reverse
entity Mitterskirchen
relation country of citizenship
['Roger Corman', 'country of citizenship', 'Grödersby'] ['Roger Corman', 'country of citizenship', 'Mitterskirchen']
ASK WHERE { resource:Roger_Corman property:country_of_citizenship resource:Grödersby . resource:Roger_Corman property:country_of_citizenship resource:Mitterskirchen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q318292,P27,Q638425) (Q318292,P27,Q257401)
action is_in
entity Q318292
action intersection
action find_reverse
entity Q638425
relation P27
action find_reverse
entity Q257401
relation P27
[ANSWER]
['Q318292', 'P27', 'Q638425'] ['Q318292', 'P27', 'Q257401']
ASK WHERE { resource:Q318292 property:P27 resource:Q638425 . resource:Q318292 property:P27 resource:Q257401 }
No
action is_in
entity Roger Corman
action intersection
action find_reverse
entity Grödersby
relation country of citizenship
action find_reverse
entity Mitterskirchen
relation country of citizenship
['Roger Corman', 'country of citizenship', 'Grödersby'] ['Roger Corman', 'country of citizenship', 'Mitterskirchen']
ASK WHERE { resource:Roger_Corman property:country_of_citizenship resource:Grödersby . resource:Roger_Corman property:country_of_citizenship resource:Mitterskirchen }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q158250 Q30 Q4921008
P27
Q15617994
USER
Is Peter Bogdanovich a civilian of United States of America and Black Horse Pike Regional School District ?
(Q158250,P27,Q30) (Q158250,P27,Q4921008)
action is_in
entity Q158250
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q4921008
relation P27
['Q158250', 'P27', 'Q30'] ['Q158250', 'P27', 'Q4921008']
ASK WHERE { resource:Q158250 property:P27 resource:Q30 . resource:Q158250 property:P27 resource:Q4921008 }
Peter Bogdanovich United States of America Black Horse Pike Regional School District
action is_in
entity Peter Bogdanovich
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Black Horse Pike Regional School District
relation country of citizenship
['Peter Bogdanovich', 'country of citizenship', 'United States of America'] ['Peter Bogdanovich', 'country of citizenship', 'Black Horse Pike Regional School District']
ASK WHERE { resource:Peter_Bogdanovich property:country_of_citizenship resource:United_States_of_America . resource:Peter_Bogdanovich property:country_of_citizenship resource:Black_Horse_Pike_Regional_School_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q158250,P27,Q30) (Q158250,P27,Q4921008)
action is_in
entity Q158250
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q4921008
relation P27
[ANSWER]
['Q158250', 'P27', 'Q30'] ['Q158250', 'P27', 'Q4921008']
ASK WHERE { resource:Q158250 property:P27 resource:Q30 . resource:Q158250 property:P27 resource:Q4921008 }
YES and NO respectively
action is_in
entity Peter Bogdanovich
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Black Horse Pike Regional School District
relation country of citizenship
['Peter Bogdanovich', 'country of citizenship', 'United States of America'] ['Peter Bogdanovich', 'country of citizenship', 'Black Horse Pike Regional School District']
ASK WHERE { resource:Peter_Bogdanovich property:country_of_citizenship resource:United_States_of_America . resource:Peter_Bogdanovich property:country_of_citizenship resource:Black_Horse_Pike_Regional_School_District }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q318292 Q30 Q327731
P27
Q15617994
USER
Is Roger Corman a citizen of United States of America and Vermiglio ?
(Q318292,P27,Q30) (Q318292,P27,Q327731)
action is_in
entity Q318292
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q327731
relation P27
['Q318292', 'P27', 'Q30'] ['Q318292', 'P27', 'Q327731']
ASK WHERE { resource:Q318292 property:P27 resource:Q30 . resource:Q318292 property:P27 resource:Q327731 }
Roger Corman United States of America Vermiglio
action is_in
entity Roger Corman
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Vermiglio
relation country of citizenship
['Roger Corman', 'country of citizenship', 'United States of America'] ['Roger Corman', 'country of citizenship', 'Vermiglio']
ASK WHERE { resource:Roger_Corman property:country_of_citizenship resource:United_States_of_America . resource:Roger_Corman property:country_of_citizenship resource:Vermiglio }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q318292,P27,Q30) (Q318292,P27,Q327731)
action is_in
entity Q318292
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q327731
relation P27
[ANSWER]
['Q318292', 'P27', 'Q30'] ['Q318292', 'P27', 'Q327731']
ASK WHERE { resource:Q318292 property:P27 resource:Q30 . resource:Q318292 property:P27 resource:Q327731 }
YES and NO respectively
action is_in
entity Roger Corman
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Vermiglio
relation country of citizenship
['Roger Corman', 'country of citizenship', 'United States of America'] ['Roger Corman', 'country of citizenship', 'Vermiglio']
ASK WHERE { resource:Roger_Corman property:country_of_citizenship resource:United_States_of_America . resource:Roger_Corman property:country_of_citizenship resource:Vermiglio }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q39801 Q638425
P47
Q15617994
USER
Which administrative territories do Grödersby or Grantola share a border with ?
OR((c(Q15617994),P47,Q638425), (c(Q15617994),P47,Q39801))
action filter_type
action union
action find_reverse
entity Q638425
relation P47
action find_reverse
entity Q39801
relation P47
type Q15617994
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q638425'], [{'concept': 'Q15617994'}, 'P47', 'Q39801']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { VALUES ( ?o ) { ( resource:Q638425 ) ( resource:Q39801 ) } . ?p property:P47 ?o } }
Grantola Grödersby
action filter_type
action union
action find_reverse
entity Grödersby
relation shares border with
action find_reverse
entity Grantola
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Grödersby'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Grantola']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?o ) { ( resource:Grödersby ) ( resource:Grantola ) } . ?p property:shares_border_with ?o } }
[]
designation for an administrative territorial entity
Q40489 Q39347 Q522492 Q39112 Q565388 Q39650 Q40917 Q39886 Q516567 Q638446
SYSTEM
Ferrera di Varese, Cunardo, Arnis, Montegrino Valtravaglia, Winnemark, Cugliate-Fabiasco, Cassano Valcuvia, Mesenzana, Kappeln, Rabenkirchen-Faulück
Q40489 Q39347 Q522492 Q39112 Q565388 Q39650 Q40917 Q39886 Q516567 Q638446
OR((c(Q15617994),P47,Q638425), (c(Q15617994),P47,Q39801))
action filter_type
action union
action find_reverse
entity Q638425
relation P47
action find_reverse
entity Q39801
relation P47
type Q15617994
Grödersby or Grantola share a border with [ANSWERS]
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q638425'], [{'concept': 'Q15617994'}, 'P47', 'Q39801']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { VALUES ( ?o ) { ( resource:Q638425 ) ( resource:Q39801 ) } . ?p property:P47 ?o } }
Ferrera di Varese Cunardo Arnis Montegrino Valtravaglia Winnemark Cugliate-Fabiasco Cassano Valcuvia Mesenzana Kappeln Rabenkirchen-Faulück
Grödersby or Grantola share a border with Ferrera di Varese, Cunardo, Arnis, Montegrino Valtravaglia, Winnemark, Cugliate-Fabiasco, Cassano Valcuvia, Mesenzana, Kappeln and Rabenkirchen-Faulück
Ferrera di Varese Cunardo Arnis Montegrino Valtravaglia Winnemark Cugliate-Fabiasco Cassano Valcuvia Mesenzana Kappeln Rabenkirchen-Faulück
action filter_type
action union
action find_reverse
entity Grödersby
relation shares border with
action find_reverse
entity Grantola
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Grödersby'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Grantola']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?o ) { ( resource:Grödersby ) ( resource:Grantola ) } . ?p property:shares_border_with ?o } }
[]