Simple Question (Direct)
Simple Question
Q7159579
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Pedro Ferreira-Mendes ?
(Q7159579,P27,c(Q15617994))
action filter_type
action find
entity Q7159579
relation P27
type Q15617994
['Q7159579', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q7159579 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Pedro Ferreira-Mendes
action filter_type
action find
entity Pedro Ferreira-Mendes
relation country of citizenship
type designation for an administrative territorial entity
['Pedro Ferreira-Mendes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Pedro_Ferreira-Mendes property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q7159579,P27,c(Q15617994))
action filter_type
action find
entity Q7159579
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Pedro Ferreira-Mendes
['Q7159579', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q7159579 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Brazil
Brazil is the country of citizenship of Pedro Ferreira-Mendes
Brazil
action filter_type
action find
entity Pedro Ferreira-Mendes
relation country of citizenship
type designation for an administrative territorial entity
['Pedro Ferreira-Mendes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Pedro_Ferreira-Mendes property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7159579
P21
Q290
USER
What is the sex of that person ?
(Q155,P21,c(Q290))
action filter_type
action find
entity Q7159579
relation P21
type Q290
['Q155', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q7159579 property:P21 ?l . ?l rdf:type ontology:Q290 }
Pedro Ferreira-Mendes
action filter_type
action find
entity Pedro Ferreira-Mendes
relation gender
type sex
['Brazil', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Pedro_Ferreira-Mendes property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q155,P21,c(Q290))
action filter_type
action find
entity Q7159579
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q155', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q7159579 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Pedro Ferreira-Mendes
relation gender
type sex
['Brazil', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Pedro_Ferreira-Mendes property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7159579
P641
Q349
USER
Which sport was that person a part of ?
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q7159579
relation P641
type Q349
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?d WHERE { resource:Q7159579 property:P641 ?d . ?d rdf:type ontology:Q349 }
Pedro Ferreira-Mendes
action filter_type
action find
entity Pedro Ferreira-Mendes
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?d WHERE { resource:Pedro_Ferreira-Mendes property:sport ?d . ?d rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q7159579
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?d WHERE { resource:Q7159579 property:P641 ?d . ?d rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Pedro Ferreira-Mendes
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?d WHERE { resource:Pedro_Ferreira-Mendes property:sport ?d . ?d rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q533664 Q7159579
P19
Q56061
USER
Which administrative territories are the birthplace of Pedro Ferreira-Mendes or Usamaru Furuya ?
OR((Q7159579,P19,c(Q56061)), (Q533664,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7159579
relation P19
action find
entity Q533664
relation P19
type Q56061
{'OR': [['Q7159579', 'P19', {'concept': 'Q56061'}], ['Q533664', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q7159579 property:P19 ?k } UNION { resource:Q533664 property:P19 ?k } } . ?k rdf:type ontology:Q56061 }
Usamaru Furuya Pedro Ferreira-Mendes
action filter_type
action union
action find
entity Pedro Ferreira-Mendes
relation place of birth
action find
entity Usamaru Furuya
relation place of birth
type administrative territorial entity
{'OR': [['Pedro Ferreira-Mendes', 'place of birth', {'concept': 'administrative territorial entity'}], ['Usamaru Furuya', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Pedro_Ferreira-Mendes property:place_of_birth ?k } UNION { resource:Usamaru_Furuya property:place_of_birth ?k } } . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q83189 Q1490
SYSTEM
Goiânia, Tokyo
Q83189 Q1490
OR((Q7159579,P19,c(Q56061)), (Q533664,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7159579
relation P19
action find
entity Q533664
relation P19
type Q56061
[ANSWERS] are the birthplace of Pedro Ferreira-Mendes or Usamaru Furuya
{'OR': [['Q7159579', 'P19', {'concept': 'Q56061'}], ['Q533664', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q7159579 property:P19 ?k } UNION { resource:Q533664 property:P19 ?k } } . ?k rdf:type ontology:Q56061 }
Goiânia Tokyo
Goiânia and Tokyo are the birthplace of Pedro Ferreira-Mendes or Usamaru Furuya
Goiânia Tokyo
action filter_type
action union
action find
entity Pedro Ferreira-Mendes
relation place of birth
action find
entity Usamaru Furuya
relation place of birth
type administrative territorial entity
{'OR': [['Pedro Ferreira-Mendes', 'place of birth', {'concept': 'administrative territorial entity'}], ['Usamaru Furuya', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Pedro_Ferreira-Mendes property:place_of_birth ?k } UNION { resource:Usamaru_Furuya property:place_of_birth ?k } } . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q83189 Q1490
P190
Q15617994
USER
Which administrative territories are twin town of Goiânia and Tokyo ?
(c(Q15617994),P190,Q83189) (c(Q15617994),P190,Q1490)
action union
action filter_type
action find
entity Q83189
relation P190
type Q15617994
action filter_type
action find
entity Q1490
relation P190
type Q15617994
[{'concept': 'Q15617994'}, 'P190', 'Q83189'] [{'concept': 'Q15617994'}, 'P190', 'Q1490']
SELECT DISTINCT ?z WHERE { ?c property:P190 ?z . VALUES ( ?c ) { ( resource:Q83189 ) ( resource:Q1490 ) } }
Goiânia Tokyo
action union
action filter_type
action find
entity Goiânia
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Tokyo
relation sister city
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Goiânia'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Tokyo']
SELECT DISTINCT ?z WHERE { ?c property:sister_city ?z . VALUES ( ?c ) { ( resource:Goiânia ) ( resource:Tokyo ) } }
[]
designation for an administrative territorial entity
Q43005 Q30805
SYSTEM
Sesto San Giovanni, Cairo Governorate
Q43005 Q30805
(c(Q15617994),P190,Q83189) (c(Q15617994),P190,Q1490)
action union
action filter_type
action find
entity Q83189
relation P190
type Q15617994
action filter_type
action find
entity Q1490
relation P190
type Q15617994
[ANSWERS] are twin town of Goiânia and Tokyo
[{'concept': 'Q15617994'}, 'P190', 'Q83189'] [{'concept': 'Q15617994'}, 'P190', 'Q1490']
SELECT DISTINCT ?z WHERE { ?c property:P190 ?z . VALUES ( ?c ) { ( resource:Q83189 ) ( resource:Q1490 ) } }
Sesto San Giovanni Cairo Governorate
Sesto San Giovanni and Cairo Governorate are twin town of Goiânia and Tokyo
Sesto San Giovanni Cairo Governorate
action union
action filter_type
action find
entity Goiânia
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Tokyo
relation sister city
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Goiânia'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Tokyo']
SELECT DISTINCT ?z WHERE { ?c property:sister_city ?z . VALUES ( ?c ) { ( resource:Goiânia ) ( resource:Tokyo ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q43005 Q30805
P190
Q56061
USER
Which administrative territories are partner town of Sesto San Giovanni and Cairo Governorate ?
(c(Q56061),P190,Q43005) (c(Q56061),P190,Q30805)
action union
action filter_type
action find
entity Q43005
relation P190
type Q56061
action filter_type
action find
entity Q30805
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q43005'] [{'concept': 'Q56061'}, 'P190', 'Q30805']
SELECT DISTINCT ?r WHERE { VALUES ( ?z ) { ( resource:Q43005 ) ( resource:Q30805 ) } . ?z property:P190 ?r }
Sesto San Giovanni Cairo Governorate
action union
action filter_type
action find
entity Sesto San Giovanni
relation sister city
type administrative territorial entity
action filter_type
action find
entity Cairo Governorate
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Sesto San Giovanni'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Cairo Governorate']
SELECT DISTINCT ?r WHERE { VALUES ( ?z ) { ( resource:Sesto_San_Giovanni ) ( resource:Cairo_Governorate ) } . ?z property:sister_city ?r }
[]
administrative territorial entity
Q1490 Q171018 Q171617
SYSTEM
Tokyo, Zlín, Campinas
Q83189 Q171018 Q191652 Q171617 Q1490
(c(Q56061),P190,Q43005) (c(Q56061),P190,Q30805)
action union
action filter_type
action find
entity Q43005
relation P190
type Q56061
action filter_type
action find
entity Q30805
relation P190
type Q56061
[ANSWERS] are partner town of Sesto San Giovanni and Cairo Governorate
[{'concept': 'Q56061'}, 'P190', 'Q43005'] [{'concept': 'Q56061'}, 'P190', 'Q30805']
SELECT DISTINCT ?r WHERE { VALUES ( ?z ) { ( resource:Q43005 ) ( resource:Q30805 ) } . ?z property:P190 ?r }
Goiânia Zlín Santo André Campinas Tokyo
Tokyo, Zlín and Campinas are partner town of Sesto San Giovanni and Cairo Governorate
Tokyo Zlín Campinas
action union
action filter_type
action find
entity Sesto San Giovanni
relation sister city
type administrative territorial entity
action filter_type
action find
entity Cairo Governorate
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Sesto San Giovanni'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Cairo Governorate']
SELECT DISTINCT ?r WHERE { VALUES ( ?z ) { ( resource:Sesto_San_Giovanni ) ( resource:Cairo_Governorate ) } . ?z property:sister_city ?r }
[]
Clarification
Simple Question|Single Entity|Indirect
Q171617
P159
Q43229
USER
Which organizations have their head office location at that administrative territory ?
(c(Q43229),P159,Q171617)
action filter_type
action find_reverse
entity Q171617
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q171617']
SELECT DISTINCT ?d WHERE { ?d property:P159 resource:Q171617 . ?d rdf:type ontology:Q43229 }
Campinas
action filter_type
action find_reverse
entity Campinas
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Campinas']
SELECT DISTINCT ?d WHERE { ?d property:headquarters_location resource:Campinas . ?d rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q171617
SYSTEM
Did you mean Campinas ?
Q1490 Q171018 Q171617
(c(Q43229),P159,Q1490) (c(Q43229),P159,Q171018) (c(Q43229),P159,Q171617)
[ANSWER]
[{'concept': 'Q43229'}, 'P159', 'Q1490'] [{'concept': 'Q43229'}, 'P159', 'Q171018'] [{'concept': 'Q43229'}, 'P159', 'Q171617']
SELECT DISTINCT ?d WHERE { ?d property:P159 resource:Q171617 . ?d rdf:type ontology:Q43229 }
Tokyo Zlín Campinas
Did you mean Campinas ?
Campinas
[{'concept': 'organization'}, 'headquarters location', 'Tokyo'] [{'concept': 'organization'}, 'headquarters location', 'Zlín'] [{'concept': 'organization'}, 'headquarters location', 'Campinas']
SELECT DISTINCT ?d WHERE { ?d property:headquarters_location resource:Campinas . ?d rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q43229),P159,Q171617)
[{'concept': 'Q43229'}, 'P159', 'Q171617']
[{'concept': 'organization'}, 'headquarters location', 'Campinas']
[]
Q7574097 Q5354105 Q1121216
SYSTEM
Spatium 3D Technologies, Eldorado Institute, CPFL Energia
Q1121216 Q7574097 Q5354105 Q5119048
(c(Q43229),P159,Q171617)
action filter_type
action find_reverse
entity Q171617
relation P159
type Q43229
[ANSWERS] have their head office location at that administrative territory
[{'concept': 'Q43229'}, 'P159', 'Q171617']
SELECT DISTINCT ?d WHERE { ?d property:P159 resource:Q171617 . ?d rdf:type ontology:Q43229 }
CPFL Energia Spatium 3D Technologies Eldorado Institute CI&T
Spatium 3D Technologies, Eldorado Institute and CPFL Energia have their head office location at that administrative territory
Spatium 3D Technologies Eldorado Institute CPFL Energia
action filter_type
action find_reverse
entity Campinas
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Campinas']
SELECT DISTINCT ?d WHERE { ?d property:headquarters_location resource:Campinas . ?d rdf:type ontology:organization }
[]