Simple Question (Direct)
Simple Question
Q1443980
P641
Q349
USER
What was the sport that Frank Posch was a part of ?
(Q1443980,P641,c(Q349))
action filter_type
action find
entity Q1443980
relation P641
type Q349
['Q1443980', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q349 . resource:Q1443980 property:P641 ?y }
Frank Posch
action filter_type
action find
entity Frank Posch
relation sport
type sport
['Frank Posch', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sport . resource:Frank_Posch property:sport ?y }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q1443980,P641,c(Q349))
action filter_type
action find
entity Q1443980
relation P641
type Q349
The sport that Frank Posch was a part of was the [ANSWER]
['Q1443980', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q349 . resource:Q1443980 property:P641 ?y }
association football
The sport that Frank Posch was a part of was the association football
association football
action filter_type
action find
entity Frank Posch
relation sport
type sport
['Frank Posch', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sport . resource:Frank_Posch property:sport ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1443980
P21
Q290
USER
What is the sex of that person ?
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q1443980
relation P21
type Q290
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q1443980 property:P21 ?d }
Frank Posch
action filter_type
action find
entity Frank Posch
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Frank_Posch property:gender ?d }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q1443980
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q1443980 property:P21 ?d }
male
The sex of that person is a male
male
action filter_type
action find
entity Frank Posch
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Frank_Posch property:gender ?d }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20155787
Q290
USER
And how about Dmitri Shirshakov?
(Q20155787,P21,c(Q290))
action filter_type
action find
entity Q20155787
relation P21
type Q290
['Q20155787', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q20155787 property:P21 ?g . ?g rdf:type ontology:Q290 }
Dmitri Shirshakov
action filter_type
action find
entity Dmitri Shirshakov
relation gender
type sex
['Dmitri Shirshakov', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Dmitri_Shirshakov property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q20155787,P21,c(Q290))
action filter_type
action find
entity Q20155787
relation P21
type Q290
[ANSWER]
['Q20155787', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q20155787 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Dmitri Shirshakov
relation gender
type sex
['Dmitri Shirshakov', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Dmitri_Shirshakov property:gender ?g . ?g rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q842652 Q1443980
P47 P27
Q1048835
USER
Which political territories do Frank Posch belong to or share border with Hellín ?
OR((Q1443980,P27,c(Q1048835)), (Q842652,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1443980
relation P27
action find
entity Q842652
relation P47
type Q1048835
{'OR': [['Q1443980', 'P27', {'concept': 'Q1048835'}], ['Q842652', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q842652 property:P47 ?d } UNION { resource:Q1443980 property:P27 ?d } } . ?d rdf:type ontology:Q1048835 }
Hellín Frank Posch
action filter_type
action union
action find
entity Frank Posch
relation country of citizenship
action find
entity Hellín
relation shares border with
type political territorial entity
{'OR': [['Frank Posch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Hellín', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Hellín property:shares_border_with ?d } UNION { resource:Frank_Posch property:country_of_citizenship ?d } } . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q782032 Q987450 Q1623146 Q1313139 Q559221 Q652654 Q183 Q1014709 Q582808 Q1622986
SYSTEM
Férez, Moratalla, Pozohondo, Calasparra, Albatana, Socovos, Germany, Cieza, Liétor, Tobarra
Q782032 Q987450 Q1623146 Q1313139 Q559221 Q652654 Q183 Q1014709 Q582808 Q1622986
OR((Q1443980,P27,c(Q1048835)), (Q842652,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1443980
relation P27
action find
entity Q842652
relation P47
type Q1048835
Frank Posch belong to the [ANSWERS]
{'OR': [['Q1443980', 'P27', {'concept': 'Q1048835'}], ['Q842652', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q842652 property:P47 ?d } UNION { resource:Q1443980 property:P27 ?d } } . ?d rdf:type ontology:Q1048835 }
Férez Moratalla Pozohondo Calasparra Albatana Socovos Germany Cieza Liétor Tobarra
Frank Posch belong to the Férez, Moratalla, Pozohondo, Calasparra, Albatana, Socovos, Germany, Cieza, Liétor and Tobarra
Férez Moratalla Pozohondo Calasparra Albatana Socovos Germany Cieza Liétor Tobarra
action filter_type
action union
action find
entity Frank Posch
relation country of citizenship
action find
entity Hellín
relation shares border with
type political territorial entity
{'OR': [['Frank Posch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Hellín', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Hellín property:shares_border_with ?d } UNION { resource:Frank_Posch property:country_of_citizenship ?d } } . ?d rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q1048835 Q56061
USER
How many political territories or administrative territories are next to the border of that political territory ?
(c(Q1048835),P47,Q582808) (c(Q56061),P47,Q582808) (c(Q1048835),P47,Q782032) (c(Q56061),P47,Q782032) (c(Q1048835),P47,Q987450) (c(Q56061),P47,Q987450) (c(Q1048835),P47,Q1623146) (c(Q56061),P47,Q1623146) (c(Q1048835),P47,Q1313139) (c(Q56061),P47,Q1313139) (c(Q1048835),P47,Q559221) (c(Q56061),P47,Q559221) (c(Q1048835),P47,Q652654) (c(Q56061),P47,Q652654) (c(Q1048835),P47,Q183) (c(Q56061),P47,Q183) (c(Q1048835),P47,Q1014709) (c(Q56061),P47,Q1014709) (c(Q1048835),P47,Q582808) (c(Q56061),P47,Q582808) (c(Q1048835),P47,Q1622986) (c(Q56061),P47,Q1622986)
[{'concept': 'Q1048835'}, 'P47', 'Q582808'] [{'concept': 'Q56061'}, 'P47', 'Q582808'] [{'concept': 'Q1048835'}, 'P47', 'Q782032'] [{'concept': 'Q56061'}, 'P47', 'Q782032'] [{'concept': 'Q1048835'}, 'P47', 'Q987450'] [{'concept': 'Q56061'}, 'P47', 'Q987450'] [{'concept': 'Q1048835'}, 'P47', 'Q1623146'] [{'concept': 'Q56061'}, 'P47', 'Q1623146'] [{'concept': 'Q1048835'}, 'P47', 'Q1313139'] [{'concept': 'Q56061'}, 'P47', 'Q1313139'] [{'concept': 'Q1048835'}, 'P47', 'Q559221'] [{'concept': 'Q56061'}, 'P47', 'Q559221'] [{'concept': 'Q1048835'}, 'P47', 'Q652654'] [{'concept': 'Q56061'}, 'P47', 'Q652654'] [{'concept': 'Q1048835'}, 'P47', 'Q183'] [{'concept': 'Q56061'}, 'P47', 'Q183'] [{'concept': 'Q1048835'}, 'P47', 'Q1014709'] [{'concept': 'Q56061'}, 'P47', 'Q1014709'] [{'concept': 'Q1048835'}, 'P47', 'Q582808'] [{'concept': 'Q56061'}, 'P47', 'Q582808'] [{'concept': 'Q1048835'}, 'P47', 'Q1622986'] [{'concept': 'Q56061'}, 'P47', 'Q1622986']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q582808 } UNION { ?y property:P47 resource:Q582808 } UNION { ?z property:P47 resource:Q782032 } UNION { ?y property:P47 resource:Q782032 } UNION { ?z property:P47 resource:Q987450 } UNION { ?y property:P47 resource:Q987450 } UNION { ?z property:P47 resource:Q7237054 } UNION { ?y property:P47 resource:Q7237054 } UNION { ?z property:P47 resource:Q1313139 } UNION { ?y property:P47 resource:Q1313139 } UNION { ?z property:P47 resource:Q559221 } UNION { ?y property:P47 resource:Q559221 } UNION { ?z property:P47 resource:Q652654 } UNION { ?y property:P47 resource:Q652654 } UNION { ?z property:P47 resource:Q423030 } UNION { ?y property:P47 resource:Q423030 } UNION { ?z property:P47 resource:Q295413 } UNION { ?y property:P47 resource:Q295413 } UNION { ?z property:P47 resource:Q582808 } UNION { ?y property:P47 resource:Q582808 } UNION { ?z property:P47 resource:Q1622986 } UNION { ?y property:P47 resource:Q1622986 } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q56061 }
[{'concept': 'political territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'political territorial entity'}, 'shares border with', 'Férez'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Férez'] [{'concept': 'political territorial entity'}, 'shares border with', 'Moratalla'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Moratalla'] [{'concept': 'political territorial entity'}, 'shares border with', 'Pozohondo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Pozohondo'] [{'concept': 'political territorial entity'}, 'shares border with', 'Calasparra'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Calasparra'] [{'concept': 'political territorial entity'}, 'shares border with', 'Albatana'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Albatana'] [{'concept': 'political territorial entity'}, 'shares border with', 'Socovos'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Socovos'] [{'concept': 'political territorial entity'}, 'shares border with', 'Germany'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Germany'] [{'concept': 'political territorial entity'}, 'shares border with', 'Cieza'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Cieza'] [{'concept': 'political territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'political territorial entity'}, 'shares border with', 'Tobarra'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Tobarra']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Liétor } UNION { ?y property:shares_border_with resource:Liétor } UNION { ?z property:shares_border_with resource:Férez } UNION { ?y property:shares_border_with resource:Férez } UNION { ?z property:shares_border_with resource:Moratalla } UNION { ?y property:shares_border_with resource:Moratalla } UNION { ?z property:shares_border_with resource:Pozohondo } UNION { ?y property:shares_border_with resource:Pozohondo } UNION { ?z property:shares_border_with resource:Calasparra } UNION { ?y property:shares_border_with resource:Calasparra } UNION { ?z property:shares_border_with resource:Albatana } UNION { ?y property:shares_border_with resource:Albatana } UNION { ?z property:shares_border_with resource:Socovos } UNION { ?y property:shares_border_with resource:Socovos } UNION { ?z property:shares_border_with resource:Germany } UNION { ?y property:shares_border_with resource:Germany } UNION { ?z property:shares_border_with resource:Cieza } UNION { ?y property:shares_border_with resource:Cieza } UNION { ?z property:shares_border_with resource:Liétor } UNION { ?y property:shares_border_with resource:Liétor } UNION { ?z property:shares_border_with resource:Tobarra } UNION { ?y property:shares_border_with resource:Tobarra } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
political territorial entity administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q582808
SYSTEM
Did you mean Liétor ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q582808 } UNION { ?y property:P47 resource:Q582808 } UNION { ?z property:P47 resource:Q782032 } UNION { ?y property:P47 resource:Q782032 } UNION { ?z property:P47 resource:Q987450 } UNION { ?y property:P47 resource:Q987450 } UNION { ?z property:P47 resource:Q7237054 } UNION { ?y property:P47 resource:Q7237054 } UNION { ?z property:P47 resource:Q1313139 } UNION { ?y property:P47 resource:Q1313139 } UNION { ?z property:P47 resource:Q559221 } UNION { ?y property:P47 resource:Q559221 } UNION { ?z property:P47 resource:Q652654 } UNION { ?y property:P47 resource:Q652654 } UNION { ?z property:P47 resource:Q423030 } UNION { ?y property:P47 resource:Q423030 } UNION { ?z property:P47 resource:Q295413 } UNION { ?y property:P47 resource:Q295413 } UNION { ?z property:P47 resource:Q582808 } UNION { ?y property:P47 resource:Q582808 } UNION { ?z property:P47 resource:Q1622986 } UNION { ?y property:P47 resource:Q1622986 } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q56061 }
Did you mean Liétor ?
Liétor
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Liétor } UNION { ?y property:shares_border_with resource:Liétor } UNION { ?z property:shares_border_with resource:Férez } UNION { ?y property:shares_border_with resource:Férez } UNION { ?z property:shares_border_with resource:Moratalla } UNION { ?y property:shares_border_with resource:Moratalla } UNION { ?z property:shares_border_with resource:Pozohondo } UNION { ?y property:shares_border_with resource:Pozohondo } UNION { ?z property:shares_border_with resource:Calasparra } UNION { ?y property:shares_border_with resource:Calasparra } UNION { ?z property:shares_border_with resource:Albatana } UNION { ?y property:shares_border_with resource:Albatana } UNION { ?z property:shares_border_with resource:Socovos } UNION { ?y property:shares_border_with resource:Socovos } UNION { ?z property:shares_border_with resource:Germany } UNION { ?y property:shares_border_with resource:Germany } UNION { ?z property:shares_border_with resource:Cieza } UNION { ?y property:shares_border_with resource:Cieza } UNION { ?z property:shares_border_with resource:Liétor } UNION { ?y property:shares_border_with resource:Liétor } UNION { ?z property:shares_border_with resource:Tobarra } UNION { ?y property:shares_border_with resource:Tobarra } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q1048835),P47,Q582808) (c(Q56061),P47,Q582808) (c(Q1048835),P47,Q782032) (c(Q56061),P47,Q782032) (c(Q1048835),P47,Q987450) (c(Q56061),P47,Q987450) (c(Q1048835),P47,Q1623146) (c(Q56061),P47,Q1623146) (c(Q1048835),P47,Q1313139) (c(Q56061),P47,Q1313139) (c(Q1048835),P47,Q559221) (c(Q56061),P47,Q559221) (c(Q1048835),P47,Q652654) (c(Q56061),P47,Q652654) (c(Q1048835),P47,Q183) (c(Q56061),P47,Q183) (c(Q1048835),P47,Q1014709) (c(Q56061),P47,Q1014709) (c(Q1048835),P47,Q582808) (c(Q56061),P47,Q582808) (c(Q1048835),P47,Q1622986) (c(Q56061),P47,Q1622986)
[{'concept': 'Q1048835'}, 'P47', 'Q582808'] [{'concept': 'Q56061'}, 'P47', 'Q582808'] [{'concept': 'Q1048835'}, 'P47', 'Q782032'] [{'concept': 'Q56061'}, 'P47', 'Q782032'] [{'concept': 'Q1048835'}, 'P47', 'Q987450'] [{'concept': 'Q56061'}, 'P47', 'Q987450'] [{'concept': 'Q1048835'}, 'P47', 'Q1623146'] [{'concept': 'Q56061'}, 'P47', 'Q1623146'] [{'concept': 'Q1048835'}, 'P47', 'Q1313139'] [{'concept': 'Q56061'}, 'P47', 'Q1313139'] [{'concept': 'Q1048835'}, 'P47', 'Q559221'] [{'concept': 'Q56061'}, 'P47', 'Q559221'] [{'concept': 'Q1048835'}, 'P47', 'Q652654'] [{'concept': 'Q56061'}, 'P47', 'Q652654'] [{'concept': 'Q1048835'}, 'P47', 'Q183'] [{'concept': 'Q56061'}, 'P47', 'Q183'] [{'concept': 'Q1048835'}, 'P47', 'Q1014709'] [{'concept': 'Q56061'}, 'P47', 'Q1014709'] [{'concept': 'Q1048835'}, 'P47', 'Q582808'] [{'concept': 'Q56061'}, 'P47', 'Q582808'] [{'concept': 'Q1048835'}, 'P47', 'Q1622986'] [{'concept': 'Q56061'}, 'P47', 'Q1622986']
[{'concept': 'political territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'political territorial entity'}, 'shares border with', 'Férez'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Férez'] [{'concept': 'political territorial entity'}, 'shares border with', 'Moratalla'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Moratalla'] [{'concept': 'political territorial entity'}, 'shares border with', 'Pozohondo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Pozohondo'] [{'concept': 'political territorial entity'}, 'shares border with', 'Calasparra'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Calasparra'] [{'concept': 'political territorial entity'}, 'shares border with', 'Albatana'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Albatana'] [{'concept': 'political territorial entity'}, 'shares border with', 'Socovos'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Socovos'] [{'concept': 'political territorial entity'}, 'shares border with', 'Germany'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Germany'] [{'concept': 'political territorial entity'}, 'shares border with', 'Cieza'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Cieza'] [{'concept': 'political territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'political territorial entity'}, 'shares border with', 'Tobarra'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Tobarra']
[]
SYSTEM
6
Q782032 Q1623146 Q842652 Q575812 Q1606086 Q559134
(c(Q1048835),P47,Q582808) (c(Q56061),P47,Q582808) (c(Q1048835),P47,Q782032) (c(Q56061),P47,Q782032) (c(Q1048835),P47,Q987450) (c(Q56061),P47,Q987450) (c(Q1048835),P47,Q1623146) (c(Q56061),P47,Q1623146) (c(Q1048835),P47,Q1313139) (c(Q56061),P47,Q1313139) (c(Q1048835),P47,Q559221) (c(Q56061),P47,Q559221) (c(Q1048835),P47,Q652654) (c(Q56061),P47,Q652654) (c(Q1048835),P47,Q183) (c(Q56061),P47,Q183) (c(Q1048835),P47,Q1014709) (c(Q56061),P47,Q1014709) (c(Q1048835),P47,Q582808) (c(Q56061),P47,Q582808) (c(Q1048835),P47,Q1622986) (c(Q56061),P47,Q1622986)
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q582808'] [{'concept': 'Q56061'}, 'P47', 'Q582808'] [{'concept': 'Q1048835'}, 'P47', 'Q782032'] [{'concept': 'Q56061'}, 'P47', 'Q782032'] [{'concept': 'Q1048835'}, 'P47', 'Q987450'] [{'concept': 'Q56061'}, 'P47', 'Q987450'] [{'concept': 'Q1048835'}, 'P47', 'Q1623146'] [{'concept': 'Q56061'}, 'P47', 'Q1623146'] [{'concept': 'Q1048835'}, 'P47', 'Q1313139'] [{'concept': 'Q56061'}, 'P47', 'Q1313139'] [{'concept': 'Q1048835'}, 'P47', 'Q559221'] [{'concept': 'Q56061'}, 'P47', 'Q559221'] [{'concept': 'Q1048835'}, 'P47', 'Q652654'] [{'concept': 'Q56061'}, 'P47', 'Q652654'] [{'concept': 'Q1048835'}, 'P47', 'Q183'] [{'concept': 'Q56061'}, 'P47', 'Q183'] [{'concept': 'Q1048835'}, 'P47', 'Q1014709'] [{'concept': 'Q56061'}, 'P47', 'Q1014709'] [{'concept': 'Q1048835'}, 'P47', 'Q582808'] [{'concept': 'Q56061'}, 'P47', 'Q582808'] [{'concept': 'Q1048835'}, 'P47', 'Q1622986'] [{'concept': 'Q56061'}, 'P47', 'Q1622986']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q582808 } UNION { ?y property:P47 resource:Q582808 } UNION { ?z property:P47 resource:Q782032 } UNION { ?y property:P47 resource:Q782032 } UNION { ?z property:P47 resource:Q987450 } UNION { ?y property:P47 resource:Q987450 } UNION { ?z property:P47 resource:Q7237054 } UNION { ?y property:P47 resource:Q7237054 } UNION { ?z property:P47 resource:Q1313139 } UNION { ?y property:P47 resource:Q1313139 } UNION { ?z property:P47 resource:Q559221 } UNION { ?y property:P47 resource:Q559221 } UNION { ?z property:P47 resource:Q652654 } UNION { ?y property:P47 resource:Q652654 } UNION { ?z property:P47 resource:Q423030 } UNION { ?y property:P47 resource:Q423030 } UNION { ?z property:P47 resource:Q295413 } UNION { ?y property:P47 resource:Q295413 } UNION { ?z property:P47 resource:Q582808 } UNION { ?y property:P47 resource:Q582808 } UNION { ?z property:P47 resource:Q1622986 } UNION { ?y property:P47 resource:Q1622986 } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q56061 }
Férez Pozohondo Hellín Elche de la Sierra Ayna Alcadozo
6
[{'concept': 'political territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'political territorial entity'}, 'shares border with', 'Férez'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Férez'] [{'concept': 'political territorial entity'}, 'shares border with', 'Moratalla'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Moratalla'] [{'concept': 'political territorial entity'}, 'shares border with', 'Pozohondo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Pozohondo'] [{'concept': 'political territorial entity'}, 'shares border with', 'Calasparra'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Calasparra'] [{'concept': 'political territorial entity'}, 'shares border with', 'Albatana'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Albatana'] [{'concept': 'political territorial entity'}, 'shares border with', 'Socovos'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Socovos'] [{'concept': 'political territorial entity'}, 'shares border with', 'Germany'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Germany'] [{'concept': 'political territorial entity'}, 'shares border with', 'Cieza'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Cieza'] [{'concept': 'political territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Liétor'] [{'concept': 'political territorial entity'}, 'shares border with', 'Tobarra'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Tobarra']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Liétor } UNION { ?y property:shares_border_with resource:Liétor } UNION { ?z property:shares_border_with resource:Férez } UNION { ?y property:shares_border_with resource:Férez } UNION { ?z property:shares_border_with resource:Moratalla } UNION { ?y property:shares_border_with resource:Moratalla } UNION { ?z property:shares_border_with resource:Pozohondo } UNION { ?y property:shares_border_with resource:Pozohondo } UNION { ?z property:shares_border_with resource:Calasparra } UNION { ?y property:shares_border_with resource:Calasparra } UNION { ?z property:shares_border_with resource:Albatana } UNION { ?y property:shares_border_with resource:Albatana } UNION { ?z property:shares_border_with resource:Socovos } UNION { ?y property:shares_border_with resource:Socovos } UNION { ?z property:shares_border_with resource:Germany } UNION { ?y property:shares_border_with resource:Germany } UNION { ?z property:shares_border_with resource:Cieza } UNION { ?y property:shares_border_with resource:Cieza } UNION { ?z property:shares_border_with resource:Liétor } UNION { ?y property:shares_border_with resource:Liétor } UNION { ?z property:shares_border_with resource:Tobarra } UNION { ?y property:shares_border_with resource:Tobarra } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3291875 Q652654
P47 P27
Q1048835
USER
Which political territories have a shared border with Socovos or are Marie-Hélène Falcon a civilian of ?
OR((Q652654,P47,c(Q1048835)), (Q3291875,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q652654
relation P47
action find
entity Q3291875
relation P27
type Q1048835
{'OR': [['Q652654', 'P47', {'concept': 'Q1048835'}], ['Q3291875', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q652654 property:P47 ?m } UNION { resource:Q3291875 property:P27 ?m } } . ?m rdf:type ontology:Q1048835 }
Marie-Hélène Falcon Socovos
action filter_type
action union
action find
entity Socovos
relation shares border with
action find
entity Marie-Hélène Falcon
relation country of citizenship
type political territorial entity
{'OR': [['Socovos', 'shares border with', {'concept': 'political territorial entity'}], ['Marie-Hélène Falcon', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Socovos property:shares_border_with ?m } UNION { resource:Marie-Hélène_Falcon property:country_of_citizenship ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q782032 Q16 Q582823 Q987450
SYSTEM
Férez, Canada, Letur, Moratalla
Q782032 Q16 Q582823 Q987450
OR((Q652654,P47,c(Q1048835)), (Q3291875,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q652654
relation P47
action find
entity Q3291875
relation P27
type Q1048835
[ANSWERS] have a shared border with Socovos or are Marie-Hélène Falcon a civilian of
{'OR': [['Q652654', 'P47', {'concept': 'Q1048835'}], ['Q3291875', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q652654 property:P47 ?m } UNION { resource:Q3291875 property:P27 ?m } } . ?m rdf:type ontology:Q1048835 }
Férez Canada Letur Moratalla
Férez, Canada, Letur and Moratalla have a shared border with Socovos or are Marie-Hélène Falcon a civilian of
Férez Canada Letur Moratalla
action filter_type
action union
action find
entity Socovos
relation shares border with
action find
entity Marie-Hélène Falcon
relation country of citizenship
type political territorial entity
{'OR': [['Socovos', 'shares border with', {'concept': 'political territorial entity'}], ['Marie-Hélène Falcon', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Socovos property:shares_border_with ?m } UNION { resource:Marie-Hélène_Falcon property:country_of_citizenship ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q1048835 Q15416 Q2088357
USER
How many political territories are the countries of origin of atmost 855 television programs and musical ensembles ?
(c(Q15416)|c(Q2088357),P495,c(Q1048835))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q15416
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
value 855
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) ?o WHERE { { ?z property:P495 ?o . ?o rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15416 } UNION { ?z property:P495 ?o . ?o rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q2088357 } } GROUP BY ?o } . FILTER ( ?i <= 855 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
value 855
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) ?o WHERE { { ?z property:country_of_origin ?o . ?o rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:television_program } UNION { ?z property:country_of_origin ?o . ?o rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:musical_ensemble } } GROUP BY ?o } . FILTER ( ?i <= 855 ) }
[]
political territorial entity television program musical ensemble
SYSTEM
23
Q1000 Q1747689 Q838261 Q769 Q763 Q664 Q766 Q1054923 Q13353 Q781 Q5705 Q1823 Q35 Q407199 Q778 Q691 Q234 Q2991382 Q40 Q9337 Q23635 Q31747 Q129286
(c(Q15416)|c(Q2088357),P495,c(Q1048835))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q15416
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
value 855
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) ?o WHERE { { ?z property:P495 ?o . ?o rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15416 } UNION { ?z property:P495 ?o . ?o rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q2088357 } } GROUP BY ?o } . FILTER ( ?i <= 855 ) }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis New Zealand Jamaica British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Denmark Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Austria Flemish Region Bermuda Irish Free State British Raj
23
action count
action atmost
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
value 855
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) ?o WHERE { { ?z property:country_of_origin ?o . ?o rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:television_program } UNION { ?z property:country_of_origin ?o . ?o rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:musical_ensemble } } GROUP BY ?o } . FILTER ( ?i <= 855 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q265
P530
Q1048835 Q15617994
USER
How many administrative territories have diplomatic associations with greater number of political territories than Uzbekistan ?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q265
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { ?b rdf:type ontology:Q15617994 . resource:Q265 property:P530 ?b } } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?a property:P530 ?x . ?a rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?a } }
Uzbekistan
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Uzbekistan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Uzbekistan property:diplomatic_relation ?b } } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?a property:diplomatic_relation ?x . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?a } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
84
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q736 Q230 Q233 Q20 Q1041 Q27 Q843 Q184 Q1029 Q1028 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q265
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { ?b rdf:type ontology:Q15617994 . resource:Q265 property:P530 ?b } } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?a property:P530 ?x . ?a rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?a } }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta Norway Senegal Ireland Pakistan Belarus Mozambique Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
84
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Uzbekistan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Uzbekistan property:diplomatic_relation ?b } } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?a property:diplomatic_relation ?x . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?a } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q227
P530
Q1048835 Q15617994
USER
And also tell me about Azerbaijan?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q227
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?g ) WHERE { ?x rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 . ?x property:P530 ?f } GROUP BY ?x } . FILTER ( ?g > ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Q227 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } }
Azerbaijan
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Azerbaijan
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?g ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity . ?x property:diplomatic_relation ?f } GROUP BY ?x } . FILTER ( ?g > ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Azerbaijan property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
84
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q736 Q230 Q233 Q20 Q1041 Q27 Q843 Q184 Q1029 Q1028 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q227
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?g ) WHERE { ?x rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 . ?x property:P530 ?f } GROUP BY ?x } . FILTER ( ?g > ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Q227 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta Norway Senegal Ireland Pakistan Belarus Mozambique Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
84
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Azerbaijan
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?g ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity . ?x property:diplomatic_relation ?f } GROUP BY ?x } . FILTER ( ?g > ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Azerbaijan property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } }
[]