Simple Question (Direct)
Simple Question
Q1983287
P1313
Q12737077
USER
What is the occupation held by Tírig ?
(Q1983287,P1313,c(Q12737077))
action filter_type
action find
entity Q1983287
relation P1313
type Q12737077
['Q1983287', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q1983287 property:P1313 ?n }
Tírig
action filter_type
action find
entity Tírig
relation office held by head of government
type occupation
['Tírig', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Tírig property:office_held_by_head_of_government ?n }
[]
occupation
Q26697459
SYSTEM
mayor of Tírig
Q26697459
(Q1983287,P1313,c(Q12737077))
action filter_type
action find
entity Q1983287
relation P1313
type Q12737077
The occupation held by Tírig is the [ANSWER]
['Q1983287', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q1983287 property:P1313 ?n }
mayor of Tírig
The occupation held by Tírig is the mayor of Tírig
mayor of Tírig
action filter_type
action find
entity Tírig
relation office held by head of government
type occupation
['Tírig', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Tírig property:office_held_by_head_of_government ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26697459
P1001
Q1048835
USER
Which political territory comes under the jurisdiction of that occupation ?
(Q26697459,P1001,c(Q1048835))
action filter_type
action find
entity Q26697459
relation P1001
type Q1048835
['Q26697459', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q26697459 property:P1001 ?e . ?e rdf:type ontology:Q1048835 }
mayor of Tírig
action filter_type
action find
entity mayor of Tírig
relation applies to jurisdiction
type political territorial entity
['mayor of Tírig', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:mayor_of_Tírig property:applies_to_jurisdiction ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1983287
SYSTEM
Tírig
Q1983287
(Q26697459,P1001,c(Q1048835))
action filter_type
action find
entity Q26697459
relation P1001
type Q1048835
[ANSWER] comes under the jurisdiction of that occupation
['Q26697459', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q26697459 property:P1001 ?e . ?e rdf:type ontology:Q1048835 }
Tírig
Tírig comes under the jurisdiction of that occupation
Tírig
action filter_type
action find
entity mayor of Tírig
relation applies to jurisdiction
type political territorial entity
['mayor of Tírig', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:mayor_of_Tírig property:applies_to_jurisdiction ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q26697459
P17
Q15617994
USER
Which administrative territory is mayor of Tírig a part of ?
(Q26697459,P17,c(Q15617994))
action filter_type
action find
entity Q26697459
relation P17
type Q15617994
['Q26697459', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q26697459 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
mayor of Tírig
action filter_type
action find
entity mayor of Tírig
relation country
type designation for an administrative territorial entity
['mayor of Tírig', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:mayor_of_Tírig property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q26697459,P17,c(Q15617994))
action filter_type
action find
entity Q26697459
relation P17
type Q15617994
[ANSWER] is mayor of Tírig a part of
['Q26697459', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q26697459 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Spain
Spain is mayor of Tírig a part of
Spain
action filter_type
action find
entity mayor of Tírig
relation country
type designation for an administrative territorial entity
['mayor of Tírig', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:mayor_of_Tírig property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2137946
Q15617994
USER
And also tell me about N210 road?
(Q2137946,P17,c(Q15617994))
action filter_type
action find
entity Q2137946
relation P17
type Q15617994
['Q2137946', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q2137946 property:P17 ?f }
N210 road
action filter_type
action find
entity N210 road
relation country
type designation for an administrative territorial entity
['N210 road', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:N210_road property:country ?f }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q2137946,P17,c(Q15617994))
action filter_type
action find
entity Q2137946
relation P17
type Q15617994
[ANSWER]
['Q2137946', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q2137946 property:P17 ?f }
Netherlands
Netherlands
action filter_type
action find
entity N210 road
relation country
type designation for an administrative territorial entity
['N210 road', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:N210_road property:country ?f }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q55 Q150747
P35
Q502895
USER
Is Wilhelmina of the Netherlands the head of state of that administrative territory ?
(Q55,P35,Q150747)
action is_in
entity Q150747
action find
entity Q55
relation P35
['Q55', 'P35', 'Q150747']
ASK WHERE { resource:Q55 property:P35 resource:Q150747 }
Netherlands Wilhelmina of the Netherlands
action is_in
entity Wilhelmina of the Netherlands
action find
entity Netherlands
relation head of state
['Netherlands', 'head of state', 'Wilhelmina of the Netherlands']
ASK WHERE { resource:Netherlands property:head_of_state resource:Wilhelmina_of_the_Netherlands }
[]
common name
SYSTEM
YES
(Q55,P35,Q150747)
action is_in
entity Q150747
action find
entity Q55
relation P35
[ANSWER]
['Q55', 'P35', 'Q150747']
ASK WHERE { resource:Q55 property:P35 resource:Q150747 }
Yes
action is_in
entity Wilhelmina of the Netherlands
action find
entity Netherlands
relation head of state
['Netherlands', 'head of state', 'Wilhelmina of the Netherlands']
ASK WHERE { resource:Netherlands property:head_of_state resource:Wilhelmina_of_the_Netherlands }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q29 Q183
P530
Q1048835
USER
Does Germany have a diplomatic relationship with Spain ?
(Q29,P530,Q183)
action is_in
entity Q183
action find
entity Q29
relation P530
['Q29', 'P530', 'Q183']
ASK WHERE { resource:Q29 property:P530 resource:Q183 }
Spain Germany
action is_in
entity Germany
action find
entity Spain
relation diplomatic relation
['Spain', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q29,P530,Q183)
action is_in
entity Q183
action find
entity Q29
relation P530
[ANSWER]
['Q29', 'P530', 'Q183']
ASK WHERE { resource:Q29 property:P530 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Spain
relation diplomatic relation
['Spain', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Germany }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with atleast 18 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 18
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?b ) WHERE { ?a property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?b >= 18 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?b ) WHERE { ?a property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?b >= 18 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q142 Q159 Q155 Q30 Q38
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 18
[ANSWERS] hold diplomatic relationship with atleast 18 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?b ) WHERE { ?a property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?b >= 18 ) }
Israel France Russia Brazil United States of America Italy
Italy, Brazil and United States of America hold diplomatic relationship with atleast 18 administrative territories
Italy Brazil United States of America
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?b ) WHERE { ?a property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?b >= 18 ) }
[]