Simple Question (Direct)
Simple Question
Q20740712
P19
Q56061
USER
Which administrative territory was Andrei Chernetsov born at ?
(Q20740712,P19,c(Q56061))
action filter_type
action find
entity Q20740712
relation P19
type Q56061
['Q20740712', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q20740712 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Andrei Chernetsov
action filter_type
action find
entity Andrei Chernetsov
relation place of birth
type administrative territorial entity
['Andrei Chernetsov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Andrei_Chernetsov property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q172575
SYSTEM
Neftegorsk
Q172575
(Q20740712,P19,c(Q56061))
action filter_type
action find
entity Q20740712
relation P19
type Q56061
Andrei Chernetsov was born in [ANSWER]
['Q20740712', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q20740712 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Neftegorsk
Andrei Chernetsov was born in Neftegorsk
Neftegorsk
action filter_type
action find
entity Andrei Chernetsov
relation place of birth
type administrative territorial entity
['Andrei Chernetsov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Andrei_Chernetsov property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q172575 Q159
P17
Q15617994
USER
Is Neftegorsk a part of Russia ?
(Q172575,P17,Q159)
action is_in
entity Q159
action find
entity Q172575
relation P17
['Q172575', 'P17', 'Q159']
ASK WHERE { resource:Q172575 property:P17 resource:Q159 }
Neftegorsk Russia
action is_in
entity Russia
action find
entity Neftegorsk
relation country
['Neftegorsk', 'country', 'Russia']
ASK WHERE { resource:Neftegorsk property:country resource:Russia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q172575,P17,Q159)
action is_in
entity Q159
action find
entity Q172575
relation P17
[ANSWER]
['Q172575', 'P17', 'Q159']
ASK WHERE { resource:Q172575 property:P17 resource:Q159 }
Yes
action is_in
entity Russia
action find
entity Neftegorsk
relation country
['Neftegorsk', 'country', 'Russia']
ASK WHERE { resource:Neftegorsk property:country resource:Russia }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172575
P138
Q15831576
USER
Which fundamental state of matter is that administrative territory named after ?
action filter_type
action find
entity Q172575
relation P138
type Q15831576
SELECT DISTINCT ?q WHERE { resource:Q172575 property:P138 ?q . ?q rdf:type ontology:Q15831576 }
Neftegorsk
action filter_type
action find
entity Neftegorsk
relation named after
type fundamental state of matter
SELECT DISTINCT ?q WHERE { resource:Neftegorsk property:named_after ?q . ?q rdf:type ontology:fundamental_state_of_matter }
[]
fundamental state of matter
Q42962
SYSTEM
oil
Q42962
action filter_type
action find
entity Q172575
relation P138
type Q15831576
Which fundamental state of matter is that administrative territory named after
SELECT DISTINCT ?q WHERE { resource:Q172575 property:P138 ?q . ?q rdf:type ontology:Q15831576 }
oil
Which fundamental state of matter is that administrative territory named after
oil
action filter_type
action find
entity Neftegorsk
relation named after
type fundamental state of matter
SELECT DISTINCT ?q WHERE { resource:Neftegorsk property:named_after ?q . ?q rdf:type ontology:fundamental_state_of_matter }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q56061 Q166142 Q838948
USER
How many administrative territories are the narrative locations of atleast 59 applications and works of art ?
(c(Q166142)|c(Q838948),P840,c(Q56061))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
value 59
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?m ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?o rdf:type ?m } GROUP BY ?w } . FILTER ( ?p >= 59 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
value 59
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?m ) { ( ontology:application ) ( ontology:work_of_art ) } . ?o rdf:type ?m } GROUP BY ?w } . FILTER ( ?p >= 59 ) }
[]
administrative territorial entity application work of art
SYSTEM
17
Q90 Q5083 Q406 Q1297 Q1741 Q84 Q1490 Q18419 Q34404 Q64 Q65 Q60 Q61 Q62 Q649 Q1348 Q1156
(c(Q166142)|c(Q838948),P840,c(Q56061))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
value 59
[ANSWER]
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?m ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?o rdf:type ?m } GROUP BY ?w } . FILTER ( ?p >= 59 ) }
Paris Seattle Istanbul Chicago Vienna London Tokyo Brooklyn New Orleans Berlin Los Angeles New York City Washington, D.C. San Francisco Moscow Kolkata Mumbai
17
action count
action atleast
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
value 59
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?m ) { ( ontology:application ) ( ontology:work_of_art ) } . ?o rdf:type ?m } GROUP BY ?w } . FILTER ( ?p >= 59 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q172575 Q833202
P138
Q15617994
USER
How many administrative territories are the etymology of Neftegorsk or BRIC ?
(Q172575,P138,c(Q15617994)) (Q833202,P138,c(Q15617994))
action count
action union
action filter_type
action find
entity Q172575
relation P138
type Q15617994
action filter_type
action find
entity Q833202
relation P138
type Q15617994
['Q172575', 'P138', {'concept': 'Q15617994'}] ['Q833202', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?p property:P138 ?s . VALUES ( ?p ) { ( resource:Q172575 ) ( resource:Q833202 ) } }
Neftegorsk BRIC
action count
action union
action filter_type
action find
entity Neftegorsk
relation named after
type designation for an administrative territorial entity
action filter_type
action find
entity BRIC
relation named after
type designation for an administrative territorial entity
['Neftegorsk', 'named after', {'concept': 'designation for an administrative territorial entity'}] ['BRIC', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?p property:named_after ?s . VALUES ( ?p ) { ( resource:Neftegorsk ) ( resource:BRIC ) } }
[]
designation for an administrative territorial entity
SYSTEM
4
Q155 Q148 Q159 Q668
(Q172575,P138,c(Q15617994)) (Q833202,P138,c(Q15617994))
action count
action union
action filter_type
action find
entity Q172575
relation P138
type Q15617994
action filter_type
action find
entity Q833202
relation P138
type Q15617994
[ANSWER]
['Q172575', 'P138', {'concept': 'Q15617994'}] ['Q833202', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?p property:P138 ?s . VALUES ( ?p ) { ( resource:Q172575 ) ( resource:Q833202 ) } }
Brazil People's Republic of China Russia India
4
action count
action union
action filter_type
action find
entity Neftegorsk
relation named after
type designation for an administrative territorial entity
action filter_type
action find
entity BRIC
relation named after
type designation for an administrative territorial entity
['Neftegorsk', 'named after', {'concept': 'designation for an administrative territorial entity'}] ['BRIC', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?p property:named_after ?s . VALUES ( ?p ) { ( resource:Neftegorsk ) ( resource:BRIC ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q172575 Q1310790
P138
Q355304
USER
How many watercourses are the etymology of Neftegorsk or Rhein-Niers-Bahn ?
(Q172575,P138,c(Q355304)) (Q1310790,P138,c(Q355304))
action count
action union
action filter_type
action find
entity Q172575
relation P138
type Q355304
action filter_type
action find
entity Q1310790
relation P138
type Q355304
['Q172575', 'P138', {'concept': 'Q355304'}] ['Q1310790', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?m property:P138 ?z . VALUES ( ?m ) { ( resource:Q172575 ) ( resource:Q1310790 ) } }
Neftegorsk Rhein-Niers-Bahn
action count
action union
action filter_type
action find
entity Neftegorsk
relation named after
type watercourse
action filter_type
action find
entity Rhein-Niers-Bahn
relation named after
type watercourse
['Neftegorsk', 'named after', {'concept': 'watercourse'}] ['Rhein-Niers-Bahn', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?m property:named_after ?z . VALUES ( ?m ) { ( resource:Neftegorsk ) ( resource:Rhein-Niers-Bahn ) } }
[]
watercourse
SYSTEM
2
Q835333 Q584
(Q172575,P138,c(Q355304)) (Q1310790,P138,c(Q355304))
action count
action union
action filter_type
action find
entity Q172575
relation P138
type Q355304
action filter_type
action find
entity Q1310790
relation P138
type Q355304
[ANSWER]
['Q172575', 'P138', {'concept': 'Q355304'}] ['Q1310790', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?m property:P138 ?z . VALUES ( ?m ) { ( resource:Q172575 ) ( resource:Q1310790 ) } }
Niers Rhine
2
action count
action union
action filter_type
action find
entity Neftegorsk
relation named after
type watercourse
action filter_type
action find
entity Rhein-Niers-Bahn
relation named after
type watercourse
['Neftegorsk', 'named after', {'concept': 'watercourse'}] ['Rhein-Niers-Bahn', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?m property:named_after ?z . VALUES ( ?m ) { ( resource:Neftegorsk ) ( resource:Rhein-Niers-Bahn ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q700095 Q1310790
P138 P974
Q355304
USER
Which watercourses are Rhein-Niers-Bahn named after or rivers or lakes flow into Kinzig ?
OR((Q1310790,P138,c(Q355304)), (Q700095,P974,c(Q355304)))
action filter_type
action union
action find
entity Q1310790
relation P138
action find
entity Q700095
relation P974
type Q355304
{'OR': [['Q1310790', 'P138', {'concept': 'Q355304'}], ['Q700095', 'P974', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q355304 . { { resource:Q1310790 property:P138 ?x } UNION { resource:Q700095 property:P974 ?x } } }
Kinzig Rhein-Niers-Bahn
action filter_type
action union
action find
entity Rhein-Niers-Bahn
relation named after
action find
entity Kinzig
relation tributary
type watercourse
{'OR': [['Rhein-Niers-Bahn', 'named after', {'concept': 'watercourse'}], ['Kinzig', 'tributary', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:watercourse . { { resource:Rhein-Niers-Bahn property:named_after ?x } UNION { resource:Kinzig property:tributary ?x } } }
[]
watercourse
Q875893 Q584 Q871930 Q872022 Q882659 Q542128 Q872528 Q663044 Q315212 Q835333
SYSTEM
Some of them are Gutach, Rhine, Sulzbächle, Heubach, Wolf, Harmersbach, Kleine Kinzig, Rötenbach, Schiltach, Niers
Q835333 Q872264 Q315212 Q663044 Q872528 Q584 Q872022 Q871930 Q882659 Q875893 Q542128 Q885308
OR((Q1310790,P138,c(Q355304)), (Q700095,P974,c(Q355304)))
action filter_type
action union
action find
entity Q1310790
relation P138
action find
entity Q700095
relation P974
type Q355304
[ANSWERS] are Rhein-Niers-Bahn named after or rivers or lakes flow into Kinzig
{'OR': [['Q1310790', 'P138', {'concept': 'Q355304'}], ['Q700095', 'P974', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q355304 . { { resource:Q1310790 property:P138 ?x } UNION { resource:Q700095 property:P974 ?x } } }
Niers Kirnbach Schiltach Rötenbach Kleine Kinzig Rhine Heubach Sulzbächle Wolf Gutach Harmersbach Schutter
Gutach, Rhine, Sulzbächle, Heubach, Wolf, Harmersbach, Kleine Kinzig, Rötenbach, Schiltach and Niers are Rhein-Niers-Bahn named after or rivers or lakes flow into Kinzig
Gutach Rhine Sulzbächle Heubach Wolf Harmersbach Kleine Kinzig Rötenbach Schiltach Niers
action filter_type
action union
action find
entity Rhein-Niers-Bahn
relation named after
action find
entity Kinzig
relation tributary
type watercourse
{'OR': [['Rhein-Niers-Bahn', 'named after', {'concept': 'watercourse'}], ['Kinzig', 'tributary', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:watercourse . { { resource:Rhein-Niers-Bahn property:named_after ?x } UNION { resource:Kinzig property:tributary ?x } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P403
Q15324 Q355304
USER
Which bodies of water do exactly 8 watercourses drain into ?
(c(Q355304),P403,c(Q15324))
action equal
action find_reverse_tuple_counts
relation P403
type Q15324
type Q355304
value 8
[{'concept': 'Q355304'}, 'P403', {'concept': 'Q15324'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?n = 8 ) . { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?n ) WHERE { ?z rdf:type ontology:Q15324 . ?x rdf:type ontology:Q355304 . ?x property:P403 ?z } GROUP BY ?z } }
action equal
action find_reverse_tuple_counts
relation mouth of the watercourse
type body of water
type watercourse
value 8
[{'concept': 'watercourse'}, 'mouth of the watercourse', {'concept': 'body of water'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?n = 8 ) . { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?n ) WHERE { ?z rdf:type ontology:body_of_water . ?x rdf:type ontology:watercourse . ?x property:mouth_of_the_watercourse ?z } GROUP BY ?z } }
[]
body of water watercourse
Q35827 Q35000 Q2090594
SYSTEM
Río de la Plata, Sea of Azov, Cantabrian Sea
Q2090594 Q35827 Q35000 Q697092 Q49364 Q163434 Q1512616 Q1129590 Q141017
(c(Q355304),P403,c(Q15324))
action equal
action find_reverse_tuple_counts
relation P403
type Q15324
type Q355304
value 8
[ANSWERS]
[{'concept': 'Q355304'}, 'P403', {'concept': 'Q15324'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?n = 8 ) . { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?n ) WHERE { ?z rdf:type ontology:Q15324 . ?x rdf:type ontology:Q355304 . ?x property:P403 ?z } GROUP BY ?z } }
Cantabrian Sea Río de la Plata Sea of Azov Hokianga Java Sea East Siberian Sea Golden Bay Cook Inlet Tokyo Bay
Which bodies of water exactly 8 watercourses drain into
Río de la Plata Sea of Azov Cantabrian Sea
action equal
action find_reverse_tuple_counts
relation mouth of the watercourse
type body of water
type watercourse
value 8
[{'concept': 'watercourse'}, 'mouth of the watercourse', {'concept': 'body of water'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?n = 8 ) . { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?n ) WHERE { ?z rdf:type ontology:body_of_water . ?x rdf:type ontology:watercourse . ?x property:mouth_of_the_watercourse ?z } GROUP BY ?z } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q35827 Q35000 Q2090594
P403
Q355304
USER
Which watercourses ultimately merges into Río de la Plata, Sea of Azov and Cantabrian Sea ?
(c(Q355304),P403,Q35827) (c(Q355304),P403,Q35000) (c(Q355304),P403,Q2090594)
action union
action filter_type
action find_reverse
entity Q35827
relation P403
type Q355304
action filter_type
action find_reverse
entity Q35000
relation P403
type Q355304
action filter_type
action find_reverse
entity Q2090594
relation P403
type Q355304
[{'concept': 'Q355304'}, 'P403', 'Q35827'] [{'concept': 'Q355304'}, 'P403', 'Q35000'] [{'concept': 'Q355304'}, 'P403', 'Q2090594']
SELECT DISTINCT ?v WHERE { ?v property:P403 ?s . VALUES ( ?s ) { ( resource:Q35827 ) ( resource:Q35000 ) } }
Río de la Plata Sea of Azov Cantabrian Sea
action union
action filter_type
action find_reverse
entity Río de la Plata
relation mouth of the watercourse
type watercourse
action filter_type
action find_reverse
entity Sea of Azov
relation mouth of the watercourse
type watercourse
action filter_type
action find_reverse
entity Cantabrian Sea
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Río de la Plata'] [{'concept': 'watercourse'}, 'mouth of the watercourse', 'Sea of Azov'] [{'concept': 'watercourse'}, 'mouth of the watercourse', 'Cantabrian Sea']
SELECT DISTINCT ?v WHERE { ?v property:mouth_of_the_watercourse ?s . VALUES ( ?s ) { ( resource:Río_de_la_Plata ) ( resource:Sea_of_Azov ) } }
[]
watercourse
Q571363 Q1229 Q82308
SYSTEM
Santa Lucía River, Don, Kuban
Q7650614 Q127892 Q270589 Q18278 Q270655 Q1152939 Q4175796 Q571363 Q776961 Q1229 Q814896 Q2997411 Q280796 Q4084052 Q82308 Q3391138 Q2744506 Q204073 Q14367 Q3881306 Q14360 Q14358 Q14357 Q1181363
(c(Q355304),P403,Q35827) (c(Q355304),P403,Q35000) (c(Q355304),P403,Q2090594)
action union
action filter_type
action find_reverse
entity Q35827
relation P403
type Q355304
action filter_type
action find_reverse
entity Q35000
relation P403
type Q355304
action filter_type
action find_reverse
entity Q2090594
relation P403
type Q355304
[ANSWERS] ultimately merge into Río de la Plata, Sea of Azov and Cantabrian Sea
[{'concept': 'Q355304'}, 'P403', 'Q35827'] [{'concept': 'Q355304'}, 'P403', 'Q35000'] [{'concept': 'Q355304'}, 'P403', 'Q2090594']
SELECT DISTINCT ?v WHERE { ?v property:P403 ?s . VALUES ( ?s ) { ( resource:Q35827 ) ( resource:Q35000 ) } }
Luján River Paraná Samborombón Uruguay River Salado River San Juan Pantanoso Creek Santa Lucía River Kalchik River Don Beysug River Kirpili River Kalmius Berda Kuban Kagalnik River Urumea Urola Besaya River Oiartzun Pas Miera River Asón River Deba
Santa Lucía River, Don and Kuban ultimately merge into Río de la Plata, Sea of Azov and Cantabrian Sea
Santa Lucía River Don Kuban
action union
action filter_type
action find_reverse
entity Río de la Plata
relation mouth of the watercourse
type watercourse
action filter_type
action find_reverse
entity Sea of Azov
relation mouth of the watercourse
type watercourse
action filter_type
action find_reverse
entity Cantabrian Sea
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Río de la Plata'] [{'concept': 'watercourse'}, 'mouth of the watercourse', 'Sea of Azov'] [{'concept': 'watercourse'}, 'mouth of the watercourse', 'Cantabrian Sea']
SELECT DISTINCT ?v WHERE { ?v property:mouth_of_the_watercourse ?s . VALUES ( ?s ) { ( resource:Río_de_la_Plata ) ( resource:Sea_of_Azov ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35000
P47
Q1048835
USER
Which political territories have a shared border with Sea of Azov ?
(Q35000,P47,c(Q1048835))
action filter_type
action find
entity Q35000
relation P47
type Q1048835
['Q35000', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q35000 property:P47 ?n }
Sea of Azov
action filter_type
action find
entity Sea of Azov
relation shares border with
type political territorial entity
['Sea of Azov', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Sea_of_Azov property:shares_border_with ?n }
[]
political territorial entity
Q163271 Q2012050 Q171334
SYSTEM
Kherson Oblast, Donetsk Oblast, Zaporizhzhya Oblast
Q163271 Q2012050 Q171334
(Q35000,P47,c(Q1048835))
action filter_type
action find
entity Q35000
relation P47
type Q1048835
[ANSWERS] have a shared border with Sea of Azov
['Q35000', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q35000 property:P47 ?n }
Kherson Oblast Donetsk Oblast Zaporizhzhya Oblast
Kherson Oblast, Donetsk Oblast and Zaporizhzhya Oblast have a shared border with Sea of Azov
Kherson Oblast Donetsk Oblast Zaporizhzhya Oblast
action filter_type
action find
entity Sea of Azov
relation shares border with
type political territorial entity
['Sea of Azov', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Sea_of_Azov property:shares_border_with ?n }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6615
Q1048835
USER
And how about Maçanet de Cabrenys?
(Q6615,P47,c(Q1048835))
action filter_type
action find
entity Q6615
relation P47
type Q1048835
['Q6615', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q6615 property:P47 ?k . ?k rdf:type ontology:Q1048835 }
Maçanet de Cabrenys
action filter_type
action find
entity Maçanet de Cabrenys
relation shares border with
type political territorial entity
['Maçanet de Cabrenys', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Maçanet_de_Cabrenys property:shares_border_with ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q10973 Q6677 Q11832
SYSTEM
Albanyà, Darnius, Sant Llorenç de la Muga
Q6677 Q10973 Q6657 Q11832
(Q6615,P47,c(Q1048835))
action filter_type
action find
entity Q6615
relation P47
type Q1048835
[ANSWERS]
['Q6615', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q6615 property:P47 ?k . ?k rdf:type ontology:Q1048835 }
Darnius Albanyà La Vajol Sant Llorenç de la Muga
Albanyà Darnius Sant Llorenç de la Muga
action filter_type
action find
entity Maçanet de Cabrenys
relation shares border with
type political territorial entity
['Maçanet de Cabrenys', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Maçanet_de_Cabrenys property:shares_border_with ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6615
P47
Q1048835
USER
Are Maçanet de Cabrenys bordered by those ones ?
(Q6615,P47,Q10973) (Q6615,P47,Q6677) (Q6615,P47,Q11832)
action is_in
entity prev_answer
action find
entity Q6615
relation P47
['Q6615', 'P47', 'Q10973'] ['Q6615', 'P47', 'Q6677'] ['Q6615', 'P47', 'Q11832']
ASK WHERE { resource:Q6615 property:P47 ?h . VALUES ( ?h ) { ( resource:Q6677 ) ( resource:Q10973 ) ( resource:Q6657 ) } }
Maçanet de Cabrenys
action is_in
entity prev_answer
action find
entity Maçanet de Cabrenys
relation shares border with
['Maçanet de Cabrenys', 'shares border with', 'Albanyà'] ['Maçanet de Cabrenys', 'shares border with', 'Darnius'] ['Maçanet de Cabrenys', 'shares border with', 'Sant Llorenç de la Muga']
ASK WHERE { resource:Maçanet_de_Cabrenys property:shares_border_with ?h . VALUES ( ?h ) { ( resource:Darnius ) ( resource:Albanyà ) ( resource:La_Vajol ) } }
[]
political territorial entity
SYSTEM
YES
(Q6615,P47,Q10973) (Q6615,P47,Q6677) (Q6615,P47,Q11832)
action is_in
entity prev_answer
action find
entity Q6615
relation P47
[ANSWER]
['Q6615', 'P47', 'Q10973'] ['Q6615', 'P47', 'Q6677'] ['Q6615', 'P47', 'Q11832']
ASK WHERE { resource:Q6615 property:P47 ?h . VALUES ( ?h ) { ( resource:Q6677 ) ( resource:Q10973 ) ( resource:Q6657 ) } }
Yes
action is_in
entity prev_answer
action find
entity Maçanet de Cabrenys
relation shares border with
['Maçanet de Cabrenys', 'shares border with', 'Albanyà'] ['Maçanet de Cabrenys', 'shares border with', 'Darnius'] ['Maçanet de Cabrenys', 'shares border with', 'Sant Llorenç de la Muga']
ASK WHERE { resource:Maçanet_de_Cabrenys property:shares_border_with ?h . VALUES ( ?h ) { ( resource:Darnius ) ( resource:Albanyà ) ( resource:La_Vajol ) } }
[]