Simple Question (Direct)
Simple Question
Q13553640
P22
Q502895
USER
Who was the father of Andrés Habegger ?
(Q13553640,P22,c(Q502895))
action filter_type
action find
entity Q13553640
relation P22
type Q502895
['Q13553640', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q13553640 property:P22 ?c . ?c rdf:type ontology:Q502895 }
Andrés Habegger
action filter_type
action find
entity Andrés Habegger
relation father
type common name
['Andrés Habegger', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Andrés_Habegger property:father ?c . ?c rdf:type ontology:common_name }
[]
common name
Q6044805
SYSTEM
Norberto Habegger
Q6044805
(Q13553640,P22,c(Q502895))
action filter_type
action find
entity Q13553640
relation P22
type Q502895
The father of Andrés Habegger was named [ANSWER]
['Q13553640', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q13553640 property:P22 ?c . ?c rdf:type ontology:Q502895 }
Norberto Habegger
The father of Andrés Habegger was named Norberto Habegger
Norberto Habegger
action filter_type
action find
entity Andrés Habegger
relation father
type common name
['Andrés Habegger', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Andrés_Habegger property:father ?c . ?c rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q6044805 Q414 Q55121
P27
Q15617994
USER
Is that person a civilian of Argentina and Sturno ?
(Q6044805,P27,Q414) (Q6044805,P27,Q55121)
action is_in
entity Q6044805
action intersection
action find_reverse
entity Q414
relation P27
action find_reverse
entity Q55121
relation P27
['Q6044805', 'P27', 'Q414'] ['Q6044805', 'P27', 'Q55121']
ASK WHERE { resource:Q6044805 property:P27 resource:Q414 . resource:Q6044805 property:P27 resource:Q55121 }
Norberto Habegger Argentina Sturno
action is_in
entity Norberto Habegger
action intersection
action find_reverse
entity Argentina
relation country of citizenship
action find_reverse
entity Sturno
relation country of citizenship
['Norberto Habegger', 'country of citizenship', 'Argentina'] ['Norberto Habegger', 'country of citizenship', 'Sturno']
ASK WHERE { resource:Norberto_Habegger property:country_of_citizenship resource:Argentina . resource:Norberto_Habegger property:country_of_citizenship resource:Sturno }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q6044805,P27,Q414) (Q6044805,P27,Q55121)
action is_in
entity Q6044805
action intersection
action find_reverse
entity Q414
relation P27
action find_reverse
entity Q55121
relation P27
[ANSWER]
['Q6044805', 'P27', 'Q414'] ['Q6044805', 'P27', 'Q55121']
ASK WHERE { resource:Q6044805 property:P27 resource:Q414 . resource:Q6044805 property:P27 resource:Q55121 }
YES and NO respectively
action is_in
entity Norberto Habegger
action intersection
action find_reverse
entity Argentina
relation country of citizenship
action find_reverse
entity Sturno
relation country of citizenship
['Norberto Habegger', 'country of citizenship', 'Argentina'] ['Norberto Habegger', 'country of citizenship', 'Sturno']
ASK WHERE { resource:Norberto_Habegger property:country_of_citizenship resource:Argentina . resource:Norberto_Habegger property:country_of_citizenship resource:Sturno }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q13553640 Q765841 Q719
P19
Q515
USER
Does Andrés Habegger have location of birth at Urlați and Saginaw ?
(Q13553640,P19,Q765841) (Q13553640,P19,Q719)
action is_in
entity Q13553640
action intersection
action find_reverse
entity Q765841
relation P19
action find_reverse
entity Q719
relation P19
['Q13553640', 'P19', 'Q765841'] ['Q13553640', 'P19', 'Q719']
ASK WHERE { resource:Q13553640 property:P19 resource:Q765841 . resource:Q13553640 property:P19 resource:Q719 }
Andrés Habegger Urlați Saginaw
action is_in
entity Andrés Habegger
action intersection
action find_reverse
entity Urlați
relation place of birth
action find_reverse
entity Saginaw
relation place of birth
['Andrés Habegger', 'place of birth', 'Urlați'] ['Andrés Habegger', 'place of birth', 'Saginaw']
ASK WHERE { resource:Andrés_Habegger property:place_of_birth resource:Urlați . resource:Andrés_Habegger property:place_of_birth resource:Saginaw }
[]
city
SYSTEM
NO
(Q13553640,P19,Q765841) (Q13553640,P19,Q719)
action is_in
entity Q13553640
action intersection
action find_reverse
entity Q765841
relation P19
action find_reverse
entity Q719
relation P19
[ANSWER]
['Q13553640', 'P19', 'Q765841'] ['Q13553640', 'P19', 'Q719']
ASK WHERE { resource:Q13553640 property:P19 resource:Q765841 . resource:Q13553640 property:P19 resource:Q719 }
No
action is_in
entity Andrés Habegger
action intersection
action find_reverse
entity Urlați
relation place of birth
action find_reverse
entity Saginaw
relation place of birth
['Andrés Habegger', 'place of birth', 'Urlați'] ['Andrés Habegger', 'place of birth', 'Saginaw']
ASK WHERE { resource:Andrés_Habegger property:place_of_birth resource:Urlați . resource:Andrés_Habegger property:place_of_birth resource:Saginaw }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3176903 Q6044805
P27
Q15617994
USER
Which administrative territories are the native countriesof Norberto Habegger or Leif Holmqvist ?
OR((Q6044805,P27,c(Q15617994)), (Q3176903,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6044805
relation P27
action find
entity Q3176903
relation P27
type Q15617994
{'OR': [['Q6044805', 'P27', {'concept': 'Q15617994'}], ['Q3176903', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?m ) { ( resource:Q6044805 ) ( resource:Q3176903 ) } . ?m property:P27 ?s } . ?s rdf:type ontology:Q15617994 }
Leif Holmqvist Norberto Habegger
action filter_type
action union
action find
entity Norberto Habegger
relation country of citizenship
action find
entity Leif Holmqvist
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Norberto Habegger', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Leif Holmqvist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?m ) { ( resource:Norberto_Habegger ) ( resource:Leif_Holmqvist ) } . ?m property:country_of_citizenship ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q414 Q34
SYSTEM
Argentina, Sweden
Q414 Q34
OR((Q6044805,P27,c(Q15617994)), (Q3176903,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6044805
relation P27
action find
entity Q3176903
relation P27
type Q15617994
[ANSWERS] are the native countriesof Norberto Habegger or Leif Holmqvist
{'OR': [['Q6044805', 'P27', {'concept': 'Q15617994'}], ['Q3176903', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?m ) { ( resource:Q6044805 ) ( resource:Q3176903 ) } . ?m property:P27 ?s } . ?s rdf:type ontology:Q15617994 }
Argentina Sweden
Argentina and Sweden are the native countriesof Norberto Habegger or Leif Holmqvist
Argentina Sweden
action filter_type
action union
action find
entity Norberto Habegger
relation country of citizenship
action find
entity Leif Holmqvist
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Norberto Habegger', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Leif Holmqvist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?m ) { ( resource:Norberto_Habegger ) ( resource:Leif_Holmqvist ) } . ?m property:country_of_citizenship ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with around 33 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 33
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?i ) WHERE { ?a property:P530 ?w . ?a rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?i = 33 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 33
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?i ) WHERE { ?a property:diplomatic_relation ?w . ?a rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?i = 33 ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 33
[ANSWERS] have diplomatic associations with around 33 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?i ) WHERE { ?a property:P530 ?w . ?a rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?i = 33 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic associations with around 33 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 33
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?i ) WHERE { ?a property:diplomatic_relation ?w . ?a rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?i = 33 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q9552
P530
Q15617994
USER
Are Perosa Canavese known to have diplomatic connections with those political territories ?
(Q9552,P530,Q35) (Q9552,P530,Q16) (Q9552,P530,Q40)
action is_in
entity prev_answer
action find
entity Q9552
relation P530
['Q9552', 'P530', 'Q35'] ['Q9552', 'P530', 'Q16'] ['Q9552', 'P530', 'Q40']
ASK WHERE { VALUES ( ?k ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q9552 property:P530 ?k }
Perosa Canavese
action is_in
entity prev_answer
action find
entity Perosa Canavese
relation diplomatic relation
['Perosa Canavese', 'diplomatic relation', 'Denmark'] ['Perosa Canavese', 'diplomatic relation', 'Canada'] ['Perosa Canavese', 'diplomatic relation', 'Austria']
ASK WHERE { VALUES ( ?k ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Perosa_Canavese property:diplomatic_relation ?k }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q9552,P530,Q35) (Q9552,P530,Q16) (Q9552,P530,Q40)
action is_in
entity prev_answer
action find
entity Q9552
relation P530
[ANSWER]
['Q9552', 'P530', 'Q35'] ['Q9552', 'P530', 'Q16'] ['Q9552', 'P530', 'Q40']
ASK WHERE { VALUES ( ?k ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q9552 property:P530 ?k }
No
action is_in
entity prev_answer
action find
entity Perosa Canavese
relation diplomatic relation
['Perosa Canavese', 'diplomatic relation', 'Denmark'] ['Perosa Canavese', 'diplomatic relation', 'Canada'] ['Perosa Canavese', 'diplomatic relation', 'Austria']
ASK WHERE { VALUES ( ?k ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Perosa_Canavese property:diplomatic_relation ?k }
[]