Simple Question (Direct)
Simple Question
Q5448561
P19
Q56061
USER
Which administrative territory is the place of birth of Filipe Santos Oliveira ?
(Q5448561,P19,c(Q56061))
action filter_type
action find
entity Q5448561
relation P19
type Q56061
['Q5448561', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q5448561 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Filipe Santos Oliveira
action filter_type
action find
entity Filipe Santos Oliveira
relation place of birth
type administrative territorial entity
['Filipe Santos Oliveira', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Filipe_Santos_Oliveira property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q206933
SYSTEM
Leiria
Q206933
(Q5448561,P19,c(Q56061))
action filter_type
action find
entity Q5448561
relation P19
type Q56061
[ANSWER] is the place of birth of Filipe Santos Oliveira
['Q5448561', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q5448561 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Leiria
Leiria is the place of birth of Filipe Santos Oliveira
Leiria
action filter_type
action find
entity Filipe Santos Oliveira
relation place of birth
type administrative territorial entity
['Filipe Santos Oliveira', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Filipe_Santos_Oliveira property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q206933
P190
Q56061
USER
Which administrative territories are sister town of that one ?
(c(Q56061),P190,Q206933)
action filter_type
action find
entity Q206933
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q206933']
SELECT DISTINCT ?m WHERE { resource:Q206933 property:P190 ?m . ?m rdf:type ontology:Q56061 }
Leiria
action filter_type
action find
entity Leiria
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Leiria']
SELECT DISTINCT ?m WHERE { resource:Leiria property:sister_city ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q174 Q173699 Q488052
SYSTEM
São Paulo, Setúbal, Olivenza
Q488052 Q323801 Q13957085 Q174 Q173699
(c(Q56061),P190,Q206933)
action filter_type
action find
entity Q206933
relation P190
type Q56061
[ANSWERS] are sister town of that one
[{'concept': 'Q56061'}, 'P190', 'Q206933']
SELECT DISTINCT ?m WHERE { resource:Q206933 property:P190 ?m . ?m rdf:type ontology:Q56061 }
Olivenza Nampula São Filipe São Paulo Setúbal
São Paulo, Setúbal and Olivenza are sister town of that one
São Paulo Setúbal Olivenza
action filter_type
action find
entity Leiria
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Leiria']
SELECT DISTINCT ?m WHERE { resource:Leiria property:sister_city ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q174 Q173699 Q488052
P190
Q56061
USER
Which administrative territories are partner town of São Paulo, Setúbal and Olivenza ?
(c(Q56061),P190,Q174) (c(Q56061),P190,Q173699) (c(Q56061),P190,Q488052)
action union
action filter_type
action find
entity Q174
relation P190
type Q56061
action filter_type
action find
entity Q173699
relation P190
type Q56061
action filter_type
action find
entity Q488052
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q174'] [{'concept': 'Q56061'}, 'P190', 'Q173699'] [{'concept': 'Q56061'}, 'P190', 'Q488052']
SELECT DISTINCT ?u WHERE { { resource:Q174 property:P190 ?u . ?u rdf:type ontology:Q56061 } UNION { ?u rdf:type ontology:Q56061 . resource:Q173699 property:P190 ?u } }
São Paulo Setúbal Olivenza
action union
action filter_type
action find
entity São Paulo
relation sister city
type administrative territorial entity
action filter_type
action find
entity Setúbal
relation sister city
type administrative territorial entity
action filter_type
action find
entity Olivenza
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'São Paulo'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Setúbal'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Olivenza']
SELECT DISTINCT ?u WHERE { { resource:São_Paulo property:sister_city ?u . ?u rdf:type ontology:administrative_territorial_entity } UNION { ?u rdf:type ontology:administrative_territorial_entity . resource:Setúbal property:sister_city ?u } }
[]
administrative territorial entity
Q490 Q8686 Q1781
SYSTEM
Milan, Shanghai, Budapest
Q14314 Q159273 Q1563 Q956 Q433574 Q45412 Q8686 Q1297 Q181966 Q2868 Q1492 Q206933 Q1335 Q44059 Q44237 Q490 Q33935 Q172 Q3766 Q5818 Q1781 Q597 Q425410 Q54898 Q3897 Q1491 Q1489 Q3805 Q3703 Q79880 Q206933 Q318306 Q183405 Q206933
(c(Q56061),P190,Q174) (c(Q56061),P190,Q173699) (c(Q56061),P190,Q488052)
action union
action filter_type
action find
entity Q174
relation P190
type Q56061
action filter_type
action find
entity Q173699
relation P190
type Q56061
action filter_type
action find
entity Q488052
relation P190
type Q56061
[ANSWERS] are partner town of São Paulo, Setúbal and Olivenza
[{'concept': 'Q56061'}, 'P190', 'Q174'] [{'concept': 'Q56061'}, 'P190', 'Q173699'] [{'concept': 'Q56061'}, 'P190', 'Q488052']
SELECT DISTINCT ?u WHERE { { resource:Q174 property:P190 ?u . ?u rdf:type ontology:Q56061 } UNION { ?u rdf:type ontology:Q56061 . resource:Q173699 property:P190 ?u } }
Santiago de Compostela Arequipa Havana Beijing Alta Floresta Coimbra Shanghai Chicago Naha Lima Barcelona Leiria Montevideo La Plata Mendoza Milan Tel Aviv Toronto Damascus Córdoba Budapest Lisbon Góis Municipality San Cristóbal de La Laguna Luanda La Paz Mexico City Amman Bamako Debrecen Leiria Quelimane Safi Leiria
Milan, Shanghai and Budapest are partner town of São Paulo, Setúbal and Olivenza
Milan Shanghai Budapest
action union
action filter_type
action find
entity São Paulo
relation sister city
type administrative territorial entity
action filter_type
action find
entity Setúbal
relation sister city
type administrative territorial entity
action filter_type
action find
entity Olivenza
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'São Paulo'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Setúbal'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Olivenza']
SELECT DISTINCT ?u WHERE { { resource:São_Paulo property:sister_city ?u . ?u rdf:type ontology:administrative_territorial_entity } UNION { ?u rdf:type ontology:administrative_territorial_entity . resource:Setúbal property:sister_city ?u } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q490 Q8686 Q1781
P931
Q62447
USER
Which aerodromes are served by Milan, Shanghai and Budapest ?
(c(Q62447),P931,Q490) (c(Q62447),P931,Q8686) (c(Q62447),P931,Q1781)
action union
action filter_type
action find_reverse
entity Q490
relation P931
type Q62447
action filter_type
action find_reverse
entity Q8686
relation P931
type Q62447
action filter_type
action find_reverse
entity Q1781
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q490'] [{'concept': 'Q62447'}, 'P931', 'Q8686'] [{'concept': 'Q62447'}, 'P931', 'Q1781']
SELECT DISTINCT ?o WHERE { VALUES ( ?u ) { ( resource:Q490 ) ( resource:Q8686 ) } . ?o property:P931 ?u }
Milan Shanghai Budapest
action union
action filter_type
action find_reverse
entity Milan
relation place served by airport
type aerodrome
action filter_type
action find_reverse
entity Shanghai
relation place served by airport
type aerodrome
action filter_type
action find_reverse
entity Budapest
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Milan'] [{'concept': 'aerodrome'}, 'place served by airport', 'Shanghai'] [{'concept': 'aerodrome'}, 'place served by airport', 'Budapest']
SELECT DISTINCT ?o WHERE { VALUES ( ?u ) { ( resource:Milan ) ( resource:Shanghai ) } . ?o property:place_served_by_airport ?u }
[]
aerodrome
Q1433718 Q828386 Q856297
SYSTEM
Bresso Airport, Linate Airport, Shanghai Longhua Airport
Q1433718 Q828386 Q856297 Q2903165 Q500945
(c(Q62447),P931,Q490) (c(Q62447),P931,Q8686) (c(Q62447),P931,Q1781)
action union
action filter_type
action find_reverse
entity Q490
relation P931
type Q62447
action filter_type
action find_reverse
entity Q8686
relation P931
type Q62447
action filter_type
action find_reverse
entity Q1781
relation P931
type Q62447
Milan [ANSWERS] are served by Milan, Shanghai and Budapest
[{'concept': 'Q62447'}, 'P931', 'Q490'] [{'concept': 'Q62447'}, 'P931', 'Q8686'] [{'concept': 'Q62447'}, 'P931', 'Q1781']
SELECT DISTINCT ?o WHERE { VALUES ( ?u ) { ( resource:Q490 ) ( resource:Q8686 ) } . ?o property:P931 ?u }
Bresso Airport Linate Airport Shanghai Longhua Airport Jiangwan Airport Budapest Ferenc Liszt International Airport
Milan Bresso Airport, Linate Airport and Shanghai Longhua Airport are served by Milan, Shanghai and Budapest
Bresso Airport Linate Airport Shanghai Longhua Airport
action union
action filter_type
action find_reverse
entity Milan
relation place served by airport
type aerodrome
action filter_type
action find_reverse
entity Shanghai
relation place served by airport
type aerodrome
action filter_type
action find_reverse
entity Budapest
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Milan'] [{'concept': 'aerodrome'}, 'place served by airport', 'Shanghai'] [{'concept': 'aerodrome'}, 'place served by airport', 'Budapest']
SELECT DISTINCT ?o WHERE { VALUES ( ?u ) { ( resource:Milan ) ( resource:Shanghai ) } . ?o property:place_served_by_airport ?u }
[]
Clarification
Simple Question|Single Entity|Indirect
Q490
P119
Q502895
USER
Which people have that administrative territory as resting place ?
(c(Q502895),P119,Q490)
action filter_type
action find_reverse
entity Q490
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q490']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P119 resource:Q490 }
Milan
action filter_type
action find_reverse
entity Milan
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Milan']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:place_of_burial resource:Milan }
[]
common name
Clarification for simple ques.
Q490
SYSTEM
Did you mean Milan ?
Q1433718 Q828386 Q856297
(c(Q502895),P119,Q1433718) (c(Q502895),P119,Q828386) (c(Q502895),P119,Q856297)
[ANSWER]
[{'concept': 'Q502895'}, 'P119', 'Q1433718'] [{'concept': 'Q502895'}, 'P119', 'Q828386'] [{'concept': 'Q502895'}, 'P119', 'Q856297']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P119 resource:Q490 }
Bresso Airport Linate Airport Shanghai Longhua Airport
Did you mean Milan ?
Milan
[{'concept': 'common name'}, 'place of burial', 'Bresso Airport'] [{'concept': 'common name'}, 'place of burial', 'Linate Airport'] [{'concept': 'common name'}, 'place of burial', 'Shanghai Longhua Airport']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:place_of_burial resource:Milan }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P119,Q490)
[{'concept': 'Q502895'}, 'P119', 'Q490']
[{'concept': 'common name'}, 'place of burial', 'Milan']
[]
Q1300641 Q7317
SYSTEM
Rembrandt Bugatti, Giuseppe Verdi
Q1300641 Q7317
(c(Q502895),P119,Q490)
action filter_type
action find_reverse
entity Q490
relation P119
type Q502895
[ANSWERS] have that administrative territory as resting place
[{'concept': 'Q502895'}, 'P119', 'Q490']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P119 resource:Q490 }
Rembrandt Bugatti Giuseppe Verdi
Rembrandt Bugatti and Giuseppe Verdi have that administrative territory as resting place
Rembrandt Bugatti Giuseppe Verdi
action filter_type
action find_reverse
entity Milan
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Milan']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:place_of_burial resource:Milan }
[]