Simple Question (Direct)
Simple Question
Q16598345
P1412
Q34770
USER
Which language is spoken by Manuel Gibert i Sans ?
(Q16598345,P1412,c(Q34770))
action filter_type
action find
entity Q16598345
relation P1412
type Q34770
['Q16598345', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q16598345 property:P1412 ?l . ?l rdf:type ontology:Q34770 }
Manuel Gibert i Sans
action filter_type
action find
entity Manuel Gibert i Sans
relation languages spoken, written or signed
type language
['Manuel Gibert i Sans', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:Manuel_Gibert_i_Sans property:languages_spoken,_written_or_signed ?l . ?l rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q16598345,P1412,c(Q34770))
action filter_type
action find
entity Q16598345
relation P1412
type Q34770
[ANSWER]
['Q16598345', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q16598345 property:P1412 ?l . ?l rdf:type ontology:Q34770 }
Spanish
Spanish
action filter_type
action find
entity Manuel Gibert i Sans
relation languages spoken, written or signed
type language
['Manuel Gibert i Sans', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:Manuel_Gibert_i_Sans property:languages_spoken,_written_or_signed ?l . ?l rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16598345
P27
Q15617994
USER
Which administrative territory is Manuel Gibert i Sans a civilian of ?
(Q16598345,P27,c(Q15617994))
action filter_type
action find
entity Q16598345
relation P27
type Q15617994
['Q16598345', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q16598345 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Manuel Gibert i Sans
action filter_type
action find
entity Manuel Gibert i Sans
relation country of citizenship
type designation for an administrative territorial entity
['Manuel Gibert i Sans', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Manuel_Gibert_i_Sans property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q16598345,P27,c(Q15617994))
action filter_type
action find
entity Q16598345
relation P27
type Q15617994
[ANSWER]
['Q16598345', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q16598345 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Spain
Spain
action filter_type
action find
entity Manuel Gibert i Sans
relation country of citizenship
type designation for an administrative territorial entity
['Manuel Gibert i Sans', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Manuel_Gibert_i_Sans property:country_of_citizenship ?p . ?p 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
Q29 Q844587 Q12059906
P1313
Q12737077
USER
Does that administrative territory have Prime Minister of Spain and herder as title of head of government ?
(Q29,P1313,Q844587) (Q29,P1313,Q12059906)
action is_in
entity Q29
action intersection
action find_reverse
entity Q844587
relation P1313
action find_reverse
entity Q12059906
relation P1313
['Q29', 'P1313', 'Q844587'] ['Q29', 'P1313', 'Q12059906']
ASK WHERE { resource:Q29 property:P1313 resource:Q844587 . resource:Q29 property:P1313 resource:Q12059906 }
Spain Prime Minister of Spain herder
action is_in
entity Spain
action intersection
action find_reverse
entity Prime Minister of Spain
relation office held by head of government
action find_reverse
entity herder
relation office held by head of government
['Spain', 'office held by head of government', 'Prime Minister of Spain'] ['Spain', 'office held by head of government', 'herder']
ASK WHERE { resource:Spain property:office_held_by_head_of_government resource:Prime_Minister_of_Spain . resource:Spain property:office_held_by_head_of_government resource:herder }
[]
occupation
SYSTEM
YES and NO respectively
(Q29,P1313,Q844587) (Q29,P1313,Q12059906)
action is_in
entity Q29
action intersection
action find_reverse
entity Q844587
relation P1313
action find_reverse
entity Q12059906
relation P1313
[ANSWER]
['Q29', 'P1313', 'Q844587'] ['Q29', 'P1313', 'Q12059906']
ASK WHERE { resource:Q29 property:P1313 resource:Q844587 . resource:Q29 property:P1313 resource:Q12059906 }
YES and NO respectively
action is_in
entity Spain
action intersection
action find_reverse
entity Prime Minister of Spain
relation office held by head of government
action find_reverse
entity herder
relation office held by head of government
['Spain', 'office held by head of government', 'Prime Minister of Spain'] ['Spain', 'office held by head of government', 'herder']
ASK WHERE { resource:Spain property:office_held_by_head_of_government resource:Prime_Minister_of_Spain . resource:Spain property:office_held_by_head_of_government resource:herder }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16598345 Q1492
P19
Q56061
USER
Was Barcelona Manuel Gibert i Sans born ?
(Q16598345,P19,Q1492)
action is_in
entity Q1492
action find
entity Q16598345
relation P19
['Q16598345', 'P19', 'Q1492']
ASK WHERE { resource:Q16598345 property:P19 resource:Q1492 }
Manuel Gibert i Sans Barcelona
action is_in
entity Barcelona
action find
entity Manuel Gibert i Sans
relation place of birth
['Manuel Gibert i Sans', 'place of birth', 'Barcelona']
ASK WHERE { resource:Manuel_Gibert_i_Sans property:place_of_birth resource:Barcelona }
[]
administrative territorial entity
SYSTEM
YES
(Q16598345,P19,Q1492)
action is_in
entity Q1492
action find
entity Q16598345
relation P19
[ANSWER]
['Q16598345', 'P19', 'Q1492']
ASK WHERE { resource:Q16598345 property:P19 resource:Q1492 }
Yes
action is_in
entity Barcelona
action find
entity Manuel Gibert i Sans
relation place of birth
['Manuel Gibert i Sans', 'place of birth', 'Barcelona']
ASK WHERE { resource:Manuel_Gibert_i_Sans property:place_of_birth resource:Barcelona }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q122347 Q16598345
P20
Q56061
USER
Which administrative territories did Manuel Gibert i Sans or Kenojuak Ashevak die ?
OR((Q16598345,P20,c(Q56061)), (Q122347,P20,c(Q56061)))
action filter_type
action union
action find
entity Q16598345
relation P20
action find
entity Q122347
relation P20
type Q56061
{'OR': [['Q16598345', 'P20', {'concept': 'Q56061'}], ['Q122347', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q122347 property:P20 ?c } UNION { resource:Q16598345 property:P20 ?c } } . ?c rdf:type ontology:Q56061 }
Kenojuak Ashevak Manuel Gibert i Sans
action filter_type
action union
action find
entity Manuel Gibert i Sans
relation place of death
action find
entity Kenojuak Ashevak
relation place of death
type administrative territorial entity
{'OR': [['Manuel Gibert i Sans', 'place of death', {'concept': 'administrative territorial entity'}], ['Kenojuak Ashevak', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Kenojuak_Ashevak property:place_of_death ?c } UNION { resource:Manuel_Gibert_i_Sans property:place_of_death ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492 Q665280
SYSTEM
Barcelona, Cape Dorset
Q1492 Q665280
OR((Q16598345,P20,c(Q56061)), (Q122347,P20,c(Q56061)))
action filter_type
action union
action find
entity Q16598345
relation P20
action find
entity Q122347
relation P20
type Q56061
[ANSWERS]
{'OR': [['Q16598345', 'P20', {'concept': 'Q56061'}], ['Q122347', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q122347 property:P20 ?c } UNION { resource:Q16598345 property:P20 ?c } } . ?c rdf:type ontology:Q56061 }
Barcelona Cape Dorset
Barcelona Cape Dorset
action filter_type
action union
action find
entity Manuel Gibert i Sans
relation place of death
action find
entity Kenojuak Ashevak
relation place of death
type administrative territorial entity
{'OR': [['Manuel Gibert i Sans', 'place of death', {'concept': 'administrative territorial entity'}], ['Kenojuak Ashevak', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Kenojuak_Ashevak property:place_of_death ?c } UNION { resource:Manuel_Gibert_i_Sans property:place_of_death ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q851042 Q1492
P6
Q502895
USER
Which people are the head of government of Barcelona or Hârlău ?
OR((Q1492,P6,c(Q502895)), (Q851042,P6,c(Q502895)))
action filter_type
action union
action find
entity Q1492
relation P6
action find
entity Q851042
relation P6
type Q502895
{'OR': [['Q1492', 'P6', {'concept': 'Q502895'}], ['Q851042', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1492 property:P6 ?w } UNION { resource:Q851042 property:P6 ?w } } . ?w rdf:type ontology:Q502895 }
Hârlău Barcelona
action filter_type
action union
action find
entity Barcelona
relation head of government
action find
entity Hârlău
relation head of government
type common name
{'OR': [['Barcelona', 'head of government', {'concept': 'common name'}], ['Hârlău', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Barcelona property:head_of_government ?w } UNION { resource:Hârlău property:head_of_government ?w } } . ?w rdf:type ontology:common_name }
[]
common name
Q355265 Q26085536 Q953762 Q24170774 Q1690734 Q4779594 Q973064 Q3178484
SYSTEM
Pasqual Maragall i Mira, Gheorghiță Curcă, Jordi Hereu i Boher, Constantin Cernescu, Joan Clos i Matheu, Ada Colau, Xavier Trias, Narcís Serra i Serra
Q355265 Q26085536 Q953762 Q24170774 Q1690734 Q4779594 Q973064 Q3178484
OR((Q1492,P6,c(Q502895)), (Q851042,P6,c(Q502895)))
action filter_type
action union
action find
entity Q1492
relation P6
action find
entity Q851042
relation P6
type Q502895
[ANSWERS]
{'OR': [['Q1492', 'P6', {'concept': 'Q502895'}], ['Q851042', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1492 property:P6 ?w } UNION { resource:Q851042 property:P6 ?w } } . ?w rdf:type ontology:Q502895 }
Pasqual Maragall i Mira Gheorghiță Curcă Jordi Hereu i Boher Constantin Cernescu Joan Clos i Matheu Ada Colau Xavier Trias Narcís Serra i Serra
Pasqual Maragall i Mira Gheorghiță Curcă Jordi Hereu i Boher Constantin Cernescu Joan Clos i Matheu Ada Colau Xavier Trias Narcís Serra i Serra
action filter_type
action union
action find
entity Barcelona
relation head of government
action find
entity Hârlău
relation head of government
type common name
{'OR': [['Barcelona', 'head of government', {'concept': 'common name'}], ['Hârlău', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Barcelona property:head_of_government ?w } UNION { resource:Hârlău property:head_of_government ?w } } . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q24395560 Q26085536
P6
Q515
USER
Which cities have Gheorghiță Curcă or Dănuț-Zeno Țipțer as their head of government ?
OR((c(Q515),P6,Q26085536), (c(Q515),P6,Q24395560))
action filter_type
action union
action find_reverse
entity Q26085536
relation P6
action find_reverse
entity Q24395560
relation P6
type Q515
{'OR': [[{'concept': 'Q515'}, 'P6', 'Q26085536'], [{'concept': 'Q515'}, 'P6', 'Q24395560']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P6 resource:Q26085536 } UNION { ?j property:P6 resource:Q24395560 } } . ?j rdf:type ontology:Q515 }
Dănuț-Zeno Țipțer Gheorghiță Curcă
action filter_type
action union
action find_reverse
entity Gheorghiță Curcă
relation head of government
action find_reverse
entity Dănuț-Zeno Țipțer
relation head of government
type city
{'OR': [[{'concept': 'city'}, 'head of government', 'Gheorghiță Curcă'], [{'concept': 'city'}, 'head of government', 'Dănuț-Zeno Țipțer']]}
SELECT DISTINCT ?j WHERE { { { ?j property:head_of_government resource:Gheorghiță_Curcă } UNION { ?j property:head_of_government resource:Dănuț-Zeno_Țipțer } } . ?j rdf:type ontology:city }
[]
city
Q851029 Q851042
SYSTEM
Aleșd, Hârlău
Q851029 Q851042
OR((c(Q515),P6,Q26085536), (c(Q515),P6,Q24395560))
action filter_type
action union
action find_reverse
entity Q26085536
relation P6
action find_reverse
entity Q24395560
relation P6
type Q515
[ANSWERS]
{'OR': [[{'concept': 'Q515'}, 'P6', 'Q26085536'], [{'concept': 'Q515'}, 'P6', 'Q24395560']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P6 resource:Q26085536 } UNION { ?j property:P6 resource:Q24395560 } } . ?j rdf:type ontology:Q515 }
Aleșd Hârlău
Aleșd Hârlău
action filter_type
action union
action find_reverse
entity Gheorghiță Curcă
relation head of government
action find_reverse
entity Dănuț-Zeno Țipțer
relation head of government
type city
{'OR': [[{'concept': 'city'}, 'head of government', 'Gheorghiță Curcă'], [{'concept': 'city'}, 'head of government', 'Dănuț-Zeno Țipțer']]}
SELECT DISTINCT ?j WHERE { { { ?j property:head_of_government resource:Gheorghiță_Curcă } UNION { ?j property:head_of_government resource:Dănuț-Zeno_Țipțer } } . ?j rdf:type ontology:city }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P1383
Q56061 Q515
USER
How many cities supervises more number of administrative territories than that city ?
(c(Q515),P1383,c(Q56061))
[{'concept': 'Q515'}, 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1383 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
[{'concept': 'city'}, 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:contains_settlement ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity city
Comparative|Count over More/Less|Single entity type|Clarification
Q851042
SYSTEM
Did you mean Hârlău ?
(c(Q515),P1383,c(Q56061))
[ANSWER]
[{'concept': 'Q515'}, 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1383 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
Did you mean Hârlău ?
Hârlău
[{'concept': 'city'}, 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:contains_settlement ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Aleșd. Could you tell me the answer for that?
(c(Q515),P1383,c(Q56061))
Q851029
[{'concept': 'Q515'}, 'P1383', {'concept': 'Q56061'}]
[{'concept': 'city'}, 'contains settlement', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
13
Q584825 Q207196 Q851048 Q778516 Q899427 Q179297 Q518992 Q666521 Q383306 Q276127 Q1017982 Q526019 Q386888
(c(Q515),P1383,c(Q56061))
[ANSWER]
[{'concept': 'Q515'}, 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1383 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
Scornicești Zlatna Făget Baia de Aramă Iernut Nehoiu Călan Târgu Cărbunești Tismana Bălcești Geoagiu Brezoi Târgu Lăpuș
13
[{'concept': 'city'}, 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:contains_settlement ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q851029
P20
Q502895
USER
How many people have Aleșd as place of death ?
(c(Q502895),P20,Q851029)
action count
action filter_type
action find_reverse
entity Q851029
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q851029']
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:Q502895 . ?f property:P20 resource:Q851029 }
Aleșd
action count
action filter_type
action find_reverse
entity Aleșd
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Aleșd']
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:common_name . ?f property:place_of_death resource:Aleșd }
[]
common name
SYSTEM
2
Q1128173 Q912603
(c(Q502895),P20,Q851029)
action count
action filter_type
action find_reverse
entity Q851029
relation P20
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q851029']
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:Q502895 . ?f property:P20 resource:Q851029 }
Lajos Lassú István Dászkál
2
action count
action filter_type
action find_reverse
entity Aleșd
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Aleșd']
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:common_name . ?f property:place_of_death resource:Aleșd }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q851029
P190
Q515
USER
Which city is sister town of that one ?
action filter_type
action find
entity Q851029
relation P190
type Q515
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q515 . resource:Q851029 property:P190 ?j }
Aleșd
action filter_type
action find
entity Aleșd
relation sister city
type city
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:city . resource:Aleșd property:sister_city ?j }
[]
city
Q247387
SYSTEM
Kaba
Q247387
action filter_type
action find
entity Q851029
relation P190
type Q515
[ANSWER]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q515 . resource:Q851029 property:P190 ?j }
Kaba
Kaba
action filter_type
action find
entity Aleșd
relation sister city
type city
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:city . resource:Aleșd property:sister_city ?j }
[]