Simple Question (Direct)
Simple Question
Q3845062
P1412
Q34770
USER
Which language does Manuel Torres Pastor speak in ?
(Q3845062,P1412,c(Q34770))
action filter_type
action find
entity Q3845062
relation P1412
type Q34770
['Q3845062', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { resource:Q3845062 property:P1412 ?t . ?t rdf:type ontology:Q34770 }
Manuel Torres Pastor
action filter_type
action find
entity Manuel Torres Pastor
relation languages spoken, written or signed
type language
['Manuel Torres Pastor', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { resource:Manuel_Torres_Pastor property:languages_spoken,_written_or_signed ?t . ?t rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q3845062,P1412,c(Q34770))
action filter_type
action find
entity Q3845062
relation P1412
type Q34770
Manuel Torres Pastor speaks in [ANSWER]
['Q3845062', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { resource:Q3845062 property:P1412 ?t . ?t rdf:type ontology:Q34770 }
Spanish
Manuel Torres Pastor speaks in Spanish
Spanish
action filter_type
action find
entity Manuel Torres Pastor
relation languages spoken, written or signed
type language
['Manuel Torres Pastor', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { resource:Manuel_Torres_Pastor property:languages_spoken,_written_or_signed ?t . ?t rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3845062
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q1321,P27,c(Q15617994))
action filter_type
action find
entity Q3845062
relation P27
type Q15617994
['Q1321', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q3845062 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Manuel Torres Pastor
action filter_type
action find
entity Manuel Torres Pastor
relation country of citizenship
type designation for an administrative territorial entity
['Spanish', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Manuel_Torres_Pastor property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q1321,P27,c(Q15617994))
action filter_type
action find
entity Q3845062
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q1321', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q3845062 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Spain
The Spain is that person an inhabitant of
Spain
action filter_type
action find
entity Manuel Torres Pastor
relation country of citizenship
type designation for an administrative territorial entity
['Spanish', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Manuel_Torres_Pastor property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q57672 Q3845062
P19 P20
Q56061
USER
Which administrative territories are the places of death of Manuel Torres Pastor or were Ernest Augustus, Duke of Brunswick born in ?
OR((Q3845062,P20,c(Q56061)), (Q57672,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3845062
relation P20
action find
entity Q57672
relation P19
type Q56061
{'OR': [['Q3845062', 'P20', {'concept': 'Q56061'}], ['Q57672', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . { { resource:Q3845062 property:P20 ?x } UNION { resource:Q57672 property:P19 ?x } } }
Ernest Augustus, Duke of Brunswick Manuel Torres Pastor
action filter_type
action union
action find
entity Manuel Torres Pastor
relation place of death
action find
entity Ernest Augustus, Duke of Brunswick
relation place of birth
type administrative territorial entity
{'OR': [['Manuel Torres Pastor', 'place of death', {'concept': 'administrative territorial entity'}], ['Ernest Augustus, Duke of Brunswick', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . { { resource:Manuel_Torres_Pastor property:place_of_death ?x } UNION { resource:Ernest_Augustus,_Duke_of_Brunswick property:place_of_birth ?x } } }
[]
administrative territorial entity
Q2069566 Q10305
SYSTEM
Penzing, Zaragoza
Q2069566 Q10305
OR((Q3845062,P20,c(Q56061)), (Q57672,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3845062
relation P20
action find
entity Q57672
relation P19
type Q56061
[ANSWERS] are the places of death of Manuel Torres Pastor or were Ernest Augustus, Duke of Brunswick born in
{'OR': [['Q3845062', 'P20', {'concept': 'Q56061'}], ['Q57672', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . { { resource:Q3845062 property:P20 ?x } UNION { resource:Q57672 property:P19 ?x } } }
Penzing Zaragoza
Penzing and Zaragoza are the places of death of Manuel Torres Pastor or were Ernest Augustus, Duke of Brunswick born in
Penzing Zaragoza
action filter_type
action union
action find
entity Manuel Torres Pastor
relation place of death
action find
entity Ernest Augustus, Duke of Brunswick
relation place of birth
type administrative territorial entity
{'OR': [['Manuel Torres Pastor', 'place of death', {'concept': 'administrative territorial entity'}], ['Ernest Augustus, Duke of Brunswick', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . { { resource:Manuel_Torres_Pastor property:place_of_death ?x } UNION { resource:Ernest_Augustus,_Duke_of_Brunswick property:place_of_birth ?x } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories share the border with that administrative territory ?
(Q2069566,P47,c(Q15617994))
['Q2069566', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q541494 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
['Penzing', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Penzing property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q2069566
SYSTEM
Did you mean Penzing ?
(Q2069566,P47,c(Q15617994)) (Q10305,P47,c(Q15617994))
[ANSWER]
['Q2069566', 'P47', {'concept': 'Q15617994'}] ['Q10305', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q541494 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Penzing ?
Penzing
['Penzing', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Zaragoza', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Penzing property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q2069566,P47,c(Q15617994))
['Q2069566', 'P47', {'concept': 'Q15617994'}]
['Penzing', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
2
Q653289 Q636910
(Q2069566,P47,c(Q15617994))
[ANSWER]
['Q2069566', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q541494 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Rudolfsheim-Fünfhaus Hietzing
2
['Penzing', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Penzing property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10305
P1313
Q12737077
USER
Which occupation is fulfilled by Zaragoza ?
(Q10305,P1313,c(Q12737077))
action filter_type
action find
entity Q10305
relation P1313
type Q12737077
['Q10305', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q10305 property:P1313 ?s . ?s rdf:type ontology:Q12737077 }
Zaragoza
action filter_type
action find
entity Zaragoza
relation office held by head of government
type occupation
['Zaragoza', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Zaragoza property:office_held_by_head_of_government ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q26268330
SYSTEM
mayor of Zaragoza
Q26268330
(Q10305,P1313,c(Q12737077))
action filter_type
action find
entity Q10305
relation P1313
type Q12737077
Are [ANSWER] is fulfilled by Zaragoza
['Q10305', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q10305 property:P1313 ?s . ?s rdf:type ontology:Q12737077 }
mayor of Zaragoza
Are mayor of Zaragoza is fulfilled by Zaragoza
mayor of Zaragoza
action filter_type
action find
entity Zaragoza
relation office held by head of government
type occupation
['Zaragoza', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Zaragoza property:office_held_by_head_of_government ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26268330
P39
Q502895
USER
Which person was responsible for occupying the position of that occupation ?
(c(Q502895),P39,Q26268330)
action filter_type
action find_reverse
entity Q26268330
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q26268330']
SELECT DISTINCT ?a WHERE { ?a property:P39 resource:Q26268330 . ?a rdf:type ontology:Q502895 }
mayor of Zaragoza
action filter_type
action find_reverse
entity mayor of Zaragoza
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'mayor of Zaragoza']
SELECT DISTINCT ?a WHERE { ?a property:position_held resource:mayor_of_Zaragoza . ?a rdf:type ontology:common_name }
[]
common name
Q26266778
SYSTEM
Félix Cerrada Martín
Q26266778
(c(Q502895),P39,Q26268330)
action filter_type
action find_reverse
entity Q26268330
relation P39
type Q502895
[ANSWER] was responsible for occupying the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q26268330']
SELECT DISTINCT ?a WHERE { ?a property:P39 resource:Q26268330 . ?a rdf:type ontology:Q502895 }
Félix Cerrada Martín
Félix Cerrada Martín was responsible for occupying the position of that occupation
Félix Cerrada Martín
action filter_type
action find_reverse
entity mayor of Zaragoza
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'mayor of Zaragoza']
SELECT DISTINCT ?a WHERE { ?a property:position_held resource:mayor_of_Zaragoza . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q26266778 Q29
P27
Q15617994
USER
Does Félix Cerrada Martín belong to Spain ?
(Q26266778,P27,Q29)
action is_in
entity Q29
action find
entity Q26266778
relation P27
['Q26266778', 'P27', 'Q29']
ASK WHERE { resource:Q26266778 property:P27 resource:Q29 }
Félix Cerrada Martín Spain
action is_in
entity Spain
action find
entity Félix Cerrada Martín
relation country of citizenship
['Félix Cerrada Martín', 'country of citizenship', 'Spain']
ASK WHERE { resource:Félix_Cerrada_Martín property:country_of_citizenship resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q26266778,P27,Q29)
action is_in
entity Q29
action find
entity Q26266778
relation P27
[ANSWER]
['Q26266778', 'P27', 'Q29']
ASK WHERE { resource:Q26266778 property:P27 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity Félix Cerrada Martín
relation country of citizenship
['Félix Cerrada Martín', 'country of citizenship', 'Spain']
ASK WHERE { resource:Félix_Cerrada_Martín property:country_of_citizenship resource:Spain }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26266778
P25
Q502895
USER
Which person was the mother of that one ?
action filter_type
action find
entity Q26266778
relation P25
type Q502895
SELECT DISTINCT ?r WHERE { resource:Q26266778 property:P25 ?r . ?r rdf:type ontology:Q502895 }
Félix Cerrada Martín
action filter_type
action find
entity Félix Cerrada Martín
relation mother
type common name
SELECT DISTINCT ?r WHERE { resource:Félix_Cerrada_Martín property:mother ?r . ?r rdf:type ontology:common_name }
[]
common name
Q26266722
SYSTEM
Hilaria Martín
Q26266722
action filter_type
action find
entity Q26266778
relation P25
type Q502895
[ANSWER] was the mother of that one
SELECT DISTINCT ?r WHERE { resource:Q26266778 property:P25 ?r . ?r rdf:type ontology:Q502895 }
Hilaria Martín
Hilaria Martín was the mother of that one
Hilaria Martín
action filter_type
action find
entity Félix Cerrada Martín
relation mother
type common name
SELECT DISTINCT ?r WHERE { resource:Félix_Cerrada_Martín property:mother ?r . ?r rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1195326
P725
Q502895 Q15416
USER
How many television programs did approximately the same number of people dub for as LOG HORIZON ?
(c(Q15416),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q15416
type Q502895
action count
action filter_type
action find
entity Q1195326
relation P725
type Q15416
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?r ) WHERE { ?y property:P725 ?t . ?y rdf:type ontology:Q15416 . ?t rdf:type ontology:Q502895 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { resource:Q1195326 property:P725 ?g . ?g rdf:type ontology:Q15416 } } . FILTER ( ?r = ?o ) }
LOG HORIZON
action count
action approx
action find_tuple_counts
relation voice actor
type television program
type common name
action count
action filter_type
action find
entity LOG HORIZON
relation voice actor
type television program
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?r ) WHERE { ?y property:voice_actor ?t . ?y rdf:type ontology:television_program . ?t rdf:type ontology:common_name } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { resource:LOG_HORIZON property:voice_actor ?g . ?g rdf:type ontology:television_program } } . FILTER ( ?r = ?o ) }
[]
common name television program
SYSTEM
72
Q1280574 Q4049303 Q715723 Q1135343 Q613823 Q467722 Q239937 Q1857269 Q1195326 Q5227700 Q4773554 Q4120156 Q962161 Q1617715 Q696310 Q15176855 Q472309 Q2573191 Q2581704 Q917980 Q3547706 Q845452 Q307507 Q483943 Q3596105 Q757148 Q3106852 Q25059 Q1284240 Q14493917 Q749629 Q10913555 Q1315951 Q1361413 Q543203 Q128969 Q2455207 Q2452999 Q2275664 Q702039 Q7496805 Q962132 Q20669175 Q1050091 Q699760 Q1146803 Q2140751 Q4033639 Q550555 Q1640364 Q483106 Q3098248 Q633432 Q12019559 Q18558839 Q1072208 Q304290 Q1215573 Q2619211 Q1140254 Q1317932 Q5139461 Q18559016 Q430369 Q1494222 Q452374 Q2339582 Q15039539 Q3492143 Q5976198 Q1353486 Q45035
(c(Q15416),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q15416
type Q502895
action count
action filter_type
action find
entity Q1195326
relation P725
type Q15416
[ANSWER]
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?r ) WHERE { ?y property:P725 ?t . ?y rdf:type ontology:Q15416 . ?t rdf:type ontology:Q502895 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { resource:Q1195326 property:P725 ?g . ?g rdf:type ontology:Q15416 } } . FILTER ( ?r = ?o ) }
The Adventures of Tweeny Witches Seraphim Call Urusei Yatsura Wish Upon the Pleiades Ghost Hound The Puppy's Further Adventures Pokémon Rio: Rainbow Gate! LOG HORIZON Tenchi in Tokyo Mi cola D.I.C.E. Eureka Seven The Wonderful Galaxy of Oz Hamtaro Wizard Barristers: Benmashi Cecil Princess of Thieves Onegai My Melody Willo the Wisp Witch Hunter Robin Uchūsen Sagittarius Project Blue Earth SOS H2O: Footprints in the Sand Anohana: The Flower We Saw That Day Popeye the Sailor Rocko's Modern Life Todd McFarlane's Spawn Penguin Drum Burst Angel Galileo Donna Kid vs. Kat The Melancholy of Haruhi Suzumiya Psycho-Pass Night Raid 1931 Chip 'n Dale Rescue Rangers Calimero Mnemosyne Remi, Nobody's Girl Kim Possible: A Sitch in Time The Story of Pollyanna, Girl of Love Shima Shima Tora no Shimajirō Pink Panther and Pals Hana Yori Dango Dastardly and Muttley in Their Flying Machines Saiyuki Cuéntame cómo pasó Boogiepop Phantom Akahori Gedou Hour Rabuge Gravity Falls Wild Arms: Twilight Venom Freezing Stratos 4 The Emperor's New School Free! Soul Eater Not! The Wonderful Adventures of Nils Rugrats The Proud Family Tsuritama Transformers: Animated Negima!? Engage Planet Kiss Dum Berserk The Critic Garfield in the Rough Ah My Buddha Trapp Family Story The Steamboat Adventures of Riverboat Bill Puss in Boots: The Three Diablos I Am the Greatest: The Adventures of Muhammad Ali Marumo no Okite Renkin 3-kyū Magical? Pokān
72
action count
action approx
action find_tuple_counts
relation voice actor
type television program
type common name
action count
action filter_type
action find
entity LOG HORIZON
relation voice actor
type television program
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?r ) WHERE { ?y property:voice_actor ?t . ?y rdf:type ontology:television_program . ?t rdf:type ontology:common_name } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { resource:LOG_HORIZON property:voice_actor ?g . ?g rdf:type ontology:television_program } } . FILTER ( ?r = ?o ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P47
Q15617994
USER
Which administrative territories have an adjacent border with Spain ?
(c(Q15617994),P47,Q29)
action filter_type
action find
entity Q29
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q29']
SELECT DISTINCT ?t WHERE { resource:Q29 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
Spain
action filter_type
action find
entity Spain
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Spain']
SELECT DISTINCT ?t WHERE { resource:Spain property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q45 Q1028
SYSTEM
France, Portugal, Morocco
Q1025 Q142 Q45 Q1028 Q228
(c(Q15617994),P47,Q29)
action filter_type
action find
entity Q29
relation P47
type Q15617994
[ANSWERS] have an adjacent border with Spain
[{'concept': 'Q15617994'}, 'P47', 'Q29']
SELECT DISTINCT ?t WHERE { resource:Q29 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
Mauritania France Portugal Morocco Andorra
France, Portugal and Morocco have an adjacent border with Spain
France Portugal Morocco
action filter_type
action find
entity Spain
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Spain']
SELECT DISTINCT ?t WHERE { resource:Spain property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q45
P1376
Q56061
USER
What is the capital of that administrative territory ?
(c(Q56061),P1376,Q45)
action filter_type
action find_reverse
entity Q45
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q45']
SELECT DISTINCT ?h WHERE { ?h property:P1376 resource:Q45 . ?h rdf:type ontology:Q56061 }
Portugal
action filter_type
action find_reverse
entity Portugal
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Portugal']
SELECT DISTINCT ?h WHERE { ?h property:capital_of resource:Portugal . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q1028
SYSTEM
Did you mean Morocco ?
Q142 Q45 Q1028
(c(Q56061),P1376,Q142) (c(Q56061),P1376,Q45) (c(Q56061),P1376,Q1028)
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q142'] [{'concept': 'Q56061'}, 'P1376', 'Q45'] [{'concept': 'Q56061'}, 'P1376', 'Q1028']
SELECT DISTINCT ?h WHERE { ?h property:P1376 resource:Q45 . ?h rdf:type ontology:Q56061 }
France Portugal Morocco
Did you mean Morocco ?
Morocco
[{'concept': 'administrative territorial entity'}, 'capital of', 'France'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Portugal'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Morocco']
SELECT DISTINCT ?h WHERE { ?h property:capital_of resource:Portugal . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Portugal. Could you tell me the answer for that?
(c(Q56061),P1376,Q45)
Q45
[{'concept': 'Q56061'}, 'P1376', 'Q45']
[{'concept': 'administrative territorial entity'}, 'capital of', 'Portugal']
[]
Q597
SYSTEM
Lisbon
Q597
(c(Q56061),P1376,Q45)
action filter_type
action find_reverse
entity Q45
relation P1376
type Q56061
The capital of that administrative territory is [ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q45']
SELECT DISTINCT ?h WHERE { ?h property:P1376 resource:Q45 . ?h rdf:type ontology:Q56061 }
Lisbon
The capital of that administrative territory is Lisbon
Lisbon
action filter_type
action find_reverse
entity Portugal
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Portugal']
SELECT DISTINCT ?h WHERE { ?h property:capital_of resource:Portugal . ?h rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q57672
P21 P22
Q502895
USER
Which people have Ernest Augustus, Duke of Brunswick as a parent and have the gender as female ?
AND((c(Q502895),P22,Q57672), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q57672
relation P22
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q57672'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P21 resource:Q6581072 . ?t property:P22 resource:Q57672 }
female Ernest Augustus, Duke of Brunswick
action filter_type
action intersection
action find_reverse
entity Ernest Augustus, Duke of Brunswick
relation father
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Ernest Augustus, Duke of Brunswick'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:gender resource:female . ?t property:father resource:Ernest_Augustus,_Duke_of_Brunswick }
[]
common name
Q61351
SYSTEM
Frederica of Hanover
Q61351
AND((c(Q502895),P22,Q57672), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q57672
relation P22
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWER] have Ernest Augustus, Duke of Brunswick as a parent and have the gender as female
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q57672'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P21 resource:Q6581072 . ?t property:P22 resource:Q57672 }
Frederica of Hanover
Frederica of Hanover have Ernest Augustus, Duke of Brunswick as a parent and have the gender as female
Frederica of Hanover
action filter_type
action intersection
action find_reverse
entity Ernest Augustus, Duke of Brunswick
relation father
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Ernest Augustus, Duke of Brunswick'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:gender resource:female . ?t property:father resource:Ernest_Augustus,_Duke_of_Brunswick }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q61351 Q183
P27
Q1048835
USER
Is that person an inhabitant of Germany ?
(Q61351,P27,Q183)
action is_in
entity Q183
action find
entity Q61351
relation P27
['Q61351', 'P27', 'Q183']
ASK WHERE { resource:Q61351 property:P27 resource:Q183 }
Frederica of Hanover Germany
action is_in
entity Germany
action find
entity Frederica of Hanover
relation country of citizenship
['Frederica of Hanover', 'country of citizenship', 'Germany']
ASK WHERE { resource:Frederica_of_Hanover property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q61351,P27,Q183)
action is_in
entity Q183
action find
entity Q61351
relation P27
[ANSWER]
['Q61351', 'P27', 'Q183']
ASK WHERE { resource:Q61351 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Frederica of Hanover
relation country of citizenship
['Frederica of Hanover', 'country of citizenship', 'Germany']
ASK WHERE { resource:Frederica_of_Hanover property:country_of_citizenship resource:Germany }
[]