Simple Question (Direct)
Simple Question
Q3178484
P106
Q12737077
USER
What are the professions of Narcís Serra i Serra ?
(Q3178484,P106,c(Q12737077))
action filter_type
action find
entity Q3178484
relation P106
type Q12737077
['Q3178484', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3178484 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Narcís Serra i Serra
action filter_type
action find
entity Narcís Serra i Serra
relation occupation
type occupation
['Narcís Serra i Serra', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Narcís_Serra_i_Serra property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q188094 Q82955
SYSTEM
economist, politician
Q188094 Q82955
(Q3178484,P106,c(Q12737077))
action filter_type
action find
entity Q3178484
relation P106
type Q12737077
The professions of Narcís Serra i Serra are an [ANSWERS]
['Q3178484', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3178484 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
economist politician
The professions of Narcís Serra i Serra are an economist and politician
economist politician
action filter_type
action find
entity Narcís Serra i Serra
relation occupation
type occupation
['Narcís Serra i Serra', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Narcís_Serra_i_Serra property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3178484
P6
Q56061
USER
Which administrative territory is Narcís Serra i Serra the head of the goverment of ?
(c(Q56061),P6,Q3178484)
action filter_type
action find_reverse
entity Q3178484
relation P6
type Q56061
[{'concept': 'Q56061'}, 'P6', 'Q3178484']
SELECT DISTINCT ?n WHERE { ?n property:P6 resource:Q3178484 . ?n rdf:type ontology:Q56061 }
Narcís Serra i Serra
action filter_type
action find_reverse
entity Narcís Serra i Serra
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Narcís Serra i Serra']
SELECT DISTINCT ?n WHERE { ?n property:head_of_government resource:Narcís_Serra_i_Serra . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(c(Q56061),P6,Q3178484)
action filter_type
action find_reverse
entity Q3178484
relation P6
type Q56061
[ANSWER] is Narcís Serra i Serra the head of the goverment of
[{'concept': 'Q56061'}, 'P6', 'Q3178484']
SELECT DISTINCT ?n WHERE { ?n property:P6 resource:Q3178484 . ?n rdf:type ontology:Q56061 }
Barcelona
Barcelona is Narcís Serra i Serra the head of the goverment of
Barcelona
action filter_type
action find_reverse
entity Narcís Serra i Serra
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Narcís Serra i Serra']
SELECT DISTINCT ?n WHERE { ?n property:head_of_government resource:Narcís_Serra_i_Serra . ?n rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1492 Q17361811
P276
Q1190554
USER
Is UFC 178 situated at that administrative territory ?
(Q17361811,P276,Q1492)
action is_in
entity Q17361811
action find
entity Q1492
relation P276
['Q17361811', 'P276', 'Q1492']
ASK WHERE { resource:Q1492 property:P276 resource:Q17361811 }
Barcelona UFC 178
action is_in
entity UFC 178
action find
entity Barcelona
relation location
['UFC 178', 'location', 'Barcelona']
ASK WHERE { resource:Barcelona property:location resource:UFC_178 }
[]
event
SYSTEM
NO
(Q17361811,P276,Q1492)
action is_in
entity Q17361811
action find
entity Q1492
relation P276
[ANSWER]
['Q17361811', 'P276', 'Q1492']
ASK WHERE { resource:Q1492 property:P276 resource:Q17361811 }
No
action is_in
entity UFC 178
action find
entity Barcelona
relation location
['UFC 178', 'location', 'Barcelona']
ASK WHERE { resource:Barcelona property:location resource:UFC_178 }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2079968 Q3178484
P937
Q56061
USER
Which administrative territories are the locations where Narcís Serra i Serra or Petr Chudožilov worked ?
OR((Q3178484,P937,c(Q56061)), (Q2079968,P937,c(Q56061)))
action filter_type
action union
action find
entity Q3178484
relation P937
action find
entity Q2079968
relation P937
type Q56061
{'OR': [['Q3178484', 'P937', {'concept': 'Q56061'}], ['Q2079968', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q2079968 property:P937 ?o } UNION { resource:Q3178484 property:P937 ?o } } . ?o rdf:type ontology:Q56061 }
Petr Chudožilov Narcís Serra i Serra
action filter_type
action union
action find
entity Narcís Serra i Serra
relation work location
action find
entity Petr Chudožilov
relation work location
type administrative territorial entity
{'OR': [['Narcís Serra i Serra', 'work location', {'concept': 'administrative territorial entity'}], ['Petr Chudožilov', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Petr_Chudožilov property:work_location ?o } UNION { resource:Narcís_Serra_i_Serra property:work_location ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807 Q1492 Q1085 Q78
SYSTEM
Madrid, Barcelona, Prague, Basel
Q2807 Q1492 Q1085 Q78
OR((Q3178484,P937,c(Q56061)), (Q2079968,P937,c(Q56061)))
action filter_type
action union
action find
entity Q3178484
relation P937
action find
entity Q2079968
relation P937
type Q56061
[ANSWERS] are the locations where Narcís Serra i Serra or Petr Chudožilov worked
{'OR': [['Q3178484', 'P937', {'concept': 'Q56061'}], ['Q2079968', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q2079968 property:P937 ?o } UNION { resource:Q3178484 property:P937 ?o } } . ?o rdf:type ontology:Q56061 }
Madrid Barcelona Prague Basel
Madrid, Barcelona, Prague and Basel are the locations where Narcís Serra i Serra or Petr Chudožilov worked
Madrid Barcelona Prague Basel
action filter_type
action union
action find
entity Narcís Serra i Serra
relation work location
action find
entity Petr Chudožilov
relation work location
type administrative territorial entity
{'OR': [['Narcís Serra i Serra', 'work location', {'concept': 'administrative territorial entity'}], ['Petr Chudožilov', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Petr_Chudožilov property:work_location ?o } UNION { resource:Narcís_Serra_i_Serra property:work_location ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2807 Q1492 Q1085 Q78
P190
Q56061
USER
Which administrative territories are twin towns of those ones ?
(Q2807,P190,c(Q56061)) (Q1492,P190,c(Q56061)) (Q1085,P190,c(Q56061)) (Q78,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q2807', 'P190', {'concept': 'Q56061'}] ['Q1492', 'P190', {'concept': 'Q56061'}] ['Q1085', 'P190', {'concept': 'Q56061'}] ['Q78', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . ?m property:P190 ?f . VALUES ( ?m ) { ( resource:Q2807 ) ( resource:Q1492 ) ( resource:Q1085 ) } }
Madrid Barcelona Prague Basel
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Madrid', 'sister city', {'concept': 'administrative territorial entity'}] ['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}] ['Prague', 'sister city', {'concept': 'administrative territorial entity'}] ['Basel', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . ?m property:sister_city ?f . VALUES ( ?m ) { ( resource:Madrid ) ( resource:Barcelona ) ( resource:Prague ) } }
[]
administrative territorial entity
Q1085 Q649 Q649
SYSTEM
Moscow for 2nd, 3rd, Prague for 1st
Q3070 Q3551 Q649 Q239 Q472 Q3274 Q3110 Q3579 Q1479 Q3766 Q34820 Q1524 Q956 Q1781 Q1489 Q1555 Q1563 Q518431 Q41211 Q3306 Q2868 Q8678 Q3238 Q270 Q597 Q3688 Q1335 Q64 Q1491 Q60 Q1085 Q8717 Q8686 Q12892 Q365 Q100 Q52535 Q42053 Q340 Q6506 Q34820 Q1524 Q1563 Q48320 Q33935 Q3561 Q85 Q47492 Q174 Q8678 Q33986 Q6441 Q1757 Q649 Q472 Q8621 Q185632 Q1867 Q1297 Q1842 Q1524 Q6252 Q2634 Q1780 Q13386 Q1748 Q26119 Q2090 Q406 Q13362 Q216 Q239 Q51103 Q2807 Q64 Q3376 Q1218 Q16556 Q168202 Q83061 Q8686
(Q2807,P190,c(Q56061)) (Q1492,P190,c(Q56061)) (Q1085,P190,c(Q56061)) (Q78,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS]
['Q2807', 'P190', {'concept': 'Q56061'}] ['Q1492', 'P190', {'concept': 'Q56061'}] ['Q1085', 'P190', {'concept': 'Q56061'}] ['Q78', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . ?m property:P190 ?f . VALUES ( ?m ) { ( resource:Q2807 ) ( resource:Q1492 ) ( resource:Q1085 ) } }
San José Rabat Moscow Brussels Sofia Managua San Salvador Tripoli Bordeaux Damascus Santo Domingo Athens Beijing Budapest Mexico City Guatemala City Havana Chimbote San Juan Panama City Lima Rio de Janeiro Tegucigalpa Warsaw Lisbon Nouakchott Montevideo Berlin La Paz New York City Prague Seville Shanghai Antwerp Cologne Boston Rosario Isfahan Montreal Varna Santo Domingo Athens Havana Kōbe Tel Aviv Algiers Cairo Gaza City São Paulo Rio de Janeiro Valparaíso Montpellier Helsinki Moscow Sofia Terni Limassol Taipei Chicago Luxembourg Athens Monza Naples Bratislava Lecce Copenhagen Prešov Nuremberg Istanbul Ferrara Vilnius Brussels Cali Madrid Berlin Trento Jerusalem Phoenix Rosh HaAyin Van Shanghai
Prague, Moscow and Moscow are twin towns of those ones
Prague Moscow Moscow
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Madrid', 'sister city', {'concept': 'administrative territorial entity'}] ['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}] ['Prague', 'sister city', {'concept': 'administrative territorial entity'}] ['Basel', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . ?m property:sister_city ?f . VALUES ( ?m ) { ( resource:Madrid ) ( resource:Barcelona ) ( resource:Prague ) } }
[]