Simple Question (Direct)
Simple Question
Q3191199
P19
Q56061
USER
Which administrative territory was Júlio Santos born at ?
(Q3191199,P19,c(Q56061))
action filter_type
action find
entity Q3191199
relation P19
type Q56061
['Q3191199', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q3191199 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Júlio Santos
action filter_type
action find
entity Júlio Santos
relation place of birth
type administrative territorial entity
['Júlio Santos', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Júlio_Santos property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q4035
SYSTEM
Osasco
Q4035
(Q3191199,P19,c(Q56061))
action filter_type
action find
entity Q3191199
relation P19
type Q56061
Júlio Santos was born in [ANSWER]
['Q3191199', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q3191199 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Osasco
Júlio Santos was born in Osasco
Osasco
action filter_type
action find
entity Júlio Santos
relation place of birth
type administrative territorial entity
['Júlio Santos', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Júlio_Santos property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4035
P17
Q15617994
USER
Which administrative territory does that administrative territory belong to ?
(Q4035,P17,c(Q15617994))
action filter_type
action find
entity Q4035
relation P17
type Q15617994
['Q4035', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q4035 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Osasco
action filter_type
action find
entity Osasco
relation country
type designation for an administrative territorial entity
['Osasco', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Osasco property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q4035,P17,c(Q15617994))
action filter_type
action find
entity Q4035
relation P17
type Q15617994
That administrative territory belongs to [ANSWER]
['Q4035', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q4035 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Brazil
That administrative territory belongs to Brazil
Brazil
action filter_type
action find
entity Osasco
relation country
type designation for an administrative territorial entity
['Osasco', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Osasco property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q10308566
Q15617994
USER
And also tell me about Arroio do Só?
(Q10308566,P17,c(Q15617994))
action filter_type
action find
entity Q10308566
relation P17
type Q15617994
['Q10308566', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q10308566 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Arroio do Só
action filter_type
action find
entity Arroio do Só
relation country
type designation for an administrative territorial entity
['Arroio do Só', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Arroio_do_Só property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q10308566,P17,c(Q15617994))
action filter_type
action find
entity Q10308566
relation P17
type Q15617994
[ANSWER]
['Q10308566', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q10308566 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Brazil
Brazil
action filter_type
action find
entity Arroio do Só
relation country
type designation for an administrative territorial entity
['Arroio do Só', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Arroio_do_Só property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q155 Q46206 Q917
P530
Q15617994
USER
Is that administrative territory known to have diplomatic connections with Grancona and Bhutan ?
(Q155,P530,Q46206) (Q155,P530,Q917)
action is_in
entity Q155
action intersection
action find_reverse
entity Q46206
relation P530
action find_reverse
entity Q917
relation P530
['Q155', 'P530', 'Q46206'] ['Q155', 'P530', 'Q917']
ASK WHERE { resource:Q155 property:P530 resource:Q917 . resource:Q155 property:P530 resource:Q46206 }
Brazil Grancona Bhutan
action is_in
entity Brazil
action intersection
action find_reverse
entity Grancona
relation diplomatic relation
action find_reverse
entity Bhutan
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Grancona'] ['Brazil', 'diplomatic relation', 'Bhutan']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Bhutan . resource:Brazil property:diplomatic_relation resource:Grancona }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q155,P530,Q46206) (Q155,P530,Q917)
action is_in
entity Q155
action intersection
action find_reverse
entity Q46206
relation P530
action find_reverse
entity Q917
relation P530
[ANSWER]
['Q155', 'P530', 'Q46206'] ['Q155', 'P530', 'Q917']
ASK WHERE { resource:Q155 property:P530 resource:Q917 . resource:Q155 property:P530 resource:Q46206 }
NO and YES respectively
action is_in
entity Brazil
action intersection
action find_reverse
entity Grancona
relation diplomatic relation
action find_reverse
entity Bhutan
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Grancona'] ['Brazil', 'diplomatic relation', 'Bhutan']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Bhutan . resource:Brazil property:diplomatic_relation resource:Grancona }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q145 Q155
P27
Q502895
USER
Which people are civilians of Brazil and United Kingdom ?
AND((c(Q502895),P27,Q155), (c(Q502895),P27,Q145))
action filter_type
action intersection
action find_reverse
entity Q155
relation P27
action find_reverse
entity Q145
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q155'], [{'concept': 'Q502895'}, 'P27', 'Q145']]}
SELECT DISTINCT ?z WHERE { ?z property:P27 resource:Q155 . ?z property:P27 resource:Q145 . ?z rdf:type ontology:Q502895 }
United Kingdom Brazil
action filter_type
action intersection
action find_reverse
entity Brazil
relation country of citizenship
action find_reverse
entity United Kingdom
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Brazil'], [{'concept': 'common name'}, 'country of citizenship', 'United Kingdom']]}
SELECT DISTINCT ?z WHERE { ?z property:country_of_citizenship resource:Brazil . ?z property:country_of_citizenship resource:United_Kingdom . ?z rdf:type ontology:common_name }
[]
common name
Q214209 Q334994
SYSTEM
Peter Medawar, Thomas Cochrane, 10th Earl of Dundonald
Q214209 Q334994
AND((c(Q502895),P27,Q155), (c(Q502895),P27,Q145))
action filter_type
action intersection
action find_reverse
entity Q155
relation P27
action find_reverse
entity Q145
relation P27
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q155'], [{'concept': 'Q502895'}, 'P27', 'Q145']]}
SELECT DISTINCT ?z WHERE { ?z property:P27 resource:Q155 . ?z property:P27 resource:Q145 . ?z rdf:type ontology:Q502895 }
Peter Medawar Thomas Cochrane, 10th Earl of Dundonald
Peter Medawar and Thomas Cochrane, 10th Earl of Dundonald are civilians of Brazil and United Kingdom
Peter Medawar Thomas Cochrane, 10th Earl of Dundonald
action filter_type
action intersection
action find_reverse
entity Brazil
relation country of citizenship
action find_reverse
entity United Kingdom
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Brazil'], [{'concept': 'common name'}, 'country of citizenship', 'United Kingdom']]}
SELECT DISTINCT ?z WHERE { ?z property:country_of_citizenship resource:Brazil . ?z property:country_of_citizenship resource:United_Kingdom . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q214209 Q334994
P19
Q56061
USER
Where were Peter Medawar and Thomas Cochrane, 10th Earl of Dundonald born ?
(Q214209,P19,c(Q56061)) (Q334994,P19,c(Q56061))
action union
action filter_type
action find
entity Q214209
relation P19
type Q56061
action filter_type
action find
entity Q334994
relation P19
type Q56061
['Q214209', 'P19', {'concept': 'Q56061'}] ['Q334994', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:Q56061 . resource:Q214209 property:P19 ?z } UNION { resource:Q334994 property:P19 ?z . ?z rdf:type ontology:Q56061 } }
Peter Medawar Thomas Cochrane, 10th Earl of Dundonald
action union
action filter_type
action find
entity Peter Medawar
relation place of birth
type administrative territorial entity
action filter_type
action find
entity Thomas Cochrane, 10th Earl of Dundonald
relation place of birth
type administrative territorial entity
['Peter Medawar', 'place of birth', {'concept': 'administrative territorial entity'}] ['Thomas Cochrane, 10th Earl of Dundonald', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:administrative_territorial_entity . resource:Peter_Medawar property:place_of_birth ?z } UNION { resource:Thomas_Cochrane,_10th_Earl_of_Dundonald property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q189043 Q8678 Q4131
SYSTEM
Petrópolis, Rio de Janeiro, Hamilton
Q189043 Q8678 Q4131
(Q214209,P19,c(Q56061)) (Q334994,P19,c(Q56061))
action union
action filter_type
action find
entity Q214209
relation P19
type Q56061
action filter_type
action find
entity Q334994
relation P19
type Q56061
Peter Medawar and Thomas Cochrane , 10th Earl of Dundonald were born in [ANSWERS]
['Q214209', 'P19', {'concept': 'Q56061'}] ['Q334994', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:Q56061 . resource:Q214209 property:P19 ?z } UNION { resource:Q334994 property:P19 ?z . ?z rdf:type ontology:Q56061 } }
Petrópolis Rio de Janeiro Hamilton
Peter Medawar and Thomas Cochrane , 10th Earl of Dundonald were born in Petrópolis, Rio de Janeiro and Hamilton
Petrópolis Rio de Janeiro Hamilton
action union
action filter_type
action find
entity Peter Medawar
relation place of birth
type administrative territorial entity
action filter_type
action find
entity Thomas Cochrane, 10th Earl of Dundonald
relation place of birth
type administrative territorial entity
['Peter Medawar', 'place of birth', {'concept': 'administrative territorial entity'}] ['Thomas Cochrane, 10th Earl of Dundonald', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { ?z rdf:type ontology:administrative_territorial_entity . resource:Peter_Medawar property:place_of_birth ?z } UNION { resource:Thomas_Cochrane,_10th_Earl_of_Dundonald property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q189043 Q8678 Q4131
P17
Q15617994
USER
Which administrative territories are Petrópolis, Rio de Janeiro and Hamilton located in ?
(Q189043,P17,c(Q15617994)) (Q8678,P17,c(Q15617994)) (Q4131,P17,c(Q15617994))
action union
action filter_type
action find
entity Q189043
relation P17
type Q15617994
action filter_type
action find
entity Q8678
relation P17
type Q15617994
action filter_type
action find
entity Q4131
relation P17
type Q15617994
['Q189043', 'P17', {'concept': 'Q15617994'}] ['Q8678', 'P17', {'concept': 'Q15617994'}] ['Q4131', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { resource:Q189043 property:P17 ?b . ?b rdf:type ontology:Q15617994 } UNION { resource:Q8678 property:P17 ?b . ?b rdf:type ontology:Q15617994 } }
Petrópolis Rio de Janeiro Hamilton
action union
action filter_type
action find
entity Petrópolis
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Rio de Janeiro
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Hamilton
relation country
type designation for an administrative territorial entity
['Petrópolis', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Rio de Janeiro', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Hamilton', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { resource:Petrópolis property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Rio_de_Janeiro property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q155 Q155 Q145
SYSTEM
Brazil for 1st, 2nd, United Kingdom for 3rd
Q155 Q155 Q145
(Q189043,P17,c(Q15617994)) (Q8678,P17,c(Q15617994)) (Q4131,P17,c(Q15617994))
action union
action filter_type
action find
entity Q189043
relation P17
type Q15617994
action filter_type
action find
entity Q8678
relation P17
type Q15617994
action filter_type
action find
entity Q4131
relation P17
type Q15617994
[ANSWERS]
['Q189043', 'P17', {'concept': 'Q15617994'}] ['Q8678', 'P17', {'concept': 'Q15617994'}] ['Q4131', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { resource:Q189043 property:P17 ?b . ?b rdf:type ontology:Q15617994 } UNION { resource:Q8678 property:P17 ?b . ?b rdf:type ontology:Q15617994 } }
Brazil Brazil United Kingdom
Brazil, Brazil and United Kingdom are Petrópolis, Rio de Janeiro and Hamilton located in
Brazil Brazil United Kingdom
action union
action filter_type
action find
entity Petrópolis
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Rio de Janeiro
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Hamilton
relation country
type designation for an administrative territorial entity
['Petrópolis', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Rio de Janeiro', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Hamilton', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { resource:Petrópolis property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Rio_de_Janeiro property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4035
P47
Q56061
USER
Which administrative territory has an adjacent border with Osasco ?
(c(Q56061),P47,Q4035)
action filter_type
action find
entity Q4035
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q4035']
SELECT DISTINCT ?v WHERE { resource:Q4035 property:P47 ?v . ?v rdf:type ontology:Q56061 }
Osasco
action filter_type
action find
entity Osasco
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Osasco']
SELECT DISTINCT ?v WHERE { resource:Osasco property:shares_border_with ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q526318
SYSTEM
Santana de Parnaíba
Q526318
(c(Q56061),P47,Q4035)
action filter_type
action find
entity Q4035
relation P47
type Q56061
[ANSWER] has an adjacent border with Osasco
[{'concept': 'Q56061'}, 'P47', 'Q4035']
SELECT DISTINCT ?v WHERE { resource:Q4035 property:P47 ?v . ?v rdf:type ontology:Q56061 }
Santana de Parnaíba
Santana de Parnaíba has an adjacent border with Osasco
Santana de Parnaíba
action filter_type
action find
entity Osasco
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Osasco']
SELECT DISTINCT ?v WHERE { resource:Osasco property:shares_border_with ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q526318
P159
Q43229
USER
Which organizations have HQ at that administrative territory ?
(c(Q43229),P159,Q526318)
action filter_type
action find_reverse
entity Q526318
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q526318']
SELECT DISTINCT ?e WHERE { ?e property:P159 resource:Q526318 . ?e rdf:type ontology:Q43229 }
Santana de Parnaíba
action filter_type
action find_reverse
entity Santana de Parnaíba
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Santana de Parnaíba']
SELECT DISTINCT ?e WHERE { ?e property:headquarters_location resource:Santana_de_Parnaíba . ?e rdf:type ontology:organization }
[]
organization
Q10372347 Q3943701
SYSTEM
Sky+DirectTV, Sky Brasil
Q10372347 Q3943701
(c(Q43229),P159,Q526318)
action filter_type
action find_reverse
entity Q526318
relation P159
type Q43229
[ANSWERS] have HQ at that administrative territory
[{'concept': 'Q43229'}, 'P159', 'Q526318']
SELECT DISTINCT ?e WHERE { ?e property:P159 resource:Q526318 . ?e rdf:type ontology:Q43229 }
Sky+DirectTV Sky Brasil
Sky+DirectTV and Sky Brasil have HQ at that administrative territory
Sky+DirectTV Sky Brasil
action filter_type
action find_reverse
entity Santana de Parnaíba
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Santana de Parnaíba']
SELECT DISTINCT ?e WHERE { ?e property:headquarters_location resource:Santana_de_Parnaíba . ?e rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q10372347 Q3943701
P159
Q56061
USER
Which administrative territories are the HQ of those organizations ?
(Q10372347,P159,c(Q56061)) (Q3943701,P159,c(Q56061))
action filter_type
action find
entity prev_answer
relation P159
type Q56061
['Q10372347', 'P159', {'concept': 'Q56061'}] ['Q3943701', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?q ) { ( resource:Q10372347 ) ( resource:Q3943701 ) } . ?r rdf:type ontology:Q56061 . ?q property:P159 ?r }
Sky+DirectTV Sky Brasil
action filter_type
action find
entity prev_answer
relation headquarters location
type administrative territorial entity
['Sky+DirectTV', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Sky Brasil', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?q ) { ( resource:Sky+DirectTV ) ( resource:Sky_Brasil ) } . ?r rdf:type ontology:administrative_territorial_entity . ?q property:headquarters_location ?r }
[]
administrative territorial entity
Q526318 Q526318
SYSTEM
Santana de Parnaíba
Q526318 Q526318
(Q10372347,P159,c(Q56061)) (Q3943701,P159,c(Q56061))
action filter_type
action find
entity prev_answer
relation P159
type Q56061
[ANSWER] and [ANSWER] are the HQ of those organizations
['Q10372347', 'P159', {'concept': 'Q56061'}] ['Q3943701', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?q ) { ( resource:Q10372347 ) ( resource:Q3943701 ) } . ?r rdf:type ontology:Q56061 . ?q property:P159 ?r }
Santana de Parnaíba Santana de Parnaíba
Santana de Parnaíba and Santana de Parnaíba are the HQ of those organizations
Santana de Parnaíba Santana de Parnaíba
action filter_type
action find
entity prev_answer
relation headquarters location
type administrative territorial entity
['Sky+DirectTV', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Sky Brasil', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?q ) { ( resource:Sky+DirectTV ) ( resource:Sky_Brasil ) } . ?r rdf:type ontology:administrative_territorial_entity . ?q property:headquarters_location ?r }
[]