Simple Question (Direct)
Simple Question
Q11803
P1313
Q12737077
USER
Which occupation is fulfilled by Peralada ?
(Q11803,P1313,c(Q12737077))
action filter_type
action find
entity Q11803
relation P1313
type Q12737077
['Q11803', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q11803 property:P1313 ?y . ?y rdf:type ontology:Q12737077 }
Peralada
action filter_type
action find
entity Peralada
relation office held by head of government
type occupation
['Peralada', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Peralada property:office_held_by_head_of_government ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q26690424
SYSTEM
mayor of Perelada
Q26690424
(Q11803,P1313,c(Q12737077))
action filter_type
action find
entity Q11803
relation P1313
type Q12737077
The [ANSWER] is fulfilled by Peralada
['Q11803', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q11803 property:P1313 ?y . ?y rdf:type ontology:Q12737077 }
mayor of Perelada
The mayor of Perelada is fulfilled by Peralada
mayor of Perelada
action filter_type
action find
entity Peralada
relation office held by head of government
type occupation
['Peralada', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Peralada property:office_held_by_head_of_government ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26690424
P1001
Q1048835
USER
Which political territory is linked to that occupation ?
(Q26690424,P1001,c(Q1048835))
action filter_type
action find
entity Q26690424
relation P1001
type Q1048835
['Q26690424', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q26690424 property:P1001 ?e . ?e rdf:type ontology:Q1048835 }
mayor of Perelada
action filter_type
action find
entity mayor of Perelada
relation applies to jurisdiction
type political territorial entity
['mayor of Perelada', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:mayor_of_Perelada property:applies_to_jurisdiction ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q11803
SYSTEM
Peralada
Q11803
(Q26690424,P1001,c(Q1048835))
action filter_type
action find
entity Q26690424
relation P1001
type Q1048835
[ANSWER] is linked to that occupation
['Q26690424', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q26690424 property:P1001 ?e . ?e rdf:type ontology:Q1048835 }
Peralada
Peralada is linked to that occupation
Peralada
action filter_type
action find
entity mayor of Perelada
relation applies to jurisdiction
type political territorial entity
['mayor of Perelada', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:mayor_of_Perelada property:applies_to_jurisdiction ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P47
Q1048835
USER
How many political territories are bordered by that political territory ?
(c(Q1048835),P47,Q11803)
action count
action filter_type
action find_reverse
entity Q11803
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q11803']
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P47 resource:Q11803 . ?l rdf:type ontology:Q1048835 }
action count
action filter_type
action find_reverse
entity Peralada
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Peralada']
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:shares_border_with resource:Peralada . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
12
Q11347 Q11355 Q6839 Q11257 Q11802 Q7126 Q11799 Q11286 Q1043496 Q12148 Q11324 Q11314
(c(Q1048835),P47,Q11803)
action count
action filter_type
action find_reverse
entity Q11803
relation P47
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q11803']
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P47 resource:Q11803 . ?l rdf:type ontology:Q1048835 }
Masarac Mollet de Peralada Figueres Cabanes Pedret i Marzà Rabós Pau Castelló d'Empúries Vila-sacra Vilabertran Garriguella Fortià
12
action count
action filter_type
action find_reverse
entity Peralada
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Peralada']
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:shares_border_with resource:Peralada . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q90 Q6548
P551
Q502895
USER
How many people have residence at Paris and Orléans ?
(c(Q502895),P551,Q90) (c(Q502895),P551,Q6548)
action count
action intersection
action filter_type
action find_reverse
entity Q90
relation P551
type Q502895
action filter_type
action find_reverse
entity Q6548
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q90'] [{'concept': 'Q502895'}, 'P551', 'Q6548']
SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v rdf:type ontology:Q502895 . ?v property:P551 resource:Q90 . ?v rdf:type ontology:Q502895 . ?v property:P551 resource:Q6548 }
Paris Orléans
action count
action intersection
action filter_type
action find_reverse
entity Paris
relation residence
type common name
action filter_type
action find_reverse
entity Orléans
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Paris'] [{'concept': 'common name'}, 'residence', 'Orléans']
SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v rdf:type ontology:common_name . ?v property:residence resource:Paris . ?v rdf:type ontology:common_name . ?v property:residence resource:Orléans }
[]
common name
SYSTEM
2
Q15967002 Q15973600
(c(Q502895),P551,Q90) (c(Q502895),P551,Q6548)
action count
action intersection
action filter_type
action find_reverse
entity Q90
relation P551
type Q502895
action filter_type
action find_reverse
entity Q6548
relation P551
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P551', 'Q90'] [{'concept': 'Q502895'}, 'P551', 'Q6548']
SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v rdf:type ontology:Q502895 . ?v property:P551 resource:Q90 . ?v rdf:type ontology:Q502895 . ?v property:P551 resource:Q6548 }
Émile Péan Bénédicte Le Panse
2
action count
action intersection
action filter_type
action find_reverse
entity Paris
relation residence
type common name
action filter_type
action find_reverse
entity Orléans
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Paris'] [{'concept': 'common name'}, 'residence', 'Orléans']
SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v rdf:type ontology:common_name . ?v property:residence resource:Paris . ?v rdf:type ontology:common_name . ?v property:residence resource:Orléans }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q11803
P19 P21
Q502895
USER
Which people were born at Peralada and are a male ?
AND((c(Q502895),P19,Q11803), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q11803
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q11803'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?t WHERE { ?t property:P19 resource:Q11803 . ?t property:P21 resource:Q6581097 . ?t rdf:type ontology:Q502895 }
male Peralada
action filter_type
action intersection
action find_reverse
entity Peralada
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Peralada'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?t WHERE { ?t property:place_of_birth resource:Peralada . ?t property:gender resource:male . ?t rdf:type ontology:common_name }
[]
common name
Q16943329 Q11936971 Q3179741 Q18022050 Q2368814 Q671145 Q16172925
SYSTEM
Miquel Massot, Miquel Serra i Bonal, Joaquim Serra i Corominas, David Bigas Vargas, Juan Tomás de Rocaberti, Ramon Muntaner, Pere d'Avinyó i Mateu
Q16943329 Q11936971 Q3179741 Q18022050 Q2368814 Q671145 Q16172925
AND((c(Q502895),P19,Q11803), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q11803
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were born at Peralada and are a male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q11803'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?t WHERE { ?t property:P19 resource:Q11803 . ?t property:P21 resource:Q6581097 . ?t rdf:type ontology:Q502895 }
Miquel Massot Miquel Serra i Bonal Joaquim Serra i Corominas David Bigas Vargas Juan Tomás de Rocaberti Ramon Muntaner Pere d'Avinyó i Mateu
Miquel Massot, Miquel Serra i Bonal, Joaquim Serra i Corominas, David Bigas Vargas, Juan Tomás de Rocaberti, Ramon Muntaner and Pere d'Avinyó i Mateu were born at Peralada and are a male
Miquel Massot Miquel Serra i Bonal Joaquim Serra i Corominas David Bigas Vargas Juan Tomás de Rocaberti Ramon Muntaner Pere d'Avinyó i Mateu
action filter_type
action intersection
action find_reverse
entity Peralada
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Peralada'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?t WHERE { ?t property:place_of_birth resource:Peralada . ?t property:gender resource:male . ?t rdf:type ontology:common_name }
[]