Simple Question (Direct)
Simple Question
Q324321
P27
Q15617994
USER
Which administrative territory is the native country of Henri Lopès ?
(Q324321,P27,c(Q15617994))
action filter_type
action find
entity Q324321
relation P27
type Q15617994
['Q324321', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q324321 property:P27 ?v }
Henri Lopès
action filter_type
action find
entity Henri Lopès
relation country of citizenship
type designation for an administrative territorial entity
['Henri Lopès', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Henri_Lopès property:country_of_citizenship ?v }
[]
designation for an administrative territorial entity
Q971
SYSTEM
Republic of the Congo
Q971
(Q324321,P27,c(Q15617994))
action filter_type
action find
entity Q324321
relation P27
type Q15617994
Congo [ANSWER] is the native country of Henri Lopès
['Q324321', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q324321 property:P27 ?v }
Republic of the Congo
Congo Republic of the Congo is the native country of Henri Lopès
Republic of the Congo
action filter_type
action find
entity Henri Lopès
relation country of citizenship
type designation for an administrative territorial entity
['Henri Lopès', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Henri_Lopès property:country_of_citizenship ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q971
P36
Q56061
USER
What is the capital of that administrative territory ?
(Q971,P36,c(Q56061))
action filter_type
action find
entity Q971
relation P36
type Q56061
['Q971', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q971 property:P36 ?b }
Republic of the Congo
action filter_type
action find
entity Republic of the Congo
relation capital
type administrative territorial entity
['Republic of the Congo', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Republic_of_the_Congo property:capital ?b }
[]
administrative territorial entity
Q3844
SYSTEM
Brazzaville
Q3844
(Q971,P36,c(Q56061))
action filter_type
action find
entity Q971
relation P36
type Q56061
The capital of that administrative territory is of [ANSWER]
['Q971', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q971 property:P36 ?b }
Brazzaville
The capital of that administrative territory is of Brazzaville
Brazzaville
action filter_type
action find
entity Republic of the Congo
relation capital
type administrative territorial entity
['Republic of the Congo', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Republic_of_the_Congo property:capital ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q971
P47
Q15617994
USER
How many administrative territories share the border with Republic of the Congo ?
(Q971,P47,c(Q15617994))
action count
action filter_type
action find
entity Q971
relation P47
type Q15617994
['Q971', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w rdf:type ontology:Q15617994 . resource:Q971 property:P47 ?w }
Republic of the Congo
action count
action filter_type
action find
entity Republic of the Congo
relation shares border with
type designation for an administrative territorial entity
['Republic of the Congo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Republic_of_the_Congo property:shares_border_with ?w }
[]
designation for an administrative territorial entity
SYSTEM
4
Q929 Q1009 Q974 Q916
(Q971,P47,c(Q15617994))
action count
action filter_type
action find
entity Q971
relation P47
type Q15617994
[ANSWER]
['Q971', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w rdf:type ontology:Q15617994 . resource:Q971 property:P47 ?w }
Central African Republic Cameroon Democratic Republic of the Congo Angola
4
action count
action filter_type
action find
entity Republic of the Congo
relation shares border with
type designation for an administrative territorial entity
['Republic of the Congo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Republic_of_the_Congo property:shares_border_with ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8471
P1376
Q15089
USER
What has Reggio Calabria as its capital ?
(Q8471,P1376,c(Q15089))
action filter_type
action find
entity Q8471
relation P1376
type Q15089
['Q8471', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?k WHERE { resource:Q8471 property:P1376 ?k . ?k rdf:type ontology:Q15089 }
Reggio Calabria
action filter_type
action find
entity Reggio Calabria
relation capital of
type province of Italy
['Reggio Calabria', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?k WHERE { resource:Reggio_Calabria property:capital_of ?k . ?k rdf:type ontology:province_of_Italy }
[]
province of Italy
Q16253
SYSTEM
Province of Reggio Calabria
Q16253
(Q8471,P1376,c(Q15089))
action filter_type
action find
entity Q8471
relation P1376
type Q15089
The [ANSWER] has Reggio Calabria as its capital
['Q8471', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?k WHERE { resource:Q8471 property:P1376 ?k . ?k rdf:type ontology:Q15089 }
Province of Reggio Calabria
The Province of Reggio Calabria has Reggio Calabria as its capital
Province of Reggio Calabria
action filter_type
action find
entity Reggio Calabria
relation capital of
type province of Italy
['Reggio Calabria', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?k WHERE { resource:Reggio_Calabria property:capital_of ?k . ?k rdf:type ontology:province_of_Italy }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q971
P495
Q838948
USER
What is Republic of the Congo a country of origin of ?
(c(Q838948),P495,Q971)
action filter_type
action find_reverse
entity Q971
relation P495
type Q838948
[{'concept': 'Q838948'}, 'P495', 'Q971']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q838948 . ?h property:P495 resource:Q971 }
Republic of the Congo
action filter_type
action find_reverse
entity Republic of the Congo
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Republic of the Congo']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:work_of_art . ?h property:country_of_origin resource:Republic_of_the_Congo }
[]
work of art
Q3929845
SYSTEM
Ramata
Q3929845
(c(Q838948),P495,Q971)
action filter_type
action find_reverse
entity Q971
relation P495
type Q838948
[ANSWER] a country of origin of
[{'concept': 'Q838948'}, 'P495', 'Q971']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q838948 . ?h property:P495 resource:Q971 }
Ramata
Ramata a country of origin of
Ramata
action filter_type
action find_reverse
entity Republic of the Congo
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Republic of the Congo']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:work_of_art . ?h property:country_of_origin resource:Republic_of_the_Congo }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3929845
P161
Q502895
USER
Which person is in that work of art ?
(Q3929845,P161,c(Q502895))
action filter_type
action find
entity Q3929845
relation P161
type Q502895
['Q3929845', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q3929845 property:P161 ?r . ?r rdf:type ontology:Q502895 }
Ramata
action filter_type
action find
entity Ramata
relation cast member
type common name
['Ramata', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Ramata property:cast_member ?r . ?r rdf:type ontology:common_name }
[]
common name
Q433388
SYSTEM
Katoucha Niane
Q433388
(Q3929845,P161,c(Q502895))
action filter_type
action find
entity Q3929845
relation P161
type Q502895
[ANSWER] is in that work of art
['Q3929845', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q3929845 property:P161 ?r . ?r rdf:type ontology:Q502895 }
Katoucha Niane
Katoucha Niane is in that work of art
Katoucha Niane
action filter_type
action find
entity Ramata
relation cast member
type common name
['Ramata', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Ramata property:cast_member ?r . ?r rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q433388 Q6465030
P27
Q15617994
USER
Does that person belong to La Région-Sherbrookoise Regional County Municipality ?
(Q433388,P27,Q6465030)
action is_in
entity Q6465030
action find
entity Q433388
relation P27
['Q433388', 'P27', 'Q6465030']
ASK WHERE { resource:Q433388 property:P27 resource:Q6465030 }
Katoucha Niane La Région-Sherbrookoise Regional County Municipality
action is_in
entity La Région-Sherbrookoise Regional County Municipality
action find
entity Katoucha Niane
relation country of citizenship
['Katoucha Niane', 'country of citizenship', 'La Région-Sherbrookoise Regional County Municipality']
ASK WHERE { resource:Katoucha_Niane property:country_of_citizenship resource:La_Région-Sherbrookoise_Regional_County_Municipality }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q433388,P27,Q6465030)
action is_in
entity Q6465030
action find
entity Q433388
relation P27
[ANSWER]
['Q433388', 'P27', 'Q6465030']
ASK WHERE { resource:Q433388 property:P27 resource:Q6465030 }
No
action is_in
entity La Région-Sherbrookoise Regional County Municipality
action find
entity Katoucha Niane
relation country of citizenship
['Katoucha Niane', 'country of citizenship', 'La Région-Sherbrookoise Regional County Municipality']
ASK WHERE { resource:Katoucha_Niane property:country_of_citizenship resource:La_Région-Sherbrookoise_Regional_County_Municipality }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16253 Q38
P17
Q15617994
USER
Does Province of Reggio Calabria belong to Italy ?
(Q16253,P17,Q38)
action is_in
entity Q38
action find
entity Q16253
relation P17
['Q16253', 'P17', 'Q38']
ASK WHERE { resource:Q16253 property:P17 resource:Q38 }
Province of Reggio Calabria Italy
action is_in
entity Italy
action find
entity Province of Reggio Calabria
relation country
['Province of Reggio Calabria', 'country', 'Italy']
ASK WHERE { resource:Province_of_Reggio_Calabria property:country resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q16253,P17,Q38)
action is_in
entity Q38
action find
entity Q16253
relation P17
[ANSWER]
['Q16253', 'P17', 'Q38']
ASK WHERE { resource:Q16253 property:P17 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Province of Reggio Calabria
relation country
['Province of Reggio Calabria', 'country', 'Italy']
ASK WHERE { resource:Province_of_Reggio_Calabria property:country resource:Italy }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q838948 Q2235308
USER
How many administrative territories are approximately 423 works of art or ship types situated in ?
(c(Q838948)|c(Q2235308),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2235308
value 423
[[{'concept': 'Q838948'}, {'concept': 'Q2235308'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?h ) WHERE { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q2235308 ) } . ?y rdf:type ?c } GROUP BY ?u } . FILTER ( ?h = 423 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type ship type
value 423
[[{'concept': 'work of art'}, {'concept': 'ship type'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?h ) WHERE { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:ship_type ) } . ?y rdf:type ?c } GROUP BY ?u } . FILTER ( ?h = 423 ) }
[]
designation for an administrative territorial entity work of art ship type
SYSTEM
5
Q55 Q145 Q38 Q20 Q29
(c(Q838948)|c(Q2235308),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2235308
value 423
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2235308'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?h ) WHERE { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q2235308 ) } . ?y rdf:type ?c } GROUP BY ?u } . FILTER ( ?h = 423 ) }
Netherlands United Kingdom Italy Norway Spain
5
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type ship type
value 423
[[{'concept': 'work of art'}, {'concept': 'ship type'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?h ) WHERE { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:ship_type ) } . ?y rdf:type ?c } GROUP BY ?u } . FILTER ( ?h = 423 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q230 Q971
P530
Q1048835
USER
Which political territories have diplomatic relationships with Republic of the Congo and Georgia ?
AND((Q971,P530,c(Q1048835)), (Q230,P530,c(Q1048835)))
action filter_type
action intersection
action find
entity Q971
relation P530
action find
entity Q230
relation P530
type Q1048835
{'AND': [['Q971', 'P530', {'concept': 'Q1048835'}], ['Q230', 'P530', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { resource:Q971 property:P530 ?m . resource:Q230 property:P530 ?m . ?m rdf:type ontology:Q1048835 }
Georgia Republic of the Congo
action filter_type
action intersection
action find
entity Republic of the Congo
relation diplomatic relation
action find
entity Georgia
relation diplomatic relation
type political territorial entity
{'AND': [['Republic of the Congo', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { resource:Republic_of_the_Congo property:diplomatic_relation ?m . resource:Georgia property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q971,P530,c(Q1048835)), (Q230,P530,c(Q1048835)))
action filter_type
action intersection
action find
entity Q971
relation P530
action find
entity Q230
relation P530
type Q1048835
[ANSWER] have diplomatic relationships with Republic of the Congo and Georgia
{'AND': [['Q971', 'P530', {'concept': 'Q1048835'}], ['Q230', 'P530', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { resource:Q971 property:P530 ?m . resource:Q230 property:P530 ?m . ?m rdf:type ontology:Q1048835 }
Germany
Germany have diplomatic relationships with Republic of the Congo and Georgia
Germany
action filter_type
action intersection
action find
entity Republic of the Congo
relation diplomatic relation
action find
entity Georgia
relation diplomatic relation
type political territorial entity
{'AND': [['Republic of the Congo', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { resource:Republic_of_the_Congo property:diplomatic_relation ?m . resource:Georgia property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity }
[]