Simple Question (Direct)
Simple Question
Q3846393
P21
Q290
USER
What is the sex of Marco Pugliese ?
(Q3846393,P21,c(Q290))
action filter_type
action find
entity Q3846393
relation P21
type Q290
['Q3846393', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q3846393 property:P21 ?b . ?b rdf:type ontology:Q290 }
Marco Pugliese
action filter_type
action find
entity Marco Pugliese
relation gender
type sex
['Marco Pugliese', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Marco_Pugliese property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3846393,P21,c(Q290))
action filter_type
action find
entity Q3846393
relation P21
type Q290
The sex of Marco Pugliese is the [ANSWER]
['Q3846393', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q3846393 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
The sex of Marco Pugliese is the male
male
action filter_type
action find
entity Marco Pugliese
relation gender
type sex
['Marco Pugliese', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Marco_Pugliese property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3846393
P937
Q56061
USER
What is the work location of Marco Pugliese ?
(Q3846393,P937,c(Q56061))
action filter_type
action find
entity Q3846393
relation P937
type Q56061
['Q3846393', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3846393 property:P937 ?c . ?c rdf:type ontology:Q56061 }
Marco Pugliese
action filter_type
action find
entity Marco Pugliese
relation work location
type administrative territorial entity
['Marco Pugliese', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Marco_Pugliese property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q3846393,P937,c(Q56061))
action filter_type
action find
entity Q3846393
relation P937
type Q56061
The work location of Marco Pugliese is in [ANSWER]
['Q3846393', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3846393 property:P937 ?c . ?c rdf:type ontology:Q56061 }
Rome
The work location of Marco Pugliese is in Rome
Rome
action filter_type
action find
entity Marco Pugliese
relation work location
type administrative territorial entity
['Marco Pugliese', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Marco_Pugliese property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4768975
Q56061
USER
And also tell me about Annelise Høegh?
(Q4768975,P937,c(Q56061))
action filter_type
action find
entity Q4768975
relation P937
type Q56061
['Q4768975', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q4768975 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Annelise Høegh
action filter_type
action find
entity Annelise Høegh
relation work location
type administrative territorial entity
['Annelise Høegh', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Annelise_Høegh property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q4768975,P937,c(Q56061))
action filter_type
action find
entity Q4768975
relation P937
type Q56061
[ANSWER]
['Q4768975', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q4768975 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Oslo
Oslo
action filter_type
action find
entity Annelise Høegh
relation work location
type administrative territorial entity
['Annelise Høegh', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Annelise_Høegh property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q585 Q156739 Q57871
P47
Q13220204
USER
Does that administrative territory shares border with Rivne and Skedsmo ?
(Q585,P47,Q156739) (Q585,P47,Q57871)
action is_in
entity Q585
action intersection
action find_reverse
entity Q156739
relation P47
action find_reverse
entity Q57871
relation P47
['Q585', 'P47', 'Q156739'] ['Q585', 'P47', 'Q57871']
ASK WHERE { resource:Q585 property:P47 resource:Q156739 . resource:Q585 property:P47 resource:Q57871 }
Oslo Rivne Skedsmo
action is_in
entity Oslo
action intersection
action find_reverse
entity Rivne
relation shares border with
action find_reverse
entity Skedsmo
relation shares border with
['Oslo', 'shares border with', 'Rivne'] ['Oslo', 'shares border with', 'Skedsmo']
ASK WHERE { resource:Oslo property:shares_border_with resource:Rivne . resource:Oslo property:shares_border_with resource:Skedsmo }
[]
second-level administrative country subdivision
SYSTEM
NO and YES respectively
(Q585,P47,Q156739) (Q585,P47,Q57871)
action is_in
entity Q585
action intersection
action find_reverse
entity Q156739
relation P47
action find_reverse
entity Q57871
relation P47
[ANSWER]
['Q585', 'P47', 'Q156739'] ['Q585', 'P47', 'Q57871']
ASK WHERE { resource:Q585 property:P47 resource:Q156739 . resource:Q585 property:P47 resource:Q57871 }
NO and YES respectively
action is_in
entity Oslo
action intersection
action find_reverse
entity Rivne
relation shares border with
action find_reverse
entity Skedsmo
relation shares border with
['Oslo', 'shares border with', 'Rivne'] ['Oslo', 'shares border with', 'Skedsmo']
ASK WHERE { resource:Oslo property:shares_border_with resource:Rivne . resource:Oslo property:shares_border_with resource:Skedsmo }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q13159 Q585
P47
Q1048835
USER
Which political territories are adjacent to Oslo or Cañete la Real ?
OR((Q585,P47,c(Q1048835)), (Q13159,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q585
relation P47
action find
entity Q13159
relation P47
type Q1048835
{'OR': [['Q585', 'P47', {'concept': 'Q1048835'}], ['Q13159', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q585 property:P47 ?b } UNION { resource:Q13159 property:P47 ?b } } . ?b rdf:type ontology:Q1048835 }
Cañete la Real Oslo
action filter_type
action union
action find
entity Oslo
relation shares border with
action find
entity Cañete la Real
relation shares border with
type political territorial entity
{'OR': [['Oslo', 'shares border with', {'concept': 'political territorial entity'}], ['Cañete la Real', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Oslo property:shares_border_with ?b } UNION { resource:Cañete_la_Real property:shares_border_with ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1647740 Q1630340 Q1605562 Q918623 Q1623994 Q1605713 Q50618 Q1630260 Q1623964 Q1379651
SYSTEM
Some of them are Cuevas del Becerro, Almargen, El Saucejo, Setenil de las Bodegas, Ardales, Algámitas, Buskerud, Teba, El Burgo, Alcalá del Valle
Q1605713 Q50615 Q1605562 Q1379651 Q1647740 Q1630340 Q1630260 Q1623964 Q50617 Q50618 Q662224 Q918623 Q1623994
OR((Q585,P47,c(Q1048835)), (Q13159,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q585
relation P47
action find
entity Q13159
relation P47
type Q1048835
[ANSWERS] are adjacent to Oslo or Cañete la Real
{'OR': [['Q585', 'P47', {'concept': 'Q1048835'}], ['Q13159', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q585 property:P47 ?b } UNION { resource:Q13159 property:P47 ?b } } . ?b rdf:type ontology:Q1048835 }
Algámitas Akershus El Saucejo Alcalá del Valle Cuevas del Becerro Almargen Teba El Burgo Oppland Buskerud Olvera Setenil de las Bodegas Ardales
Cuevas del Becerro, Almargen, El Saucejo, Setenil de las Bodegas, Ardales, Algámitas, Buskerud, Teba, El Burgo and Alcalá del Valle are adjacent to Oslo or Cañete la Real
Cuevas del Becerro Almargen El Saucejo Setenil de las Bodegas Ardales Algámitas Buskerud Teba El Burgo Alcalá del Valle
action filter_type
action union
action find
entity Oslo
relation shares border with
action find
entity Cañete la Real
relation shares border with
type political territorial entity
{'OR': [['Oslo', 'shares border with', {'concept': 'political territorial entity'}], ['Cañete la Real', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Oslo property:shares_border_with ?b } UNION { resource:Cañete_la_Real property:shares_border_with ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q969445 Q13159
P47
Q1048835
USER
Which political territories do Cañete la Real or A Cañiza share a border with ?
OR((c(Q1048835),P47,Q13159), (c(Q1048835),P47,Q969445))
action filter_type
action union
action find_reverse
entity Q13159
relation P47
action find_reverse
entity Q969445
relation P47
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q13159'], [{'concept': 'Q1048835'}, 'P47', 'Q969445']]}
SELECT DISTINCT ?v WHERE { { ?v property:P47 ?a . VALUES ( ?a ) { ( resource:Q13159 ) ( resource:Q969445 ) } } . ?v rdf:type ontology:Q1048835 }
A Cañiza Cañete la Real
action filter_type
action union
action find_reverse
entity Cañete la Real
relation shares border with
action find_reverse
entity A Cañiza
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Cañete la Real'], [{'concept': 'political territorial entity'}, 'shares border with', 'A Cañiza']]}
SELECT DISTINCT ?v WHERE { { ?v property:shares_border_with ?a . VALUES ( ?a ) { ( resource:Cañete_la_Real ) ( resource:A_Cañiza ) } } . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1623994 Q1623964 Q918623 Q1630260 Q1630340 Q1647740 Q1379651 Q1629539 Q662224 Q1605562
SYSTEM
Some of them are Ardales, El Burgo, Setenil de las Bodegas, Teba, Almargen, Cuevas del Becerro, Alcalá del Valle, Salvaterra de Miño, Olvera, El Saucejo
Q1605713 Q1623964 Q1605562 Q1379651 Q1647740 Q1630340 Q918623 Q1634850 Q662224 Q1629539 Q1630260 Q1623994
OR((c(Q1048835),P47,Q13159), (c(Q1048835),P47,Q969445))
action filter_type
action union
action find_reverse
entity Q13159
relation P47
action find_reverse
entity Q969445
relation P47
type Q1048835
[ANSWERS] Cañete la Real or A Cañiza share a border with
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q13159'], [{'concept': 'Q1048835'}, 'P47', 'Q969445']]}
SELECT DISTINCT ?v WHERE { { ?v property:P47 ?a . VALUES ( ?a ) { ( resource:Q13159 ) ( resource:Q969445 ) } } . ?v rdf:type ontology:Q1048835 }
Algámitas El Burgo El Saucejo Alcalá del Valle Cuevas del Becerro Almargen Setenil de las Bodegas As Neves Olvera Salvaterra de Miño Teba Ardales
Ardales, El Burgo, Setenil de las Bodegas, Teba, Almargen, Cuevas del Becerro, Alcalá del Valle, Salvaterra de Miño, Olvera and El Saucejo Cañete la Real or A Cañiza share a border with
Ardales El Burgo Setenil de las Bodegas Teba Almargen Cuevas del Becerro Alcalá del Valle Salvaterra de Miño Olvera El Saucejo
action filter_type
action union
action find_reverse
entity Cañete la Real
relation shares border with
action find_reverse
entity A Cañiza
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Cañete la Real'], [{'concept': 'political territorial entity'}, 'shares border with', 'A Cañiza']]}
SELECT DISTINCT ?v WHERE { { ?v property:shares_border_with ?a . VALUES ( ?a ) { ( resource:Cañete_la_Real ) ( resource:A_Cañiza ) } } . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1623994 Q1623964 Q918623 Q1630260 Q1630340 Q1647740 Q1379651 Q1629539 Q662224 Q1605562
P1001
Q12737077
USER
Which occupations have jurisdiction over those political territories ?
(c(Q12737077),P1001,Q1623994) (c(Q12737077),P1001,Q1623964) (c(Q12737077),P1001,Q918623) (c(Q12737077),P1001,Q1630260) (c(Q12737077),P1001,Q1630340) (c(Q12737077),P1001,Q1647740) (c(Q12737077),P1001,Q1379651) (c(Q12737077),P1001,Q1629539) (c(Q12737077),P1001,Q662224) (c(Q12737077),P1001,Q1605562)
action filter_type
action find_reverse
entity prev_answer
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q1623994'] [{'concept': 'Q12737077'}, 'P1001', 'Q1623964'] [{'concept': 'Q12737077'}, 'P1001', 'Q918623'] [{'concept': 'Q12737077'}, 'P1001', 'Q1630260'] [{'concept': 'Q12737077'}, 'P1001', 'Q1630340'] [{'concept': 'Q12737077'}, 'P1001', 'Q1647740'] [{'concept': 'Q12737077'}, 'P1001', 'Q1379651'] [{'concept': 'Q12737077'}, 'P1001', 'Q1629539'] [{'concept': 'Q12737077'}, 'P1001', 'Q662224'] [{'concept': 'Q12737077'}, 'P1001', 'Q1605562']
SELECT DISTINCT ?m WHERE { VALUES ( ?t ) { ( resource:Q1605713 ) ( resource:Q1623964 ) ( resource:Q1605562 ) } . ?m property:P1001 ?t . ?m rdf:type ontology:Q12737077 }
Ardales El Burgo Setenil de las Bodegas Teba Almargen Cuevas del Becerro Alcalá del Valle Salvaterra de Miño Olvera El Saucejo
action filter_type
action find_reverse
entity prev_answer
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Ardales'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'El Burgo'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Setenil de las Bodegas'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Teba'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Almargen'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Cuevas del Becerro'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Alcalá del Valle'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Salvaterra de Miño'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Olvera'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'El Saucejo']
SELECT DISTINCT ?m WHERE { VALUES ( ?t ) { ( resource:Algámitas ) ( resource:El_Burgo ) ( resource:El_Saucejo ) } . ?m property:applies_to_jurisdiction ?t . ?m rdf:type ontology:occupation }
[]
occupation
Q26692441 Q26692439 Q26700994
SYSTEM
mayor of Ardales, mayor of El Burgo, mayor of Setenil de las Bodegas
Q26692441 Q26692439 Q26700994 Q26692688 Q26692699 Q26694460 Q26691075 Q26692642 Q26699506 Q26691846
(c(Q12737077),P1001,Q1623994) (c(Q12737077),P1001,Q1623964) (c(Q12737077),P1001,Q918623) (c(Q12737077),P1001,Q1630260) (c(Q12737077),P1001,Q1630340) (c(Q12737077),P1001,Q1647740) (c(Q12737077),P1001,Q1379651) (c(Q12737077),P1001,Q1629539) (c(Q12737077),P1001,Q662224) (c(Q12737077),P1001,Q1605562)
action filter_type
action find_reverse
entity prev_answer
relation P1001
type Q12737077
[ANSWERS] have jurisdiction over those political territories
[{'concept': 'Q12737077'}, 'P1001', 'Q1623994'] [{'concept': 'Q12737077'}, 'P1001', 'Q1623964'] [{'concept': 'Q12737077'}, 'P1001', 'Q918623'] [{'concept': 'Q12737077'}, 'P1001', 'Q1630260'] [{'concept': 'Q12737077'}, 'P1001', 'Q1630340'] [{'concept': 'Q12737077'}, 'P1001', 'Q1647740'] [{'concept': 'Q12737077'}, 'P1001', 'Q1379651'] [{'concept': 'Q12737077'}, 'P1001', 'Q1629539'] [{'concept': 'Q12737077'}, 'P1001', 'Q662224'] [{'concept': 'Q12737077'}, 'P1001', 'Q1605562']
SELECT DISTINCT ?m WHERE { VALUES ( ?t ) { ( resource:Q1605713 ) ( resource:Q1623964 ) ( resource:Q1605562 ) } . ?m property:P1001 ?t . ?m rdf:type ontology:Q12737077 }
mayor of Ardales mayor of El Burgo mayor of Setenil de las Bodegas mayor of Teba mayor of Almargen mayor of Cuevas del Becerro mayor of Alcalá del Valle mayor of Salvatierra de Miño mayor of Olvera mayor of El Saucejo
Mayor of Ardales, mayor of El Burgo and mayor of Setenil de las Bodegas have jurisdiction over those political territories
mayor of Ardales mayor of El Burgo mayor of Setenil de las Bodegas
action filter_type
action find_reverse
entity prev_answer
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Ardales'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'El Burgo'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Setenil de las Bodegas'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Teba'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Almargen'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Cuevas del Becerro'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Alcalá del Valle'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Salvaterra de Miño'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Olvera'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'El Saucejo']
SELECT DISTINCT ?m WHERE { VALUES ( ?t ) { ( resource:Algámitas ) ( resource:El_Burgo ) ( resource:El_Saucejo ) } . ?m property:applies_to_jurisdiction ?t . ?m rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q26692439
P17
Q15617994
USER
Which administrative territory is that occupation located in ?
(Q26692439,P17,c(Q15617994))
action filter_type
action find
entity Q26692439
relation P17
type Q15617994
['Q26692439', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q26692439 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
mayor of El Burgo
action filter_type
action find
entity mayor of El Burgo
relation country
type designation for an administrative territorial entity
['mayor of El Burgo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:mayor_of_El_Burgo property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q26692441
SYSTEM
Did you mean mayor of Ardales ?
Q26692441 Q26692439 Q26700994
(Q26692441,P17,c(Q15617994)) (Q26692439,P17,c(Q15617994)) (Q26700994,P17,c(Q15617994))
[ANSWER]
['Q26692441', 'P17', {'concept': 'Q15617994'}] ['Q26692439', 'P17', {'concept': 'Q15617994'}] ['Q26700994', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q26692439 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
mayor of Ardales mayor of El Burgo mayor of Setenil de las Bodegas
Did you mean mayor of Ardales ?
mayor of Ardales
['mayor of Ardales', 'country', {'concept': 'designation for an administrative territorial entity'}] ['mayor of El Burgo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['mayor of Setenil de las Bodegas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:mayor_of_El_Burgo property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant mayor of El Burgo. Could you tell me the answer for that?
(Q26692439,P17,c(Q15617994))
Q26692439
['Q26692439', 'P17', {'concept': 'Q15617994'}]
['mayor of El Burgo', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q29
SYSTEM
Spain
Q29
(Q26692439,P17,c(Q15617994))
action filter_type
action find
entity Q26692439
relation P17
type Q15617994
That occupation is located in [ANSWER]
['Q26692439', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q26692439 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Spain
That occupation is located in Spain
Spain
action filter_type
action find
entity mayor of El Burgo
relation country
type designation for an administrative territorial entity
['mayor of El Burgo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:mayor_of_El_Burgo property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]