Simple Question (Direct)
Simple Question
Q842027
P1376
Q20667921
USER
Which french administrative division has Rogliano as its capital ?
(Q842027,P1376,c(Q20667921))
action filter_type
action find
entity Q842027
relation P1376
type Q20667921
['Q842027', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { resource:Q842027 property:P1376 ?n . ?n rdf:type ontology:Q20667921 }
Rogliano
action filter_type
action find
entity Rogliano
relation capital of
type type of french administrative division
['Rogliano', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Rogliano property:capital_of ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q936033
SYSTEM
canton of Capobianco
Q936033
(Q842027,P1376,c(Q20667921))
action filter_type
action find
entity Q842027
relation P1376
type Q20667921
The [ANSWER] has Rogliano as its capital
['Q842027', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { resource:Q842027 property:P1376 ?n . ?n rdf:type ontology:Q20667921 }
canton of Capobianco
The canton of Capobianco has Rogliano as its capital
canton of Capobianco
action filter_type
action find
entity Rogliano
relation capital of
type type of french administrative division
['Rogliano', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Rogliano property:capital_of ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q842027
P206
Q15324
USER
Which body of water is located next to Rogliano ?
(Q842027,P206,c(Q15324))
action filter_type
action find
entity Q842027
relation P206
type Q15324
['Q842027', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15324 . resource:Q842027 property:P206 ?a }
Rogliano
action filter_type
action find
entity Rogliano
relation located next to body of water
type body of water
['Rogliano', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:body_of_water . resource:Rogliano property:located_next_to_body_of_water ?a }
[]
body of water
Q38882
SYSTEM
Tyrrhenian Sea
Q38882
(Q842027,P206,c(Q15324))
action filter_type
action find
entity Q842027
relation P206
type Q15324
[ANSWER] is located next to Rogliano
['Q842027', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15324 . resource:Q842027 property:P206 ?a }
Tyrrhenian Sea
Tyrrhenian Sea is located next to Rogliano
Tyrrhenian Sea
action filter_type
action find
entity Rogliano
relation located next to body of water
type body of water
['Rogliano', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:body_of_water . resource:Rogliano property:located_next_to_body_of_water ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q936033
P36
Q20667921
USER
Which french administrative division is known as the capital of canton of Capobianco ?
(Q936033,P36,c(Q20667921))
action filter_type
action find
entity Q936033
relation P36
type Q20667921
['Q936033', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q936033 property:P36 ?m . ?m rdf:type ontology:Q20667921 }
canton of Capobianco
action filter_type
action find
entity canton of Capobianco
relation capital
type type of french administrative division
['canton of Capobianco', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:canton_of_Capobianco property:capital ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q842027
SYSTEM
Rogliano
Q842027
(Q936033,P36,c(Q20667921))
action filter_type
action find
entity Q936033
relation P36
type Q20667921
[ANSWER] is known as the capital of canton of Capobianco
['Q936033', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q936033 property:P36 ?m . ?m rdf:type ontology:Q20667921 }
Rogliano
Rogliano is known as the capital of canton of Capobianco
Rogliano
action filter_type
action find
entity canton of Capobianco
relation capital
type type of french administrative division
['canton of Capobianco', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:canton_of_Capobianco property:capital ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1547731
Q20667921
USER
And also tell me about canton of Saint-Gratien?
(Q1547731,P36,c(Q20667921))
action filter_type
action find
entity Q1547731
relation P36
type Q20667921
['Q1547731', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { resource:Q1547731 property:P36 ?r . ?r rdf:type ontology:Q20667921 }
canton of Saint-Gratien
action filter_type
action find
entity canton of Saint-Gratien
relation capital
type type of french administrative division
['canton of Saint-Gratien', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { resource:canton_of_Saint-Gratien property:capital ?r . ?r rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q275384
SYSTEM
Saint-Gratien
Q275384
(Q1547731,P36,c(Q20667921))
action filter_type
action find
entity Q1547731
relation P36
type Q20667921
[ANSWER]
['Q1547731', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { resource:Q1547731 property:P36 ?r . ?r rdf:type ontology:Q20667921 }
Saint-Gratien
Saint-Gratien
action filter_type
action find
entity canton of Saint-Gratien
relation capital
type type of french administrative division
['canton of Saint-Gratien', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { resource:canton_of_Saint-Gratien property:capital ?r . ?r rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q275384 Q54642
P17
Q15617994
USER
Is that french administrative division located in Roccella Ionica ?
(Q275384,P17,Q54642)
action is_in
entity Q54642
action find
entity Q275384
relation P17
['Q275384', 'P17', 'Q54642']
ASK WHERE { resource:Q275384 property:P17 resource:Q54642 }
Saint-Gratien Roccella Ionica
action is_in
entity Roccella Ionica
action find
entity Saint-Gratien
relation country
['Saint-Gratien', 'country', 'Roccella Ionica']
ASK WHERE { resource:Saint-Gratien property:country resource:Roccella_Ionica }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q275384,P17,Q54642)
action is_in
entity Q54642
action find
entity Q275384
relation P17
[ANSWER]
['Q275384', 'P17', 'Q54642']
ASK WHERE { resource:Q275384 property:P17 resource:Q54642 }
No
action is_in
entity Roccella Ionica
action find
entity Saint-Gratien
relation country
['Saint-Gratien', 'country', 'Roccella Ionica']
ASK WHERE { resource:Saint-Gratien property:country resource:Roccella_Ionica }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q842027 Q142
P17
Q15617994
USER
Is Rogliano situated in France ?
(Q842027,P17,Q142)
action is_in
entity Q142
action find
entity Q842027
relation P17
['Q842027', 'P17', 'Q142']
ASK WHERE { resource:Q842027 property:P17 resource:Q142 }
Rogliano France
action is_in
entity France
action find
entity Rogliano
relation country
['Rogliano', 'country', 'France']
ASK WHERE { resource:Rogliano property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q842027,P17,Q142)
action is_in
entity Q142
action find
entity Q842027
relation P17
[ANSWER]
['Q842027', 'P17', 'Q142']
ASK WHERE { resource:Q842027 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity Rogliano
relation country
['Rogliano', 'country', 'France']
ASK WHERE { resource:Rogliano property:country resource:France }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q43229 Q811430 Q15324
USER
Which bodies of water are a component of atleast 1 organizations and constructions ?
(c(Q15324),P361,c(Q43229)|c(Q811430))
action atleast
action union
action find_tuple_counts
relation P361
type Q15324
type Q43229
action find_tuple_counts
relation P361
type Q15324
type Q811430
value 1
[{'concept': 'Q15324'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q811430'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?u WHERE { VALUES ( ?b ) { ( ontology:Q43229 ) ( ontology:Q811430 ) } . ?j rdf:type ?b } GROUP BY ?u } . FILTER ( ?k >= 1 ) }
action atleast
action union
action find_tuple_counts
relation part of
type body of water
type organization
action find_tuple_counts
relation part of
type body of water
type construction
value 1
[{'concept': 'body of water'}, 'part of', [{'concept': 'organization'}, {'concept': 'construction'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?u WHERE { VALUES ( ?b ) { ( ontology:organization ) ( ontology:construction ) } . ?j rdf:type ?b } GROUP BY ?u } . FILTER ( ?k >= 1 ) }
[]
organization construction body of water
Q7943692 Q3815129
SYSTEM
Vuosaari Harbour, canal basin
Q7943692 Q3815129
(c(Q15324),P361,c(Q43229)|c(Q811430))
action atleast
action union
action find_tuple_counts
relation P361
type Q15324
type Q43229
action find_tuple_counts
relation P361
type Q15324
type Q811430
value 1
[ANSWERS] are a component of atleast 1 organizations and constructions
[{'concept': 'Q15324'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q811430'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?u WHERE { VALUES ( ?b ) { ( ontology:Q43229 ) ( ontology:Q811430 ) } . ?j rdf:type ?b } GROUP BY ?u } . FILTER ( ?k >= 1 ) }
Vuosaari Harbour canal basin
Vuosaari Harbour and canal basin are a component of atleast 1 organizations and constructions
Vuosaari Harbour canal basin
action atleast
action union
action find_tuple_counts
relation part of
type body of water
type organization
action find_tuple_counts
relation part of
type body of water
type construction
value 1
[{'concept': 'body of water'}, 'part of', [{'concept': 'organization'}, {'concept': 'construction'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?u WHERE { VALUES ( ?b ) { ( ontology:organization ) ( ontology:construction ) } . ?j rdf:type ?b } GROUP BY ?u } . FILTER ( ?k >= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q15324 Q1048835 Q515
USER
How many bodies of water are situated in the neighbourhood of approximately 8 political territories and cities ?
(c(Q1048835)|c(Q515),P206,c(Q15324))
action count
action approx
action union
action find_reverse_tuple_counts
relation P206
type Q15324
type Q1048835
action find_reverse_tuple_counts
relation P206
type Q15324
type Q515
value 8
[[{'concept': 'Q1048835'}, {'concept': 'Q515'}], 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?p WHERE { { ?y property:P206 ?p . ?p rdf:type ontology:Q15324 . ?y rdf:type ontology:Q1048835 } UNION { ?y property:P206 ?p . ?y rdf:type ontology:Q515 . ?p rdf:type ontology:Q15324 } } GROUP BY ?p } . FILTER ( ?x = 8 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type political territorial entity
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type city
value 8
[[{'concept': 'political territorial entity'}, {'concept': 'city'}], 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?p WHERE { { ?y property:located_next_to_body_of_water ?p . ?p rdf:type ontology:body_of_water . ?y rdf:type ontology:political_territorial_entity } UNION { ?y property:located_next_to_body_of_water ?p . ?y rdf:type ontology:city . ?p rdf:type ontology:body_of_water } } GROUP BY ?p } . FILTER ( ?x = 8 ) }
[]
body of water political territorial entity city
SYSTEM
2
Q540179 Q49364
(c(Q1048835)|c(Q515),P206,c(Q15324))
action count
action approx
action union
action find_reverse_tuple_counts
relation P206
type Q15324
type Q1048835
action find_reverse_tuple_counts
relation P206
type Q15324
type Q515
value 8
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q515'}], 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?p WHERE { { ?y property:P206 ?p . ?p rdf:type ontology:Q15324 . ?y rdf:type ontology:Q1048835 } UNION { ?y property:P206 ?p . ?y rdf:type ontology:Q515 . ?p rdf:type ontology:Q15324 } } GROUP BY ?p } . FILTER ( ?x = 8 ) }
Camotes Sea Java Sea
2
action count
action approx
action union
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type political territorial entity
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type city
value 8
[[{'concept': 'political territorial entity'}, {'concept': 'city'}], 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) ?p WHERE { { ?y property:located_next_to_body_of_water ?p . ?p rdf:type ontology:body_of_water . ?y rdf:type ontology:political_territorial_entity } UNION { ?y property:located_next_to_body_of_water ?p . ?y rdf:type ontology:city . ?p rdf:type ontology:body_of_water } } GROUP BY ?p } . FILTER ( ?x = 8 ) }
[]